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





2. How can we make a class abstract?





3. Which of the following concepts means determining at runtime what method to invoke?





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





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





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





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





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





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





10. Which of the following can be overloaded?





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





12. Which one of the following options is correct?





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





14. Which of the following statement is incorrect?





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





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





17. Which of the following statement is incorrect?





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





19. Which of the following statement is correct?





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





21. Which of the following statement is correct?





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





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





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





25. Which of the following statement is correct?





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





27. Which of the following access specifier is used as a default in a class definition?





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





29. Where the default value of parameter have to be specified?





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







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.