Home C C++ Java Python Perl PHP SQL JavaScript Linux Selenium QT Online Test

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

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



Question: 1

(A) Yes
(B) No

Compiler
Level: Practitioner Category of MCQ: stl
[Posted by: | ]



Question: 2

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

Compiler
Level: Practitioner Category of MCQ: stl
[Posted by: | ]



Question: 3

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

Compiler
Level: Practitioner Category of MCQ: stl
[Posted by: | ]



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 of MCQ: stl
[Posted by: | ]



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 of MCQ: stl
[Posted by: | ]



Question: 6

(A) Yes
(B) No

Compiler
Level: Practitioner Category of MCQ: stl
[Posted by: | ]



Question: 7

(A) Yes
(B) No

Compiler
Level: Practitioner Category of MCQ: stl
[Posted by: | ]



Question: 8

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

Compiler
Level: Practitioner Category of MCQ: stl
[Posted by: | ]



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 of MCQ: stl
[Posted by: | ]