Module Basics
Qus. 1 : Which statement is correct to import all modules from the package ?
- From package import all
- From package import *
- From package include all
- From package include *
- .pym
- .pymodule
- module
- .py
- Standard Input
- Standard Output
- Standard Errors
- All of the mentioned
- import
- include
- both (A) and (B)
- none of the above
- Text file
- Binary file
- Both (A) and (B)
- None of these
- .
- *
- ->
- &
- .module
- .py
- both a & b
- All of the above
- _
- &
- %
- None of the above
- Denoted by triple quotes for providing the specification of certain program elements
- Design and implementation of specific functionality to be incorporated into a program
- Defines the specification of how it is to be used
- Any program that reuses code
- (3,1)
- (4,2)
- (5,7)
- (1,3)
- Return the name of the user logged in to the terminal
- Return the email of the user logged in to the terminal
- Return the login time when user logged in to the terminal
- None of the above
- .mod
- .module
- .py
- .python
Programs
python program to generate 3 random integers between 100 and 999 which is divisible by 5
python program to generate 6 digit random secure OTP between 100000 to 999999
python program to generate 6 random numbers and then print their mean median and mode
python program to print the calendar of given month and year
python program to print the calendar of given year