Quiz 1

Question 1 (single-choice)

Python language is a

  1. language spoken by a tribe in South America.
  2. compiled high-level programming language.
  3. interpreted high-level programming language.
  4. language spoken by Harry Potter and Lord Voldemort.

Question 2 (multi-choice)

High-level interpreted programming languages are translated to machine language

  1. one statement at a time.
  2. as a whole.
  3. so that people can understand them.
  4. so that computers can understand them.

Question 3 (single-choice)

When typed into the Python shell window, the expression 3 + 4 * 5 returns

  1. 35
  2. 23

Question 4 (single-choice)

When typed into the Python shell window, the sequence of statements and expressions
>>> x = 5
>>> x = -2
>>> x + 10
returns

  1. 0
  2. 15
  3. 8
[prev-next-ad1 prev=”https://codewithsara.com/python-with-sara/python-101/u1-starting-with-python/u1l3-first-python-program/” next=”https://codewithsara.com/python-with-sara/python-101/u1-starting-with-python/u1-answers-solutions/”]