C++ Quiz 4
Quiz-summary
0 of 10 questions completed
Questions:
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
Information
C++ Basic Concepts
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 10 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
- Answered
- Review
-
Question 1 of 10
1. Question
1 pointsIn C++ program, Can we declare and define a user-defined function inside a struct as we do in a class?
Correct
Incorrect
-
Question 2 of 10
2. Question
1 pointsWhen a class is defined inside any function or block, it is called ___________ .
Correct
Incorrect
-
Question 3 of 10
3. Question
1 pointsIn CPP, it is mandatory and must to initialize const variables.
Correct
Incorrect
-
Question 4 of 10
4. Question
1 pointsOnly functions of the class can access the data of the class and they(functions) provide the interface between data, objects and the program. This kind isolation of the data from direct access by the program is called _______________ .
Correct
Incorrect
-
Question 5 of 10
5. Question
1 pointsC structure differs from C++ class in regards that by default all the members of the structure are __________ in nature.
Correct
Incorrect
-
Question 6 of 10
6. Question
1 pointsMembers of the class can be declared with auto, extern or register storage classes.
Correct
Incorrect
-
Question 7 of 10
7. Question
1 pointsIn CPP, the size of the character array should be one larger than the number of characters in the string.
Correct
Incorrect
-
Question 8 of 10
8. Question
1 pointsA class can contain objects of other classes and this phenomenon is called_________ .
Correct
Incorrect
-
Question 9 of 10
9. Question
1 pointsIf a class contains a static variable, then every object of the class has its copy of the static variable.
Correct
Incorrect
-
Question 10 of 10
10. Question
1 pointsLogical expressions produce ____________ type results.
Correct
Incorrect