Programming - C++ Language
You Are Here :: Home > C++ Language > Introduction - General Questions
19. |
Data members is also called?
|
A. |
Attribute |
B.
|
Method |
C.
|
Class
|
D.
|
Object
|
|
Answer: Option A
Explanation:
|
20. |
The parameter list in function overloading must differ by?
|
A. |
Number of functions |
B.
|
Function Size |
C.
|
Function Name
|
D.
|
Number of argument
|
|
Answer: Option D
Explanation:
|
21. |
Which diagram provides a formal graphic notation for modelling objects, classes and their relationships to one another?
|
A. |
Object Diagram |
B.
|
Analysis Diagram |
C.
|
Instance Diagram
|
D.
|
Class Diagram
|
|
Answer: Option A
Explanation:
|
22. |
What is wrong with the following: int long = 345000?
|
A. |
Invalid data type |
B.
|
Out of range value |
C.
|
Invalid name for variable
|
D.
|
All of the above
|
|
Answer: Option C
Explanation:
|
23. |
Every statement in C++ program should end with
|
A. |
full stop (.) |
B.
|
Comma (,) |
C.
|
Semicolon (;)
|
D.
|
colon (:)
|
|
Answer: Option C
Explanation:
|
24. |
Which of the following is not a correct variable type?
|
A. |
float |
B.
|
real |
C.
|
int
|
D.
|
double
|
|
Answer: Option B
Explanation:
|
« prev
next »