How do I generate a random number from 0 to less than 1?
JavaScript Level 1

Quiz
•
Computers
•
5th - 9th Grade
•
Medium

Sor Ling Liang
Used 9+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
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";
Create a free account and access millions of resources
Similar Resources on Quizizz
17 questions
Python Programming: Amazon Turing Lab Farmbot Key Terms

Quiz
•
8th Grade
25 questions
Program Development - Python: Strings

Quiz
•
9th - 10th Grade
15 questions
Code.org Unit 5 Lesson 15 Assessment

Quiz
•
9th - 12th Grade
20 questions
Python Programming Quiz

Quiz
•
9th Grade - University
15 questions
JAVA: Level-1

Quiz
•
5th - 12th Grade
19 questions
Python Year 9 Quiz

Quiz
•
8th - 10th Grade
19 questions
Python Loops Review

Quiz
•
9th - 12th Grade
15 questions
Program Development - Python: Conditionals

Quiz
•
9th - 10th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
20 questions
Final Exam Vocabulary

Quiz
•
6th Grade