JavaScript Functions and Scope

JavaScript Functions and Scope

9th - 12th Grade

20 Qs

quiz-placeholder

Similar activities

Javascript Functions

Javascript Functions

10th Grade

25 Qs

Subroutines - Procedures & Functions

Subroutines - Procedures & Functions

9th - 12th Grade

20 Qs

AP CSP Unit 5 Ch 1 Quiz

AP CSP Unit 5 Ch 1 Quiz

9th - 12th Grade

21 Qs

XII  Csc Unit 1 Reduced one word

XII Csc Unit 1 Reduced one word

12th Grade

15 Qs

C++

C++

9th Grade - University

20 Qs

Python Functions

Python Functions

12th Grade

15 Qs

C++ Functions

C++ Functions

10th Grade - University

20 Qs

12 CSC ATAR - programming skills and concepts

12 CSC ATAR - programming skills and concepts

12th Grade

20 Qs

JavaScript Functions and Scope

JavaScript Functions and Scope

Assessment

Quiz

9th - 12th Grade

Easy

Used 60+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?