Logo

Python Questions Set 80:

Quiz Mode

 

import turtle
t=turtle.Pen()
t.clear()
t.isvisible()

1
2
3
4

Solution:

Which of the following in python is not a predefined datatype 

1
2
3
4

Solution:

Which method is used to add a element to a list at a certain position.

1
2
3
4

Solution:

Which predefined Python function is used to find length of string?

1
2
3
4

Solution:

 

What will be the output of the following Python code?

x=1
def cg():
global x
x=x+1
cg()
x

1
2
3
4

Solution:

 Which of the following commands will create a list? 

1
2
3
4

Solution:

 How many keyword arguments can be passed to a function in a single function call? 

1
2
3
4

Solution:

What will be the output of the following Python code?

a = (0, 1, 2, 3, 4)
b = slice(0, 2)
print(a[b])

1
2
3
4

Solution:

 

What is the output of the following code?

def printLine(text):
 print(text, 'is awesome.')

printLine('Python')

1
2
3
4

Solution: