Would you like to submit the test?

C++ Questions And Answers Sample Test 7


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

C++ Test 7


You have scored 3 out of 10
You Scored:2
Total Questions:2
Attended Questions:2
Correct Answered:2
1. A reference is declared using the _____ symbol.





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.





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





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





5. Which of the following operators cannot be overloaded?





6. Reference is like a _____.





7. Which of the following statement is incorrect?





8. Which of the following statement is incorrect?





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





10. Which of the following provides a reuse mechanism?





11.
Which of the following is correct about the statements given below?

All operators can be overloaded in C++.
We can change the basic meaning of an operator in C++.





12. Which of the following function prototype is perfectly acceptable?





13. Which of the following statements is correct?





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





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





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





17. Which of the following statement is correct?





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





19. When are the Global objects destroyed?





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





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





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





23.
  Which of the following approach is adapted by C++?





24. Which one of the following options is correct?





25. Which of the following statement is correct?





26. How can we make a class abstract?





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





28. Can a class have virtual destructor?





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





30. Which of the following statements is incorrect?







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.