JS Functions

JS Functions

8th Grade

7 Qs

quiz-placeholder

Similar activities

Revision Quiz 2 - Information Technology

Revision Quiz 2 - Information Technology

7th - 8th Grade

10 Qs

Interesting Bird Facts

Interesting Bird Facts

KG - Professional Development

11 Qs

Tiger Trivia 31-40

Tiger Trivia 31-40

6th - 8th Grade

10 Qs

History of computer

History of computer

6th - 8th Grade

10 Qs

CodeMonkey程式觀念測驗(琢思 201812078)

CodeMonkey程式觀念測驗(琢思 201812078)

3rd - 9th Grade

10 Qs

ICT

ICT

KG - 8th Grade

10 Qs

Programming Lesson 3

Programming Lesson 3

6th - 8th Grade

12 Qs

HARDWARE AND SOFTWARE

HARDWARE AND SOFTWARE

2nd - 10th Grade

10 Qs

JS Functions

JS Functions

Assessment

Quiz

Computers

8th Grade

Hard

Created by

Manuel Castillo

Used 51+ times

FREE Resource

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

Discover more resources for Computers