C Tutorial for Beginners Online Computer Test – Set 16

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 of the following while clause will stop the loop when the value in the age variable is less than the number 0?

(A) while age < 0 (B) while (age < 0) (C) while age >= 0;
(D) while (age >= 0)

Answer: (D) while (age >= 0)

Q2. To use one of the C++ built-in mathematical functions, you must include the _ header file in your program

(A) calculation.h
(B) compute.h
(C) expression.h
(D) math.h

Answer: (D) math.h

Q3. The process of extracting the relevant attributes of an object is known as

(A) Polymorphism
(B) Inheritance
(C) Abstraction
(D) Data hiding

Answer:(C) Abstraction

Q4. The return type you code for all constructors is _

(A) Void
(B) The class type
(C) The same type as the first data member defined in the class
(D) No type

Answer: (D) No type

Q5. The base class for most stream classes is the _ class

(A) ios
(B) out
(C) in
(D) app

Answer: (A) ios

Q6. The type of value that a function sends back to the function that calls it is known as its _

(A) Type
(B) Return value
(C) Reference data
(D) Sentinel

Answer: (B) Return value

Q7. The expression c = i++ causes

(A) The value of i assigned to c and then i incremented by 1
(B) i to be incremented by 1 and then the value of i assigned to c
(C) Value of i assigned to c
(D) i to be incremented by 1

Answer:(A) The value of i assigned to c and then i incremented by 1

(A) Horizontal
(B) Paired
(C) Parallel
(D) Related

Answer: (C) Parallel

Q9. Which of the following control structures is used in every program?

(A) Repetition
(B) Selection
(C) Sequence
(D) Switching

Answer: (C) Sequence

Q10. When the function char someFunction(int x) is executed,

(A) It will throw nothing
(B) It will throw an integer
(C) It will throw a character
(D) It may or may not throw anything

Answer: (D) It may or may not throw anything

Q11. __ variables remain in memory until the statement block ends

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

Answer: (C) Local

Q12. Any #include files may contain

(A) Constants
(B) Variables
(C) Functions
(D) All of the above

Answer: (D) All of the above

Q13. When two types are used in a function template and one is labeled T, the other

(A) Must also be named T
(B) Must be named U
(C) Can be any legal C++ identfier
(D) It is illegal to have two types

Answer:(A) Must also be named T

Q14. Providing two or more constructors for the same class __

(A) Requires different argument lists
(B) Requires different constructor names
(C) Requires different constructor types
(D) Is illegal

Answer: (A) Requires different argument lists

Q15. Which of the following, if any, are valid names for variables?

(A) amt.Sold
(B) amt-Sold
(C) amt_Sold
(D) None of the above are valid names for variables

Answer: (C) amt_Sold

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