Object Oriented Programming in c++ Class Online – Set 25

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 container classes are carefully constructed, then these tools are available to work with structures that are not __

(A) Valid without container classes
(B) Programmer-defined
(C) Type-specific
(D) Public

Answer: (C) Type-specific


Q2. Sending a copy of data to a program module is called __

(A) Passing a value
(B) Making a reference
(C) Recursion
(D) Setting a condition

Answer: (A) Passing a value


Q3. Which type of statement does not occur in computer programs?

(A) Sequence
(B) Loop
(C) Denial
(D) Selection

Answer: (C) Denial


Q4. To use either an input or output file, the program must include the _ header file

(A) filestream.h
(B) fstream.h
(C) instream.h
(D) inoutstream.h

Answer: (B) fstream.h


Q5. To enter a comment in a C++ program, you begin the comment with __

(A) **
(B) &&
(C) \
(D) //

Answer: (D) //


Q6. A constructor initialization list is preceded by

(A) A semicolon
(B) A colon
(C) Two colons
(D) A space

Answer: (B) A colon


Q7. A derived class _ override attributes of a parent class

(A) May
(B) May if the two classes have the same name
(C) Must
(D) Must not

Answer: (A) May


Q8. One way in which a structure differs from an array is that

(A) A structure may have members of more than one type
(B) A structure must have members that are all the same type
(C) An array may have members of more than one type
(D) There is no difference between a structure and an array

Answer: (A) A structure may have members of more than one type


Q9. Which of the following pairs of identifier name(s) are(is) considered to be identical?

(A) name, names
(B) smith, johnsmith
(C) identifier 1, identifier_2
(D) charl, char_l

Answer: (C) identifier 1, identifier_2


Q10. The ‘continue’ statement is used to

(A) Permit two different expressions to appear in situations where only one expression would ordinarily be used
(B) Terminate loops or to exit from a switch
(C) Alter the normal sequence of program execution by transferring control to some other part of the program
(D) None of the above

Answer: (D) None of the above


Q11. Which of the following formulas can be used to generate random integers between 1 and 10?

(A) 1 + rand() % (10 – 1 + 1)
(B) 1 + (10 – 1 + 1) % rand()
(C) 10 + rand() % (10 – 1 + 1)
(D) 10 + rand() % (10 + 1)

Answer: (A) 1 + rand() % (10 – 1 + 1)


Q12. Variables that are declared in a block are known as _ variables to that block

(A) Confined
(B) Local
(C) Global
(D) Immediate

Answer: (B) Local


Q13. Inheritance is the principle that

(A) Classes with the same name must be derived from one another
(B) Knowledge of a general category can be applied to more specific objects
(C) C++ functions may be used only if they have logical predecessors
(D) One function name may invoke different methods

Answer: (B) Knowledge of a general category can be applied to more specific objects


Q14. Adding a derived class to a base class requires fundamental changes to the base class

(A) True
(B) False

Answer: (B) False


Q15. Declaring variables is advantageous because it

(A) Avoids errors from misspelled variable names {b) helps the linker work efficiently
(B) Simplifies the writing of very short programs
(C) Both (a) & (b) above
(D) None of the above

Answer:(C) Both (a) & (b) above


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