UGC NET CS 2016 July – II

Last Updated :
Discuss
Comments

Question 1

What is the value returned by the function f given below when n = 100? int f (int n) { if (n = = 0) then return n; else return n + f(n-2); }
  • 2550
  • 2556
  • 5220
  • 5520

Question 2

Given i = 0, j = 1, k = –1 x = 0.5, y = 0.0 What is the output of the following expression in C language ? x * y < i + j || k

  • -1
  • 0
  • 1
  • 2

Question 3

In _______, the bodies of the two loops are merged together to form a single loop provided that they do not make any references to each other.

  • Loop unrolling

  • Strength reduction

  • Loop concatenation

  • Loop jamming

Question 4

Suppose there are four processes in execution with 12 instances of a Resource R in a system. The maximum need of each process and current allocation are given below: 37 (2) With reference to current allocation, is system safe ? If so, what is the safe sequence ?

  • No
  • Yes, P1P2P3P4

  • Yes, P4P3P1P2

  • Yes, P2P1P3P4

Question 5

In TCP/IP Reference model, the job of _______ layer is to permit hosts to inject packets into any network and travel them independently to the destination. (1)Physical (2)Transport (3)Application (4)Host-to-network

  • (1)

  • (2) and (3)

  • (3) and (4)

  • (1), (2), (3) and (4)

Question 6

In a fully-connected mesh network with 10 computers, total ______ number of cables are required and ______ number of ports are required for each device.
  • 40,9
  • 45,10
  • 45,9
  • 50,10

Question 7

Which of the following is not an inherent application of stack?

  • Implementation of recursion

  • Evaluation of a postfix expression

  • Job scheduling

  • Reverse a string

Question 8

Consider the following operations performed on a stack of size 5 : Push (a); Pop() ; Push(b); Push(c); Pop(); Push(d); Pop();Pop(); Push (e) Which of the following statements is correct?

  • Underflow occurs

  • Stack operations are performed smoothly

  • Overflow occurs

  • None of the above

Question 9

The following statement in ‘C’ 
int (*f())[ ]; 
declares

  • a function returning a pointer to an array of integers.

  • a function returning an array of pointers to integers.

  • array of functions returning pointers to integers.

  • an illegal statement.

Question 10

If the Disk head is located initially at track 32, find the number of disk moves required with FCFS scheduling criteria if the disk queue of I/O blocks requests are: 98, 37, 14, 124, 65, 67
  • 320
  • 322
  • 321
  • 319
Tags:

There are 50 questions to complete.

Take a part in the ongoing discussion