Would you like to submit the test?

C++ Questions And Answers Sample Test 3


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

C++ Test 3


You have scored 3 out of 10
You Scored:2
Total Questions:2
Attended Questions:2
Correct Answered:2
1. Which of the following is not the member of class?





2. A reference is declared using the _____ symbol.





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





4. Which of the following statement is correct?





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





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





7. Which of the following function / type of function cannot be overloaded?





8. Which of the following statement is correct?





9. How can we make a class abstract?





10. Which of the following statement is incorrect?





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





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

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





13. Which of the following statement is correct?





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





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





16. Which of the following statement is correct?





17. Which of the following provides a reuse mechanism?





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





19.
Which of the following statements is correct?

Once a reference variable has been defined to refer to a particular variable it can refer to any other variable.
A reference is not a constant pointer.





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





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





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





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





24. Which of the following keywords is used to control access to a class member?





25. Which one of the following options is correct?





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





27. Constructor is executed when _____.





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





29. Which of the following statement is correct?





30. Which of the following can be overloaded?







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.