(A) Encapsulation
(B) Function
(C) Operator
(D) None of the above
Tag: C++ Mcqs
A variable which life-time is inside the block?
(A) local
(B) global
(C) static
(D) Both A & B
Which of the following is output statement in C++?
(A) print
(B) printf
(C) cin
(D) cout
Multiple line comment represented by?
(A) //
(B) */
(C) /*
(D) /* …. */
Which of the following is correct operator to compare two variables?
(A) ?:
(B) =
(C) equal
(D) ==
Program syntax errors are detected by?
(A) Compiler
(B) Debugger
(C) Loader
(D) Linker
The .exe file is produced by?
(A) Linker
(B) Loader
(C) Interpreter
(D) Compiler
Can we have constructor in Abstract class?
(A) Yes
(B) No