Would you like to submit the test?

C++ Questions And Answers Sample Test 6


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

C++ Test 6


You have scored 3 out of 10
You Scored:2
Total Questions:2
Attended Questions:2
Correct Answered:2
1.
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.





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





3. How can we make a class abstract?





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





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





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





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





8. Which of the following type of data member can be shared by all instances of its class?





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





10. Which of the following statement is correct?





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





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





13. Which of the following statements is incorrect?





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





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





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





17.
Which of the following statements is correct?
Pointer to a reference and reference to a pointer both are valid.
When we use reference, we are actually referring to a referent.





18. Reference is like a _____.





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





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





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





22. Can a class have virtual destructor?





23. Which of the following statement is correct?





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





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





26. Constructor is executed when _____.





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





28. A reference is declared using the _____ symbol.





29. Which of the following statement is incorrect?





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.