Would you like to submit the test?

C++ Questions And Answers Sample Test 5


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

C++ Test 5


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 approach is adapted by C++?





3. Which of the following statement is correct?





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





5. Which of the following statement is incorrect?





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





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





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





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





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





11. When are the Global objects destroyed?





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





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





14. Which of the following statement is correct?





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





16. Which of the following operators cannot be overloaded?





17.
Which of the following statements is correct?

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





18. Which of the following statement is correct?





19. Which of the following statement is correct?





20. Which of the following also known as an instance of a class?





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





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





23. Which of the following are available only in the class hierarchy chain?





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





25. Which of the following statement is correct?





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





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





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





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





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







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.