Standard Libraries Questions and Answers

Practice Mode
Showing 10 of 25 questions
Q21
Which module is used for working with internet protocols and support?
  • A network
  • B socket
  • C inet
  • D protocol
Answer: Option B
Explanation: The socket module provides access to the BSD socket interface for network communication.
Q22
Which module provides tools for working with iterators and generator functions?
  • A generator
  • B iterator
  • C itertools
  • D tools
Answer: Option C
Explanation: The itertools module provides various functions that work on iterators to produce complex iterators.
Q23
Which module provides functions for working with complex numbers?
  • A complex
  • B cmath
  • C numpy
  • D numbers
Answer: Option B
Explanation: The cmath module provides mathematical functions for complex numbers.
Q24
Which module provides functions for deep copy operations?
  • A deepcopy
  • B copy
  • C clone
  • D duplicate
Answer: Option B
Explanation: The copy module provides generic shallow and deep copy operations for Python objects.
Q25
Which module provides functions for working with calendar operations?
  • A cal
  • B calendar
  • C dateutil
  • D time
Answer: Option B
Explanation: The calendar module provides functions related to calendar operations, such as printing calendars for specific months or years.
Questions and Answers for Competitive Exams Various Entrance Test