Interview Questions on STL in C++ : (9)
Question: 1
(A) Yes
(B) No
Compiler
Level: Practitioner Category: stl
[Posted by: Admin | Chicago, USA]
Question: 2
(A) AVL Tree
(B) Binary Tree
(C) Balance Binary Tree
(D) None of these
Compiler
Level: Practitioner Category: stl
[Posted by: Admin | Chicago, USA]
Question: 3
(A) Vector
(B) Deque
(C) Stack
(D) List
Compiler
Level: Practitioner Category: stl
[Posted by: Admin | Chicago, USA]
Question: 4
(A) std::vector<integer> vecOfInts;
(B) std::vector int <vecOfInts>
(C) std::vector(int) vecOfInts;
(D) std::vector<int> vecOfInts;
Compiler
Level: Practitioner Category: stl
[Posted by: Admin | Chicago, USA]
Question: 5
(A) Initialize a Vector with 5 int & all default value is 0
(B) Initialize a Vector with 5 int
(C) Initialize a Vector with 5 int & all default values will be garbage
(D) Initialize a Vector with 5 int & All default value with be -1
Compiler
Level: Practitioner Category: stl
[Posted by: Admin | Chicago, USA]
Question: 6
(A) Yes
(B) No
Compiler
Level: Practitioner Category: stl
[Posted by: Admin | Chicago, USA]
Question: 7
Question: 8
Question: 9
(A) Initialize vect to 5 string with value "Hi"
(B) Initialize vect's first element to a string with value "Hi" & prints them
(C) Initialize vect to 1 string with value "Hi" & prints only one
(D) Initialize vect to 5 string with value "Hi" & prints them
Compiler
Level: Practitioner Category: stl
[Posted by: Admin | Chicago, USA]
C++ Online Test
Compile C++ code here
Browse C++ Categories
Loops Conditional Functions Operators Structure Enum Data Types Inheritance Pointers Classes & Objects Vtable Type Casting New & Delete Namespaces Virtual Functions Abstract Class STL Singleton Class Exceptions C++ 11 C++ 17 Time & Space Complexity othersSwitch to C Questions