Functions Parameters Return

Functions Parameters Return

9th - 12th Grade

20 Qs

quiz-placeholder

Similar activities

Internet 2nd

Internet 2nd

11th Grade

18 Qs

Programming: Which Loop?

Programming: Which Loop?

9th - 12th Grade

20 Qs

Sains Komputer Tingkatan 5 - 1.3.1 Menerangkan get logik

Sains Komputer Tingkatan 5 - 1.3.1 Menerangkan get logik

1st Grade - Professional Development

20 Qs

GAD Review - Game Industry

GAD Review - Game Industry

9th - 12th Grade

22 Qs

Scratch

Scratch

9th - 10th Grade

19 Qs

Introducción a las bases de datos

Introducción a las bases de datos

12th Grade

20 Qs

Remidi UTS AIJ

Remidi UTS AIJ

12th Grade

20 Qs

Chapter 7: System life cycle

Chapter 7: System life cycle

9th - 11th Grade

15 Qs

Functions Parameters Return

Functions Parameters Return

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Medium

CCSS
8.F.A.1, 6.EE.A.3, HSF.IF.A.1

Standards-aligned

Created by

Barbara White

Used 1+ 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 is an argument?

A variable passed as a value to a function

A variable passed in from outside the function

Tags

CCSS.8.F.A.1

CCSS.HSF.IF.A.1

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

Tags

CCSS.8.F.A.1

CCSS.HSF.IF.A.1

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

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?