C++ objective test questions - C++ multiple choice questions

This set of C++ multiple choice test questions helps you improve your ability to choose the correct answer from a set of close options. The score at the end of the test helps you assess your level of preparation to face the written/online test on C++

Online Practice Test > C++ Test

Click here to start C++ quiz/test
Here are few sample C++ test/quiz questions

Which of the following is not true about preprocessor directives

They begin with a hash symbol
They are processed by a preprocessor
They form an integral part of the code
They have to end with a semi colon

Which one of the following is not a valid reserved keyword in C++

Explicit
Public
Implicit
Private 

Click here to start C++ quiz/test  

More Links
Explain the different access specifiers for the class member in C++.

Latest answer: private: It is default one and can be access from class member of the same class. protected: The protected members can be access from member functions of the.............
Read answer

What is the importance of mutable keyword?

Latest answer: The mutable keyword allows the data member of a class to change within a const member function................ 



Write your comment - Share Knowledge and Experience

Discussion Board
C++ objective Test Questions - C++ multiple choice questions

What is the Difference between struct and class in terms of Access Modifier?

By default all the struct members are private while by default class members are public.
By default all the struct members are protected while by default class members are private.
By default all the struct members are public while by default class members are private.
By default all the struct members are public while by default class members are protected


C++ objective Test Questions 05-11-2012 05:25 AM

C++ objective Test Questions - C++ multiple choice questions

What is deep copy?

A deep copy creates a copy of the dynamically allocated objects too.
A deep copy just copies the values of the data as they are.
A deep copy creates a copy of the statically allocated objects too
Both b and c above


C++ objective Test Questions 05-11-2012 05:25 AM

C++ objective Test Questions - C++ multiple choice questions

What happens when a pointer is deleted twice?

It can abort the program
It can cause a failure
It can cause an error
It can cause a trap


C++ objective Test Questions 05-11-2012 05:25 AM

C++ objective Test Questions - C++ multiple choice questions

What defines a general set of operations that will be applied to various types of data?

Template class
Function template
Class template
Both a and c above


C++ objective Test Questions 05-11-2012 05:25 AM

More online test

.NET test
VB.NET test
ADO.NET test
C#.NET test
C#.NET practice test
Csharp.NET quiz
Sharepoint test
Sharepoint quiz
Java Programming Test
Java Online Exams
Java online quizzes
Java Mock Test
EJB Quiz


Career 12-20-2011 04:35 AM

 


Latest MCQs
» General awareness - Banking » ASP.NET » PL/SQL » Mechanical Engineering
» IAS Prelims GS » Java » Programming Language » Electrical Engineering
» English » C++ » Software Engineering » Electronic Engineering
» Quantitative Aptitude » Oracle » English » Finance
Home | About us | Sitemap | Contact us | We are hiring