Logo

Python Questions Set 59:

Quiz Mode

s1 = {1, 2, 3}

s1.issubset(s1)

1
2
3
4

Solution:

______() method is used to get the key-value from the dictionary.

Solution:

___________ module formats paragraph of text to fit a given screen width.

Solution:

 What will be the value of x in the following Python expression? 

 

x>>2=2

1
2
3
4

Solution:

Which of the following variable names is invalid in Python?

1
2
3
4

Solution:

Which of the following Python statements can reverse the list l=[1,3,6,2,4,8,14]?

1
2
3
4

Solution:

The 0x prefix means that the number is represented in which number system?

1
2
3
4

Solution:

  The function divmod(a,b), where both ‘a’ and ‘b’ are integers is evaluated as:
 

1
2
3
4

Solution:

What will the following code print?

from datetime import datetime

print(datetime.now())

1
2
3
4

Solution:

 

Which Of The Following Statements Is True?

1
2
3
4

Solution: