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. The extraction operator >> is a(n)
(A) Overloaded function
(B) C++ class
(C) C++ object
(D) Static reference variable
Answer: (A) Overloaded function
Q2. The purpose of a conditional operator is to
(A) Select one of the two values
(B) Select the highest of the two values
(C) Select one of the two values depending on a condition
(D) Select the more equal of the two values
Answer: (C) Select one of the two values depending on a condition
Q3. If a base class member is private, then
(A) If a derived class uses the public access specifier, the data member becomes public
(B) If a derived class uses the protected access specifier, the data member becomes protected
(C) Both (a) and (b)
(D) Neither (a) nor (b)
Answer:(D) Neither (a) nor (b)
Q4. Which of the following C++ expressions is equivalent to the mathematical expression 53?
(A) 5 ^ 3
(B) cube(5)
(C) pow (3, 5)
(D) pow(5, 3)
Answer: (D) pow(5, 3)
Q5. In which statements, does a ‘continue’ statements cause the control to go directly to the test condition and then continue the looping process?
(A) ‘for’ and ‘while’
(B) ‘while’ and ‘if-else’
(C) ‘do-while’ and ‘if-else’
(D) ‘while’ and ‘do-while’
Answer: (D) ‘while’ and ‘do-while’
Q6. A function in a derived class that has the same name as a function in the parent class
(A) Will override the base class function
(B) Will cause an error message to display
(C) Will be overridden by the base class function
(D) Will execute immediately often the base class function executes
Answer: (A) Will override the base class function
Q7. The most efficient data type for a variable that stores the number 4.6e20 is the _ data type
(A) Character
(B) Double
(C) Float
(D) Short Integer
Answer: (C) Float
Q8. Which of the following statements is false?
(A) You typically use a public member function to change the value in a private data member
(B) Because the constructor function does not return a value, you place the keyword void before the constructor’s name
(C) The public member functions in a class can be accessed by any program that uses an object created from that class
(D) An instance of a class is considered an object
Answer: (B) Because the constructor function does not return a value, you place the keyword void before the constructor’s name
Q9. Which of the following can be used to declare the main function?
(A) void main
(B) void Main()
(C) void main()
(D) main
Answer: (C) void main()
Q10. The main() function is always
(A) A called function
(B) A calling function
(C) Recursive function
(D) Used at the end of the program
Answer: (B) A calling function
Q11. A pointer to void can hold pointers to
(A) Char type
(B) int type
(C) Float type
(D) Any data type
Answer: (D) Any data type
Q12. Assume that a program creates and initializes a Short Integer variable named age and a pointer named agePtr, to which it assigns the address of the age variable. Which of the following statements will assign the number 21 to the age variable?
(A) age = 21;
(B) *agePtr = 21;
(C) agePtr = 21;
(D) Both (a) and (b)
Answer: (D) Both (a) and (b)
Q13. A default exception block must be placed __
(A) First among the catch blocks
(B) Last among the catch blocks
(C) Globally, at the top of the file
(D) At the end of all code in the program
Answer:(B) Last among the catch blocks
Q14. With commercial classes, the function source code is usually________
(A) Printed on high-quality paper
(B) Poorly written
(C) Provided on a disk
(D) Provided in object form
Answer: (D) Provided in object form
Q15. The code that you enter into a C++ program is called __
(A) Console code
(B) Object code
(C) Project code
(D) Source code
Answer: (D) Source code
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.