JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
C++ interview questions part 26
C++ interview questions part 26
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. What is the use of accumulate function in numeric library?
A. try
B. throw
C. throws
D. except
Show Correct Answer
Correct Answer is :
throw
2. How many parameters are available in partial_sum function in c++?
A. The program compiles successfully without any errors or warnings
B. Compile-time error occurs
C. The program compiles successfully with warnings
D. The program gives both errors and warnings
Show Correct Answer
Correct Answer is :
The program compiles successfully with warnings
3. What is the default operation of adjacent_difference function in numeric library?
A. Caught B Class
B. Caught A Class
C. Compile-time error
D. Run-time error
Show Correct Answer
Correct Answer is :
Caught A Class
4. What are the Generators in C++?
A. Caught B Class
B. Caught A Class
C. Compile-time error
D. Run-time error
Show Correct Answer
Correct Answer is :
Caught B Class
5. What are Distributions in C++?
A. Caught B Class
B. Caught A Class
C. Compile-time error
D. Run-time error
Show Correct Answer
Correct Answer is :
Caught A Class
6. What is Pseudo-random number engines?
A. catch(Exception e)
B. catch(…)
C. catch(Exception ALL)
D. catch(ALL)
Show Correct Answer
Correct Answer is :
catch(…)
7. What is linear_congruential_engine?
A. termination of program
B. successful execution of programs
C. no effect on the program
D. execution of other functions of the program starts
Show Correct Answer
Correct Answer is :
termination of program
8. What are different operations are used in Pseudo-random number engines?
A. main function
B. its caller
C. its callee
D. waits there for some time
Show Correct Answer
Correct Answer is :
its callee
9. What is mersenne_twister_engine?
A.
B.
C.
D.
Show Correct Answer
Correct Answer is :
10. What is subtract_with_carry_engine?
A. try
B. catch
C. finally
D. throw
Show Correct Answer
Correct Answer is :
try
11. What is a Random number generator?
A. try
B. catch
C. throw
D. finally
Show Correct Answer
Correct Answer is :
catch
12. What is random_device?
A. i, iv, v
B. i, ii, iii
C. i, iv
D. i, ii
Show Correct Answer
Correct Answer is :
i, iv
13. Which algorithm is used in subtract_with_carry_engine?
A. Program stops immediately
B. Outer catch block also executes
C. Compiler jumps to the outer catch block and executes remaining statements of the main() function
D. Compiler executes remaining statements of outer try-catch block and then the main() function
Show Correct Answer
Correct Answer is :
Compiler executes remaining statements of outer try-catch block and then the main() function
14. What is the default random engine?
A. The compiler looks for the outer try-catch block
B. Program stops abnormally
C. The compiler will check for appropriate catch handler of the outer try block
D. All of the mentioned
Show Correct Answer
Correct Answer is :
The compiler will check for appropriate catch handler of the outer try block
15. What are Engine Adaptors?
A. Compiler executes only main()
B. Compiler throws compile time errors about it
C. Program will run without any interrupt
D. Program will be termianted abnormally
Show Correct Answer
Correct Answer is :
Program will be termianted abnormally
16. How many Engine Adaptors are there in C++?
A. stop()
B. aborted()
C. terminate()
D. abandon()
Show Correct Answer
Correct Answer is :
terminate()
17. How many types of exception handling are there in c++?
A. By defining multiple try-catch blocks inside a function
B. By defining a generic function within a try-catch block
C. By defining a function with throw clauses
D. Not allowed in C++
Show Correct Answer
Correct Answer is :
By defining a function with throw clauses
18. How many runtime error messages associated with exception?
A. indeterminate()
B. unutilized()
C. unexpected()
D. unpredicted()
Show Correct Answer
Correct Answer is :
unexpected()
19. Which block should be placed after try block?
A. int
B. bool
C. char *
D. double
Show Correct Answer
Correct Answer is :
bool
20. Pick out the correct Answer.
A. i, iii
B. i, ii, iii
C. i, ii
D. ii, iii
Show Correct Answer
Correct Answer is :
i, ii, iii
Similar Interview Questions
Search for latest jobs
Find Jobs