Search Header Logo

Unit 7 - Functions and Parameters Review

Authored by Heather Pipech

Computers

9th - 12th Grade

Used 138+ times

Unit 7 - Functions and Parameters Review
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

About

This quiz covers the fundamental concepts of functions and parameters in computer programming, specifically using JavaScript syntax. The content is appropriate for high school computer science students in grades 9-12 who are learning introductory programming concepts. Students need to understand the distinction between parameters (variables defined in a function's declaration) and arguments (actual values passed to functions), recognize function syntax and structure, and comprehend variable scope including global versus local variables. The quiz also assesses knowledge of programming concepts like abstraction, top-down design, APIs, and coordinate systems for graphics programming. Students must demonstrate their ability to read and interpret code, identify function components, understand the purpose of the return statement, and recognize how functions promote code reusability and organization. Created by Heather Pipech, a Computers teacher in the US who teaches grades 9-12. This quiz serves as an excellent review tool for students completing a unit on functions and parameters, helping reinforce essential programming concepts through targeted questions and code analysis. Teachers can deploy this assessment as a formative evaluation to gauge student understanding before moving to more advanced topics, or as a practice exercise to help students prepare for summative assessments. The quiz format makes it ideal for warm-up activities at the beginning of class, homework assignments to reinforce daily lessons, or review sessions before major tests. The content aligns with computer science education standards that emphasize algorithmic thinking, programming fundamentals, and computational problem-solving skills that are central to introductory programming courses.

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an argument?

A variable passed as a value to a function

A variable passed in from outside the function

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an parameter?

A variable passed as a value to a function

A variable passed in from outside the function

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the parameter of this

function quadrupleNumber(x){

var quadX = 4 * x;

println(quadX);

}

x

println

quadX

none

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why do we write functions?

Make our code easier to understand by giving a readable name to a group of instructions

Avoid writing repeated code

Make our code reusable

All of the above

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

It is very important to pass parameters to functions in the proper order

True

False

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the parameters of the printNumbers function?

function printNumbers(first, second, third){

println(first);

println(second);

println(third);

}

first, second, third

x, y, z

println

rintNumbers

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement allows us to return values from functions?

break

if

return

function

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?