Would you like to submit the test?

C++ Questions And Answers Sample Test 9


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

C++ Test 9


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 prototype is perfectly acceptable?





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





3. Which of the following statement is incorrect?





4.
Which of the following statement is incorrect?





5. Which of the following provides a reuse mechanism?





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





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





8. Reference is like a _____.





9. How can we make a class abstract?





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





11. When are the Global objects destroyed?





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





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





14. Which of the following statements is correct in C++?





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





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





17. Which of the following statement is correct?





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





19. Which of the following statements regarding inline functions is correct?





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





21. Which of the following statement is correct?





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





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





24. Which of the following statement is correct?





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





26.
Which inheritance type is used in the class given below? 
class A : public X, public Y {}





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





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





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





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







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.