Computer MCQs

Q. The goto statement causes control to go to a/an
(A) function
(B) operator
(C) variable
(D) label

The answer is: (D) label ☑

Q. Bundling data and functions together is known as
(A) debugging
(B) encapsulation
(C) overloading
(D) polymorphism

The answer is: (B) encapsulation ☑

Q. What is the statement that displays the address of the variable myvar?
(A) myvar;
(B) &myvar;
(C) cout << myvar;
(D) cout << &myvar;

The answer is: (D) cout << &myvar; ☑

Q. An address is a _____, while a pointer is a _____.
(A) constant, variable
(B) variable, constant
(C) constant, constant
(D) variable, variable

The answer is: (A) constant, variable ☑

Next Questions
Previous Questions
Home: Computer Science MCQs