Last Updated on November 1, 2019 by Admin
CPA Chapter 1 Assessment Online
CPA -- Chapter 1 Assessment
Quiz-summary
0 of 20 questions completed
Questions:
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
Information
CPA — Chapter 1 Assessment
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading...
You must sign in or sign up to start the quiz.
You have to finish following quiz, to start this quiz:
Results
0 of 20 questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 points, (0)
Average score |
|
Your score |
|
Categories
- Not categorized 0%
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- Answered
- Review
-
Question 1 of 20
1. Question
1 pointsWhich of the following strings is a proper integer number (in the “C++” language sense)?Correct
Incorrect
-
Question 2 of 20
2. Question
1 pointsWhat is the value of the following literal?
010
Correct
Incorrect
-
Question 3 of 20
3. Question
1 pointsWhat is the value of the following literal?
X10
Correct
Incorrect
-
Question 4 of 20
4. Question
1 pointsWhat is the value of the following literal?
018
Correct
Incorrect
-
Question 5 of 20
5. Question
1 pointsWhat is the value of the following literal?
0x1A
Correct
Incorrect
-
Question 6 of 20
6. Question
1 pointsWhich of the following strings represents a valid variable name?
Correct
Incorrect
-
Question 7 of 20
7. Question
1 pointsWhich of the following strings does not represent a valid variable name?Correct
Incorrect
-
Question 8 of 20
8. Question
1 pointsWhich of the following strings is a proper floating-point number (in the “C++” language sense)?Correct
Incorrect
-
Question 9 of 20
9. Question
1 pointsWhat is the value of the following literal?
0E1
Correct
Incorrect
-
Question 10 of 20
10. Question
1 pointsWhat is the value of the following literal?
-1e-1
Correct
Incorrect
-
Question 11 of 20
11. Question
1 pointsWhat is the value of the i variable?
float x = 1.0 / 4.0;
int i = x;Correct
Incorrect
-
Question 12 of 20
12. Question
1 pointsWhat is the value of the x variable?
float x = 1. / 2. + 2. / 4.;
Correct
Incorrect
-
Question 13 of 20
13. Question
1 pointsWhat is the value of the k variable?
int k = 1 % 2 + 4 % 2;
Correct
Incorrect
-
Question 14 of 20
14. Question
1 pointsWhat is the value of the k variable?
int i = 1;
int j = ++i;
int k = j++;Correct
Incorrect
-
Question 15 of 20
15. Question
1 pointsWhat is the final value of the k variable?
int i = 3, j, k;
if(i > 0) j = 2 + i * i;
if(i <= 0) j = 2 * i – 1;
if(j >= 0) k = j % i + 2;
if(j < 0) k = i % j + 2;
if(k < 0) k = k % i % j;
if(k >= 0) k = j % i % k;Correct
Incorrect
-
Question 16 of 20
16. Question
1 pointsWhat is the final value of the k variable?
int i = 3, j = 2, k = -1;
if(i > 0) {
if(j <= 0) {
if(k < 0)
k++;
if(k <= 0)
k–;
}
if(j > 0)
i++;
}
if(i <= 0)
j++;
k = i + j + k;Correct
Incorrect
-
Question 17 of 20
17. Question
1 pointsWhat is the output of the following snippet?
int i = 3, j = ++i, k = ++i;
cout << k << j << i;Correct
Incorrect
-
Question 18 of 20
18. Question
1 pointsWhat is the output of the following snippet if a digit 5 followed by Enter is entered through the keyboard?
int i = 3, j = ++i, k = ++i;
cin >> i;
cout << k + i << j – i << i * i;Correct
Incorrect
-
Question 19 of 20
19. Question
1 pointsWhat is the output of the following snippet if a digit 8 followed by Enter is entered through from the keyboard?
int i;
cin >> i;
cout << i << hex << i + i << oct << i;Correct
Incorrect
-
Question 20 of 20
20. Question
1 pointsWhat is the output of the following snippet if a string 2.5 followed by Enter is entered through the keyboard?
float x;
cin >> x;
cout << scientific << “x”;Correct
Incorrect