CS1_Unit 5: Functions Test Review

CS1_Unit 5: Functions Test Review

9th - 10th Grade

20 Qs

quiz-placeholder

Similar activities

LA1.C1: Introduction to Small Basic

LA1.C1: Introduction to Small Basic

9th Grade

15 Qs

Аддитивные технологии

Аддитивные технологии

10th - 11th Grade

20 Qs

Latihan PSAS Kelas 9

Latihan PSAS Kelas 9

9th Grade - University

20 Qs

12AIT - All About W3C <3

12AIT - All About W3C <3

10th Grade - University

18 Qs

Advantages and Disadvantages of Collecting Data

Advantages and Disadvantages of Collecting Data

10th Grade

20 Qs

Unit 8 Practice Test For CSP

Unit 8 Practice Test For CSP

9th Grade

16 Qs

AI Checkpoint 1 Revision

AI Checkpoint 1 Revision

9th - 12th Grade

16 Qs

Cyber Security KS4

Cyber Security KS4

8th - 12th Grade

15 Qs

CS1_Unit 5: Functions Test Review

CS1_Unit 5: Functions Test Review

Assessment

Quiz

Computers

9th - 10th Grade

Easy

Created by

VIRENA MERLA

Used 19+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What do you call the condition that stops recursion?

return

base case

stop

recurse

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What keyword is used to halt a function and go back to the calling code?

stop

base case

quit

return

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output when stairs = 0?

Up a step!

No more steps.

Up a step!

No more steps.

0 steps

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Every time you _ a function, the indented statements are run.

return

use

call

print

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the asterisk * do in a function argument?

allows more than one argument to be passed

creates a comment in the argument

assigns a default value to the argument

gives an error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of countdown(3)

4

3

2

1

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which statement is a correct way to call the function?

makeASandwich("strawberry jelly")

makeSandwich("strawberry jelly")

makeAsandwich("strawberry jelly")

makeASandwich(jelly)

Create a free account and access millions of resources

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?