JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
C++ interview questions part 49
C++ interview questions part 49
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. Which header file is used to declare the standard exception?
A. 20 10
B. 10 21
C. 21 10
D. none of the mentioned
Show Correct Answer
Correct Answer is :
21 10
2. Where are standard exception classes grouped?
A. 1
B. 2
C. 3
D. 4
Show Correct Answer
Correct Answer is :
2
3. How many types of standard exception are there in c++?
A. cout
B. cerr
C. clog
D. all of the mentioned
Show Correct Answer
Correct Answer is :
all of the mentioned
4. Which of the following is best to include under try block?
A. 3.14
B. 3.14159
C. Error
D. None of the mentioned
Show Correct Answer
Correct Answer is :
3.14159
5. What are the predefined exceptions in c++?
A. 1
B. 2
C. 3
D. 4
Show Correct Answer
Correct Answer is :
3
6. What is the header file used for declaring the standard library algorithms?
A. stream
B. streambuf
C. memory
D. none of the mentioned
Show Correct Answer
Correct Answer is :
streambuf
7. Pick out the correct method in the c++ standard library algorithm.
A. type
B. number of arguments
C. type & number of arguments
D. none of the mentioned
Show Correct Answer
Correct Answer is :
type & number of arguments
8. What is the use of make_heap in the heap operation?
A. type
B. number of arguments
C. type & number of arguments
D. none of the mentioned
Show Correct Answer
Correct Answer is :
type & number of arguments
9. What is the type of the first item in the heap?
A. 5500.263
B. 500.2635
C. 500.263
D. none of the mentioned
Show Correct Answer
Correct Answer is :
5500.263
10. Pick out the correct library in the following choices.
A. 11 12.1
B. 12.1 11
C. 45608
D. compile time error
Show Correct Answer
Correct Answer is :
compile time error
11. Pick out the wrong header file about strings.
A. 11 12.1
B. 12.1 11
C. 45608
D. compile time error
Show Correct Answer
Correct Answer is :
compile time error
12. Which is best for coding the standard library for c++?
A. 10.0 5.0
B. 5.0 2.5
C. 10.0 5
D. 10 2.5
Show Correct Answer
Correct Answer is :
10 2.5
13. What is meant by vector in the container library contains?
A. 10.0 5.0
B. 5.0 2.5
C. 10.0 5
D. 10 2.5
Show Correct Answer
Correct Answer is :
10 2.5
14. Pick out the wrong header file.
A. The values of those variables are passed to the function so that it can manipulate them
B. The location of variable in memory is passed to the function so that it can use the same memory area for its processing
C. The function declaration should contain ampersand (& in its type declaration)
D. All of the mentioned
Show Correct Answer
Correct Answer is :
The location of variable in memory is passed to the function so that it can use the same memory area for its processing
15. What is meant by standard c++ library?
A. void
B. blank space
C. both void & blank space
D. none of the mentioned
Show Correct Answer
Correct Answer is :
blank space
16. Pick out parameter for rehash method in unordered_set in c++?
A. void
B. blank space
C. both void & blank space
D. none of the mentioned
Show Correct Answer
Correct Answer is :
blank space
17. What is the use of
header
A. Changes to parameter values within the function also affect the original arguments
B. There is need to copy parameter values (i.e. less memory used)
C. There is no need to call constructors for parameters (i.e. faster)
D. All of the mentioned
Show Correct Answer
Correct Answer is :
All of the mentioned
18. With which does the trigonometric functions work with angles in c++?
A. Changes to parameter values within the function also affect the original arguments
B. There is need to copy parameter values (i.e. less memory used)
C. There is no need to call constructors for parameters (i.e. faster)
D. All of the mentioned
Show Correct Answer
Correct Answer is :
All of the mentioned
19. Which header file is required for manipulation of math functions in c++?
A. To find all the values in the range
B. To find all the combination of the range
C. To find all the values & combination in the range
D. None of the mentioned
Show Correct Answer
Correct Answer is :
To find all the combination of the range
20. How many macros are used by mathematical functions in the header file ?
A. Compare lexicographically to each other elements
B. By finding the highest element in the range
C. By finding the lowest element in the range
D. None of the mentioned
Show Correct Answer
Correct Answer is :
Compare lexicographically to each other elements
Similar Interview Questions
Search for latest jobs
Find Jobs