Unit 7 - Functions and Parameters Review

Unit 7 - Functions and Parameters Review

Assessment

Flashcard

Computers

9th - 12th Grade

Hard

Created by

Quizizz Content

FREE Resource

Student preview

quiz-placeholder

17 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What is an argument?

Back

A variable passed as a value to a function

2.

FLASHCARD QUESTION

Front

What is a parameter?

Back

A variable passed in from outside the function.

3.

FLASHCARD QUESTION

Front

What is the parameter of this function quadrupleNumber(x){ var quadX = 4 * x; println(quadX); }

Back

x

4.

FLASHCARD QUESTION

Front

Why do we write functions?

Back

Make our code easier to understand by giving a readable name to a group of instructions, Avoid writing repeated code, Make our code reusable.

5.

FLASHCARD QUESTION

Front

Is it very important to pass parameters to functions in the proper order?

Back

True

6.

FLASHCARD QUESTION

Front

What are the parameters of the printNumbers function? function printNumbers(first, second, third){ println(first); println(second); println(third); }

Back

first, second, third

7.

FLASHCARD QUESTION

Front

Which statement allows us to return values from functions? Options: break, if, return, function

Back

return

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?