Import Model

Qus. 1 : Which module is to be imported for using randint( ) function ?

  1. random
  2. randrange
  3. randomrange
  4. rand
Qus. 2 : Which of the following is false about “from ….. import …… " form of import?

  1. The syntax is: from module name import identifier
  2. This form of import does not import anything
  3. The namespace of imported module becomes part of importing module
  4. The identifiers in module are accessed directly as: identifier
Qus. 3 : Which module in python can be used for working with network socket?

  1. HTTP
  2. urllib
  3. socket
  4. header
Qus. 4 : Which of the following statements are used in Exception Handling in Python?

  1. try
  2. except
  3. finally
  4. All of the above

Programs

python program to generate 3 random integers between 100 and 999 which is divisible by 5

View Solution


python program to generate 6 digit random secure OTP between 100000 to 999999

View Solution


python program to generate 6 random numbers and then print their mean median and mode

View Solution


python program to print the calendar of given month and year

View Solution


python program to print the calendar of given year

View Solution


Latest Current Affairs 2025 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad