Class Hierarchies, Library & Containers Quiz 3
1 / 50
Which header file is required to use any container?
2 / 50
Pick the incorrect statement.
3 / 50
Which operator is used to access the first or second element of a pair?
4 / 50
What is the use of empty() function in array classes?
5 / 50
How the list differs from vectors?
6 / 50
Which is the following is syntactically correct for vector v?
7 / 50
Which of the following(s) is/are the correct way of assigning values to a forward_list f?
8 / 50
What are the vectors?
9 / 50
What happens if a pair is not initialized?
10 / 50
What is the correct syntax of declaring an array class?
11 / 50
Which of the following(s) can be used to access the last element of a vector v?
12 / 50
1. Which of the following is correct way of copying the values of pair p1 into other pair p2?
13 / 50
Which type of list a List sequence container implements?
14 / 50
Which function is used to access the last element of an array class?
15 / 50
Which type of list a Forward_list sequence container implements?
16 / 50
Which function is used to get the total capacity of a vector?
17 / 50
Which of the following is the correct syntax of accessing the second element of a pair p?
18 / 50
Pick the correct statement.
19 / 50
Which exception is thrown if the typecasting is not done properly?
20 / 50
Which function is used to swap two vectors?
21 / 50
1. What is the difference between get() and at()?
22 / 50
What is the use of type() function in any container?
23 / 50
What is the syntax of declaraing a forward_list?
24 / 50
What is the syntax of swap()?
25 / 50
Which of the following function is used to get the actual number of elements stored in vector?
26 / 50
Which of the following Operator cannot be used with pairs?
27 / 50
What is the use of swap() function in array class?
28 / 50
What is the difference between begin() and cbegin() in vectors?
29 / 50
Which of the following syntax is used to convert any variable to its original type?
30 / 50
In how many different ways any-container can be constructed?
31 / 50
What is the difference between begin() and rbegin()?
32 / 50
Which of the following header file is required for forwawrd_list?
33 / 50
Which of the following is the correct syntax of using pair p?
34 / 50
Which of the following(s) can be used to access the first element of a vector v?
35 / 50
How many list sequence containers are provided by STL?
36 / 50
Which function is used to check whether the vector is empty or not?
37 / 50
What is any in C++?
38 / 50
What is the use of fill() function in array class?
39 / 50
Which of the following header file is needed to use vectors in your program?
40 / 50
What is the use of emplace() function?
41 / 50
How the size of a vector increases once it is full?
42 / 50
Which function is used to access the first element of an array class?
43 / 50
Which header file is required to use pair container in your program?
44 / 50
Which header file is required to use get() function?
45 / 50
What is the syntax of printing the first element of an array Arr using get() function?
46 / 50
Which of the following function is used to insert an element at the end of a vector?
47 / 50
Which of the following operations can be performed on a pair?
48 / 50
Which of the following function(s) is/are used to get the size of the array class?
49 / 50
What is a pair?
50 / 50
Which of the following is the correct syntax of accessing the first element of a pair p?
Provide Your Information
Your score is
The average score is 0%
Restart quiz