
JavaScript Level 1
Authored by Sor Ling Liang
Computers
5th - 9th Grade
Used 9+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
How do I generate a random number from 0 to less than 1?
2.
MULTIPLE SELECT QUESTION
1 min • 5 pts
How do I add comments in my codes?
Use double forward slash, like this:
// say something
Use /* and */ to enclose some lines of text as comments
Use #, hash symbol, like this:
# say something
Use <!-- and --> to enclose some lines of text as comments
3.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
Which of the following will ask for input when you run the program?
4.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
What will be printed in the console?
Error. This code cannot run.
29 February
11 February
2+9+February
5.
MULTIPLE SELECT QUESTION
1 min • 5 pts
Which of the following is/are valid JavaScript variable name(s)?
num1
1num
my_name
my name
6.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
I want to use a String variable to store some text value in my program. Which one is correct?
let some text = can i ask a question?;
def some_text = "can i ask a question?";
let some_text = "can i ask a question?";
def some_text = can i ask a question?;
7.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
I want to use a number variable to store some numerical value in my program. Which one is correct?
let 1num = 100;
def 1num = "100";
let num1 = 100;
let num1 = "100";
Access all questions and much more by creating a free account
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
Already have an account?
Similar Resources on Wayground
16 questions
Conditions
Quiz
•
8th - 10th Grade
20 questions
DT G5 Revision_2
Quiz
•
5th Grade
22 questions
Keyboarding Vocabulary
Quiz
•
5th - 6th Grade
20 questions
ÔN TẬP WHILE DO VÀ FOR TO DO
Quiz
•
8th Grade
18 questions
G 6 Unit 5
Quiz
•
5th Grade
17 questions
Ergonomics and Keyboard
Quiz
•
9th Grade
20 questions
Computer Exam (Grade 5)
Quiz
•
5th Grade
16 questions
Input Device
Quiz
•
9th - 10th Grade
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade