Logo

Python Questions Set 30:

Quiz Mode

 Python was developed by ---------------.

Solution:

Which of the following is not a Python keyword?

1
2
3
4

Solution:

  The output of the functions len(“abc”) and sys.getsizeof(“abc”) will be the same.
 

1
2

Solution:

If a function does not return a value then what is its default value in shell ?

1
2
3
4

Solution:

Which Python list method is used to remove all elements from the list?

1
2
3
4

Solution:

 Operators with the same precedence are evaluated in which manner? 

1
2
3
4

Solution:

  Which of the following functions can be used to make the arrow black? 

1
2
3
4

Solution:

Find the output of the following code:


from math import *

try:

    x=sqrt(9+7)

    print(x)

except TypeError:

    print("TypeError")

except :

    print("Error")


Solution:

  Which of the following lines of code will not show a match? 

1
2
3
4

Solution:

Which of the following options will print the string hello-how-are-you?

1
2
3
4

Solution: