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
19 questions
Python Loops Review

Quiz
•
9th - 12th Grade
18 questions
FOR and WHILE loop in Python

Quiz
•
9th - 12th Grade
18 questions
Foundations of Programming

Quiz
•
9th - 10th Grade
17 questions
CS Express

Quiz
•
6th - 8th Grade
20 questions
AQA GCSE Computer Science - 3.2.2 Programming Concepts

Quiz
•
8th - 10th Grade
16 questions
For and While Loops in Python

Quiz
•
9th - 12th Grade
22 questions
Year 9 computing mixed questions

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

Quiz
•
9th Grade - University
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Computers
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
12 questions
Dividing Fractions

Quiz
•
6th Grade
9 questions
1. Types of Energy

Quiz
•
6th Grade
18 questions
Main Idea & Supporting Details

Quiz
•
5th Grade
20 questions
Parts of Speech

Quiz
•
3rd - 6th Grade