Using Subroutines - Quiz

1. What is the purpose of subroutines in programming?

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

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