The Following Section consists of Computer MCQ on C++ Programming. Select the correct option to test your Computer skills on C++ Programming
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
Computer Questions on C++ Programming
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
- Computer 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 type of class allows only one object of it to be created?
Correct
Incorrect
-
Question 2 of 20
2. Question
1 pointsWhich of the following is not a type of constructor?
Correct
Incorrect
-
Question 3 of 20
3. Question
1 pointsWhich of the following statements is correct?
Correct
Incorrect
-
Question 4 of 20
4. Question
1 pointsWhich of the following is not the member of class?
Correct
Incorrect
-
Question 5 of 20
5. Question
1 pointsWhich of the following concepts means determining at runtime what method to invoke?
Correct
Incorrect
-
Question 6 of 20
6. Question
1 pointsWhich of the following term is used for a function defined inside a class?
Correct
Incorrect
-
Question 7 of 20
7. Question
1 pointsWhich of the following concept of oops allows compiler to insert arguments in a function call if it is not specified?
Correct
Incorrect
-
Question 8 of 20
8. Question
1 pointsHow many instances of an abstract class can be created?
Correct
Incorrect
-
Question 9 of 20
9. Question
1 pointsWhich of the following cannot be friend?
Correct
Incorrect
-
Question 10 of 20
10. Question
1 pointsWhich of the following concepts of OOPS means exposing only necessary information to client?
Correct
Incorrect
-
Question 11 of 20
11. Question
1 pointsWhy reference is not same as a pointer?
Correct
Incorrect
-
Question 12 of 20
12. Question
1 pointscout is a/an __________ .
Correct
Incorrect
-
Question 13 of 20
13. Question
1 pointsWhich of the following concepts provides facility of using object of one class inside another class?
Correct
Incorrect
-
Question 14 of 20
14. Question
1 pointsWhich of the following concepts provides facility of using object of one class inside another class?
Correct
Incorrect
-
Question 15 of 20
15. Question
1 pointsWhich of the following is an abstract data type
Correct
Incorrect
-
Question 16 of 20
16. Question
1 pointsWhich of the following concepts means adding new components to a program as it runs?
Correct
Incorrect
-
Question 17 of 20
17. Question
1 pointsWhich of the following statement is correct?
Correct
Incorrect
-
Question 18 of 20
18. Question
1 pointsWhich of the following correctly describes overloading of functions?
Correct
Incorrect
-
Question 19 of 20
19. Question
1 pointsWhich of the following approach is adapted by C++?
Correct
Incorrect
-
Question 20 of 20
20. Question
1 pointsWhich of the following is correct about function overloading?
Correct
Incorrect
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
Computer Questions on C++ Programming 2
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
- Computer 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 statements is incorrect?
Correct
Incorrect
-
Question 2 of 20
2. Question
1 pointsWhich of the following statement is correct regarding destructor of base class?
Correct
Incorrect
-
Question 3 of 20
3. Question
1 pointsWhich of the following two entities (reading from Left to Right) can be connected by the dot operator?
Correct
Incorrect
-
Question 4 of 20
4. Question
1 pointsHow can we make a class abstract?
Correct
Incorrect
-
Question 5 of 20
5. Question
1 pointsWhich of the following statements is correct when a class is inherited publicly?
Correct
Incorrect
-
Question 6 of 20
6. Question
1 pointsWhich of the following statements is correct about the constructors and destructors?
Correct
Incorrect
-
Question 7 of 20
7. Question
1 pointsWhich of the following access specifies is used in a class definition by default?
Correct
Incorrect
-
Question 8 of 20
8. Question
1 pointsWhich of the following statement is correct with respect to the use of friend keyword inside a class?
Correct
Incorrect
-
Question 9 of 20
9. Question
1 pointsWhich of the following keywords is used to control access to a class member?
Correct
Incorrect
-
Question 10 of 20
10. Question
1 pointsWhich of the following can access private data members or member functions of a class?
Correct
Incorrect
-
Question 11 of 20
11. Question
1 pointsWhich of the following type of data member can be shared by all instances of its class?
Correct
Incorrect
-
Question 12 of 20
12. Question
1 pointsWhich of the following also known as an instance of a class?
Correct
Incorrect
-
Question 13 of 20
13. Question
1 pointsConstructor is executed when _____.
Correct
Incorrect
-
Question 14 of 20
14. Question
1 pointsWhich of the following statements about virtual base classes is correct?
Correct
Incorrect
-
Question 15 of 20
15. Question
1 pointsHow many objects can be created from an abstract class?
Correct
Incorrect
-
Question 16 of 20
16. Question
1 pointsWhich of the following statements is correct when a class is inherited privately?
Correct
Incorrect
-
Question 17 of 20
17. Question
1 pointsWhich of the following statements is correct?
Correct
Incorrect
-
Question 18 of 20
18. Question
1 pointsWhat does a class hierarchy depict?
Correct
Incorrect
-
Question 19 of 20
19. Question
1 pointsWhich of the following can be overloaded?
Correct
Incorrect
-
Question 20 of 20
20. Question
1 pointsWhich of the following means “The use of an object of one class in definition of another class”?
Correct
Incorrect
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
Computer Questions on C++ Programming 3
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
- Computer 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 statement is correct?
Correct
Incorrect
-
Question 2 of 20
2. Question
1 pointsWhich of the following statement is correct?
Correct
Incorrect
-
Question 3 of 20
3. Question
1 pointsWhich of the following statement is correct?
Correct
Incorrect
-
Question 4 of 20
4. Question
1 pointsWhich of the following statement will be correct if the function has three arguments passed to it?
Correct
Incorrect
-
Question 5 of 20
5. Question
1 pointsWhich of the following statement is incorrect?
Correct
Incorrect
-
Question 6 of 20
6. Question
1 pointsWhich of the following statement is correct?
Correct
Incorrect
-
Question 7 of 20
7. Question
1 pointsWhich of the following function / type of function cannot be overloaded?
Correct
Incorrect
-
Question 8 of 20
8. Question
1 pointsWhich of the following function declaration is/are incorrect?
Correct
Incorrect
-
Question 9 of 20
9. Question
1 pointsWhich of the following statement is incorrect?
Correct
Incorrect
-
Question 10 of 20
10. Question
1 pointsWhere the default value of parameter have to be specified?
Correct
Incorrect
-
Question 11 of 20
11. Question
1 pointsWhich of the following statement is correct?
Correct
Incorrect
-
Question 12 of 20
12. Question
1 pointsWhich of the following statement is correct?
Correct
Incorrect
-
Question 13 of 20
13. Question
1 pointsA constructor that accepts __________ parameters is called the default constructor.
Correct
Incorrect
-
Question 14 of 20
14. Question
1 pointsWhat happens when a class with parameterized constructors and having no default constructor is used in a program and we create an object that needs a zero-argument constructor?
Correct
Incorrect
-
Question 15 of 20
15. Question
1 pointsFor automatic objects, constructors and destructors are called each time the objects
Correct
Incorrect
-
Question 16 of 20
16. Question
1 pointsWhich constructor function is designed to copy objects of the same class type?
Correct
Incorrect
-
Question 17 of 20
17. Question
1 pointsWhich of the following statement is correct?
Correct
Incorrect
-
Question 18 of 20
18. Question
1 pointsWhich of the following statement is incorrect?
Correct
Incorrect
-
Question 19 of 20
19. Question
1 pointsWhen are the Global objects destroyed?
Correct
Incorrect
-
Question 20 of 20
20. Question
1 pointsCopy constructor must receive its arguments by __________ .
Correct
Incorrect
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
Computer Questions on C++ Programming 4
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
- Computer 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 pointsA function with the same name as the class, but preceded with a tilde character (~) is called __________ of that class.
Correct
Incorrect
-
Question 2 of 20
2. Question
1 pointsA union that has no constructor can be initialized with another union of __________ type.
Correct
Incorrect
-
Question 3 of 20
3. Question
1 pointsWhich of the following gets called when an object goes out of scope?
Correct
Incorrect
-
Question 4 of 20
4. Question
1 pointsWhich of the following statement is correct?
Correct
Incorrect
-
Question 5 of 20
5. Question
1 points_________ used to make a copy of one class object from another class object of the same class type.
Correct
Incorrect
-
Question 6 of 20
6. Question
1 pointsWhich of the following statement is correct?
Correct
Incorrect
-
Question 7 of 20
7. Question
1 pointsWhich of the following statements is correct?
Once a reference variable has been defined to refer to a particular variable it can refer to any other variable. A reference is not a constant pointer.
Correct
Incorrect
-
Question 8 of 20
8. Question
1 pointsFunctions can be declared to return a reference type. There are reasons to make such a declaration/Which of the following reasons are correct?
The information being returned is a large enough object that returning a reference is more efficient than returning a copy. The type of the function must be a R-value.
Correct
Incorrect
-
Question 9 of 20
9. Question
1 pointsWhich of the following statements is correct?
Change a reference changes the referent. We can create an array of references.
Correct
Incorrect
-
Question 10 of 20
10. Question
1 pointsWhich of the following statement is correct about the references?
Correct
Incorrect
-
Question 11 of 20
11. Question
1 pointsWhich of the following statement is correct?
Correct
Incorrect
-
Question 12 of 20
12. Question
1 pointsWhich of the following statements is correct?
A reference is not a constant pointer. A referenced is automatically de-referenced.
Correct
Incorrect
-
Question 13 of 20
13. Question
1 pointsWhich of the following statements is correct?
An array of references is acceptable. We can also create a reference to a reference.
Correct
Incorrect
-
Question 14 of 20
14. Question
1 pointsWhich of the following statement is correct?
Correct
Incorrect
-
Question 15 of 20
15. Question
1 pointsWhich of the following statements is correct?
We can return a global variable by reference. We cannot return a local variable by reference.
Correct
Incorrect
-
Question 16 of 20
16. Question
1 pointsWhich of the following statements is correct?
Once the variable and the reference are linked they are tied together. Once the reference of a variable is declared another reference of that variable is not allowed.
Correct
Incorrect
-
Question 17 of 20
17. Question
1 pointsReference is like a _____.
Correct
Incorrect
-
Question 18 of 20
18. Question
1 pointsWhich of the following statement is correct?
Correct
Incorrect
-
Question 19 of 20
19. Question
1 pointsWhich of the following statement is correct?
Correct
Incorrect
-
Question 20 of 20
20. Question
1 pointsWhich of the following statement is correct?
Correct
Incorrect