Intro to Programming -  Functions

Intro to Programming - Functions

Assessment

Flashcard

Computers

9th - 12th Grade

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

9 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What is a JavaScript function?

Back

A block of code that performs a specific task

2.

FLASHCARD QUESTION

Front

What is the purpose of parameters in a JavaScript function?

Back

To provide input values for the function

3.

FLASHCARD QUESTION

Front

Using functions allows coders to...

Back

fix mistakes more easily, spend less time coding, better organize their code.

4.

FLASHCARD QUESTION

Front

What does “calling” a function mean?

Back

Using your function in your code by writing its name and defining the values of the parameters

5.

FLASHCARD QUESTION

Front

After creating a new function in your code what do you have to do to see the function run?

Back

Call the function in your code

6.

FLASHCARD QUESTION

Front

Which of the following is true regarding naming functions? Options: Function names can be reused multiple times, A function name should be as descriptive as possible to indicate what the function does., Function names should be organized alphabetically, The function name should begin with a number that indicates the order in which it should be executed.

Back

A function name should be as descriptive as possible to indicate what the function does.

7.

FLASHCARD QUESTION

Front

Why are parameters useful when programming?

Back

Parameters allow for more flexible, generalized behaviors in functions.

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?