Object Oriented Programming c++ Questions & Answers Set – 35

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. Which is true?

(A) Sequential cohesion is slightly weaker than functional cohesion
(B) Sequential cohesion is slightly stronger than functional cohesion
(C) Sequential cohesion is much stronger than functional cohesion
(D) Neither sequential cohesion nor functional cohesion is stronger than the other

Answer: (A) Sequential cohesion is slightly weaker than functional cohesion


Q2. A variable is _

(A) An item of data
(B) A memory location whose value can change while the program is running
(C) A memory location whose value cannot change while the program is running
(D) None of the above

Answer: (B) A memory location whose value can change while the program is running


Q3. A class named student must have a constructor whose name is

(A) Student
(B) ~student
(C) Constructor
(D) Any legal C++ name

Answer: (A) Student


Q4. Which is true?

(A) A derived class may have more than one base class
(B) A base class may have more than one derived class
(C) Both (a) and (b)
(D) Neither (a) nor (b)

Answer: (C) Both (a) and (b)


Q5. The variables declared in a statement block or listed in a function header’s parameterlist are considered _ variables

(A) Area
(B) Global
(C) Local
(D) Reference

Answer: (C) Local


Q6. The statement float values[]={3.14, -7.86, 36.96, 4.87};

(A) Assigns 36.96 to values[2]
(B) Assigns -7.86 to values[2]
(C) Gives an error message
(D) Assign 14 to values[2]

Answer: (A) Assigns 36.96 to values[2]


Q7. To send output to a file, you need to include the _ header file in your program

(A) file.h
(B) fstream.h
(C) iomanip.h
(D) iostream.h

Answer: (B) fstream.h


Q8. A C++ _ is a program that runs in a DOS window

(A) Algorithm
(B) Cast application
(C) Console application
(D) Source application

Answer: (C) Console application


Q9. You can place function templates

(A) At the end of main()
(B) At the start of a program above main()
(C) In two files-one for the definition and one for the function
(D) Any of the above

Answer: (B) At the start of a program above main()


Q10. You typically initialize Character variables to _

(A) A space enclosed in double quotes
(B) A space enclosed in single quotes
(C) The letter O
(D) The number 0

Answer: (B) A space enclosed in single quotes


Q11. An exception specification begins with the keyword _

(A) Exception
(B) Try
(C) Throw
(D) Catch

Answer: (C) Throw


Q12. The statement double val[15]={44.123456};

(A) Assigns the value 44.123456 to all members of the array val
(B) Assigns the value 44.123456 to val[0] and 0 to the rest of the members
(C) Gives an error message
(D) Assigns the value 44.12345 to val[1] and val[5]

Answer: (B) Assigns the value 44.123456 to val[0] and 0 to the rest of the members


Q13. The rules to any programming language are its _

(A) Syntax
(B) Interpretation
(C) Logic
(D) Customs

Answer: (A) Syntax


Q14. A program that predicts the exact sequence in which events will take place is said to be __

(A) Compiled
(B) Interpreted
(C) Procedural
(D) Object-oriented

Answer: (C) Procedural


Q15. The statement i*=3 is equivalent to

(A) i = 3*
(B) i = 3
(C) i* = 3
(D) i = i * 3

Answer: (D) i = i * 3


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