Professional Documents
Culture Documents
A. 0
B. 1
C. False
D. 2
ANSWER:B
How many characters are specified in the ASCII scheme?
A. 64
B. 128
C. 256
D. 24
ANSWER:B
Given the variables p, q are of char type and r, s, t are of int type. Select the right
statement?
1. t = (r * s) / (r + s);
2. t = (p * q) / (r + s);
A. 1 is true but 2 is false
B. 1 is false and 2 is true
C. both 1 and 2 are true
D. both 1 and 2 are false
ANSWER:C
What will be the output of the following C++ code?
int const p = 5;
cout << ++p;
A. 5
B. 6
C. Error
D. 8
Which of the following is a correct identifier in C++?
A. 7var_name
B. 7VARNAME
C. VAR_1234
D. $var_name
E. ANSWER: C