| | | | MCQ Tutorial - OOPS->CCP-OOPS | | | | 1.) Which of the following is the correct class of the object cout? | | Options are: | | A.) istream
| | B.) ostream
| | C.) iostream
| | D.) ifstream
| | Correct Option: B | | | | | | | 2.) Which of the following cannot be used with the keyword virtual?
| | Options are: | | A.) Class
| | B.) Member functions
| | C.) Destructor
| | D.) Constructor
| | Correct Option: D | | | | | | | 3.) Which of the following functions are performed by a constructor?
| | Options are: | | A.) Construct a new class
| | B.) Construct a new object
| | C.) Initialize objects
| | D.) Construct a new function
| | Correct Option: C | | | | | | | 4.) Which of the following problem causes an exception?
| | Options are: | | A.) A problem in calling function
| | B.) A run-time error
| | C.) Missing semicolon in statement in main()
| | D.) A syntax error
| | Correct Option: B | | | | | | | 5.) Which one of the following options is correct about the statement given below? The compiler checks the type of reference in the object and not the type of object
| | Options are: | | A.) Inheritance
| | B.) Encapsulation
| | C.) Polymorphism
| | D.) Abstraction
| | Correct Option: C | | | | | | | | | | | |