UGC-NET CS 2017 Nov - II

Last Updated :
Discuss
Comments

Question 1

Two atomic operations permissible on Semaphores are __________ and __________.
  • wait, stop
  • wait, hold
  • hold, signal
  • wait, signal

Question 2

The number of bits used for addressing in Gigabit Ethernet is __________.
  • 32 bit
  • 48 bit
  • 64 bit
  • 128 bit

Question 3

Which of the following devices takes data sent from one network device and forwards it to the destination node based on MAC address ?
  • Hub
  • Modem
  • Switch
  • Gateway

Question 4

‘ptrdata’ is a pointer to a data type. The expression *ptrdata++ is evaluated as (in C++) :
 

  • Depends on compiler
     

  • (*ptrdata)++
     

  • *(ptrdata)++
     

  • *(ptrdata++)
     

Question 5

In __________ disk scheduling algorithm, the disk head moves from one end to other end of the disk, serving the requests along the way. When the head reaches the other end, it immediately returns to the beginning of the disk without serving any requests on the return trip.

  • LOOK

  • SCAN

  • C-LOOK

  • C-SCAN

Question 6

Suppose there are six files F1, F2, F3, F4, F5, F6 with corresponding sizes 150 KB, 225 KB, 75 KB, 60 KB, 275 KB and 65 KB respectively. The files are to be stored on a sequential device in such a way that optimizes access time. In what order should the files be stored ?

  • F5, F2, F1, F3, F6, F4

  • F4, F6, F3, F1, F2, F5

  • F1, F2, F3, F4, F5, F6

  • F6, F5, F4, F3, F2, F1

Question 7

A list of n strings, each of length n, is sorted into lexicographic order using merge - sort algorithm. The worst case running time of this computation is :
  • O(n log n)
  • O(n2log n)

  • O(n2 + log n)

  • O(n3)

Question 8

Which of the following is not correct (in C++) ?

  1. Class templates and function templates are instantiated in the same way
  2. Class templates differ from function templates in the way they are initiated
  3. Class template is initiated by defining an object using the template argument
  4. Class templates are generally used for storage classes
  • (1)

  • (2), (4)

  • (2), (3), (4)

  • (4)

Question 9

A member function can always access the data in __________ , (in C++).
  • the class of which it is member
  • the object of which it is a member
  • the public part of its class
  • the private part of its class

Question 10

Which of the following is not correct for virtual function in C++ ?

  • Must be declared in public section of class.

  • Virtual function can be static.

  • Virtual function should be accessed using pointers.

  • Virtual function is defined in base class.

Tags:

There are 50 questions to complete.

Take a part in the ongoing discussion