Object-Oriented Graphics Programming in c++ – Set 29

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 you design a class that needs special initialization tasks, you will want to design a(n) __

(A) Housekeeping routine
(B) Initialize
(C) Constructor
(D) Compiler

Answer: (C) Constructor


Q2. Evaluate the following expression: 3 >6&&7>4

(A) True
(B) False

Answer:(B) False


Q3. Header files often have the file extension _.

(A) .H
(B) .H
(C) .HEA
(D) .HEAD

Answer: (A) .H


Q4. Which of the following is(are) invalid string constant(s)?

(A) ‘7.15 pm’
(B) “i like e”
(C) “7.3el2”
(D) “1234el2”

Answer: (A) ‘7.15 pm’


(A) Data file
(B) Field file
(C) Program file
(D) Record

Answer: (D) Record


Q6. The delete operator returns __ to the operating system

(A) Memory that is no longer needed
(B) Void
(C) Recycle bin
(D) None of the above

Answer: (A) Memory that is no longer needed


Q7. When a program calls a function that has default parameters, if you omit an argument, you must __

(A) Not omit any other arguments
(B) Omit all arguments
(C) Omit all arguments to the right of that argument
(D) Omit all arguments to the left of that argument

Answer: (C) Omit all arguments to the right of that argument


Q8. The measure of how well the operations in a function relate to one another is __

(A) Coupling
(B) Cohesion
(C) Adhesion
(D) Conversion

Answer:(B) Cohesion


Q9. The compiler determines the type used in a template function via __

(A) The name of the function
(B) The first variable declared within the function
(C) The type of the argument passed to the function
(D) The type of the value returned from the function

Answer: (C) The type of the argument passed to the function


Q10. The contents of two pointers that point to adjacent of type float differ by

(A) One bytes
(B) Two bytes
(C) Three bytes
(D) Four bytes

Answer: (D) Four bytes


Q11. The statement int num[2][3]={ {1,2}, {3,4}, {5, 6} };

(A) Assigns a value 2 to num[1][2]
(B) Assigns a value 4 to num[1][2]
(C) Gives an error message
(D) Assigns a value 3 to num[1][2]

Answer:(C) Gives an error message


Q12. The arguments that determine the state of the cout object are called

(A) Classes
(B) Manipulators
(C) Format flags or state flags
(D) State controllers

Answer: (C) Format flags or state flags


Q13. A program will have one function prototype for each function defined in the programmer-defined section of the program. (Assume that the programmer-defined section is located below the main function.)

(A) True
(B) False

Answer: (A) True


Q14. A member function uses the correct object when you call it because

(A) A copy of the object is passed to the function
(B) The address of the object is passed to the function
(C) The address of the function is passed to another function
(D) The address of the object is returned from the function

Answer: (B) The address of the object is passed to the function


Q15. A function that is called automatically each time an object is destroyed is a

(A) Constructor
(B) Destructor
(C) Destroyer
(D) Terminator

Answer: (B) Destructor


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