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 : What will be the output of the following pseudo code, where &amp; represent AND operation ?<br><pre>Integer a, b, c<br>Set b= 5, a = 1<br>c= a &amp; b<br>Print c</pre>

  1. 1
  2. 3
  3. 5
  4. 7
Qus. 4 : Which module in python can be used for working with network socket?

  1. HTTP
  2. urllib
  3. socket
  4. header

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


CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad