Custom Functions in Javascript P5

Custom Functions in Javascript P5

Assessment

Interactive Video

Computers

10th Grade

Medium

Created by

Ryan Paul

Used 1+ times

FREE Resource

6 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the first step in creating a function?

Adding parameters

Writing the word 'function'

Naming the function

Returning a value

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why is it useful to create functions?

They make code longer

They can be reused in different programs

They are only for simple tasks

They are hard to understand

3.

MULTIPLE CHOICE QUESTION

30 sec • Ungraded

Are you enjoying the video lesson?

Yes

No

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the 'compare' function do?

Adds two numbers

Divides two numbers

Checks if one number is greater than another

Multiplies two numbers

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the 'compare' function return if both numbers are equal?

False

The first number

True

The second number

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the benefit of documenting a function?

It changes the function's output

It makes the function run faster

It is not necessary

It helps others understand what the function does