Sail E0 Webinar

MCQs

Total Questions : 50 | Page 5 of 5 pages
Question 41. Which of the following is mutable object in Python?
  1.    Tuple
  2.    Bool
  3.    Int
  4.    List
 Discuss Question
Answer: Option D. -> List
Question 42. Python uses the same symbols for the assignment operator as for the equality operator
  1.    True
  2.    False
 Discuss Question
Answer: Option B. -> False
Question 43. Python function names follow the same rules for naming variables
  1.    True
  2.    False
 Discuss Question
Answer: Option A. -> True
Question 44. Which mathematical operator is used to raise five to the second power in python?
  1.    /
  2.    ^
  3.    **
  4.    none of the above
 Discuss Question
Answer: Option C. -> **
Question 45. What will be the output of the following python function
  1.    True
  2.    False
  3.    2
  4.    -4
 Discuss Question
Answer: Option B. -> False
Question 46. Which of the following is not a python built in exception
  1.    nameerror
  2.    ioerror
  3.    assignmenterror
  4.    valueerror
 Discuss Question
Answer: Option C. -> assignmenterror
Question 47. What is the type of inf in python
  1.    Boolean
  2.    Integer
  3.    Float
  4.    Complex
 Discuss Question
Answer: Option C. -> Float
Question 48. Which of the following is invalid in python
  1.    _a = 1
  2.    __str__ = 1
  3.    Both A & B
  4.    none of the above
 Discuss Question
Answer: Option D. -> none of the above
Question 49. What will be the value of the following python expression
  1.    0
  2.    2
  3.    4
  4.    7
 Discuss Question
Answer: Option B. -> 2
Question 50. 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
 Discuss Question
Answer: Option A. -> unlimited length

Latest Videos

Latest Test Papers