Would you like to submit the test?

C++ Questions And Answers Sample Test 1


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

C++ Test 1


You have scored 3 out of 10
You Scored:2
Total Questions:2
Attended Questions:2
Correct Answered:2
1.
Which of the following statements is correct?
Once the variable and the reference are linked they are tied together.
Once the reference of a variable is declared another reference of that variable is not allowed.





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





3.
Which of the following statement is incorrect?





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





5. What will happen if a class is not having any name?





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





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





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





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





10. Which of the following statement is correct?





11. Can a class have virtual destructor?





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





13.
Which of the following statements is correct?

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





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





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





16. Which of the following function declaration is/are incorrect?





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





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





19. Which of the following statement is correct?





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





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





22. Which of the following provides a reuse mechanism?





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





24. Reference is like a _____.





25. Which of the following cannot be declared as virtual?





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





27. Which of the following statement is correct?





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





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





30. When are the Global objects destroyed?









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


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


SBI Clerk 2019
Latest pattern
Clear explanation
Access via
+
Rs. 49
Rs.800
Buy Now


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


LIC ADO PRELIMS 2019
Latest pattern
Clear explanation
Access via
+
Rs. 49
Rs.800
Buy Now


DRDO- TECHNICIAN A - TIER I
Latest pattern
Clear explanation
Access via
+
Rs. 49
Rs.800
Buy Now


ONGC Executive E1 Level
Latest pattern
Clear explanation
Access via
+
Rs. 49
Rs.400
Buy Now


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


SOUTH INDIAN BANK CLERK 2019
Latest pattern
Clear explanation
Access via
+
Rs. 49
Rs.800
Buy Now


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


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


One Month Pass
200+ Test Series
20,000+ Questions
Six Months Unlimited Access
Rs. 99
500
Buy Now


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


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


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


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


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


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


SBI Apprentice
Latest pattern
Clear explanation
Access via
+
Rs. 49
Rs.800
Buy Now


FCI Manager Phase 1
Latest pattern
Clear explanation
Access via
+
Rs. 49
Rs.800
Buy Now


RBI Grade B Phase I
Latest pattern
Clear explanation
Access via
+
Rs. 49
Rs.800
Buy Now


SSC CPO Phase I
Latest pattern
Clear explanation
Access via
+
Rs. 49
Rs.800
Buy Now


IBPS SO Prelims 2019
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.