Would you like to submit the test?

C++ Questions And Answers Sample Test 10


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

C++ Test 10


You have scored 3 out of 10
You Scored:2
Total Questions:2
Attended Questions:2
Correct Answered:2
1. Which of the following statement is correct?





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





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

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





4. Which of the following statements is incorrect?





5. Which of the following statement is correct?





6. Which of the following statement is correct?





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





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





9. Which of the following statement is correct?





10. Which of the following statement is incorrect?





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





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





13. How can we make a class abstract?





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





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





16. Which of the following statement is incorrect?





17. Which of the following statement is correct?





18. Which of the following gets called when an object goes out of scope?





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





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





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





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





23. Which of the following statement is correct?





24. When are the Global objects destroyed?





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





26. What will happen if a class is not having any name?





27. Which of the following provides a reuse mechanism?





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





29. Which one of the following options is correct?





30. Which of the following statement will be correct if the function has three arguments passed to it?







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.