JavaScript Basics Quiz

JavaScript Basics Quiz

3rd - 4th Grade

20 Qs

quiz-placeholder

Similar activities

Social Skills Safari 1/31/2024 (LEVEL 3)

Social Skills Safari 1/31/2024 (LEVEL 3)

1st - 5th Grade

15 Qs

Product Knowledge Test (C-Class)

Product Knowledge Test (C-Class)

1st - 3rd Grade

15 Qs

Intro to Genetics

Intro to Genetics

4th - 12th Grade

21 Qs

Frindle: Chapters 1 - 8

Frindle: Chapters 1 - 8

4th - 7th Grade

21 Qs

Job Applications

Job Applications

3rd Grade - Professional Development

15 Qs

Occupational Training

Occupational Training

4th Grade - Professional Development

19 Qs

Short Vowel Sounds

Short Vowel Sounds

KG - 8th Grade

20 Qs

Buying Household Goods

Buying Household Goods

4th Grade - Professional Development

19 Qs

JavaScript Basics Quiz

JavaScript Basics Quiz

Assessment

Quiz

Special Education

3rd - 4th Grade

Practice Problem

Medium

Created by

Ngoc Nguyen

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

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

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 5 pts

What does console.log do?

Runs a function

Outputs text or values to the console screen

Changes a variable

Starts a loop

2.

MULTIPLE CHOICE QUESTION

45 sec • 5 pts

Which line correctly declares a variable called score with a value of 10?

var score = 10;

var score 10;

let = 10 score;

score var = 10;

3.

MULTIPLE CHOICE QUESTION

45 sec • 5 pts

What is the purpose of getNumber("inputBox") in Code.org?

Sets a number in an input box

Retrieves a number from a user’s input box

Creates a new input box

Adds a number to a variable

4.

MULTIPLE CHOICE QUESTION

45 sec • 5 pts

Given the function below, what will be the output if you call greet("Alice")?

function greet(name) {

return "Hello, " + name + "!"; }

"Hello, Alice!"

"Hello, name!"

"Hello, !"

"Alice"

5.

MULTIPLE CHOICE QUESTION

45 sec • 5 pts

What will this code display?

var x = 5;

console.log(x * 2);

2

5

10

"x * 2"

6.

MULTIPLE CHOICE QUESTION

45 sec • 5 pts

What does if (score > 10) check for?

If score is less than 10

If score is equal to 10

If score is more than 10

If score is 10

7.

MULTIPLE CHOICE QUESTION

45 sec • 5 pts

Which line correctly assigns a value to a variable named age?

age = 15;

var age;

let age: 15;

age 15;

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?