Quiz Discussion

Is Python case sensitive when dealing with identifiers?
Course Name: Python

  • 1] yes
  • 2] no
  • 3] machine dependent
  • 4] none of the mentioned
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 not a complex number?

  • 1] k = 2 + 3j
  • 2] k = complex(2, 3)
  • 3] k = 2 + 3l
  • 4] k = 2 + 3J
Solution
2
Discuss
Which of the following cannot be a variable?
  • 1] __init__
  • 2] in
  • 3] it
  • 4] on
Solution
3
Discuss

Which of the following is incorrect?

  • 1] x = 0b101
  • 2] x = 0x4f5
  • 3] x = 19023
  • 4] x = 03964
Solution
4
Discuss

What is the type of inf?

  • 1] Boolean
  • 2] Integer
  • 3] Float
  • 4] Complex
Solution
5
Discuss
Which of the following is not a keyword?
  • 1] eval
  • 2] assert
  • 3] nonlocal
  • 4] pass
Solution
6
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
7
Discuss
Why are local variable names beginning with an underscore discouraged?
  • 1] they are used to indicate a private variables of a class
  • 2] they confuse the interpreter
  • 3] they are used to indicate global variables
  • 4] they slow down execution
Solution
8
Discuss
Which of the following is an invalid variable?
  • 1] my_string_1
  • 2] 1st_string
  • 3] foo
  • 4] _
Solution
9
Discuss

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

  • 1] +5
  • 2] -11
  • 3] +11
  • 4] -5
Solution
10
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
# Quiz