C++ interview questions part 17

C++ interview questions part 17

Take as many assements as you can to improve your validate your skill rating

Total Questions: 20

1. What are the disadvantages if use return keyword to return error codes?

Correct Answer is : private

2. What is most suitable for returning the logical errors in the program?

Correct Answer is : initialize the objects

3. What is the use of RAII in c++ programming?

Correct Answer is : Error

4. How many levels are there in exception safety?

Correct Answer is : A::value

5. Pick out the correct statement for error handling alternatives.

Correct Answer is : Using this pointer

6. What will happen when an exception is not processed?

Correct Answer is : A member that can be updated even if it a member of constant object

7. What are the essential operators in c++?

Correct Answer is : 5

8. In which direction does the assignment operation will take place?

Correct Answer is : They are generally very large and complicated function

9. Pick out the compound assignment statement.

Correct Answer is : all of the mentioned

10. What is the associativity of add(+);

Correct Answer is : 101010

11. What is the name of | operator?

Correct Answer is : Error

12. Which operator is having the highest precedence in c++?

Correct Answer is : All functions defined inside or with the inline keyword

13. What is an exception in C++ program?

Correct Answer is : 2

14. By default, what a program does when it detects an exception?

Correct Answer is : all of the mentioned

15. Why do we need to handle exceptions?

Correct Answer is : Number of command line arguments

16. How Exception handling is implemented in the C++ program?

Correct Answer is : List of command line arguments

17. What is the correct syntax of the try-catch block?

Correct Answer is : All of the mentioned

18. Which part of the try-catch block is always fully executed?

Correct Answer is : All of the mentioned

19. Which of the following is an exception in C++?

Correct Answer is : argv[0]

20. What is the difference between error and exception?

Correct Answer is : space

Similar Interview Questions

    Search for latest jobs

    Icon
    Icon