Logo

Python Questions Set 114:

Quiz Mode

Which of the following solution gives an error?

1
2
3
4

Solution:

In Python, the print() function is:

1
2
3
4

Solution:

Which of the following function headers is correct?

1
2
3
4

Solution:

 

What will be the output of the following Python code?

 a={1:5,2:3,3:4}

 a.pop(3)

 print(a) 

1
2
3
4

Solution:

What is the output of the given code?


tuple=('Abekus')

tuple2=(5)

tuple4= tuple + tuple2

print(tuple4)

1
2
3
4
5

Solution:

 The value returned when we use the function isoweekday() is ______ and that for the function weekday() is ________ if the system date is 19th June, 2017 (Monday).
 

1
2
3
4

Solution:

 

What will be the output of the following Python code?

 import turtle

 t=turtle.Pen()

 t.forward(100)

 t.left(90)

 t.clear()

 t.position() 

1
2
3
4

Solution:

Which Django management command is used for synchronizing the database state with the current set of models and migrations?

1
2
3
4

Solution:

What is the use of raise?

1
2
3

Solution:

What will be the output of the following Python code snippet?

print([i+j for i in "abc" for j in "def"])

1
2
3
4

Solution: