Quiz Discussion

Which of the following is not a complex number?

Course Name: Python

  • 1] k = 2 + 3j
  • 2] k = complex(2, 3)
  • 3] k = 2 + 3l
  • 4] k = 2 + 3J
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

Which of the following is incorrect?

  • 1] x = 0b101
  • 2] x = 0x4f5
  • 3] x = 19023
  • 4] x = 03964
Solution
2
Discuss
Which of the following is not a keyword?
  • 1] eval
  • 2] assert
  • 3] nonlocal
  • 4] pass
Solution
3
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
4
Discuss
All keywords in Python are in _________
  • 1] lower case
  • 2] UPPER CASE
  • 3] Capitalized
  • 4] None of the mentioned
Solution
5
Discuss

What is the type of inf?

  • 1] Boolean
  • 2] Integer
  • 3] Float
  • 4] Complex
Solution
6
Discuss

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

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

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

  • 1] True
  • 2] False
  • 3] Machine dependent
  • 4] Error
Solution
8
Discuss
Which of the following is true for variable names in Python?
  • 1] unlimited length
  • 2] all private members must have leading and trailing underscores
  • 3] underscore and ampersand are the only two special characters allowed
  • 4] none of the mentioned
Solution
9
Discuss
Which of the following is invalid?
  • 1] _a = 1
  • 2] __a = 1
  • 3] __str__ = 1
  • 4] none of the mentioned
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