Practice Web Design JavaScript Quiz

Practice Web Design JavaScript Quiz

12th Grade

11 Qs

quiz-placeholder

Similar activities

แบบทดสอบหลังเรียน เรื่อง การใช้ภาพอินโฟกราฟิก

แบบทดสอบหลังเรียน เรื่อง การใช้ภาพอินโฟกราฟิก

12th Grade

10 Qs

Threats to Data

Threats to Data

9th - 12th Grade

11 Qs

1.1.1 The structure and function of the processor

1.1.1 The structure and function of the processor

11th Grade - University

15 Qs

COMPUTER PROGRAMMING Q2_FLOWCHART (2 points each)

COMPUTER PROGRAMMING Q2_FLOWCHART (2 points each)

11th - 12th Grade

10 Qs

Basics of spreadsheet

Basics of spreadsheet

12th Grade

15 Qs

Dyski

Dyski

7th - 12th Grade

10 Qs

Stepwise Refinement

Stepwise Refinement

11th - 12th Grade

13 Qs

Python List

Python List

4th Grade - University

15 Qs

Practice Web Design JavaScript Quiz

Practice Web Design JavaScript Quiz

Assessment

Quiz

Computers

12th Grade

Practice Problem

Hard

Created by

Stephen Franz

FREE Resource

AI

Enhance your content in a minute

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

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What keyword do you need to use to define a variable in JavaScript?

variable
int
let
x

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the proper function to call to print to the console?

write("Your Message");
console.log("Your Message");
print("Your Message");
log("Your Message");
console.print("Your Message");

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What function do you need to call to ask the user of the program to enter text?

prompt()
console.log()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The following program results in an error when run. Choose the option below that will fix it and result in the message, “Greetings!” to be printed to the screen.function main() { consolelog(Greetings!);}main();

Add quotes around the message, Greetings!.
Add a period in between the words console and log.
Change consolelog to print.
Both options 1 and 2 need to be addressed in order to print the message to the screen.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is printed to the screen in the program below?let hobby = "bird watching";document.write("I like to go " + hobby);

I like to go bird watching
I like to go hobby
I like to go + hobby
"I like to go " + hobby

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the options below is a correct way to declare a variable and assign it a value?

let amount = 4;
let amount; amount = 4;
Both options A and B are valid ways to declare a variable and assign it a value.
Neither options A or B are valid ways to declare a variable and assign it a value

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why do we write functions?

To make our code easier to understand by giving a readable name to a group of instructions
To avoid writing repeated code
To make our code reusable
All of the above

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?