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
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
68 questions
N5 Computing Science: Computer Structure
Quiz
•
10th Grade
68 questions
WJEC Unit 1 Keywords
Quiz
•
10th Grade
64 questions
Đề Cương Ôn Tập Giữa Kỳ 2
Quiz
•
10th Grade
74 questions
Entrepreneurship Final Review
Quiz
•
9th - 12th Grade
68 questions
UNIT 1 Educational Terminology Quiz
Quiz
•
10th Grade
64 questions
U1 Fund
Quiz
•
9th - 12th Grade
65 questions
4. Impact of Digital systems on organisations and individuals
Quiz
•
10th Grade
72 questions
Python Basics
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
MINERS Core Values Quiz
Quiz
•
8th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
