Python Section 3 - MCQ
1 .
What is used to take input from the user in Python?

Correct Answer : Option (C)

input() 
2 .
What is the name of data type for character in python ?

Correct Answer : Option (D)

python do not have any data type for characters they are treated as string. 
3 .
What error occurs when you execute?
apple = mango​

Correct Answer : Option (B)

NameError
4 .
what should the below code print?
print type(1J)

Correct Answer : Option (A)

<type 'complex'>
5 .
What is the output of the following code?
import re
sentence = 'Learn Python Programming'
test = re.match(r'(.*) (.*?) (.*)', sentence)
print(test.group())
 

Correct Answer : Option (A)

Learn Python Programming
6 .
What is the output of L[2] if L = [1,2,3]?

Correct Answer : Option (B)

7 .
Which of the following is a valid tuple in Python?

Correct Answer : Option (A)

sampleTuple = (1,2,3,4,5)
8 .
Let a = [ 1,2,3,4,5 ] then which of the following is correct ?

Correct Answer : Option (C)

print(a[:100]) => [1,2,3,4,5]
9 .
What is the output of the following code?
print(1, 2, 3, 4, sep='*')​

Correct Answer : Option (B)

1*2*3*4
10 .
What is the output of the following code?
numbers = [2, 3, 4]
print(numbers)

Correct Answer : Option (A)

[2, 3, 4]