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 an integer object is thrown with a throw statement, then a subsequent catch block has a usable match if the type of the catch argument is
(A) int
(B) double
(C) Either (a) or (b)
(D) Neither (a) nor (b)
Answer: (A) int
Q2. Which of the following statements will display the word “Hello” on the computer screen?
(A) cin << “Hello”; (B) cin >> “Hello”;
(C) cout << “Hello”; (D) cout >> “Hello”;
Answer: (C) cout << “Hello”;
Q3. A compound statement does not consist of
(A) A single statement
(B) Other compound statements
(C) Expression statements
(D) Control statements
Answer: (A) A single statement
Q4. Which of the following statements uses the computer’s clock to initialize the random number generator?
(A) srand(time);
(B) srand(time(NULL));
(C) time(srand);
(D) time(srand(NULL));
Answer: (B) srand(time(NULL));
Q5. In a class specifier, data or functions designated private are accessible
(A) To any function in the program
(B) Only if you know the password
(C) To member functions of that class
(D) Only to public members of the class
Answer: (C) To member functions of that class
Q6. The function whose prototype is void getData(Item &thing); receives
(A) A pointer to a structure
(B) A reference to a structure
(C) A copy of a structure
(D) Nothing
Answer: (B) A reference to a structure
Q7. A function can make________
(A) One throw
(B) One throw of each scalar type
(C) One throw of each programmer-defined type
(D) As many throws of as many types as necessary
Answer: (D) As many throws of as many types as necessary
Q8. The exclusive OR operator gives the result 1 when
(A) Both the bits are 0
(B) One bit is 0 and the other is 1
(C) Both the bits are 1
(D) No hard and fast rule
Answer: (B) One bit is 0 and the other is 1
Q9. A derived class may also be called a
(A) Subclass
(B) Super class
(C) Parent class
(D) Derived class
Answer: (A) Subclass
Q10. If you want to override constructor default values for an object you are instantiating, you must also override
(A) All other parameters to that constructor
(B) All parameters to the left of that value
(C) All parameters to the right of that value
(D) No other parameters to that constructor
Answer: (B) All parameters to the left of that value
Q11. One drawback to returning an error code from a function is __
(A) Functions cannot return error codes
(B) Error codes must be integers, and some functions can’t return an integer
(C) A function can return only one value, so it can return only the error code
(D) A function that returns an error code will identify all returns as errors
Answer: (C) A function can return only one value, so it can return only the error code
Q12. The getline() function reads a line of text until _
(A) The length used as the second argument is reached
(B) The character used as the third argument is reached
(C) Either (a) or (b)
(D) Neither (a) nor (b)
Answer: (C) Either (a) or (b)
Q13. Assuming the following three operators appear in an expression (without parentheses), which of the operators will be performed first?
(A) &&
(B) !
(C) ||
(D) None of the above
Answer: (B) !
Q14. A function that is prototyped as double calculate(int num); may________
(A) Receive an integer constant such as 5
(B) Receive an integer variable
(C) Either (a) or (b)
(D) Neither (a) nor (b)
Answer: (C) Either (a) or (b)
Q15. Which of the following instructions tells C++ to merge the source code from the iostream.h file into the current file?
(A) #include
(B) #include iostream.h
(C) #include
(D) None of the above
Answer: (D) None of the 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.