Programming - C++ Language
You Are Here :: Home > C++ Language > Introduction - General Questions
13. |
Global Variables can be access ?
|
A. |
Anywhere in the code except inside functions. After it's declaration. |
B.
|
Anywhere in the code, even inside functions. After it's declaration. |
C.
|
Nowhere in the code
|
D.
|
None of the above
|
|
Answer: Option B
Explanation:
|
14. |
Local Variables can be access ?
|
A. |
Code block enclosed in braces { }. |
B.
|
Code block enclosed in bracket (). |
C.
|
Code block enclosed in square bracket [].
|
D.
|
None of the above
|
|
Answer: Option A
Explanation:
|
15. |
What features make C++ so powerful?
|
A. |
Easy implementation |
B.
|
Code reusability |
C.
|
Easy memory management
|
D.
|
All the above
|
|
Answer: Option D
Explanation:
|
16. |
The goal of operator overloading is __________.
|
A. |
To help the user of a class |
B.
|
To help the developer of a class |
C.
|
To help define friend function
|
D.
|
None of the above
|
|
Answer: Option A
Explanation:
|
17. |
Which of the following is user defined data type?
|
A. |
Public |
B.
|
Private |
C.
|
Class
|
D.
|
A & B Both
|
|
Answer: Option C
Explanation:
|
18. |
The static member variable is initialized to?
|
|
Answer: Option A
Explanation:
|
« prev
next »