Menu

Functions - Code Quiz

1. What is the output?

def add(a, b): result = a + b return result answer = add(5, 3) print(answer)
15
53
8
2

2. What is the output?

def area(width, height): return width * height total = area(3, 5) print(total + 1)
36
35
15
16

Log in or sign-up to access the quiz



Don't have a login?

You can still revise this topic