JavaScript Basics Quiz

Quiz
•
Computers
•
10th Grade
•
Medium
Lamia Saieed
Used 22+ times
FREE Resource
69 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What keyword is used to create a variable in JavaScript?
define
let
var
make
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which code correctly assigns the value 5 to the variable score?
score = let 5;
var score = 5;
set score = 5;
score <- 5;
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which block allows a user to type input in a Design tab element?
label
dropdown
text input
button
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax to declare a variable in JavaScript?
create variable x = 5;
int x = 5;
var x = 5;
x := 5;
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to store a number or string in JavaScript?
define
function
var
input
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the function of setText(id, text)?
Stores text in a variable
Gets text from the screen
Sets text of a UI element
Deletes a text input
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which event type is used to detect a button click in onEvent()?
hover
input
submit
click
Create a free account and access millions of resources
Similar Resources on Wayground
70 questions
Review for Fall Semester Exam - CTE

Quiz
•
8th Grade - University
68 questions
Spreadsheets

Quiz
•
KG - University
68 questions
Computer science Study Guide

Quiz
•
9th - 12th Grade
66 questions
Pascal Basic

Quiz
•
10th Grade
74 questions
Code.org: Fundamentals of Computing Final Exam 2019 - 2020

Quiz
•
7th - 10th Grade
66 questions
User interface 2

Quiz
•
10th Grade
65 questions
Review Materi PAS 1 TIK Gr6

Quiz
•
6th Grade - University
74 questions
Input Output storage and components

Quiz
•
10th - 12th Grade
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz

Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
15 questions
Compare and Order Decimals

Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
20 questions
Multiplication facts 1-12

Quiz
•
2nd - 3rd Grade