forum_image

Discussion Forum

Interative Forum for discussing any query literally to UGC-NET Computer Science, GATE Computer Science and Computer Sciene and Technology in general.

ugc_net image

UGC-NET Computer Science

Correspondence Courses and Test Series to prepare for UGC-NET computer science and applications

GATE image

GATE

MCQs, Lecture Notes, Ebooks for GATE preparation

freestuff image
jobs image

Jobs Newsfeed

Timely information of various Recruitments.

NextPrev

Solved Questions Paper-2 UGC-NET Computer Science June 2015

11.What is the output of the following program ?
(Assume that the appropriate preprocessor directives are included and there is no syntax error)
main ( )
{ char S[ ] = "ABCDEFGH";
printf ("%C",* (& S[3]));
printf ("%s", S + 4);
printf ("%u", S);
/* Base address of S is 1000 */
}
A.ABCDEFGH1000
B.CDEFGH1000
C.DDEFGHH1000
D.DEFGH1000
View/Hide Ans
Explanation
12.Which of the following, in C++, is inherited in a derived class from base class ?
A.constructor
B.destructor
C.data members
D.virtual methods
View/Hide Ans
Explanation
13.Given that x = 7.5, j = -1.0, n = 1.0, m = 2.0
the value of - - x + j = = x > n >= m is :
A.0
B.1
C.2
D.3
View/Hide Ans
Explanation
14.Which of the following is incorrect in C++ ?
A.When we write overloaded function we must code the function for each usage.
B.When we write function template we code the function only once.
C.It is difficult to debug macros
D.Templates are more efficient than macros
View/Hide Ans
Explanation
15.When the inheritance is private, the private methods in base class are in the ----------- derived class (in C++).
A.inaccessible
B.accessible
C.protected
D.public
View/Hide Ans
Explanation
16.An Assertion is a predicate expressing a condition we wish database to always satisfy. The correct syntax for Assertion is :
A.CREATE ASSERTION',ASSERTION Name', CHECK',Predicate',
B.CREATE ASSERTION 'ASSERTION NAME'
C.CREATE ASSERTION, CHECK Predicate
D.SELECT ASSERTION
View/Hide Ans
Explanation
17.Which of the following concurrency protocol ensures both conflict serializability and freedom from deadlock ?
(a) z-phase Locking
(b) Time stamp - ordering
A.Both (a) and (b)
B.(a) only
C.(b) only
D.Neither (a) nor (b)
View/Hide Ans
Explanation
18.Drop Table cannot be used to drop a Table referenced by ------ constraint.
(a) Primary key (b) Sub key (c) Super key (d) Foreign key
A.(a)
B.(a), (b) and (c)
C.(d)
D.(a) and (d)
View/Hide Ans
Explanation
19.Database applications were built directly on top of file system to overcome the following drawbacks of using filesystems
(a) Data redundancy and inconsistency
(b) Difficulty in accessing Data
(c) Data isolation
(d) Integrity problems
A.(a)
B.(a) and (d)
C.(a), (b) and (c)
D.(a), (b), (c) and (d)
View/Hide Ans
Explanation
20.For a weak entity set to be meaningful, lt must be associated with another entity set in combination with some of their attribute values, is called as :
A.Neighbour Set
B.Strong Entity Set
C.Owner entity set
D.Weak Set
View/Hide Ans
Explanation


Author Does Not claim of any answer these answers are as per expert opinion


Pages: 1 2 3 4 5