Table of Contents
What is a Python Module? An Introduction to Python's Modular Programming
🔒 Please log in to unlock this course.
MCQ Section
MCQ 1
What does the following statement do? import random
Locked. Enroll to open this MCQ.
MCQ 2
What does the following statement do? import keyword, sys
Locked. Enroll to open this MCQ.
MCQ 3
What will be the output after the following statements? import random as rd print(rd.randint(4,7))
Locked. Enroll to open this MCQ.
MCQ 4
What will be the output after the following statements? import random as rd print(rd.random())
Locked. Enroll to open this MCQ.
MCQ 5
What will be the output after the following statements? from random import * x = [0, 2, 4, 6, 8,…
Locked. Enroll to open this MCQ.
MCQ 6
Which of the following can be a possible output after the following statements? from random import…
Locked. Enroll to open this MCQ.
MCQ 7
What does the following statements do? import sys print(sys.version)
Locked. Enroll to open this MCQ.
MCQ 8
What does the following statements do? import sys print(sys.executable)
Locked. Enroll to open this MCQ.
MCQ 9
What does the following statements do? import keyword print(keyword.kwlist)
Locked. Enroll to open this MCQ.
MCQ 10
What will be the output after the following statements? import math print(math.floor(67.3))
Locked. Enroll to open this MCQ.
MCQ 11
What will be the output after the following statements? import math print(math.ceil(21.4))
Locked. Enroll to open this MCQ.
MCQ 12
What will be the output after the following statements? import math print(math.sqrt(4))
Locked. Enroll to open this MCQ.
MCQ 13
What will be the output after the following statements? import math print(math.pow(3,2))
Locked. Enroll to open this MCQ.
MCQ 14
What does the following statements do? import datetime print(datetime.datetime.today())
Locked. Enroll to open this MCQ.
MCQ 15
What does the following statements do? from datetime import *…
Locked. Enroll to open this MCQ.
MCQ 16
What does the following statements do? from datetime import *…
Locked. Enroll to open this MCQ.
MCQ 17
What does the following statements do? from datetime import * print(datetime.today().strftime('%A'))
Locked. Enroll to open this MCQ.
MCQ 18
What does the following statements do? from datetime import * print(datetime.today().strftime('%B'))
Locked. Enroll to open this MCQ.
MCQ 19
What does the following statements do? from datetime import * print(datetime.today().strftime('%d'))
Locked. Enroll to open this MCQ.
MCQ 20
What does the following statements do? from datetime import * print(datetime.today().strftime('%c'))
Locked. Enroll to open this MCQ.
MCQ 21
What does the following statements do? from datetime import * print(datetime.today().strftime('%f'))
Locked. Enroll to open this MCQ.
MCQ 22
What does the following statements do? from datetime import * print(datetime.today().strftime('%I'))
Locked. Enroll to open this MCQ.
MCQ 23
What does the following statements do? from datetime import * print(datetime.today().strftime('%H'))
Locked. Enroll to open this MCQ.
MCQ 24
What does the following statements do? from datetime import * print(datetime.today().strftime('%j'))
Locked. Enroll to open this MCQ.
MCQ 25
What does the following statements do? from datetime import * print(datetime.today().strftime('%M'))
Locked. Enroll to open this MCQ.
MCQ 26
What does the following statements do? from datetime import * print(datetime.today().strftime('%m'))
Locked. Enroll to open this MCQ.
MCQ 27
What does the following statements do? from datetime import * print(datetime.today().strftime('%p'))
Locked. Enroll to open this MCQ.
MCQ 28
What does the following statements do? from datetime import * print(datetime.today().strftime('%S'))
Locked. Enroll to open this MCQ.
MCQ 29
What does the following statements do? from datetime import * print(datetime.today().strftime('%W'))
Locked. Enroll to open this MCQ.
MCQ 30
What does the following statements do? from datetime import * print(datetime.today().strftime('%w'))
Locked. Enroll to open this MCQ.
MCQ 31
What does the following statements do? from datetime import * print(datetime.today().strftime('%x'))
Locked. Enroll to open this MCQ.
MCQ 32
What does the following statements do? from datetime import * print(datetime.today().strftime('%X'))
Locked. Enroll to open this MCQ.
MCQ 33
What does the following statements do? from datetime import * print(datetime.today().strftime('%y'))
Locked. Enroll to open this MCQ.
MCQ 34
What does the following statements do? from datetime import * print(datetime.today().strftime('%Y'))
Locked. Enroll to open this MCQ.
MCQ 35
What does the following statements do? from datetime import * print(datetime.today().strftime('%Z'))
Locked. Enroll to open this MCQ.
MCQ 36
What does the following statements do? from datetime import * print(datetime.today().strftime('%z'))
Locked. Enroll to open this MCQ.
MCQ 37
What does the following statements do? from datetime import * print(datetime.today().strftime('%a'))
Locked. Enroll to open this MCQ.
MCQ 38
What does the following statements do? from datetime import * print(datetime.today().strftime('%b'))
Locked. Enroll to open this MCQ.
MCQ 39
What does the following statements do? from time import * print(time())
Locked. Enroll to open this MCQ.
MCQ 40
What does the following statements do? from time import * sleep(3)
Locked. Enroll to open this MCQ.
MCQ 41
What is the name of Python's built-in module for regular expressions?
Locked. Enroll to open this MCQ.
MCQ 42
What is the name of Python's built-in module for delimited files?
Locked. Enroll to open this MCQ.
MCQ 43
What is the name of Python's built-in module for basic date and time types?
Locked. Enroll to open this MCQ.
MCQ 44
What is the name of Python's built-in module for email related tasks?
Locked. Enroll to open this MCQ.
MCQ 45
What is the name of Python's built-in module for reading passwords?
Locked. Enroll to open this MCQ.
MCQ 46
What is the name of Python's built-in module for IPv4/IPv6 manipulation?
Locked. Enroll to open this MCQ.
MCQ 47
What is the name of Python's built-in module for encoding/decoding JSON format?
Locked. Enroll to open this MCQ.
MCQ 48
What is the name of Python's built-in module for Python keywords?
Locked. Enroll to open this MCQ.
MCQ 49
What is the name of Python's built-in module for mathematical functions?
Locked. Enroll to open this MCQ.
MCQ 50
What is the name of Python's built-in module for operating system interfaces?
Locked. Enroll to open this MCQ.
MCQ 51
What is the name of Python's built-in module for data pretty printer?
Locked. Enroll to open this MCQ.
MCQ 52
What is the name of Python's built-in module for generating pseudo- random numbers?
Locked. Enroll to open this MCQ.
MCQ 53
What is the name of Python's built-in module for general purpose event scheduler?
Locked. Enroll to open this MCQ.
MCQ 54
What is the name of Python's built-in module for high level file operations?
Locked. Enroll to open this MCQ.
MCQ 55
What is the name of Python's built-in module for low level networking interface?
Locked. Enroll to open this MCQ.
MCQ 56
What is the name of Python's built-in module for SQLite databases?
Locked. Enroll to open this MCQ.
MCQ 57
What is the name of Python's built-in module for TLS/SSL wrapper for socket objects?
Locked. Enroll to open this MCQ.
MCQ 58
What is the name of Python's built-in module for mathematical statistics functions?
Locked. Enroll to open this MCQ.
MCQ 59
What is the name of Python's built-in module for subprocess management?
Locked. Enroll to open this MCQ.
MCQ 60
What is the name of Python's built-in module for Python's configuration information?
Locked. Enroll to open this MCQ.
MCQ 61
What is the name of Python's built-in module for telnet client class?
Locked. Enroll to open this MCQ.
MCQ 62
What is the name of Python's built-in module for generating temporary files and directories?
Locked. Enroll to open this MCQ.
MCQ 63
What is the name of Python's built-in module for thread based parallelism?
Locked. Enroll to open this MCQ.
MCQ 64
What is the name of Python's built-in module for time access and conversions?
Locked. Enroll to open this MCQ.
MCQ 65
What is the name of Python's built-in module for working with calendars?
Locked. Enroll to open this MCQ.
MCQ 66
What is the name of Python's built-in module for measuring execution time of code snippets?
Locked. Enroll to open this MCQ.
MCQ 67
What is the name of Python's built-in module for interface to Tcl/Tk for graphical user interfaces?
Locked. Enroll to open this MCQ.
MCQ 68
What is the name of Python's built-in module for simple educational graphical applications?
Locked. Enroll to open this MCQ.
MCQ 69
What is the name of Python's built-in module for url handling?
Locked. Enroll to open this MCQ.
MCQ 70
What is the name of Python's built-in module for interface to WAV sound format?
Locked. Enroll to open this MCQ.
MCQ 71
What is the name of Python's built-in module for web browser controlller?
Locked. Enroll to open this MCQ.
MCQ 72
What is the name of Python's built-in module for xml processing?
Locked. Enroll to open this MCQ.
MCQ 73
What is the name of Python's built-in module for reading and writing ZIP archive files?
Locked. Enroll to open this MCQ.
MCQ 74
What is the name of Python's built-in module for running Python scripts via CGI?
Locked. Enroll to open this MCQ.
MCQ 75
What is the name of Python's built-in module for mathematical functions for complex numbers?
Locked. Enroll to open this MCQ.
MCQ 76
What is the name of Python's built-in module for conversions between color systems?
Locked. Enroll to open this MCQ.
MCQ 77
What is the name of Python's built-in module for shallow and deep copy operations?
Locked. Enroll to open this MCQ.
MCQ 78
What is the name of Python's built-in module for comparing files?
Locked. Enroll to open this MCQ.
MCQ 79
What is the name of Python's built-in module for FTP protocol client?
Locked. Enroll to open this MCQ.
MCQ 80
What is the name of Python's built-in module for unix style pathname pattern expansion?
Locked. Enroll to open this MCQ.
MCQ 81
What is the name of Python's built-in module for html manipulation?
Locked. Enroll to open this MCQ.
MCQ 82
What will be the output after the following statements? import copy x = [5, 4, 3, 2, 1] y =…
Locked. Enroll to open this MCQ.
MCQ 83
What will be the output after the following statements? import copy x = [5, 4, 3, 2, 1] y =…
Locked. Enroll to open this MCQ.
MCQ 84
What will be the output after the following statements? import copy x = [5, 4, 3, 2, 1] y = [7, 8,…
Locked. Enroll to open this MCQ.
MCQ 85
What will be the output after the following statements? import copy x = [5, 4, 3, 2, 1] y = [7, 8,…
Locked. Enroll to open this MCQ.
Get Python Programming Language updates by email
Short, practical lessons and course updates from Rumman Ansari. No spam.