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

MCQs C++ |UGC-NET|GATE|Computer Science

31.A member function can always access the data
A.In the object of which it is a member
B.In the class of which it is a member
C.In any object of the class of which it is a member
D.In the public part of its class
View/Hide Ans
Explanation
32.The dot operator/ class member access operator connects the following two entities reading from left to right
A.A class member and a class object
B.A class object and class member
C.A class and class object
D.A class and member of that class
View/Hide Ans
Explanation
33.The scope resolution operator connects the following two entities reading from left to right
A.A class member and a class object
B.A class object and class member
C.A class and class object
D.A class and member of that class
View/Hide Ans
Explanation
34.A class ABC has objects obj1, obj2, obj3. for the statement obj3=obj2-obj1 to work the overloaded operator ‘-’ must
A.take two arguments
B.Return a value
C.Create a named temporary object
D.Use the object of which it is a member as an operand
View/Hide Ans
Explanation
35.To convert from a user defined class to a basic type , which of these is necessary
A.Built in conversion
B.A one argument constructor
C.An overloaded = operator
D.A conversion function that’s the member of the class
View/Hide Ans
Explanation
36.Member functions defined inside the class definition ,by default are called
A.Member Function
B.Inline Function
C.Constructor
D.Parameterized function
View/Hide Ans
Explanation
37.When arithmetic assignment operator is overloaded , the result
A.Goes in the object to right of the operator
B.Goes in the object to the left of the operator
C.Goes in the object of which the operator is a member
D.Must be returned
View/Hide Ans
Explanation
38.Which of these is not a valid constructor type-
A.inline
B.copy
C.default
D.parameterized
View/Hide Ans
Explanation
39.How many private, public or protected sections can be there in a class?
A.One
B.Two
C.Three
D.Multiple
View/Hide Ans
Explanation
40.The Members of a class can be
A.Data
B.Member Functions
C.Type Definitions
D.All of the above
View/Hide Ans
Explanation


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


Pages: 1 2 3 4 5 6 7 8 9