Would you like to submit the test?

C++ Questions And Answers Sample Test 4


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

C++ Test 4


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. Which of the following statement is correct?





3. 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?





4. Constructor is executed when _____.





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





6. Which of the following statement is correct?





7. Which one of the following options is correct?





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





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

All function calls are resolved at compile-time in Procedure Oriented Programming.
All function calls are resolved at compile-time in OOPS.





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





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





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





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





14. Which of the following provides a reuse mechanism?





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





16. Which of the following statement is correct?





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





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

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





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





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





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





22. Which of the following statement is correct?





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





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





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





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





27. When are the Global objects destroyed?





28. Which of the following statement is correct?





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





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







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.