1) which of the following is not a control structure used in C++?
A) Iteration
B) Decision
C) Sequence
D) Transformation
2) which of the following causes a syntax error?
A) Missing semicolon in statement in main().
B) A problem in calling function.
C) adding parameters to int main() function
D) storing a string in an integer
3) cin is
A) variable
B) built-in function
C) user-defined function
D) constructor
4) which of the following statement is correct above the array?
A) A pointer must always be initialized within functions.
B) A pointer must always be initialized outside all functions
C) A pointer must always be initialized .
D) none of the above
5) which of the following best describes polymorphism?
A) single value
B) several values
C) single form
D) multiple forms
1) D
2) A
3) A
4) C
5) D
Comments
Leave a comment