UGC NET CS 2016 Aug – II

Last Updated :
Discuss
Comments

Question 1

Consider a system having ‘m’ resources of the same type. These resources are shared by three processes P1, P2and P3 which have peak demands of 2, 5 and 7 resources respectively. For what value of ‘m’ deadlock will not occur ?

  • 70
  • 14
  • 13
  • 7

Question 2

Consider a system with seven processes A through G and six resources R through W. Resource ownership is as follows : process A holds R and wants T process B holds nothing but wants T process C holds nothing but wants S process D holds U and wants S & T process E holds T and wants V process F holds W and wants S process G holds V and wants U Is the system deadlocked ? If yes, ______ processes are deadlocked.
  • No
  • Yes, A, B, C
  • Yes, D, E, G
  • Yes, A, B, F

Question 3

Match the following 29

  • (1)
  • (2)
  • (3)
  • (4)

Question 4

In a fast Ethernet cabling, 100 Base-TX uses ____ cable and maximum segment size is _____.
 

  • twisted pair, 100 meters
     

  • twisted pair, 200 meters
     

  • fiber optics, 1000 meters
     

  • fiber optics, 2000 meters
     

Question 5

The following ‘C’ statement : int * f [ ] ( ); declares:
  • A function returning a pointer to an array of integers.
  • Array of functions returning pointers to integers.
  • A function returning an array of pointers to integers.
  • An illegal statement.

Question 6

Suppose that the virtual Address space has eight pages and physical memory with four page frames. If LRU page replacement algorithm is used, _____ number of page faults occur with the reference string. 0 2 1 3 5 4 6 3 7 4 7 3 3 5 5 3 1 1 1 7 2 3 4 1
  • 13
  • 12
  • 11
  • 10

Question 7

Given the following prefix expression: * + 3 + 3 ↑ 3 + 3 3 3 What is the value of the prefix expression ?
  • 2178
  • 2199
  • 2205
  • 2232

Question 8

Consider the following statements: S1: A queue can be implemented using two stacks. S2: A stack can be implemented using two queues. Which of the following is correct?
  • S1 is correct and S2 is not correct.

  • S1 is not correct and S2 is correct.

  • Both S1 and S2 are correct.

  • Both S1 and S2 are incorrect.

Question 9

In C++, polymorphism requires:
  • Inheritance only
  • Virtual functions only
  • References only
  • Inheritance, Virtual functions and references

Question 10

If a function is friend of a class, which one of the following is wrong?
  • A function can only be declared a friend by a class itself.
  • Friend functions are not members of a class, they are associated with it.
  • Friend functions are members of a class.
  • It can have access to all members of the class, even private ones.
Tags:

There are 50 questions to complete.

Take a part in the ongoing discussion