Basic Programming Language Tutorial Online Test – Set 19

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. A constructor always has

(A) Communicational cohesion
(B) Temporal cohesion
(C) Logical cohesion
(D) No cohesion

Answer:(B) Temporal cohesion


Q2. The compiler converts your C++ instructions into _

(A) Edited code
(B) Object code
(C) Source code
(D) Translated code

Answer: (B) Object code


Q3. A fundamental type such as int or double is a _

(A) Programmer-defined type
(B) Complex type
(C) Non-scalar type
(D) Scalar type

Answer: (D) Scalar type


Q4. When you create a derived class and instantiate an object __

(A) The parent class object must be constructed first
(B) The child class object must be constructed first
(C) The parent class object must not be constructed
(D) The child class object must not be constructed

Answer: (A) The parent class object must be constructed first


Q5. In a C++ program, which of the following can be thrown?

(A) Scalar variables
(B) Programmer-defined objects
(C) Both (a) and (b)
(D) Neither (a) nor (b)

Answer: (B) Programmer-defined objects


Q6. Values that are used to end loops are referred to as _ values

(A) End
(B) Finish
(C) Sentinel
(D) Stop

Answer: (C) Sentinel


Q7. A function’s purpose is to print customer data. Which of the following is the best name for this function?

(A) pcd(). It’s short for “print customer data” and takes few keystrokes
(B) Printcustomerdata(). It states everything the function will do
(C) printCustomer(). It states the function’s purpose and is easy to read
(D) lastFunction(). It is the final function called in most programs, and this name identifies the function’s timing

Answer: (C) printCustomer(). It states the function’s purpose and is easy to read


Q8. Which of the following is the extraction operator?

(A) >>
(B) <<
(C) //
(D) /*

Answer: (A) >>


Q9. The ‘break’ statement is used to exist from

(A) A do loop
(B) A for loop
(C) A switch statement
(D) All of the above

Answer: (D) All of the above


Q10. Which of the following statements creates a named constant called driverAge whose value is 16?

(A) const driverAge = 16;
(B) const short driverAge = 16;
(C) driverAge =16;
(D) namedconst driverAge =16;

Answer: (B) const short driverAge = 16;


Q11. A constructor may be __

(A) Provided automatically by C++
(B) Written by you
(C) Either (a) or (b)
(D) Neither (a) nor (b)

Answer: (C) Either (a) or (b)


Q12. Software that can be used in applications other than the one for which it was originally written is called

(A) Recyclable
(B) Inherited
(C) Reusable
(D) Cheating

Answer: (C) Reusable


Q13. You can override a class’s inherited access to make an individual member’s access more __

(A) Liberal
(B) Conservative
(C) Either (a) or (b)
(D) Neither (a) nor (b)

Answer: (B) Conservative


Q14. A predefined function that may be used to handle memory allocation errors is

(A) handle_error
(B) set_new_handler
(C) new_fix
(D) memory_error

Answer: (B) set_new_handler


Q15. You can code a default exception handler by creating a catch block

(A) With no arguments
(B) With a void argument
(C) With an ellipsis as its argument
(D) With an argument identical to that thrown

Answer: (C) With an ellipsis as its argument


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