C++ Programming Questions

Q.  In CPP, the size of the character array should be one larger than the number of characters in the string.

a. True
b. False


ANSWER: See Answer
 
No explanation is available for this question!
MCQs:  Exception handlers are declared with ____________ keyword.
Category: Computer Science MCQs,   Published by: T-Code Scripts
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: T-Code Scripts
MCQs:  Static variable declared in a class are also called_________ .
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  Which of the following operator is used to release the dynamically allocated memory in CPP?
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  Which of the following is not a false statement about new operator?
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  Private members of the class are accessible only to the members of the same class.
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  Run time polymorphism can be achieved with______ .
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  To create an output stream, we must declare the stream to be of class ___________ .
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  Catch handler can have multiple parameters.
Category: Computer Science MCQs,   Published by: T-Code Scripts
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: T-Code Scripts
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: T-Code Scripts
MCQs:  Default return type of functions in CPP is ____ .
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  Default values for a function are need to be specified from left to right only.
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  During a class inheritance in CPP, if the visibility mode or mode of derivation is not provided, then by default visibility mode is ___________.
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  The derivation of Child class from Base class is indicated by ____ symbol.
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  If we have object from fstream class, then what is the default mode of opening the file?
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  __________ is return type of is_open() function.
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  Public data members and member functions of the class are accessible ONLY to the member functions of that class.
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  Only functions of the class can access the data of the class and they(functions) provides the interface between data, objects and the program. This kind isolation of the data from direct access by the program is called _______________ .
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  A Constructor that does not have any parameters is called____________ Constructor.
Category: Computer Science MCQs,   Published by: T-Code Scripts