JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
C++ interview questions part 61
C++ interview questions part 61
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. What do vectors represent?
A. It is the collection of class definitions for standard data structures and a collection of algorithms
B. It is a header file
C. Collection of algorithms
D. None of the mentioned
Show Correct Answer
Correct Answer is :
It is the collection of class definitions for standard data structures and a collection of algorithms
2. In which type of storage location are the vector members stored?
A. count
B. size
C. hash
D. none of the mentioned
Show Correct Answer
Correct Answer is :
count
3. How many vector container properties are there in c++?
A. Contains the standard exception files
B. Contains the standard library files
C. It is used to arise an exception in the program
D. None of the mentioned
Show Correct Answer
Correct Answer is :
Contains the standard exception files
4. Pick out the correct statement about vector.
A. 343
B. 343
C. 334
D. None of the mentioned
Show Correct Answer
Correct Answer is :
343
5. Which is optional in the declaration of vector?
A. 1.3
B. 1.7
C. 1.3
D. None of the mentioned
Show Correct Answer
Correct Answer is :
1.3
6. Which of the following library is used to do vector arithmetic?
A. 10
B. -10
C. 10.6
D. None of the mentioned
Show Correct Answer
Correct Answer is :
10.6
7. Which header file is used to manipulate the vector algebra in c++?
A. cos
B. tan
C. sin
D. mod
Show Correct Answer
Correct Answer is :
tan
8. What type of reference should be used in vector arithmetic?
A. 1
B. 2
C. 3
D. 4
Show Correct Answer
Correct Answer is :
2
9. What will be the type of output of vector cross product?
A. 1
B. 2
C. 3
D. 4
Show Correct Answer
Correct Answer is :
4
10. Which function is used to optimize the space in vector?
A. Containers store objects and data
B. Containers stores all the algorithms
C. Containers contain overloaded functions
D. Containers contain set of Iterators
Show Correct Answer
Correct Answer is :
Containers store objects and data
11. What is the use of vector arithmetic in c++?
A. 1
B. 2
C. 3
D. 4
Show Correct Answer
Correct Answer is :
4
12. Which of the following will not return a value?
A. Containers that implements data structures which can be accessed sequentially
B. Containers that implements sorted data structures for fast search in O(logn)
C. Containers that implements unsorted(hashed) data structures for quick search in O(1)
D. Containers that implements data structures which can be accessed non-sequentially
Show Correct Answer
Correct Answer is :
Containers that implements data structures which can be accessed sequentially
13. ____ have the return type void?
A. 2
B. 3
C. 4
D. 5
Show Correct Answer
Correct Answer is :
5
14. What does the following statement mean? void a;
A. Containers that implements data structures which can be accessed sequentially
B. Containers that implements sorted data structures for fast search in O(logn)
C. Containers that implements unsorted(hashed) data structures for quick search in O(1)
D. Containers that implements data structures which can be accessed non-sequentially
Show Correct Answer
Correct Answer is :
Containers that implements sorted data structures for fast search in O(logn)
15. Choose the incorrect option
A. 2
B. 3
C. 4
D. 5
Show Correct Answer
Correct Answer is :
4
16. What is vtable in C++?
A. Containers that implements data structures which can be accessed sequentially
B. Containers that implements sorted data structures for fast search in O(logn)
C. Containers that implements unsorted(hashed) data structures for quick search in O(1)
D. Containers that provide a different interface for sequential containers
Show Correct Answer
Correct Answer is :
Containers that provide a different interface for sequential containers
17. Which classes can have vtable?
A. 2
B. 3
C. 4
D. 5
Show Correct Answer
Correct Answer is :
3
18. What is the full form of vtable?
A. Iterators are used to iterate over C-like arrays
B. Iterators are used to iterate over pointers
C. Iterators are used to point memory addresses of STL containers
D. Iterators are used to iterate over functions
Show Correct Answer
Correct Answer is :
Iterators are used to point memory addresses of STL containers
19. What is vptr?
A. 2
B. 3
C. 4
D. 5
Show Correct Answer
Correct Answer is :
5
20. What is the full form of vptr?
A.
B.
C.
D.
Show Correct Answer
Correct Answer is :
Similar Interview Questions
Search for latest jobs
Find Jobs