Search Header Logo

Functions

Authored by Casondra Simons

Computers

9th - 12th Grade

Used 4+ times

Functions
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is it called when a function is called to go to work?

a polite request

invoking

getting older

parameter

2.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

What does a function need to be recursive? Choose 2!

Invoke itself

base case

a return type

an argument

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Where can you find a base case?

in an if statement

in a for loop

in a while loop

in an iterative structure

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why do recursive functions need a base case?

To make them stop

for fun

to loop

to annoy you

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why do recursive functions need to invoke themselves?

To make them stop

for fun

to loop

to annoy you

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In program 1, what is the return type of earlyRelease()?

String

int

void = nothing

boolean

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In program 4, what is the return type of funDay()?

String

int

void = nothing

boolean

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?