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
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";
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Python basics

Quiz
•
6th - 8th Grade
15 questions
Coding Pre-quiz

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

Quiz
•
9th - 12th Grade
20 questions
Python - lists,loops,basics

Quiz
•
9th - 11th Grade
15 questions
JavaScript Practice Quiz

Quiz
•
8th Grade
16 questions
ICT SPM Section A (Programming)

Quiz
•
1st - 10th Grade
20 questions
Python

Quiz
•
6th Grade
20 questions
Code.org Express Course

Quiz
•
6th - 8th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade
Discover more resources for Computers
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade
13 questions
Primary and Secondary Sources

Quiz
•
6th Grade