Class Hierarchies, Library & Containers Quiz 3

0%
0

Class Hierarchies, Library & Containers Quiz 3

1 / 50

Which of the following is the correct syntax of accessing the first element of a pair p?

2 / 50

What happens if a pair is not initialized?

3 / 50

Which of the following syntax is used to convert any variable to its original type?

4 / 50

How many list sequence containers are provided by STL?

5 / 50

Which exception is thrown if the typecasting is not done properly?

6 / 50

Which type of list a List sequence container implements?

7 / 50

What is the use of fill() function in array class?

8 / 50

What is the use of swap() function in array class?

9 / 50

What is the use of empty() function in array classes?

10 / 50

Which of the following(s) can be used to access the first element of a vector v?

11 / 50

Which header file is required to use any container?

12 / 50

Which of the following is the correct syntax of accessing the second element of a pair p?

13 / 50

What are the vectors?

14 / 50

Which of the following Operator cannot be used with pairs?

15 / 50

What is any in C++?

16 / 50

Which type of list a Forward_list sequence container implements?

17 / 50

Which of the following function is used to insert an element at the end of a vector?

18 / 50

Which of the following header file is needed to use vectors in your program?

19 / 50

Which function is used to access the last element of an array class?

20 / 50

1. What is the difference between get() and at()?

21 / 50

Which of the following(s) is/are the correct way of assigning values to a forward_list f?

22 / 50

What is the syntax of declaraing a forward_list?

23 / 50

Which of the following operations can be performed on a pair?

24 / 50

Which of the following function is used to get the actual number of elements stored in vector?

25 / 50

Pick the correct statement.

26 / 50

What is the syntax of printing the first element of an array Arr using get() function?

27 / 50

Which function is used to swap two vectors?

28 / 50

What is the difference between begin() and cbegin() in vectors?

29 / 50

What is the difference between begin() and rbegin()?

30 / 50

What is the syntax of swap()?

31 / 50

What is the use of type() function in any container?

32 / 50

Which of the following(s) can be used to access the last element of a vector v?

33 / 50

Pick the incorrect statement.

34 / 50

How the list differs from vectors?

35 / 50

Which is the following is syntactically correct for vector v?

36 / 50

Which header file is required to use pair container in your program?

37 / 50

Which of the following function(s) is/are used to get the size of the array class?

38 / 50

Which operator is used to access the first or second element of a pair?

39 / 50

Which header file is required to use get() function?

40 / 50

1. Which of the following is correct way of copying the values of pair p1 into other pair p2?

41 / 50

How the size of a vector increases once it is full?

42 / 50

In how many different ways any-container can be constructed?

43 / 50

What is a pair?

44 / 50

Which of the following is the correct syntax of using pair p?

45 / 50

Which of the following header file is required for forwawrd_list?

46 / 50

Which function is used to check whether the vector is empty or not?

47 / 50

Which function is used to get the total capacity of a vector?

48 / 50

What is the correct syntax of declaring an array class?

49 / 50

Which function is used to access the first element of an array class?

50 / 50

What is the use of emplace() function?

Provide Your Information

Your score is

The average score is 0%

0%

Qunoot e Nazilah
Dua e Hajat
4 Qul
6 Kalma
Dua-e-Akasha
Darood Akbar
Surah Fatiha
Dua-e-Ganj Ul Arsh
Dua-e-Jamilah
Ayat-ul-Kursi