Practice Web Design JavaScript Quiz

Practice Web Design JavaScript Quiz

12th Grade

11 Qs

quiz-placeholder

Similar activities

Test on Python Function

Test on Python Function

11th - 12th Grade

12 Qs

Word 2016 Lesson 1

Word 2016 Lesson 1

9th - 12th Grade

10 Qs

Computer Hardware - CPU & GPU

Computer Hardware - CPU & GPU

7th Grade - University

16 Qs

ICT as Platform for Change

ICT as Platform for Change

11th - 12th Grade

10 Qs

emtech

emtech

12th Grade

10 Qs

Visual Basic 2010

Visual Basic 2010

8th Grade - University

10 Qs

1.2.4. Types of Programming Language

1.2.4. Types of Programming Language

12th Grade

12 Qs

Numpy-1

Numpy-1

9th - 12th Grade

10 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

Create a free account and access millions of resources

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?