Sail E0 Webinar

MCQs

Total Questions : 50 | Page 2 of 5 pages
Question 11. What is the answer of this expression, 22 % 3 is?
  1.    7
  2.    1
  3.    0
  4.    5
 Discuss Question
Answer: Option B. -> 1
Question 12. Which of the operators do we use if we want at least one condition to be true?
  1.    and
  2.    or
  3.    else
  4.    not
 Discuss Question
Answer: Option B. -> or
Question 13. Which of the following are true of Python dictionaries:
  1.    Dictionaries can be nested to any depth.
  2.    Dictionaries are accessed by key.
  3.    All the keys in a dictionary must be of the same type.
  4.    Dictionaries are mutable.
 Discuss Question
Answer: Option C. -> All the keys in a dictionary must be of the same type.
Question 14. Which symbol do we use if we want to add a comment to our code?
  1.    @
  2.    #
  3.    *
  4.    &
 Discuss Question
Answer: Option B. -> #
Question 15. The number or word we give to a variable
  1.    Value
  2.    Bug
  3.    Information
  4.    Text
 Discuss Question
Answer: Option A. -> Value
Question 16. What is the word (command) used to display numbers and text on the screen?
  1.    print
  2.    input
  3.    output
  4.    command
 Discuss Question
Answer: Option A. -> print
Question 17. What is the code for a STRING in python?
  1.    str
  2.    stri
  3.    stg
 Discuss Question
Answer: Option A. -> str
Question 18. Python allows you to compare strings, but it is not case sensitive
  1.    True
  2.    False
 Discuss Question
Answer: Option B. -> False
Question 19. Which of these is correct Python conditional statement?
  1.    IF answer == "Yes":
  2.    if answer == "Yes"
  3.    if answer == "Yes":
  4.    if answer = "yes":
 Discuss Question
Answer: Option C. -> if answer == "Yes":
Question 20. Which of the following option is not a core data type in the python language?
  1.    Dictionary
  2.    Lists
  3.    Class
  4.    All of above
 Discuss Question
Answer: Option C. -> Class

Latest Videos

Latest Test Papers