Menu

Using Subroutines - Quiz

1. What is the purpose of subroutines in programming?

To simplify and organize code
To reduce the size of the code
To make the code run faster
To add more colors to the graphics

2. What is the correct way to define a subroutine in Python?

subroutine subroutine_name():
def subroutine_name():
define subroutine_name()
function subroutine_name():

Log in or sign-up to access the quiz



Don't have a login?

You can still revise this topic