Search Header Logo

JavaScript Functions and Scope

9th - 12th Grade

Used 60+ times

JavaScript Functions and Scope
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When too many variables exist in a namespace or variable names are reused.

Local Variables

Identifier

Scope Pollution

Parameter

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Statements that exist within curly braces.

Function

Identifier

Scope Pollution

Blocks

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The space in our code that contains globally scoped information.

Global Namespace

Identifier

Scope Pollution

Blocks

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Variables that exist within global scope.

Global Namespace

Argument

Global Variables

Blocks

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Allow functions to accept input and perform a task using the inputs.

Global Namespace

Parameter

Argument

Blocks

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Allow parameters to have a pre-determined value in case there is no argument passed into the function or if the argument is undefined when called.

Global Namespace

Parameter

Argument

Default Parameters

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A reusable block of code that groups together a sequence of statements to perform a specific task.

Function

Identifier

Argument

Blocks

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?