Subroutines

Subroutines

10th Grade

6 Qs

quiz-placeholder

Similar activities

Exceptions

Exceptions

8th Grade - Professional Development

6 Qs

MCQ LC1 Vocabulary

MCQ LC1 Vocabulary

5th - 10th Grade

10 Qs

User Input in Python

User Input in Python

6th - 10th Grade

11 Qs

Ch 5 Practice

Ch 5 Practice

9th - 12th Grade

10 Qs

Code.org Unit 4 Vocabulary

Code.org Unit 4 Vocabulary

9th - 12th Grade

6 Qs

Code.org CSP

Code.org CSP

9th - 12th Grade

6 Qs

Search for Content on Methods in Java

Search for Content on Methods in Java

10th - 12th Grade

11 Qs

Fundamentals of Algorithms

Fundamentals of Algorithms

10th Grade

10 Qs

Subroutines

Subroutines

Assessment

Quiz

Computers

10th Grade

Hard

Created by

Jon Rogers

Used 1+ times

FREE Resource

6 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which of the following are a type of subprogram

Function

Iteration

Selection

Procedure

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which type of subroutine will return a value to the program?

Function

Procedure

Both

Neither

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which type of subroutine can be given a parameter?

Function

Procedure

Both

Neither

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is true for parameters

Parameters are variables you can use anywhere in your program

Parameters can only be strings or numbers

Parameters can only be used in Functions

Parameter names go in the brackets when defining or calling a subroutine

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A function called "calculate" takes two parameters, num1 and num2.

Which is the correct first line of the function?

calculate(num1, num2

function calculate (num1, num2):

function calculate():

function calculate (num1: num2):

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct way to call the calculate function with the numbers 6 and 3

calculate(6,3)

function(calculate)

function calculate(6,3)

def calculate