Python Module MCQ

Programming Language > Python Programming Language

Test your knowledge of Python modules with this multiple-choice quiz. Our questions cover topics like importing modules, creating and using custom modules, and understanding the role of modules in the Python ecosystem. Whether you're a beginner or an experienced Python developer, these MCQs will help you enhance your understanding and skills in working with modules.


➲ Python Module MCQ - Quiz

  • A Imports the random module
  • B Imports a random module from a list of modules
  • C Imports the random function
  • D imports the directory named random
  • A Imports all the python keywords
  • B Imports the keyword and sys modules
  • C Imports the keyword and sys functions
  • D imports the directories named keyword and sys
  • A A random float value between 4 and 7, including 4 and 7
  • B A random float value between 4 and 7, excluding 4 and 7
  • C A random integer value between 4 and 7, excluding 4 and 7
  • D A random integer value between 4 and 7, including 4 and 7
  • A A random float value between 0 and 1
  • B A random integer value between 0 and 1
  • C A random float value between 0 and 10
  • D A random integer value between 0 and 10
  • A A dictionary containing 3 random keys from list x
  • B Three random integer values between 0 and 10
  • C A list containing 3 random elements from list x
  • D A tuple containing 2 random elements from list x
  • A Displays the Python version
  • B Displays the operating system version
  • C Displays the date
  • D Displays the year
  • A Displays the Python version
  • B Displays the operating system version
  • C Displays the location of the Python interpreter
  • D Displays the date and time
  • A Displays the list of Python modules
  • B Displays a list of all the Python keywords
  • C Displays a random keyword from the Python keywords
  • D Displays the date and time
  • A Displays current date and time
  • B Displays a list of all the hours remaining till midnight
  • C Displays a random time from today's date
  • D Displays today's weekday name
  • A Displays current date and time
  • B Displays a list of all the hours remaining till midnight
  • C Displays current hour of the day
  • D Displays the number of hours in a day
  • A Displays current date and year
  • B Displays current year
  • C Displays the number of months in a year
  • D Displays the number of days in a year
  • A Displays the full month name
  • B Displays the abbreviated month name
  • C Displays the abbreviated day name
  • D Displays the full weekday name
  • A Displays the full weekday name
  • B Displays the full month name
  • C Displays the abbreviated day name
  • D Displays the abbreviated month name
  • A Displays the hour number of 12-hour clock
  • B Displays the date and time appropriate for locale
  • C Displays the day of the month number (from 01 to 31)
  • D Displays the microsecond number (from 0 to 999999)
  • A Displays the date and time appropriate for locale
  • B Displays the microsecond number (from 0 to 999999)
  • C Displays the hour number of 12-hour clock
  • D Displays the hour number of 24-hour clock
  • A Displays the date and time appropriate for locale
  • B Displays the microsecond number (from 0 to 999999)
  • C Displays the hour number of 24-hour clock
  • D Displays the hour number of 12-hour clock
  • A Displays the hour number of 12-hour clock
  • B Displays the minute number from 00 to 59
  • C Displays the hour number of 24-hour clock
  • D Displays the day number of the year from 000 to 366
  • A Displays the minute number from 00 to 59
  • B Displays the hour number of 12-hour clock
  • C Displays the hour number of 24-hour clock
  • D Displays the day number of the year from 000 to 366
  • A Displays the month number from 01 to 12
  • B Displays the minute number from 00 to 59
  • C Displays the day number of the year from 000 to 366
  • D Displays the second number from 00 to 59
  • A Displays the month number from 01 to 12
  • B Displays the second number from 00 to 59
  • C Displays the AM or PM equivalent for locale
  • D Displays the minute number from 00 to 59
  • A Displays the minute number from 00 to 59
  • B Displays the month number from 01 to 12
  • C Displays the second number from 00 to 59
  • D Displays the AM or PM equivalent for locale
  • A Displays the AM or PM equivalent for locale
  • B Displays the minute number from 00 to 59
  • C Displays the month number from 01 to 12
  • D Displays the second number from 00 to 59
  • A Displays the AM or PM equivalent for locale
  • B Displays the second number from 00 to 59
  • C Displays the week number of the year from 00 to 53
  • D Displays the month number from 01 to 12
  • A Displays the weekday number from 0(Sunday) to 6(Saturday)
  • B Displays the AM or PM equivalent for locale
  • C Displays the date appropriate for locale
  • D Displays the week number of the year from 00 to 53
  • A Displays the week number of the year from 00 to 53
  • B Displays the date appropriate for locale
  • C Displays the weekday number from 0(Sunday) to 6(Saturday)
  • D Displays the time appropriate for locale
  • A Displays the time appropriate for locale
  • B Displays the current year as 00 to 99
  • C Displays the current year as 0001 to 9999
  • D Displays the date appropriate for locale
  • A Displays the current year as 0001 to 9999
  • B Displays the timezone name
  • C Displays the time appropriate for locale
  • D Displays the current year as 00 to 99
  • A Displays the current year as 00 to 99
  • B Displays the current year as 0001 to 9999
  • C Displays the timezone name
  • D Displays the timezone offset from UTC as +HHMM or -HHMM
  • A Displays the timezone offset from UTC as +HHMM or -HHMM
  • B Displays the timezone name
  • C Displays the abbreviated month name
  • D Displays the full month name
  • A Displays the current year as 0001 to 9999
  • B Displays the timezone name
  • C Displays the timezone offset from UTC as +HHMM or -HHMM
  • D Displays the full month name
  • A Displays the full month name
  • B Displays the abbreviated month name
  • C Displays the abbreviated day name
  • D Displays the timezone offset from UTC as +HHMM or -HHMM
  • A Displays the full month name
  • B Displays the full day name
  • C Displays the abbreviated day name
  • D Displays the abbreviated month name
  • A Displays the full month name
  • B Displays the abbreviated month name
  • C Displays the full day name
  • D Displays the abbreviated day name
  • A Displays the current time in seconds since the Epoch as a floating point number
  • B Displays the current time in minutes since the Epoch as a floating point number
  • C Displays the current time in seconds since the Epoch as an integer
  • D Displays the current time in minutes since the Epoch as an integer
  • A Pauses the execution of the program by 3 minutes
  • B Pauses the execution of the program by 3 seconds
  • C Displays the current time in seconds since the Epoch as an integer
  • D Displays the current time in minutes since the Epoch as an integer
  • A mailserver
  • B email
  • C message
  • D mail
  • A getpass
  • B password
  • C login
  • D readpass
  • A getip
  • B ipman
  • C ip
  • D ipaddress
  • A string
  • B keyword
  • C stringtest
  • D keytest
  • A maths
  • B mathematics
  • C math
  • D mathfunc
  • A pprint
  • B print
  • C prettyprint
  • D printp
  • A scheduler
  • B eventsched
  • C sched
  • D schedule
  • A shutil
  • B fileutil
  • C futility
  • D fileop
  • A SQL
  • B sqldb
  • C dbase
  • D sqlite3
  • A mathstats
  • B statistics
  • C statmath
  • D statfunc
  • A sub
  • B mansub
  • C submng
  • D subprocess
  • A telnetlib
  • B tellib
  • C tnet
  • D telnet
  • A thread
  • B threadall
  • C threading
  • D thrpar
  • A calendars
  • B calendar
  • C yearcal
  • D calc
  • A urls
  • B urllib
  • C URL
  • D httpurl
  • A browser
  • B browse
  • C webrowser
  • D webbrowser
  • A filecmp
  • B cmpfile
  • C compare
  • D filecompare
  • A [[5, 4, 3, 2, 1], [7, 8, 9]]
  • B [[5, 4, 6, 2, 1], [7, 8, 9]]
  • C [5, 4, 6, 3, 2, 1]
  • D [5, 4, 6, 2, 1, 7, 8, 9]
  • A [[5, 4, 3, 2, 1], [7, 8, 9]]
  • B [[5, 4, 6, 2, 1], [7, 8, 9]]
  • C [5, 4, 6, 3, 2, 1]
  • D [5, 4, 6, 2, 1, 7, 8, 9]