Logo

Python Questions Set 183:

Quiz Mode

What is the return value of trunc()? 

1
2
3
4

Solution:

Keywords in python are?

1
2
3
4

Solution:

What data type is the object L = [1, 23, 'hello', 1]?

1
2
3
4

Solution:

If ABC is a list, how do you find the last element of it?

1
2
3
4

Solution:

Which of the following programming languages is interpreted rather than compiled?

1
2
3
4

Solution:

Which of the following is an invalid variable name in Python?

1
2
3
4
5

Solution:

Which of the following results in a Syntax Error?

1
2
3
4

Solution:

 Which of the following functions results in an error? 

1
2
3
4

Solution:

 

What will be the output of the following Python code?


 d = {0: 'a', 1: 'b', 2: 'c'}

 for x, y in d.items():  

   print(x, y) 

1
2
3
4

Solution: