Logo

Python Questions Set 74:

Quiz Mode

print(chr(ord('b')+1))

1
2
3
4

Solution:

 Which of the following is an invalid statement? 

1
2
3

Solution:

Which of the following data types can be used as a stack?

1
2
3
4

Solution:

 

What Relationship Is Appropriate For Fruit And Papaya?

1
2
3

Solution:

What core data type is used to store values in terms of key and value?

1
2
3
4

Solution:

What is the maximum possible length of an identifier?

1
2
3
4

Solution:

 What is the output of the following code :

L = ['a','b','c','d']
print "".join(L)

1
2
3
4

Solution:

 

What will be the output of the following Python code?

a=[[]]*3
a[1].append(7)
print(a)

1
2

Solution:

What will be the output of the following Python code?


for i in range(2.0):

    print(i)

1
2
3
4

Solution:

 To retrieve the character at index 3 from string s=”Hello” what command do we execute (multiple answers allowed)? 

1
2

Solution: