This test is run by .
Note that your final mark will not be saved in the system.
Note that your final mark will not be saved in the system.
Data Structures / Structured Programming Typeit
Target Level
4-5
Running Total
0
0%
Attempt
1 of 3
Type the correct answers into the spaces. Fill all the spaces before clicking ‘Check Answers!’
There are two types of subroutine you should be familiar with.
Complete the correct structure for the subroutines detailed below.
A) This subroutine takes in two parameters a and b, multiplies them and prints the total. B) This subroutine takes in two parameters a and b, finds the average of the two values and outputs the result to the main program.
multiply_nums
total = a * b
(total)
average_nums
avg = (a + b)/2
avg