In Python, which module provides a collection of high-performance data structures like deque and defaultdict?
A. itertools
B. numpy
C. math
D. collections
Answer: Option D
A. itertools
B. numpy
C. math
D. collections
Answer: Option D
Which C++ standard library provides functionalities for containers like vector, list, and map?
A. <utility>
B. <iostream>
C. <vector>
D. <algorithm>
A. itertools
B. numpy
C. math
D. collections
Which Java standard library class is used for implementing a resizable array?
A. ArrayList
B. HashMap
C. LinkedList
D. TreeSet
What is the purpose of the heapq module in Python?
A. To handle mathematical operations.
B. To sort data efficiently.
C. To manage input and output streams.
D. To provide heap queue algorithms.
Join The Discussion