PYTHON QUIZ
1 .
What is the output of the following code?
str = "freetime"
print (str[1:3])

Correct Answer : Option (B)

re
  Show Answer
2 .
Is Python case sensitive when dealing with identifiers?

Correct Answer : Option (A)

yes
  Show Answer
3 .
Which of these in not a core data type?

Correct Answer : Option (D)

Class

Explanation : Class is a user defined data type.

  Show Answer
4 .
What is the maximum possible length of an identifier?

Correct Answer : Option (D)

none of the mentioned
  Show Answer
5 .
Which of the following is invalid?

Correct Answer : Option (D)

none of the mentioned

Explanation : All the statements will execute successfully but at the cost of reduced readability.

  Show Answer
6 .
Which one of these is floor division?

Correct Answer : Option (B)

//
  Show Answer
7 .
What is the output of print 0.1 + 0.2 == 0.3?

Correct Answer : Option (B)

False
  Show Answer
8 .
Which of the following is not a complex number?

Correct Answer : Option (C)

k = 2 + 3l
  Show Answer
9 .
What is the answer to this expression, 22 % 3 is?

Correct Answer : Option (C)

1
  Show Answer
10 .
What is the type of inf?

Correct Answer : Option (C)

Float
  Show Answer