JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
C++ interview questions part 6
C++ interview questions part 6
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. Which of the following belongs to the set of character types?
A. 20
B. 10
C. Error
D. 0
Show Correct Answer
Correct Answer is :
0
2. What will be the output of this program? #include
using namespace std; int main() { char c = 74; cout << c; return 0; }
A. int array[10];
B. int array;
C. array{10};
D. array array[10];
Show Correct Answer
Correct Answer is :
int array[10];
3. How do we represent a wide character of the form wchar_t?
A. 9
B. 8
C. 0
D. Programmer-defined
Show Correct Answer
Correct Answer is :
8
4. In C++, what is the sign of character data type by default?
A. array[6];
B. array[7];
C. array(7);
D. array;
Show Correct Answer
Correct Answer is :
array[6];
5. Is the size of character literals different in C and C++?
A. array[0];
B. array[1];
C. array(2);
D. array;
Show Correct Answer
Correct Answer is :
array;
6. Suppose in a hypothetical machine, the size of char is 32 bits. What would sizeof(char) return?
A. 6553
B. 6533
C. 6522
D. 12200
Show Correct Answer
Correct Answer is :
6533
7. What constant defined in
header returns the number of bits in a char?
A. 25
B. 26
C. 27
D. None of the mentioned
Show Correct Answer
Correct Answer is :
None of the mentioned
8. What is the use of checked iterators?
A. 15
B. 18
C. garbage value
D. compile time error
Show Correct Answer
Correct Answer is :
compile time error
9. What will happen if the iterator is unchecked?
A. ABC
B. ABCD
C. AB
D. None of the mentioned
Show Correct Answer
Correct Answer is :
ABC
10. How many adaptors support the checked iterators?
A. -15
B. -30
C. compile time error
D. garbage value
Show Correct Answer
Correct Answer is :
-30
11. What does the checked iterator allow you to find?
A. a => 200
B. a => 200
C. a => 200
D. None of the mentioned
Show Correct Answer
Correct Answer is :
a => 200
12. What kind of errors do checked iterators detect?
A. 10
B. 20
C. 30
D. All of the mentioned
Show Correct Answer
Correct Answer is :
All of the mentioned
13. How many kinds of classes are there in c++?
A. 12345
B. 1234
C. 1234
D. 123
Show Correct Answer
Correct Answer is :
1234
14. What is meant by polymorphism?
A. 1
B. 2
C. 3
D. Multiple
Show Correct Answer
Correct Answer is :
1
15. How many types of inheritance are there in c++?
A. Single directional iterators
B. Bi-directional iterators
C. Single & Bi-directional directional iterators
D. None of the mentioned
Show Correct Answer
Correct Answer is :
Bi-directional iterators
16. What is meant by container ship?
A. bool empty()
B. assign
C. append
D. none of the mentioned
Show Correct Answer
Correct Answer is :
bool empty()
17. How many types of the constructor are there in C++?
A. I like to code in c
B. I like to code
C. I like to code in c++
D. None of the mentioned
Show Correct Answer
Correct Answer is :
I like to code
18. How many constructors can present in a class?
A. 9
B. 10
C. 11
D. Not Fix
Show Correct Answer
Correct Answer is :
Not Fix
19. What should be the name of the constructor?
A. apple
B. 12
C. 23
D. Steve jobs founded the
Show Correct Answer
Correct Answer is :
23
20. What does derived class does not inherit from the base class?
A. Steve
B. jobs
C. St*v* j*bs
D. St*v*
Show Correct Answer
Correct Answer is :
St*v* j*bs
Similar Interview Questions
Search for latest jobs
Find Jobs