Would you like to submit the test?

C++ Questions And Answers Sample Test 6


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

C++ Test 6


You have scored 3 out of 10
You Scored:2
Total Questions:2
Attended Questions:2
Correct Answered:2
1. A constructor that accepts __________ parameters is called the default constructor.





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





3. Which of the following statement is correct?





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





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





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





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





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





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





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





11. Which of the following statement is correct?





12. Which of the following function / type of function cannot be overloaded?





13. Which of the following statement is correct?





14. Which of the following statement is correct?





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





16.
Which of the following statements is correct?

A reference is not a constant pointer.
A referenced is automatically de-referenced.





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





18.
Which of the following statement is incorrect?





19. Where the default value of parameter have to be specified?





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





21. In which of the following a virtual call is resolved at the time of compilation?





22. Reference is like a _____.





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





24. Which of the following operators cannot be overloaded?





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





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





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





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





29.
Which of the following statements is correct?
We can return a global variable by reference.
We cannot return a local variable by reference.





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







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.