In Python, which module provides a set of functions for functional programming, such as map and filter?
A. collections
B. itertools
C. math
D. functools
Answer: Option D
A. collections
B. itertools
C. math
D. functools
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