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.
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 statements is correct?

Change a reference changes the referent.
We can create an array of references.





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





4. Constructor is executed when _____.





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





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





7. Which of the following statement is correct?





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





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





10.
Which of the following statement is correct?





11. Which of the following can be overloaded?





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





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

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





14.
Which of the following statements is correct?

A reference is not a constant pointer.
A referenced is automatically de-referenced.





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





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





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





18. Which of the following two entities (reading from Left to Right) can be connected by the dot operator?





19. How can we make a class abstract?





20. Which of the following statement is correct?





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





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





23. Which of the following statement is correct?





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





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





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





27. Which of the following statement is correct?





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





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





30. Which of the following provides a reuse mechanism?







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.