MCQOPTIONS
Bookmark
Saved Bookmarks
→
Computer Science
→
GATE- CS-2015(SET 2) in Computer Science
→
Private members of the class are accessible only t..
1.
Private members of the class are accessible only to the members of the same class.
A.
True
B.
False
Answer» C.
Show Answer
Discussion
No Comment Found
Post Comment
Related MCQs
Which of the followings are false statements about Local class? 1. A local class type name can only be used in the enclosing function 2. All the methods of Local classes must be defined inside the class only 3. A Local class can contain static data members. 4. A Local class may contain static functions. 5. Non-static variables of the enclosing function are not accessible inside local classes. 6. Local classes cannot access global types, variables and functions.
Which of the followings are true about constructors? 1. A class can have more than one constructor. 2. They can be inherited. 3. Their address can be referred. 4. Constructors cannot be declared in protected section of the class. 5. Constructors cannot return values.
Which of the followings are true about Virtual functions?
Which of the followings is/are not a manipulator/s ? 1. flush 2. base 3. ends 4. oct 5. bin 6. skipws
Which of the followings is/are not false about friend function ? 1. It can be called / invoked with class object. 2. It has objects as arguments. 3. It can have built-in types as arguments. 4. It must declared only in public part of a class. 5. It does not have this pointer as an argument.
Which of the followings is/are not keyword/s in CPP? 1. asm 2. boolean 3. mutable 4. export 5. constant_cast
Which one is suitable syntax for function template?
While redefining a virtual function in the derived class, if its prototype is changed then ___________________ .
Which of the following statements are true about Catch handler? 1. It must be placed immediately after try block T. 2. It can have multiple parameters. 3. There must be only one catch handler for every try block. 4. There can be multiple catch handler for a try block T. 5. Generic catch handler can be placed anywhere after try block.
Which of the following statements are not true about destructor? 1. It is invoked when object goes out of the scope 2. Like constructor, it can also have parameters 3. It can be virtual 4. It can be declared in private section 5. It bears same name as that of the class and precedes Lambda sign.
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply