Logo

Python Questions Set 191:

Quiz Mode

Is Python case sensitive?

1
2

Solution:

t = (1,2,3,4)

t[0] = 10

print(t)

1
2
3
4

Solution:

Which class in Django provides metadata about the outer class?

1
2
3
4

Solution:

 

What will be the output of the following Python code?




pickle.HIGHEST_PROTOCOL

1
2
3
4

Solution:

 The statement using and operator results true if _______ 

1
2
3
4

Solution:

Which command is used in the command line to find the version of Python installed on your system?

1
2
3
4

Solution:

  Methods of a class that provide access to private members of the class are called as ______ and ______  

1
2
3
4

Solution:

 Which of the following functions can be used to find the coordinated universal time, assuming that the datetime module has already been imported?
 

1
2
3
4

Solution:

What is the output of the following code:


import re

text="avrhj@rjgn.irg to jngrj@ioer.njvk"

pattern=re.compile("[a-zA-Z0-9]+@[a-zA-Z0-9]+\.[a-zA-Z]+")

result=pattern.search(text)

print(type(result))

1
2
3
4

Solution:

 Which of the following isn’t true about main modules? 

1
2
3
4

Solution: