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); }
  • A
    2550
  • B
    2556
  • C
    5220
  • D
    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

  • A
    -1
  • B
    0
  • C
    1
  • D
    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.

  • A

    Loop unrolling

  • B

    Strength reduction

  • C

    Loop concatenation

  • D

    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 ?

  • A
    No
  • B

    Yes, P1P2P3P4

  • C

    Yes, P4P3P1P2

  • D

    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

  • A

    (1)

  • B

    (2) and (3)

  • C

    (3) and (4)

  • D

    (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.
  • A
    40,9
  • B
    45,10
  • C
    45,9
  • D
    50,10

Question 7

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

  • A

    Implementation of recursion

  • B

    Evaluation of a postfix expression

  • C

    Job scheduling

  • D

    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?

  • A

    Underflow occurs

  • B

    Stack operations are performed smoothly

  • C

    Overflow occurs

  • D

    None of the above

Question 9

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

  • A

    a function returning a pointer to an array of integers.

  • B

    a function returning an array of pointers to integers.

  • C

    array of functions returning pointers to integers.

  • D

    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
  • A
    320
  • B
    322
  • C
    321
  • D
    319
Tags:

There are 50 questions to complete.

Take a part in the ongoing discussion