JS Functions

JS Functions

8th Grade

7 Qs

quiz-placeholder

Similar activities

Computer Programming Vocabulary-1

Computer Programming Vocabulary-1

KG - University

11 Qs

Cascading Style Sheets

Cascading Style Sheets

8th - 12th Grade

11 Qs

Quiz 9 (15.09.2021)

Quiz 9 (15.09.2021)

1st - 12th Grade

10 Qs

Technology Week HTG Quiz - Monday

Technology Week HTG Quiz - Monday

7th - 12th Grade

10 Qs

💯 Quiz 1:Work with Fractions in Google Sheets

💯 Quiz 1:Work with Fractions in Google Sheets

8th Grade

10 Qs

ETWINNING SID EVENT 24

ETWINNING SID EVENT 24

1st - 12th Grade

10 Qs

Data Validation

Data Validation

KG - Professional Development

11 Qs

JS Functions

JS Functions

Assessment

Quiz

Computers

8th Grade

Hard

Created by

Manuel Castillo

Used 51+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a global variable scope

the variable can be accessed anywhere inside and outside a function

the variable can be accessed only inside the function

the variable can be accessed only outside the function

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are functions?

It's code that you can use in Javascript

It's where you can put if and else statements

It's a block of code that lets you do a bunch of tasks

It's a block of code that let's you do one specific task

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the difference between an argument and a parameter?

The argument is set when you create the function. The parameter is what you enter when you call the function

The parameter is set when you create the function. The argument is what you enter when you call the function

The argument is set when you create the variable. The parameter is what you enter when you call the function

The parameter is set when you create the variable. The argument is what you enter when you call the function

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a function declaration?

It's when you create the variable

It's when you create the function

It's when you call the variable

It's when you call the function

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will the console output?

Console will return "My car is red"

Console will return "My car is blue"

Console will return "undefined variable"

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will the console output?

"My car is blue."

"My car is red"

Undefined variable

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does it mean to "invoke" a function?

To call a function

To create a function

To call a variable

To code a function

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?

Discover more resources for Computers