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?









RRB NTPC Stage 1
Latest pattern
Clear explanation
Access via
+
Rs. 49
Rs.800
Buy Now


MOCK TEST - One Month Pass
200+ Test Series
20,000+ Questions
One Month Unlimited Access
Rs. 99
Buy Now


MOCK TEST - Six Month Pass
200+ Test Series
20,000+ Questions
Six Months Unlimited Access
Rs. 199
Buy Now


RBI Assistant Prelims
Latest pattern
Clear explanation
Access via
+
Rs. 49
Rs.800
Buy Now


Premium Package
200+ Mock Test Series
Validity 12 months
Rs. 399
Rs.2200
Buy Now


SSC Selection Posts Phase VII Matriculation Level
Latest pattern
Clear explanation
Access via
+
Rs. 49
Rs.800
Buy Now


SSC MTS Paper I
Latest pattern
Clear explanation
Access via
+
Rs. 49
Rs.800
Buy Now


Premium Package
200+ Mock Test Series
Validity 12 months
Rs. 399
Rs.2200
Buy Now


IBPS RRB Officer Scale I Prelims
Latest pattern
Clear explanation
Access via
+
Rs. 25
Rs.800
Buy Now


IBPS RRB Office Assistant Prelims
Latest pattern
Clear explanation
Access via
+
Rs. 25
Rs.800
Buy Now


Premium Package
200+ Mock Test Series
Validity 12 months
Rs. 399
Rs.2200
Buy Now


South Indian Bank Probationary Clerk
Latest pattern
Clear explanation
Access via
+
Rs. 25
Rs.800
Buy Now


SSC CHSL Tier I
Latest pattern
Clear explanation
Access via
+
Rs. 25
Rs.800
Buy Now


Premium Package
200+ Mock Test Series
Validity 12 months
Rs. 399
Rs.2200
Buy Now


Nainital Bank Clerk
Latest pattern
Clear explanation
Access via
+
Rs. 25
Rs.800
Buy Now


SBI CLERK PRELIMS
Latest pattern
Clear explanation
Access via
+
Rs. 25
Rs.800
Buy Now


LIC ADO Prelims
Latest pattern
Clear explanation
Access via
+
Rs. 25
Rs.800
Buy Now


DRDO Technician Tier I
Latest pattern
Clear explanation
Access via
+
Rs. 25
Rs.800
Buy Now


ONGC Executive E1 Level
Latest pattern
Clear explanation
Access via
+
Rs. 25
Rs.800
Buy Now


IBPS PO Prelims
Latest pattern
Clear explanation
Access via
+
Rs. 49
Rs.800
Buy Now



×

Get Unlimited Mock Tests


Unlock all 200+ Mock Tests series


12 Month Pass
Rs. 399
for 365 days

6 Month Pass
Rs. 199
for 180 days

One Month Pass
Rs. 99
for 30 Days



***Crack All Banking | Railways | SSC | Insurance | More Govt Exams***


FreshersLive - No.1 Job site in India. Here you can find latest 2019 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.