Quiz Discussion

What is the output of print 0.1 + 0.2 == 0.3?

Course Name: Python

  • 1] True
  • 2] False
  • 3] Machine dependent
  • 4] Error
Solution
No Solution Present Yet

Top 5 Similar Quiz - Based On AI&ML

Quiz Recommendation System API Link - https://fresherbell-quiz-api.herokuapp.com/fresherbell_quiz_api

# Quiz
1
Discuss
All keywords in Python are in _________
  • 1] lower case
  • 2] UPPER CASE
  • 3] Capitalized
  • 4] None of the mentioned
Solution
2
Discuss
Which of the following is not a keyword?
  • 1] eval
  • 2] assert
  • 3] nonlocal
  • 4] pass
Solution
3
Discuss
Which of the following is an invalid variable?
  • 1] my_string_1
  • 2] 1st_string
  • 3] foo
  • 4] _
Solution
4
Discuss

What does ~~~~~~5 evaluate to?

  • 1] +5
  • 2] -11
  • 3] +11
  • 4] -5
Solution
5
Discuss
What is the maximum possible length of an identifier?
  • 1] 31 characters
  • 2] 63 characters
  • 3] 79 characters
  • 4] none of the mentioned
Solution
6
Discuss

What is the result of cmp(3, 1)?

  • 1] 1
  • 2] 0
  • 3] True
  • 4] False
Solution
7
Discuss

What does ~4 evaluate to?

  • 1] -5
  • 2] -4
  • 3] -3
  • 4] +3
Solution
8
Discuss
Which of the following cannot be a variable?
  • 1] __init__
  • 2] in
  • 3] it
  • 4] on
Solution
9
Discuss

Which of the following is an invalid statement?

  • 1] abc = 1,000,000
  • 2] a b c = 1000 2000 3000
  • 3] a,b,c = 1000, 2000, 3000
  • 4] a_b_c = 1,000,000
Solution
10
Discuss
Is Python case sensitive when dealing with identifiers?
  • 1] yes
  • 2] no
  • 3] machine dependent
  • 4] none of the mentioned
Solution
# Quiz