C++ Quiz 1
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 pointsWhich of the following is the correct syntax to add the header file in the C++ program?
Correct
Incorrect
-
Question 2 of 20
2. Question
1 pointsWhich of the following is the correct syntax to print the message in C++ language?
Correct
Incorrect
-
Question 3 of 20
3. Question
1 pointsWhich of the following is the correct identifier?
Correct
Incorrect
-
Question 4 of 20
4. Question
1 pointsWhich of the following is the address operator?
Correct
Incorrect
-
Question 5 of 20
5. Question
1 pointsWhich of the following is the original creator of the C++ language?
Correct
Incorrect
-
Question 6 of 20
6. Question
1 pointsWhich of the following comment syntax is correct to create a single-line comment in the C++ program?
Correct
Incorrect
-
Question 7 of 20
7. Question
1 pointsFor inserting a new line in C++ program, which one of the following statements can be used?
Correct
Incorrect
-
Question 8 of 20
8. Question
1 pointsWhich one of the following represents the tab?
Correct
Incorrect
-
Question 9 of 20
9. Question
1 pointsIf we stored five elements or data items in an array, what will be the index address or the index number of the array’s last data item?
Correct
Incorrect
-
Question 10 of 20
10. Question
1 pointsWhich of the following data type is supported in C++ but not in C?
Correct
Incorrect
-
Question 11 of 20
11. Question
1 pointsChoose the correct default return value of function.
Correct
Incorrect
-
Question 12 of 20
12. Question
1 pointsUsing which of the following data type can 19.54 be represented?
Correct
Incorrect
-
Question 13 of 20
13. Question
1 pointsIdentify the correct function from which the execution of C++ program starts?
Correct
Incorrect
-
Question 14 of 20
14. Question
1 pointsWhat should be the output of below program?
int main()
{
int a=10;
cout<<a++;
return 0;
}Correct
Incorrect
-
Question 15 of 20
15. Question
1 pointsWhat is output of below program?
int main()
{
const int a=10;
a++;
cout<<a;
return 0;}
Correct
Incorrect
-
Question 16 of 20
16. Question
1 pointsIdentify the correct extension of the user-defined header file in C++.
Correct
Incorrect
-
Question 17 of 20
17. Question
1 pointsIdentify the correct syntax for declaring arrays in C++.
Correct
Incorrect
-
Question 18 of 20
18. Question
1 pointsWhich of the following loops is best when we know the number of iterations?
Correct
Incorrect
-
Question 19 of 20
19. Question
1 pointsIdentify the scope resolution operator.
Correct
Incorrect
-
Question 20 of 20
20. Question
1 pointsgoto can be classified into?
Correct
Incorrect