UGC NET Computer Science Solved Paper II June 2007 - Part 2

11.       The following loop in ‘C’:
int i=0;
While(i++<0)i--;
(A) will terminate
(B) will go into an infinite loop
(C) will give compilation error
(D) will never be executed
Answer: B
12.       In case of right shift bitwise operator in ‘C’ language, after shifting n bits, the left most n bits:
(A) are always filled with zeroes
(B) are always filled with ones
(C) are filled with zeroes or ones and is machine dependent
(D) none of the above
Answer: C
13.       What keyword in class specification helps to hide data:
(A) Public
(B) Private
(C) Static
(D) Void
Answer: B
14.       What is the output of the following ‘C’ program?
main()
{printf(“%x”,-1>>4);}
(A) ffff
(B) 0fff
(C) 0000
(D) fff0
Answer: A
15.       Runtime polymorphism can be achieved by:
(A) Accessing virtual function through the pointer of the base class
(B) Accessing virtual function through the object
(C) The derived class
(D) None of these
Answer: A
16.       Which of the following statements is wrong?
(A) 2-phase Locking Protocols suffer from deadlocks
(B) Time-Stamp Protocols suffer from more aborts
(C) Time-Stamp Protocols suffer from cascading roll back where as 2-Phase locking Protocol do not
(D) None of these
Answer: C
17.       A recursive foreign key is a:
(A) references a relation                   
(B) references a table
(C) references its own relation         
(D) references a foreign key
Answer: C
18.       A sub class having more than one super class is called:
(A) Category
(B) Classification
(C) Combination
(D) Partial Participation
Answer: A
19.       A relation R={A,B,C,D,E,F} is given with following set of functional dependencies:
F={A→B,AD→C,B→F,A→E}. Which of the following is Candidate Key?
(A) A
(B) AC
(C) AD
(D) None of these
Answer: C
20.    Which statement is false regarding data independence?
(A) Hierarchical data model suffers from data Independence
(B) Network model suffers from data Independence
(C) Relational model suffers only from logical data Independence
(D) Relational model suffers only from physical data Independence
Answer: C

Pages   2   3   4   5 

Post a Comment

1 Comments

  1. The answer of Question No. 11 of june-2007 paper-2 is not option(B). Because the loop will not be executed not even a single time. Condition will be false due to post-increment.

    ReplyDelete