Object Oriented Programming c++ Exam Questions and Answers pdf – Set 33

Are you guys looking for Computer science Engineering MCQ Questions with Answers PDF Free Download as per Computer science Engineering new exam pattern? You came to the right page. This may assist you to understand and check your knowledge about the Subjects. Students also can take a free test of the Multiple Choice Questions of Computer science Engineering. Each question has four options followed by the right answer. These Computer science Engineering MCQ Questions are selected supported by the newest exam pattern.


Q1. If no constructors can specified for a derived class, objects of the derived class will use the constructors in the base class

(A) True
(B) False

Answer:(A) True


Q2. If no exception is thrown __

(A) A catch block will cause an error
(B) The first catch block coded will execute
(C) The last catch block coded with execute
(D) Any catch blocks coded with be bypassed

Answer: (D) Any catch blocks coded with be bypassed


Q3. When you declare a pointer, you must give it a __

(A) Type
(B) Type and name
(C) Type, name, and value
(D) Name and value

Answer: (B) Type and name


Q4. One way pointers are useful is to refer to a memory address that has no _

(A) Name
(B) Constant
(C) Location
(D) Field

Answer: (A) Name


Q5. The two operators && an || are

(A) Arithmetic operators
(B) Equality operators
(C) Logical operators
(D) Relational operators

Answer: (C) Logical operators


Q6. The prototype for a derived class constructor may include arguments for

(A) Data members of the derived class
(B) Data members of the base class
(C) Both (a) and (b)
(D) Neither (a) nor (b)

Answer: (C) Both (a) and (b)


Q7. Which of the following is true?

(A) Iostream is derived from istream
(B) Iostream is derived from ostream
(C) Ostream is derived from iostream
(D) Ostream is derived from istream

Answer: (C) Ostream is derived from iostream


Q8. You ________overload function templates

(A) May, as long as each version has the same arguments
(B) May, as long as each version has different arguments
(C) Must
(D) Must not

Answer: (B) May, as long as each version has different arguments


Q9. Catch blocks must __

(A) Appear in every object-oriented program
(B) Appear within try blocks
(C) Appear immediately after throw statements
(D) Appear immediately after try blocks

Answer:(D) Appear immediately after try blocks


Q10. A blueprint for creating an object in C++ is called __

(A) A class
(B) An instance
(C) A map
(D) A pattern

Answer: (A) A class


Q11. Simple routines that programmers use as place holders while a system is being tested are called _.

(A) Stubs
(B) Stumps
(C) Holders
(D) Templates

Answer: (A) Stubs


Q12. Which of the following is the fourth problem-solving step?

(A) Analyze the problem
(B) Evaluate and modify (if necessary) the program
(C) Code the algorithm
(D) Plan the algorithm

Answer: (C) Code the algorithm


Q13. The most efficient data type for a variable that the number 20000 is the _ data type

(A) Character
(B) Long Integer
(C) Float
(D) Short Integer

Answer: (D) Short Integer


Q14. To create a template class, you begin with _

(A) The template definition
(B) The keyword class
(C) The function definitions
(D) The keyword definition

Answer: (A) The template definition


Q15. Storing a class definition in a separate file is an example of

(A) Polymorphism
(B) Name mangling
(C) Implementation hiding
(D) Inheritance

Answer: (C) Implementation hiding


We hope the given Computer science Engineering MCQ Questions with Answers will definitely yield fruitful results. Hope you got enough ideas on the MCQs on Computer science Engineering. If you have any queries related toComputer science Engineering MCQs Multiple Choice Questions with Answers, drop your questions below and will get back to you in no time.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top