Would you like to submit the test?

C++ Questions And Answers Sample Test 5


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

C++ Test 5


You have scored 3 out of 10
You Scored:2
Total Questions:2
Attended Questions:2
Correct Answered:2
1. Which of the following function declaration is/are incorrect?





2. Which of the following provides a reuse mechanism?





3.
Which of the following statements is correct?

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





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





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





6. Which of the following statement is correct?





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





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





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





10. Constructors __________ to allow different approaches of object construction.





11. Which of the following is not the member of class?





12. Which of the following statements is correct when a class is inherited publicly?





13. Which of the following is not a type of constructor?





14. Which of the following statements is correct?





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





16. Which of the following statement is correct?





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





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





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





20. Which of the following type of class allows only one object of it to be created?





21. Which of the following statement is correct?





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





23. Which of the following statement is correct?





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





25. Which of the following statements is incorrect?





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





27.
Functions 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.





28. Which of the following statement is correct with respect to the use of friend keyword inside a class?





29.
What happens when we try to compile the class definition in following code snippet?

class Birds {};
class Peacock : protected Birds {};





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







FreshersLive - No.1 Job site in India. Here you can find latest 2017 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.