Javascript Quiz 1

Javascript Quiz 1

9th Grade

9 Qs

quiz-placeholder

Similar activities

MOAC Word 2016 Lesson 1

MOAC Word 2016 Lesson 1

8th Grade - University

10 Qs

Saving Documents

Saving Documents

7th - 10th Grade

10 Qs

ICT Command

ICT Command

9th Grade

10 Qs

Sains Komputer Tingkatan 5 - 3.3.5 Menggunakan Bahasa

Sains Komputer Tingkatan 5 - 3.3.5 Menggunakan Bahasa

1st Grade - Professional Development

9 Qs

Funkcije u JS

Funkcije u JS

KG - 12th Grade

8 Qs

Java Script 1.2. Взаимодействие с пользователями

Java Script 1.2. Взаимодействие с пользователями

1st - 12th Grade

11 Qs

Javascript DOM

Javascript DOM

9th Grade

11 Qs

Lesson 8 Knowledge Assessment

Lesson 8 Knowledge Assessment

6th Grade - University

10 Qs

Javascript Quiz 1

Javascript Quiz 1

Assessment

Quiz

Computers

9th Grade

Medium

Created by

Portia Morrell

Used 26+ times

FREE Resource

9 questions

Show all answers

1.

MATCH QUESTION

1 min • 5 pts

Match the command to the right definition

Gets user input

prompt()

Displays a pop up information box

alert()

the starting keyword to create a variable

<script> tag

Converts text to a number

Number()

tag used to write javascript in an html webpage

let

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

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which function is called when the button is pressed?

enterName()

lastName()

function

onclick

9.

OPEN ENDED QUESTION

3 mins • 1 pt

In your own words, what is a function?

Evaluate responses using AI:

OFF