MCQs: Which of the following are true about static member function? 1. They can access non-static data members. 2. They can call only other static member functions. 3. They can access global functions and data. 4. They can have this pointer. 5. They cannot be declared as const or volatile.
Category: Computer Science MCQs, Published by: teswesm
|
MCQs: Static variable must be declared in public section of the class.
Category: Computer Science MCQs, Published by: teswesm
|
MCQs: By default, if a function with minimum lines of code is declared and defined inside the class becomes Inline function.
Category: Computer Science MCQs, Published by: teswesm
|
MCQs: class X, class Y and class Z are derived from class BASE. This is ______ inheritance.
Category: Computer Science MCQs, Published by: teswesm
|
MCQs: When base class is derived in protected mode, then_____________ . 1. public members of base class become private members of derived class. 2. public members of base class become protected members of derived class. 3. public members of base class become public members of derived class. 4. protected members of base class become protected members of derived class. 5. protected members of base class become private members of derived class. 6. protected members of base class become public members of
Category: Computer Science MCQs, Published by: teswesm
|
MCQs: Can we have overloading of the function templates?
Category: Computer Science MCQs, Published by: teswesm
|
MCQs: Streams that will be performing both input and output operations must be declared as class _________ .
Category: Computer Science MCQs, Published by: teswesm
|
MCQs: Exception handlers are declared with ____________ keyword.
Category: Computer Science MCQs, Published by: teswesm
|
MCQs: 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.
Category: Computer Science MCQs, Published by: teswesm
|
MCQs: Static variable declared in a class are also called_________ .
Category: Computer Science MCQs, Published by: teswesm
|
MCQs: Which of the following operator is used to release the dynamically allocated memory in CPP?
Category: Computer Science MCQs, Published by: teswesm
|
MCQs: Which of the following is not a false statement about new operator?
Category: Computer Science MCQs, Published by: teswesm
|
MCQs: Private members of the class are accessible only to the members of the same class.
Category: Computer Science MCQs, Published by: teswesm
|
MCQs: Run time polymorphism can be achieved with______ .
Category: Computer Science MCQs, Published by: teswesm
|
MCQs: To create an output stream, we must declare the stream to be of class ___________ .
Category: Computer Science MCQs, Published by: teswesm
|
MCQs: Catch handler can have multiple parameters.
Category: Computer Science MCQs, Published by: teswesm
|
MCQs: Inline functions may not work ______ . 1. If function contain static variables. 2. If function contain global and register variables. 3. If function returning value consists looping construct(i.e. for, while). 4. If inline functions are recursive. 5. If function contains const value.
Category: Computer Science MCQs, Published by: teswesm
|
MCQs: 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.
Category: Computer Science MCQs, Published by: teswesm
|
MCQs: Default return type of functions in CPP is ____ .
Category: Computer Science MCQs, Published by: teswesm
|
MCQs: Default values for a function are need to be specified from left to right only.
Category: Computer Science MCQs, Published by: teswesm
|