Python Fundamentals

11.Which keyword is used for function definition?
  • A. define
  • B. function
  • C. def
  • D. fun

def

def

12.What is the output of bool(0)?
  • A. True
  • B. False
  • C. 0
  • D. None

False

False

13.Which one is an immutable data type in Python?
  • A. List
  • B. Set
  • C. Dictionary
  • D. Tuple

Tuple

Tuple

14.How do you create an empty dictionary?
  • A. {}
  • B. []
  • C. dict []
  • D. empty{}

{}

{}

15.What is the output of 'Hello'[::-1]?
  • A. 'Hello'
  • B. 'olleH'
  • C. Error
  • D. 'Hell'

'olleH'

'olleH'