C++ Quiz 5 2_10_2022
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
The below questions are very basic. These are based on the topics that the student must have studied in C or Start of C++
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 pointsIdentify the correct definition of ‘*’ operator in pointer.
Correct
Incorrect
-
Question 2 of 20
2. Question
1 pointsBy which of the following can the if-else statement be replaced?
Correct
Incorrect
-
Question 3 of 20
3. Question
1 pointsChoose the correct default return value of function.
Correct
Incorrect
-
Question 4 of 20
4. Question
1 pointsUsing which of the following data type can 19.54 be represented?
Correct
Incorrect
-
Question 5 of 20
5. Question
1 pointsChoose the correct option which is mandatory in a function.
Correct
Incorrect
-
Question 6 of 20
6. Question
1 pointsThe constants in C++ are also known as?
Correct
Incorrect
-
Question 7 of 20
7. Question
1 pointsUsing which of the following keywords can an exception be generated?
Correct
Incorrect
-
Question 8 of 20
8. Question
1 pointsIdentify the size of int datatype in C++.
Correct
Incorrect
-
Question 9 of 20
9. Question
1 pointsWhat is the ASCII value of ‘\0’ character?
Correct
Incorrect
-
Question 10 of 20
10. Question
1 pointsIdentify the format string among the following.
Correct
Incorrect
-
Question 11 of 20
11. Question
1 pointsWhat is do-while loop also known as?
Correct
Incorrect
-
Question 12 of 20
12. Question
1 pointsIdentify the logical AND operator.
Correct
Incorrect
-
Question 13 of 20
13. Question
1 pointsChoose the correct subscript operator.
Correct
Incorrect
-
Question 14 of 20
14. Question
1 pointsChoose the type of loop which is guaranteed to execute at-least once?
Correct
Incorrect
-
Question 15 of 20
15. Question
1 pointsWhy are comments used?
Correct
Incorrect
-
Question 16 of 20
16. Question
1 pointsIdentify the storage classes that have global visibility.
Correct
Incorrect
-
Question 17 of 20
17. Question
1 pointsFind the output of the following program.
main(){
float a = 4;
switch(a){
Case 5: cout <<”Good”; Default: cout <<”Hello”; } }Correct
Incorrect
-
Question 18 of 20
18. Question
1 pointsFind the output of the following program.
main(){
int a = 5;
switch(a){
case 5: cout <<"Good"; default: cout <<"Hello"; } }Correct
Incorrect
-
Question 19 of 20
19. Question
1 pointsFind the output of the following program.
main(){
int a = 10, b, c;
b = a++;
c = a;
cout << a << " " <Correct
Incorrect
-
Question 20 of 20
20. Question
1 pointsFind the output of the following program.
main(){
int a, b = 10;
a = 95 / 10;
cout << a << endl; }Correct
Incorrect