Javascript Quiz 1

Javascript Quiz 1

9th Grade

9 Qs

quiz-placeholder

Similar activities

Начало программирования

Начало программирования

9th - 12th Grade

10 Qs

LÀM QUEN VỚI CHƯƠNG TRÌNH VÀ NGÔN NGỮ LẬP TRÌNH - 2

LÀM QUEN VỚI CHƯƠNG TRÌNH VÀ NGÔN NGỮ LẬP TRÌNH - 2

8th - 12th Grade

10 Qs

Основы языка Паскаль

Основы языка Паскаль

7th - 9th Grade

10 Qs

Python Ch 1

Python Ch 1

5th Grade - University

10 Qs

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

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

1st - 12th Grade

11 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

Java Script 1.3. Циклы

Java Script 1.3. Циклы

1st - 12th Grade

11 Qs

CS50 IDE

CS50 IDE

9th - 12th Grade

9 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

Number()

Converts text to a number

let

tag used to write javascript in an html webpage

alert()

the starting keyword to create a variable

prompt()

Displays a pop up information box

<script> tag

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