JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
C++ interview questions part 33
C++ interview questions part 33
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. How many parameters are needed for minmax function?
A. function objects
B. member
C. methods
D. none of the mentioned
Show Correct Answer
Correct Answer is :
function objects
2. Which function is used to return the minimum element in the range?
A. 200
B. 3.123
C. 200
D. 3.123
Show Correct Answer
Correct Answer is :
200
3. Which operator is used to compare the values to find min and max?
A. 100
B. 200
C. 50
D. none of the mentioned
Show Correct Answer
Correct Answer is :
200
4. What is the use of middle parameter in rotate method?
A. 45326
B. 45326
C. error
D. runtime error
Show Correct Answer
Correct Answer is :
45326
5. What kind of object is modifying sequence algorithm?
A. 2.1
B. 3.1
C. 3.2
D. 2.1
Show Correct Answer
Correct Answer is :
2.1
6. How the sequence of objects can be accessed?
A. int
B. float
C. constant expression
D. none of the mentioned
Show Correct Answer
Correct Answer is :
constant expression
7. How many kind of operation can be applied to transform method in c++?
A. Template
B. template
C. Temp
D. temp
Show Correct Answer
Correct Answer is :
template
8. What operator is used to remove the dupplicates in the range?
A. template
void(T a){cout<
B. Template
void(T a){cout<
C. template
void(T a){cout<
D. Template
void(T a){cout<
Show Correct Answer
Correct Answer is :
template
void(T a){cout<
9. which of the following is used to implement the c++ interfaces?
A. A function taking a single generic parameter and returning a generic type
B. A function taking a single generic parameter and returning nothing
C. A function taking single int parameter and returning a generic type
D. A function taking a single generic parameter and returning a specific non-void type
Show Correct Answer
Correct Answer is :
A function taking a single generic parameter and returning nothing
10. What is the ability to group some lines of code that can be included in the program?
A. A function taking a single generic parameter and returning a generic type
B. A function taking a single generic parameter and returning nothing
C. A function taking single int parameter and returning a generic type
D. A function taking a single generic parameter and returning a specific non-void type
Show Correct Answer
Correct Answer is :
A function taking a single generic parameter and returning a generic type
11. How many types do functions fall depends on modularization?
A. A function taking a single generic parameter and returning a generic type which may be different from argument type
B. A function taking a single generic parameter and returning a generic type which must be different from argument type
C. A function taking a single generic parameter and returning a generic type which must have the same type as argument type
D. A function taking a single generic parameter and returning a specific non-void type
Show Correct Answer
Correct Answer is :
A function taking a single generic parameter and returning a generic type which may be different from argument type
12. How many types of modularization are there in c++?
A. 5
B. 55
C. Error
D. Segmentation fault
Show Correct Answer
Correct Answer is :
Error
13. What does the client module import?
A. 5
B. 55.5
C. Error
D. Segmentation fault
Show Correct Answer
Correct Answer is :
55.5
14. Identify the correct statement.
A. 5
B. 55
C. Error
D. Segmentation fault
Show Correct Answer
Correct Answer is :
55
15. Which of the following implements the module in the program?
A. replace templates T, U with auto keyword
B. replace templates T, U with generic keyword
C. replace templates T, U with temp keyword
D. replace templates T, U with GEN_TEMP keyword
Show Correct Answer
Correct Answer is :
replace templates T, U with auto keyword
16. Which container is used to store elements as key-value pair?
A. func(3,’a’);
B. func(3,’a’);
C. func(3,’a’);
D. func(3,‘a’);
Show Correct Answer
Correct Answer is :
func(3,’a’);
17. Which container can have the same keys?
A. int
B. char
C. float
D. void
Show Correct Answer
Correct Answer is :
int
18. Which container is best to keep the collection of distinct elements?
A. A function that is expanded at each call during execution
B. A function that is called during compile time
C. A function that is not checked for syntax errors
D. A function that is not checked for semantic analysis
Show Correct Answer
Correct Answer is :
A function that is expanded at each call during execution
19. Which container is used to keep priority based elements?
A. compile-time
B. run-time
C. never expanded
D. end of the program
Show Correct Answer
Correct Answer is :
run-time
20. Sets are implemented using _______________________
A. i, iv
B. iii, iv
C. ii, iii, iv
D. i, iii, iv
Show Correct Answer
Correct Answer is :
i, iii, iv
Similar Interview Questions
Search for latest jobs
Find Jobs