JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
C++ interview questions part 36
C++ interview questions part 36
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. Wrapping data and its related functionality into a single entity is known as _____________
A.
B.
C.
D.
Show Correct Answer
Correct Answer is :
2. How structures and classes in C++ differ?
A.
B.
C.
D.
Show Correct Answer
Correct Answer is :
3. What does polymorphism in OOPs mean?
A. ofstream.h
B. fstream.h
C. ifstream.h
D. console.h
Show Correct Answer
Correct Answer is :
fstream.h
4. Which concept allows you to reuse the written code?
A. 4
B. 5
C. 6
D. compile time error
Show Correct Answer
Correct Answer is :
4
5. Which of the following explains Polymorphism?
A. Used for fast retrieval of elements
B. Used for organising the elements
C. Used for fast retrieval & organising the elements
D. None of the mentioned
Show Correct Answer
Correct Answer is :
Used for fast retrieval & organising the elements
6. Which of the following shows multiple inheritances?
A. Lowest value
B. Highest value
C. First value
D. None of the mentioned
Show Correct Answer
Correct Answer is :
Highest value
7. How access specifiers in Class helps in Abstraction?
A. >>
B. comp
C. <
D. Both comp &<
Show Correct Answer
Correct Answer is :
Both comp &<
8. C++ is ______________
A. 45422
B. 5 10 15 20
C. 5 10 15 20 99
D. None of the mentioned
Show Correct Answer
Correct Answer is :
5 10 15 20 99
9. What does modularity mean?
A. 1
B. 33
C. 3
D. 44
Show Correct Answer
Correct Answer is :
33
10. Which of the following class allows to declare only one object of it?
A. 10
B. 20
C. 4
D. 8
Show Correct Answer
Correct Answer is :
10
11. Which of the following is not a type of Constructor?
A. 39208
B. 5 6 7 9 8
C. 9 8 7 6 5
D. None of the mentioned
Show Correct Answer
Correct Answer is :
5 6 7 9 8
12. Which of the following is correct?
A. Avoid using pointers for associating two data structures
B. Embed pointed child objects into the parent object
C. Allocate objects in chunks
D. All of the mentioned
Show Correct Answer
Correct Answer is :
All of the mentioned
13. Out of the following, which is not a member of the class?
A. queue
B. list
C. vector
D. priority_queue
Show Correct Answer
Correct Answer is :
priority_queue
14. What is the other name used for functions inside a class?
A. 1
B. 2
C. 3
D. 4
Show Correct Answer
Correct Answer is :
2
15. Which of the following cannot be a friend?
A. increment
B. decrement
C. both increment & decrement
D. none of the mentioned
Show Correct Answer
Correct Answer is :
both increment & decrement
16. Why references are different from pointers?
A. 1
B. 2
C. 3
D. 4
Show Correct Answer
Correct Answer is :
2
17. Which of the following provides a programmer with the facility of using object of a class inside other classes?
A. Increment operator ++ adds 1 to its operand
B. Increment operator ++ adds 2 to its operand
C. Decrement operator ++ subtracts 1 to its operand
D. None of the mentioned
Show Correct Answer
Correct Answer is :
Increment operator ++ adds 1 to its operand
18. How many types of polymorphism are there in C++?
A. 21
B. 22
C. 23
D. 20
Show Correct Answer
Correct Answer is :
21
19. How run-time polymorphisms are implemented in C++?
A. 55
B. 64
C. 46
D. 45
Show Correct Answer
Correct Answer is :
64
20. How compile-time polymorphisms are implemented in C++?
A. 10
B. 11
C. 9
D. 12
Show Correct Answer
Correct Answer is :
10
Similar Interview Questions
Search for latest jobs
Find Jobs