Object Oriented Programming with c++ Exam Questions – Set 34

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. Two access specifiers in C++ are

(A) public and private
(B) int and double
(C) formal and informal
(D) void and free

Answer: (A) public and private


Q2. Two access specifiers in C++ are

(A) public and private
(B) int and double
(C) formal and informal
(D) void and free

Answer: (A) public and private


Q3. The while loop is referred to as a(n) _ loop because the loop condition is tested at the beginning of the loop

(A) Beginning
(B) Initial
(C) Pretest
(D) Priming

Answer: (C) Pretest


Q4. The last statement in a value-returning function is always __

(A) };
(B) result expression;
(C) return;
(D) return expression;

Answer: (D) return expression;


Q5. The most common operation used in constructors is __

(A) Addition
(B) Overloading
(C) Assignment
(D) Polymorphism

Answer: (C) Assignment


Q6. An expression

(A) Is a collection of data objects and operators that can be evaluated to a single value
(B) Is a name that substitutes for a sequence of characters
(C) Causes the computer to carry out some action
(D) All of the above

Answer: (A) Is a collection of data objects and operators that can be evaluated to a single value


Q7. The store of memory available to programs is the __

(A) Store
(B) Stack
(C) Pile
(D) Heap

Answer: (D) Heap


Q8. In the C language, the character type of constant is delimited by using

(A) Single quotes
(B) Double quotes
(C) Parenthesis
(D) #

Answer: (A) Single quotes


Q9. A ‘C function does not contain

(A) A function header
(B) Argument declarations
(C) Other ‘C’ functions
(D) Function body

Answer: (C) Other ‘C’ functions


Q10. The complement operator is represented by the symbol

(A) ~
(B) ^
(C) i
(D) <

Answer: (A) ~


Q11. Private data can be accessed by

(A) Class member functions
(B) Functions in derived classes
(C) Both (a) and (b)
(D) Neither (a) nor (b)

Answer: (A) Class member functions


Q12. Static variables are sometimes called

(A) Class variables
(B) Functional variables
(C) Dynamic variables
(D) Auto variables

Answer: (A) Class variables


Q13. Which of the following is a C++ object?

(A) >>
(B) read()
(C) cin
(D) iostream

Answer: (C) cin


Q14. Which of the following is false?

(A) A pointer variable contains the address of a variable in memory
(B) You should both declare and initialize a pointer before you use it
(C) Pointers are typically initialized to the empty string (“”)
(D) A pointer’s datatype must match the datatype of the variable to which it points

Answer: (C) Pointers are typically initialized to the empty string (“”)


Q15. A variable’s _ indicates which portions of the program can use the variable

(A) Area
(B) Extent
(C) Lifetime
(D) Scope

Answer: (D) Scope


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