Object Oriented Programming in c++ Code – Set 26

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. Of the three ways to pass arguments to functions, only passing by and passing by allow the function to modify the argument in the calling program

(A) Reference, pointer
(B) Array, location
(C) Array, pointer
(D) None of the above

Answer: (A) Reference, pointer


Q2. When you pass a variable _, C++ passes only the contents of the variable to the receiving function

(A) By reference
(B) By value
(C) Globally
(D) Locally

Answer: (B) By value


Q3. The type to be used in an instantiation of a class template follows __

(A) The generic class name
(B) The keyword template
(C) The keyword class
(D) The template definition

Answer:(A) The generic class name


Q4. C++ allows you to define the same functions more than once in the same program _

(A) If the definitions are identical
(B) If the definitions are included in two separate #include files
(C) If the definitions are located in a single #include file that is included more than once
(D) C++ does not allow you to define the same functions more than once in the same program

Answer: (D) C++ does not allow you to define the same functions more than once in the same program


Q5. The word case used in the switch statement represents a

(A) Function in the C++ language
(B) Data type in the C++ language
(C) Keyword in the C++ language
(D) Global variable in the C++ language

Answer: (C) Keyword in the C++ language


Q6. When you create a derived class and instantiate on 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


Q7. Modules in C++ programs are

(A) Functions
(B) Procedures
(C) Subroutines
(D) Mini-programs

Answer: (A) Functions


Q8. When variables refer to attributes of an entity (such as name, address, and phone number of a person), those attributes form a _

(A) File
(B) Record
(C) Field
(D) Program

Answer: (B) Record


Q9. Each generic type in a template function definition is preceded by the keyword _

(A) Template
(B) Function
(C) Type
(D) Class

Answer: (A) Template


Q10. Having more than one function with the same name is called

(A) Overloading
(B) Defaulting
(C) Casting
(D) Referencing

Answer: (A) Overloading


Q11. A function that uses variable types is called __

(A) Overloaded
(B) A template function
(C) A variable function
(D) A virtual function

Answer: (B) A template function


Q12. The generic name used for unexpected errors that occur during the execution of a program is

(A) Infractions
(B) Exceptions
(C) Deviations
(D) Anomalies

Answer: (B) Exceptions


Q13. You add the desired type to a specific template class instantiation by placing the type’s name __

(A) Between angle brackets
(B) In parentheses
(C) On a line by itself
(D) Immediately prior to the class name

Answer: (A) Between angle brackets


Q14. Format flags may be combined using the _

(A) bitwise OR operator(|)
(B) logical OR operator (||)
(C) bitwise AND operator (&)
(D) logical AND operator (&&)

Answer:(A) bitwise OR operator(|)


Q15. A widget is to the blueprint for a widget as an object is to

(A) A member function
(B) A class
(C) An operator
(D) A data item

Answer: (B) A class


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