Embercode
✕
Flowcharts and PseudocodeQuick quiz

Trace tables for calls

8 questions. Covers Trace tables for calls.

Questions 1 to 5 of 8

  1. 1. What does this program print? ``python def double(x): return x * 2 def quad(x): return double(double(x)) print(quad(5)) ``
  2. 2. What does this program print? ``python def tax_for(price): return round(price * 0.18, 2) def price_with_tax(price): tax = tax_for(price) return round(price + tax, 2) print(price_with_tax(200)) ``
  3. 3. What does this program print? ``python def add_bonus(points): points = points + 10 return points score = 5 add_bonus(score) print(score) ``
  4. 4. In a trace table for calls, the value that a finished call sends back to its caller is called the ___.

    Type your answer.

  5. 5. The calls that have started but have not yet returned form a ___.

    Type your answer.

5 question(s) left on this page.

Typed answers ignore extra spaces and, for most questions, capital letters.