CppBuzz.com
  
Home C C++ Java Python Perl PHP SQL JavaScript Linux Online Test Forum

Home » C++ » Interview Questions on STL in C++

Interview Questions on STL in C++ : (9)


Question: 1

(A) Yes
(B) No

Compiler Forum
Practitioner stl[Posted by: Admin | Chicago, USA]



Question: 2

(A) AVL Tree
(B) Binary Tree
(C) Balance Binary Tree
(D) None of these

Compiler Forum
Practitioner stl[Posted by: Admin | Chicago, USA]



Question: 3

(A) Vector
(B) Deque
(C) Stack
(D) List

Compiler Forum
Practitioner 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 Forum
Practitioner 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 Forum
Practitioner stl[Posted by: Admin | Chicago, USA]



Question: 6

(A) Yes
(B) No

Compiler Forum
Practitioner stl[Posted by: Admin | Chicago, USA]



Question: 7

(A) Yes
(B) No

Compiler Forum
Practitioner stl[Posted by: Admin | Chicago, USA]



Question: 8

(A) 1 2 3 4
(B) 1234
(C) 12340
(D) 01234

Compiler Forum
Practitioner stl[Posted by: Admin | Chicago, USA]



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 Forum
Practitioner stl[Posted by: Admin | Chicago, USA]


Compile C++ code here Upload your Questions

Browse C++ Categories

Loops Conditional Functions Operators Structure Enum Storage Classes Union FileHandling Data Types Inheritance Pointers Classes & Objects Vtable Type Casting New & Delete Namespaces Reference Variables Static Cast Dynamic Cast Reinterpret Cast Const Cast Virtual Functions Abstract Class STL Singleton Class C++ 11 C++ 14 C++ 17 C++ 20 gcc/g++ others

Switch to C Questions