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 ?

  • A
    70
  • B
    14
  • C
    13
  • D
    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.
  • A
    No
  • B
    Yes, A, B, C
  • C
    Yes, D, E, G
  • D
    Yes, A, B, F

Question 3

Match the following 29

  • A
    (1)
  • B
    (2)
  • C
    (3)
  • D
    (4)

Question 4

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

  • A

    twisted pair, 100 meters
     

  • B

    twisted pair, 200 meters
     

  • C

    fiber optics, 1000 meters
     

  • D

    fiber optics, 2000 meters
     

Question 5

The following ‘C’ statement : int * f [ ] ( ); declares:
  • A
    A function returning a pointer to an array of integers.
  • B
    Array of functions returning pointers to integers.
  • C
    A function returning an array of pointers to integers.
  • D
    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
  • A
    13
  • B
    12
  • C
    11
  • D
    10

Question 7

Given the following prefix expression: * + 3 + 3 ↑ 3 + 3 3 3 What is the value of the prefix expression ?
  • A
    2178
  • B
    2199
  • C
    2205
  • D
    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?
  • A

    S1 is correct and S2 is not correct.

  • B

    S1 is not correct and S2 is correct.

  • C

    Both S1 and S2 are correct.

  • D

    Both S1 and S2 are incorrect.

Question 9

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

Question 10

If a function is friend of a class, which one of the following is wrong?
  • A
    A function can only be declared a friend by a class itself.
  • B
    Friend functions are not members of a class, they are associated with it.
  • C
    Friend functions are members of a class.
  • D
    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