Python Fundamentals

6.What is the output of 10 // 3 in Python?
  • A. 3.33
  • B. 3
  • C. 4
  • D. Error

3

3

7.Which of the following is NOT a Python data type?
  • A. str
  • B. list
  • C. array
  • D. dict

array

array

8.What will type([]) return?
  • A. <class 'list'>
  • B. <class 'tuple'>
  • C. <class 'dict'>
  • D. <class 'array'>

<class 'list'>

<class 'list'>

9.Which of these statements will cause an error?
  • A. x = 5
  • B. print("Hello")
  • C. if x == 5 print(x)
  • D. x = "5"

if x == 5 print(x)

if x == 5 print(x)

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

False

False