ILP C++ Quiz Prelims 2
Abstract
Singleton
Void class
None of the above
Welcome
Come
Error
Lcome
Runtime class
Exception_handler class
Exception class
Virtual base class
&word
Static_cast(word)
*(&word)
Static_cast(word)
5
Error
Division cannot be done over pointers
10
2
Address of a
Compilation error
Address of a+1
Atof()
Strtod()
Atod()
None
Both the inputs are stored in that variable
The second input overwrites the first one
The second input attempt fails since the variable already got its value
You can not use same variable for two getline statements
Int
Long int
Short int
Float
5, 5, 6, 6
5, Garbage Value, 5, Garbage Value
5, 5, 5, Garbage value
Garbage Value, 5, 6, Garbage Value
Object m1 is of type myclass
Object m1 is of type mybase
Object m1 is of type P6mybase
Object m1 is of type P6myclass
2 1
Error
1 2
No output
ConstructorDestructorDestructor
ConstructorConstructorDestructor
ConstructorConstructorDestructorDestructor
ConstructorDestructorConstructorDestructor
Compilation Error
No Ouput
Param Constructor
None of the above
Error
10 20
No output
None of the above
Quiz Review Timeline +
Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.
Wait!
Here's an interesting quiz for you.