JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
C++ interview questions part 15
C++ interview questions part 15
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. Where can the default parameter be placed by the user?
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
2. Which value will it take when both user and default values are given?
A. 1.11E+11
B. 1000001
C. 1.11E+11
D. 1.11E+11
Show Correct Answer
Correct Answer is :
1000001
3. What we can’t place followed by the non-default arguments?
A. 1 is true but 2 is false
B. 1 is false and 2 is true
C. both 1 and 2 are true
D. both 1 and 2 are false
Show Correct Answer
Correct Answer is :
both 1 and 2 are true
4. If we start our function call with default arguments means, what will be proceeding arguments?
A. char
B. wchar_t
C. only a
D. both wchar_t and char
Show Correct Answer
Correct Answer is :
both wchar_t and char
5. What is the default return type of a function?
A. A
B. N
C. J
D. I
Show Correct Answer
Correct Answer is :
J
6. What do all STL containers define?
A. Compiler error
B. 12
C. 10
D. Empty
Show Correct Answer
Correct Answer is :
10
7. What do we return if we use simple array on a internal container?
A. Signed
B. Unsigned
C. Implementation dependent
D. None of the mentioned
Show Correct Answer
Correct Answer is :
Implementation dependent
8. What is mandatory for designing a new container?
A. Implementation defined
B. Can’t say
C. Yes, they are different
D. No, they are not different
Show Correct Answer
Correct Answer is :
Yes, they are different
9. What are the design requirements for building a container from the sratch?
A. 4
B. 1
C. Implementation dependent
D. Machine dependent
Show Correct Answer
Correct Answer is :
1
10. How many iterators are needed for the defining a new container?
A. CHAR_SIZE
B. SIZE_CHAR
C. BIT_CHAR
D. CHAR_BIT
Show Correct Answer
Correct Answer is :
CHAR_BIT
11. What is the use of the allocator interface in the user-defined container?
A. Overwrite the bounds of your container
B. Not allow you to overwrite the bounds of your container
C. It will check the list value
D. None of the mentioned
Show Correct Answer
Correct Answer is :
Not allow you to overwrite the bounds of your container
12. How many types of container classes are there in c++?
A. Arising of compiler warnings
B. Unchecked behavior on program
C. Nothing will execute
D. Arising of compiler warnings & Unchecked behavior on program
Show Correct Answer
Correct Answer is :
Arising of compiler warnings & Unchecked behavior on program
13. What is the name of the container which contains group of multiple objects?
A. 1
B. 2
C. 3
D. 4
Show Correct Answer
Correct Answer is :
2
14. Which is used to tell the computer that where a pointer is pointing to?
A. 10
B. 45
C. It will print the multiplied value of the input
D. Exception
Show Correct Answer
Correct Answer is :
It will print the multiplied value of the input
15. Which is used to do the dereferencing?
A. 11251
B. 45585
C. 10, 20, 30,
D. None of the mentioned
Show Correct Answer
Correct Answer is :
10, 20, 30,
16. What does the dereference operator will return?
A. 2
B. 3
C. 4
D. 5
Show Correct Answer
Correct Answer is :
5
17. Pick out the correct statement.
A. 66.5
B. 64.5
C. 62.5
D. 60.5
Show Correct Answer
Correct Answer is :
66.5
18. Which is dependant on template parameter?
A. 1212
B. 1210
C. 1010
D. none of the mentioned
Show Correct Answer
Correct Answer is :
1210
19. Which value is placed in the base class?
A. class contains objects of other class types as its members
B. class contains objects of other class types as its objects
C. class contains objects of other class types as its members 7 also objects
D. none of the mentioned
Show Correct Answer
Correct Answer is :
class contains objects of other class types as its members
20. How many bits of memory needed for internal representation of class?
A. 1
B. 2
C. 3
D. 4
Show Correct Answer
Correct Answer is :
3
Similar Interview Questions
Search for latest jobs
Find Jobs