Object Oriented Programming with c++ Question Bank with Answers – Set 31

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. One of the logical operators in the C language is represented by the symbol

(A) AND
(B) &&
(C) >=
(D) <=

Answer: (B) &&


Q2. A difference, between reference variables and pointers is that

(A) Reference variables are easier to use
(B) Pointers are easier to use
(C) Reference variables are more flexible
(D) No difference exists between reference variables and pointers

Answer: (A) Reference variables are easier to use


Q3. 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) Art 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


Q4. 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) const int &
(B) int &
(C) Either (a) or (b)
(D) Neither (a) nor (b)

Answer: (C) Either (a) or (b)


Q5. It is illegal to make objects of one class members of another class

(A) True
(B) False
(C) Depends upon the kind of object
(D) None of the above

Answer: (B) False


Q6. Variable names known only to the procedure in which they are declared are __

(A) Local
(B) Global
(C) Recent
(D) Internal

Answer: (A) Local


Q7. Within a program, you can instantiate ________that have a class template type

(A) Classes
(B) Functions
(C) Parameters
(D) Objects

Answer: (D) Objects


Q8. The outline or the definition of a function is called its

(A) Beta test
(B) Forerunner
(C) Outline
(D) Prototype

Answer: (D) Prototype


Q9. Assume that a variable will need to store only integers in the range of 1 through 20000. The most efficient data type for the variable is __

(A) Character
(B) Float
(C) Integer
(D) Short integer

Answer: (D) Short integer


Q10. The statement int num[2][3]={ {3,8,6}, {9,4,7}};

(A) Assigns a value 4 to num[1][2]
(B) Assigns a value 7 to num[1][2]
(C) Assigns a value 8 to num[1][2]
(D) Assigns a value 9 to num[1][2]

Answer: (B) Assigns a value 7 to num[1][2]


Q11. Another drawback to returning an error code from a function is that any error code returned by the function

(A) Must be of the same type as return type of the function
(B) Must not be a character
(C) Cannot be checked in a main() program
(D) Can have multiple meanings

Answer: (A) Must be of the same type as return type of the function


Q12. A function stub typically contains

(A) The function header
(B) The function braces
(C) The return statement, if it’s value-returning function
(D) All of the above

Answer: (D) All of the above


Q13. It is sometimes useful to specify a class from which no objects will ever be created

(A) True
(B) False

Answer: (A) True


Q14. The keyword used to define a structure is

(A) stru
(B) stt
(C) struct
(D) unlimited

Answer: (C) struct


Q15. Which of the following backslash codes used for bell?

(A) \b
(B) a
(C) \r
(D) \s

Answer: (B) a


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