Would you like to submit the test?

C++ Questions And Answers Sample Test 1

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

C++ Test 1

You have scored 3 out of 10
You Scored:2
Total Questions:2
Attended Questions:2
Correct Answered:2
Which 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.

2. Destructor has the same name as the constructor and it is preceded by ______ .

Which of the following statement is incorrect?

4. A union that has no constructor can be initialized with another union of __________ type.

5. What will happen if a class is not having any name?

6. Which of the following keyword is used to overload an operator?

7. Which of the following are NOT provided by the compiler by default?

8. Which of the following also known as an instance of a class?

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

10. Which of the following statement is correct?

11. Can a class have virtual destructor?

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

Which of the following statements is correct?

Change a reference changes the referent.
We can create an array of references.

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.

15. Which of the following access specifies is used in a class definition by default?

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

17. Which of the following statement is correct about the references?

18. Which constructor function is designed to copy objects of the same class type?

19. Which of the following statement is correct?

20. How many objects can be created from an abstract class

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

22. Which of the following provides a reuse mechanism?

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

24. Reference is like a _____.

25. Which of the following cannot be declared as virtual?

26. Which of the following are available only in the class hierarchy chain?

27. Which of the following statement is correct?

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

 It is a __________ error to pass arguments to a destructor.

30. When are the Global objects destroyed?

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.