JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
C++ interview questions part 16
C++ interview questions part 16
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. How many kinds of entities are directly parameterized in c++?
A. Standard logging stream
B. Error stream
C. Input stream
D. None of the mentioned
Show Correct Answer
Correct Answer is :
Standard logging stream
2. How many kinds of parameters are there in C++?
A. 5593.54
B. Error
C. Runtime error
D. None of the mentioned
Show Correct Answer
Correct Answer is :
5593.54
3. Where is the derived class is derived from?
A. The program executed
B. Error
C. Runtime error
D. None of the mentioned
Show Correct Answer
Correct Answer is :
Error
4. Pick out the correct statement.
A. Caught Base Class Exception
B. Caught Derived Class Exception
C. Caught Base & Derived Class Exception
D. None of the mentioned
Show Correct Answer
Correct Answer is :
Caught Derived Class Exception
5. Which of the following can derived class inherit?
A. a long* string
B. a long st*ring
C. Depends on compiler
D. None of the mentioned
Show Correct Answer
Correct Answer is :
Depends on compiler
6. Which operator is used to declare the destructor?
A. Is-A relationship
B. Has-A relationship
C. Part-Of relationship
D. Belongs-to relationship
Show Correct Answer
Correct Answer is :
Is-A relationship
7. Which constructor will initialize the base class data member?
A. Through the objects of classes
B. Through constructor
C. Through destructor
D. Through class Names
Show Correct Answer
Correct Answer is :
Through the objects of classes
8. Which interface determines how your class will be used by another program?
A. 1
B. 2
C. 3
D. 4
Show Correct Answer
Correct Answer is :
4
9. Pick out the correct statement about the override.
A. To use the functionality of one class into other
B. To enhance the communication between classes
C. To increase code re-usability
D. All of the mentioned
Show Correct Answer
Correct Answer is :
All of the mentioned
10. How many ways of reusing are there in the class hierarchy?
A. Aggregation
B. Association
C. Inheritance
D. Both Aggregation an Association
Show Correct Answer
Correct Answer is :
Association
11. How many types of class are there in c++?
A. Is-A relationship
B. Has-A relationship
C. Part-Of relationship
D. Have-A relationship
Show Correct Answer
Correct Answer is :
Part-Of relationship
12. Pick out the correct statement about multiple inheritances.
A. Aggregation
B. Association
C. Composition
D. Both Aggregation and Composition
Show Correct Answer
Correct Answer is :
Both Aggregation and Composition
13. What does inheritance allow you to do?
A. strong
B. weak
C. unnecessary
D. necessary
Show Correct Answer
Correct Answer is :
strong
14. What is the syntax of inheritance of class?
A. strong
B. weak
C. unnecessary
D. necessary
Show Correct Answer
Correct Answer is :
weak
15. Identify the incorrect option.
A. Is-A relationship
B. Has-A relationship
C. Part-Of relationship
D. Have-A relationship
Show Correct Answer
Correct Answer is :
Has-A relationship
16. In which type do the enumerators are stored by the compiler?
A. template
class declaration
B. Template
class declaration
C. temp
class declaration
D. Temp
class declaration
Show Correct Answer
Correct Answer is :
template
class declaration
17. Which keyword is used to handle the expection?
A. Template class generate objects of classes based on the template type
B. Template class saves system memory
C. Template class helps in making genetic classes
D. All of the mentioned
Show Correct Answer
Correct Answer is :
All of the mentioned
18. How do define the user-defined exceptions?
A. rect area: 24
B. rect area: 12
C. compile error because rect is as used as class name and variable name in line #20
D. none of the mentioned
Show Correct Answer
Correct Answer is :
rect area: 12
19. Which exception is thrown by dynamic_cast?
A. execute
B. not execute
C. none of the mentioned
D. both execute & not execute
Show Correct Answer
Correct Answer is :
execute
20. Which alternative can replace the throw statement?
A. class A { int x; };
B. class B { }
C. public class A { }
D. object A { int x; };
Show Correct Answer
Correct Answer is :
class A { int x; };
Similar Interview Questions
Search for latest jobs
Find Jobs