JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
C++ interview questions part 14
C++ interview questions part 14
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. How destructor overloading is done?
A. 1
B. 2
C. 3
D. 4
Show Correct Answer
Correct Answer is :
1
2. How many sets of requirements are need in designing a container?
A. 1
B. 2
C. 3
D. 4
Show Correct Answer
Correct Answer is :
1
3. Which interface in the container is required for storage management?
A. inside the program
B. outside the regular code
C. both inside or outside
D. none of the mentioned
Show Correct Answer
Correct Answer is :
outside the regular code
4. Which is present in the basic interface of the allocator interface?
A. inside the program
B. outside the regular code
C. both inside or outside
D. none of the mentioned
Show Correct Answer
Correct Answer is :
outside the regular code
5. Which container provides random access iterators?
A. try
B. throw
C. catch
D. none of the mentioned
Show Correct Answer
Correct Answer is :
try
6. Which is used for manually writing lookup table?
A. exception arised
B. error
C. exception
D. runtime error
Show Correct Answer
Correct Answer is :
exception arised
7. How can the member functions in the container be accessed?
A. 5
B. 10
C. 15
D. Positive Number Required
Show Correct Answer
Correct Answer is :
5
8. Which of the following type does the container should define?
A. 5
B. 10
C. 15
D. Positive Number Required
Show Correct Answer
Correct Answer is :
5
9. Which are the parameters for the content of the buffer?
A. 50
B. 0
C. Division by zero condition!
D. None of the mentioned
Show Correct Answer
Correct Answer is :
Division by zero condition!
10. What is the return type of the conversion operator?
A. 50
B. 0
C. Division by zero condition!
D. None of the mentioned
Show Correct Answer
Correct Answer is :
Division by zero condition!
11. Why we use the “dynamic_cast” type conversion?
A. 15
B. 5
C. 2
D. is not a valid operator
Show Correct Answer
Correct Answer is :
is not a valid operator
12. How many parameters does a conversion operator may take?
A. 15
B. 5
C. 2
D. is not a valid operator
Show Correct Answer
Correct Answer is :
is not a valid operator
13. How are types therein user-defined conversion?
A. constructor
B. copy-constructor
C. destructor
D. none of the mentioned
Show Correct Answer
Correct Answer is :
copy-constructor
14. Pick out the correct syntax of operator conversion.
A. isalpha()
B. isalnum()
C. isdigit()
D. isblank()
Show Correct Answer
Correct Answer is :
isalpha()
15. Choose the correct option. extern int i; int i;
A. isalpha()
B. isalnum()
C. isdigit()
D. isblank()
Show Correct Answer
Correct Answer is :
isalnum()
16. Which of the given statements are false. 1. extern int func; 2. extern int func2(int,int); 3. int func2(int,int); 4. extern class foo;
A. isalpha()
B. isalnum()
C. isdigit()
D. isblank()
Show Correct Answer
Correct Answer is :
isdigit()
17. Pick the right option Statement 1:Global values are not initialized by the stream. Statement 2:Local values are implicitly initialised to 0.
A. isalpha()
B. isalnum()
C. isdigit()
D. isblank()
Show Correct Answer
Correct Answer is :
isblank()
18. Can two functions declare variables(non static) with the same name.
A. isspace()
B. isalnum()
C. iscntrl()
D. isblank()
Show Correct Answer
Correct Answer is :
iscntrl()
19. Identify the incorrect statements. int var = 10; int *ptr = &(var + 1); //statement 1 int *ptr2 = &var; //statement 2 &&var = 40; //statement 3
A. isxdigit()
B. isprint()
C. iscntrl()
D. ispunct()
Show Correct Answer
Correct Answer is :
ispunct()
20. Identify the type of the variables. typedef char* CHAR; CHAR p,q;
A. 1.11E+11
B. 1.11E+11
C. 1.11E+11
D. 1.11E+11
Show Correct Answer
Correct Answer is :
1.11E+11
Similar Interview Questions
Search for latest jobs
Find Jobs