C++ Quiz 2
Quiz-summary
0 of 10 questions completed
Questions:
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
Information
Basic C++ 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 points________ are used to format the data display in CPP.
Correct
Incorrect
-
Question 2 of 10
2. Question
1 pointsDefault value of static variable is_____ .
Correct
Incorrect
-
Question 3 of 10
3. Question
1 pointsCan a class be declared/defined inside another class?
Correct
Incorrect
-
Question 4 of 10
4. Question
1 pointsReusability of the code can be achieved in CPP through _____ _.
Correct
Incorrect
-
Question 5 of 10
5. Question
1 pointsBy default, members of the class are ____________ in nature.
Correct
Incorrect
-
Question 6 of 10
6. Question
1 pointsclass TEST
{
private:
int roll_no;
public:
int age;
char name[20];
private:
int grade;
protected:
char gender[20];
private:private:
int m1, m2, m3;
};In general view, is this class definition valid?
Correct
Incorrect
-
Question 7 of 10
7. Question
1 pointsIf a program uses Inline Function, then the function is expanded inline at ___________.
Correct
Incorrect
-
Question 8 of 10
8. Question
1 pointsIn C++, the size of the character array should be 1 larger than the number of characters in the string.
Correct
Incorrect
-
Question 9 of 10
9. Question
1 pointsStatic variable in a class is initialized when ____ _.
Correct
Incorrect
-
Question 10 of 10
10. Question
1 pointsIf a default constructor is not defined, then how the objects of the class will be created?
Correct
Incorrect