Last Updated on November 1, 2019 by Admin
CLA – Programming Essentials in C Quizzes Chapter 2 Assessment Online
CLA – Chapter 2 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
CLA – Chapter 2 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 integer literal?
08
Correct
Incorrect
-
Question 3 of 20
3. Question
1 pointsWhat is the value of the following integer literal?
0x8
Correct
Incorrect
-
Question 4 of 20
4. Question
1 pointsWhich of the following strings is a valid variable name?Correct
Incorrect
-
Question 5 of 20
5. Question
1 pointsWhich of the following strings is an invalid variable name?Correct
Incorrect
-
Question 6 of 20
6. Question
1 pointsIs the following declaration valid?
int var, var;
Correct
Incorrect
-
Question 7 of 20
7. Question
1 pointsWhat is the value of the var variable at the end of the following snippet?
int var; var = 2; var = var * var; var = var + var; var = var / var; var = var % var;
Correct
Incorrect
-
Question 8 of 20
8. Question
1 pointsWhat is the value of the var variable at the end of the following snippet?
int var; var = 2; var = var * var; var = var + var; /* var = var / var; var = var % var; */
Correct
Incorrect
-
Question 9 of 20
9. Question
1 pointsWhich of the following strings is a proper floating-point number (in the ”C” language sense)?Correct
Incorrect
-
Question 10 of 20
10. Question
1 pointsWhat is the value of the following floating-point literal?
8765E-2
Correct
Incorrect
-
Question 11 of 20
11. Question
1 pointsWhat is the value of the x variable at the end of the following snippet?
int x; x = 1 / 2;
Correct
Incorrect
-
Question 12 of 20
12. Question
1 pointsWhat is the value of the x variable at the end of the following snippet?
int x; x = 1 / 2 * 3; /***
Correct
Incorrect
-
Question 13 of 20
13. Question
1 pointsWhat is the value of the x variable at the end of the following snippet?
float x; x = 1. / 2 * 3; /***
Correct
Incorrect
-
Question 14 of 20
14. Question
1 pointsWhat is the value of the k variable at the end of the following snippet?
int i,j,k; i = 4; j = 5; --i; k = i * j;
Correct
Incorrect
-
Question 15 of 20
15. Question
1 pointsWhat is the value of the k variable at the end of the following snippet?
int i,j,k; i = 4; j = 5; ++j; k = i * j;
Correct
Incorrect
-
Question 16 of 20
16. Question
1 pointsWhat is the value of the k variable at the end of the following snippet?
int i,j,k; i = 3; j = -3; k = i * j; k += j; k /= i;
Correct
Incorrect
-
Question 17 of 20
17. Question
1 pointsWhat is the value of the c variable at the end of the following snippet?
char c; c = '\';
Correct
Incorrect
-
Question 18 of 20
18. Question
1 pointsWhat is the value of the c variable at the end of the following snippet?
char c; c = 'a'; c -= ' ';
Correct
Incorrect
-
Question 19 of 20
19. Question
1 pointsWhat is the value of the k variable at the end of the following snippet?
int i,j,k; i = 3; j = -3; k = (i >= i) + (j <= j) + (i == j) + (i > j);
Correct
Incorrect
-
Question 20 of 20
20. Question
1 pointsWhat happens if you try to compile and run this program?
#include <stdio.h> int main(void) { int i,j,k; i = 2; j = -2; if(i) i--; if(j) j++; k = i * j; printf("%d",k); return 0; }
Correct
Incorrect