Would you like to submit the test?

C++ Questions And Answers Sample Test 8


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

C++ Test 8


You have scored 3 out of 10
You Scored:2
Total Questions:2
Attended Questions:2
Correct Answered:2
1. Where the default value of parameter have to be specified?





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





3. Which of the following is a mechanism of static polymorphism?





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





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





6.
Which of the following statements is correct?

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





7. Which one of the following is the correct way to declare a pure virtual function?





8.
Which of the following statements is correct?

An array of references is acceptable.
We can also create a reference to a reference.





9. Which of the following statement is correct?





10. Can a class have virtual destructor?





11. Which of the following statement is incorrect?





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





13. Which of the following statement is correct?





14. What happens when a class with parameterized constructors and having no default constructor is used in a program and we create an object that needs a zero-argument constructor?





15. A reference is declared using the _____ symbol.





16. Which of the following statement is correct?





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





18. Which of the following statement is correct?





19. Which of the following statement is correct?





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





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





22. Constructor is executed when _____.





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





24. Which of the following statement is correct?





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





26. Which of the following statement is correct?





27.
Which of the following statement is incorrect?





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





29. Which of the following statement is correct?





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







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.