PYTHON QUIZ
1 .
What is used to take input from the user in Python?

Correct Answer : Option (C)

input() 
  Show Answer
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. 
  Show Answer
3 .
What error occurs when you execute?
apple = mango​

Correct Answer : Option (B)

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

Correct Answer : Option (A)

<type 'complex'>
  Show Answer
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
  Show Answer
6 .
What is the output of L[2] if L = [1,2,3]?

Correct Answer : Option (B)

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

Correct Answer : Option (A)

sampleTuple = (1,2,3,4,5)
  Show Answer
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]
  Show Answer
9 .
What is the output of the following code?
print(1, 2, 3, 4, sep='*')​

Correct Answer : Option (B)

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

Correct Answer : Option (A)

[2, 3, 4] 
  Show Answer