Computer MCQs

Page: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10

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

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

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

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

30. To generate different random numbers in C++, which of the following header file(s) must be included?
(A) #include
(B) #include
(C) #include
(D) #include and #include

ANSWERS: COMPUTER MCQS
26. (D) label
27. (B) encapsulation
28. (D) cout << &myvar;
29. (A) constant, variable
30. (D) #include and #include. Next: Computer Quiz 31–35