Search Header Logo

Javascript Quiz 1

Authored by Portia Morrell

Computers

9th Grade

Used 26+ times

Javascript Quiz 1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

9 questions

Show all answers

1.

MATCH QUESTION

1 min • 5 pts

Match the command to the right definition

Displays a pop up information box

alert()

tag used to write javascript in an html webpage

prompt()

Gets user input

<script> tag

the starting keyword to create a variable

let

Converts text to a number

Number()

2.

DRAG AND DROP QUESTION

1 min • 3 pts

Complete the code to type in your favorite weather:

​ (a)   ​ (b)   = ​ (c)   ("What is your favorite type of weather?")

let
weather
prompt
alert
document.writeln

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If I want to display a message as a pop up, what command should I use?

alert()

prompt()

document.writeln()

print()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If I want to display a message on the webpage, what command should I use?

alert()

prompt()

document.writeln()

print()

5.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Media Image

Why doesn't this code work?

Check all that apply.

this program works just fine

there is no variable called name

you forgot to create the variable name

you forgot set the variable name to the value of the prompt()

6.

DROPDOWN QUESTION

1 min • 5 pts

Complete the code to display on the webpage:

let ​ (a)   = ​ (b)   ("What is your favorite animal?")

​ (c)   (​ (d)   + ​ (e)   )

animal
prompt
document.writeln
" are interesting creatures!"
alert
variable

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which command is used to activate/trigger the button to run the enterName function?

enterName()

button

onclick

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?