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
70 questions
GUI DAN CLI
Quiz
•
KG - University
66 questions
The Online World
Quiz
•
10th - 12th Grade
71 questions
Software Engineering
Quiz
•
10th Grade
72 questions
ASAS Informatika X-1 2024
Quiz
•
10th Grade
66 questions
User interface 2
Quiz
•
10th Grade
65 questions
Review Materi PAS 1 TIK Gr6
Quiz
•
6th Grade - University
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
