--:--









Quiz for Introduction to STL components

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



Logo

Q1: Which of the following is NOT a component of the STL?

Logo

Q2: What does the STL provide for managing collections of data?

Logo

Q3: Which STL component defines methods to traverse elements in a container?

Logo

Q4: Which STL component performs operations like sorting and searching?

Logo

Q5: Which STL container allows fast access by key?

Logo

Q6: Which of the following is a sequence container in STL?

Logo

Q7: Which iterator type supports moving only forward?

Logo

Q8: Which STL component is a function object that can be passed to algorithms?

Logo

Q9: Which container allows duplicate keys and sorts automatically?

Logo

Q10: Which container provides constant time average complexity for insertions and lookups?

Logo

Q11: Which STL algorithm is used to sort elements?

Logo

Q12: Which iterator allows random access to elements?

Logo

Q13: What is the default sorting criterion for STL containers like set?

Logo

Q14: Which component of STL manages memory allocation?

Logo

Q15: Which STL container is best suited for implementing a stack?

Logo

Q16: Which STL container maintains insertion order and allows fast access?

Logo

Q17: Which of the following algorithms searches for an element?

Logo

Q18: What is the primary purpose of STL?

Logo

Q19: Which STL container is associative and ordered?

Are you ready to start test? Set your time limit