--:--









Quiz for Containers list

Course: C++ Language | Subject: Unit 11 | Topic: The Standard Template Library (STL)



Logo

Q1: What type of container is list in STL?

Logo

Q2: Which operation is efficient with list?

Logo

Q3: What is the time complexity to access the nth element in a list?

Logo

Q4: Which STL list method removes the last element?

Logo

Q5: Which STL list method removes the first element?

Logo

Q6: Does STL list support random access iterators?

Logo

Q7: What is the default underlying data structure of list?

Logo

Q8: Which method is used to insert elements at a specified position in list?

Logo

Q9: What does the splice() method do in a list?

Logo

Q10: What is the complexity of inserting an element in a list?

Logo

Q11: Which method removes all elements from the list?

Logo

Q12: What happens when you call remove(val) on a list?

Logo

Q13: Which STL container allows fast insertion/removal anywhere but slow random access?

Logo

Q14: Which iterator category does list provide?

Logo

Q15: Which of the following is NOT supported by STL list?

Logo

Q16: Which method in list sorts the elements?

Logo

Q17: Can STL list contain duplicate elements?

Logo

Q18: Which method reverses the elements in the list?

Logo

Q19: Which of these containers is best suited for frequent insertion/deletion in the middle?

Are you ready to start test? Set your time limit