C++ Multiple Choice Questions And Answers
Here you can find C++ Multiple Choice Questions and Answers.
Why C++ Multiple Choice Questions and Answers Required?
In this C++ Multiple Choice Questions and Answers section you can learn and practice C++ Multiple Choice Questions and Answers to improve your skills in order to face technical inerview conducted by
Banks. By Practicing these interview questions, you can easily crack any Bank Exams interview.
Where can I get C++ Multiple Choice Questions and Answers?
AllIndiaExams provides you lots C++ Multiple Choice Questions and Answers with proper explanation. Fully solved examples with detailed answer description. All students, freshers can download C++
Multiple Choice Questions and Answers as PDF files and eBooks.
How to solve these C++ Multiple Choice Questions and Answers?
You no need to worry, we have given lots of C++ Multiple Choice Questions and Answers and also we have provided lots of FAQ's to quickly answer the questions in the Bank Exams interview.
C++ Multiple Choice Questions and Answers - Chapters
- Arrays Questions & Answers
- Classes Questions & Answers
- Constants Questions and Answers
- Functions Questions and Answers
- Inheritance Questions and Answers
- Interfaces Questions and Answers
- Macros Questions and Answers
- Namespaces Questions & Answers
- Operators and Statements Questions & Answers
- Pointers Questions & Answers
- Templates Questions & Answers
- Input Output Streams Questions & Answers
Arrays Questions & Answers
1. Which of the following correctly declares an array?
Arrays Questions & Answers
2. What is the index number of the last element of an array with 9 elements?
Arrays Questions & Answers
3. What is a array?
Arrays Questions & Answers
4. Which of the following accesses the seventh element stored in array?
Arrays Questions & Answers
5. Which of the following gives the memory address of the first element in array?
Classes Questions & Answers
1. What does your class can hold?
Classes Questions & Answers
2. How many specifiers are present in access specifiers in class?
Classes Questions & Answers
3. How many kinds of classes are there in c++?
Classes Questions & Answers
4. Which is used to define the member of a class externally?
Classes Questions & Answers
5. Which other keywords are also used to declare the class other than class?
Constants Questions and Answers
1. The constants are also called as
Constants Questions and Answers
2. What are the parts of the literal constants?
Constants Questions and Answers
3. How the constants are declared?
Constants Questions and Answers
4. What is the output of this program?
#include
using namespace std;
int main()
{
int const p = 5;
cout << ++p;
return 0;
}
Constants Questions and Answers
5. What is the output of this program?
#include < iostream >
using namespace std;
#define PI 3.14159
int main ()
{
float r = 2;
float circle;
circle = 2 * PI * r;
cout << circle;
return 0;
}
Functions Questions and Answers
1. Where does the execution of the program starts?
Functions Questions and Answers
2. What are mandatory parts in function declaration?
Functions Questions and Answers
3. which of the following is used to terminate the function declaration?
Functions Questions and Answers
4. How many max number of arguments can present in function in c99 compiler?
Functions Questions and Answers
5. Which is more effective while calling the functions?
Inheritance Questions and Answers
1. What does inheriatance allows you to do?
Inheritance Questions and Answers
2. What is the syntax of inheritance of class?
Inheritance Questions and Answers
3. How many types of inheritance are there in c++?
Inheritance Questions and Answers
4. What is meant by containership?
Inheritance Questions and Answers
5. How many types of constructor are there in C++?
Interfaces Questions and Answers
1. which of the following is used to implement the c++ interfaces?
Interfaces Questions and Answers
2. What is the ability to group some lines of code that can be included in the program?
Interfaces Questions and Answers
3. How many types does functions fall depends on modularization?
Interfaces Questions and Answers
4. How many types of modularization are there in c++?
Interfaces Questions and Answers
5. What does the client module import?
Macros Questions and Answers
1. which keyword is used to define the macros in c++?
Macros Questions and Answers
2. Which symbol is used to declare the preprocessor directives?
Macros Questions and Answers
3. How many types of macros are there in c++?
Macros Questions and Answers
4. What is the mandatory preprosessor directive for c++?
Macros Questions and Answers
5. What is the output of this program?
#include < iostream >
using namespace std;
#define MIN(a,b) (((a)<(b)) ? a : b)
int main ()
{
float i, j;
i = 100.1;
j = 100.01;
cout << "The minimum is " << MIN(i, j) << endl;
return 0;
}
Namespaces Questions & Answers
1. Which operator is used to signify the namespace?
Namespaces Questions & Answers
2. Identify the correct statement
Namespaces Questions & Answers
3. What is the use of Namespace?
Namespaces Questions & Answers
4. What is the general syntax for accessing the namespace variable?
Namespaces Questions & Answers
5. Which keyword is used to access the variable in namespace?
Operators and Statements Questions & Answers
1. Which operator is having right to left associativity in the following?
Operators and Statements Questions & Answers
2. Which operator is having the highest precedence?
Operators and Statements Questions & Answers
3. What is this operator called ?: ?
Operators and Statements Questions & Answers
4. What is the output of this program?
#include
using namespace std;
int main()
{
int a;
a = 5 + 3 * 5;
cout << a;
return 0;
}
Operators and Statements Questions & Answers
5. What is the use of dynamic_cast operator?
Pointers Questions & Answers
1. What does the following statement mean?
int (*fp)(char*)
Pointers Questions & Answers
2. The operator used for dereferencing or indirection is ____
Pointers Questions & Answers
3. Choose the right option
string* x, y;
Pointers Questions & Answers
4. Which one of the following is not a possible state for a pointer?
Pointers Questions & Answers
5. Which of the following is illegal?
Templates Questions & Answers
1. What is a template?
Templates Questions & Answers
2. Pick out the correct statement about string template?
Templates Questions & Answers
3. How to declare a template?
Templates Questions & Answers
4. What is the output of this program?
#include < iostream >
#include < string >
using namespace std;
template < typename T >
void print_mydata(T output)
{
cout << output << endl;
}
int main()
{
double d = 5.5;
string s("Hello World");
print_mydata( d );
print_mydata( s );
return 0;
}
Templates Questions & Answers
5. How many types of templates are there in c++?
Input Output Streams Questions and Answers
1. Which operator is used for input stream?
Input Output Streams Questions and Answers
2. Where does a cin stops it extraction of data?
Input Output Streams Questions and Answers
3. What is the output of this program?
#include < iostream >
using namespace std;
int main ()
{
int i;
cout << "Please enter an integer value: ";
cin >> i + 4;
return 0;
}
Input Output Streams Questions and Answers
4. What is the output of this program?
#include < iostream >
using namespace std;
int main( )
{
char line[100];
cin.getline( line, 100, 't' );
cout << line;
return 0
}
Input Output Streams Questions and Answers
5. How many parameters are there in getline function?