Would you like to submit the test?

C++ Questions And Answers Sample Test 10

Sample C++ Test 10 for you to Practice. Evaluate your C++ Test 10 test answering skills by trying the online C++ Sample Test 10 and know your score.

C++ Test 10

You have scored 3 out of 10
You Scored:2
Total Questions:2
Attended Questions:2
Correct Answered:2
1. Constructors __________ to allow different approaches of object construction.

2. Which of the following statements is correct about the constructors and destructors?

3. For automatic objects, constructors and destructors are called each time the objects

4. Which of the following statement is correct?

5. How can we make a class abstract?

6. Which of the following statement is correct?

7. Which of the following concepts means determining at runtime what method to invoke?

8. Which of the following statement is correct regarding destructor of base class?

9. What 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?

10. Which of the following statement is incorrect?

Which of the following statements is correct?
Pointer to a reference and reference to a pointer both are valid.
When we use reference, we are actually referring to a referent.

12. Which one of the following options is correct?

13. Which of the following statement will be correct if the function has three arguments passed to it?

14. When are the Global objects destroyed?

15. Which of the following is an invalid visibility label while inheriting a class?

16. A constructor that accepts __________ parameters is called the default constructor.

17. Which of the following access specifier is used as a default in a class definition?

18. Which of the following two entities (reading from Left to Right) can be connected by the dot operator?

Which of the following statement is correct?

20. Which of the following header file includes definition of cin and cout?

21. Which of the following statement is correct?

22. Which of the following keywords is used to control access to a class member?

23. Which of the following is used to make an abstract class?

24. Which one of the following is the correct way to declare a pure virtual function?

25. Which of the following type of data member can be shared by all instances of its class?

Which 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.

27. Which of the following means "The use of an object of one class in definition of another class"?

28. Which of the following gets called when an object goes out of scope?

29. What is correct about the static data member of a class?

30. Which of the following function declaration is/are incorrect?

Mock Test Premium Package

₹ 2200 ₹ 575

Banking, Railway, Insurance, SSC etc

Access 100+ Test series

Validity 12 months

One-time payment

Covers Latest Pattern

Includes all sections

1,000+ questions in each section

Clear Explanation for each question


FreshersLive - No.1 Job site in India. Here you can find latest 2019 government as well as private job recruitment notifications for different posts vacancies in India. Get top company jobs for both fresher and experienced. Job Seekers can get useful interview tips, resume services & interview Question and answer. Practice online test free which is helpful for interview preparation. Register with us to get latest employment news/rojgar samachar notifications. Also get latest free govt and other sarkari naukri job alerts daily through E-mail.