js basics

Quiz
•
Computers
•
4th Grade - University
•
Medium
Amany Ibrahim
Used 42+ times
FREE Resource
18 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which one of the following symbols is used for JavaScript comments?
//
\\
*/ */
<!-- -->
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What type of variable is var typeOfApples="Fuji"
numeric
boolen
string
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do I declare a new variable?
var newVariable = 5
Variable int = new Variable()
var 5 = myVariable
int var = 5
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What surrounds an if/else statement?
Quotations " "
Curly Brackets { }
Parenthesis ( )
Square Brackets []
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What surrounds a string or words?
Quotations " "
Curly Brackets { }
Parenthesis ( )
Square Brackets []
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why do we use if/else statements in JavaScript?
To repeat something for a fixed number of times
To either do something if a condition is true or do something else
To break out of some block of code
To repeat something while a condition is true
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Indicates the beginning and the end of a JavaScript section.
<html> </html>
<style> </style>
<article> </article>
<script> </script>
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
HTML Tags

Quiz
•
6th - 8th Grade
18 questions
Intro to HTML

Quiz
•
7th - 8th Grade
20 questions
prep2 lesson 1-2

Quiz
•
8th Grade
20 questions
HTML and CSS

Quiz
•
9th - 12th Grade
20 questions
Intro to HTML

Quiz
•
8th - 12th Grade
15 questions
HTML and CSS

Quiz
•
7th - 8th Grade
18 questions
MTA HTML CSS Session 1

Quiz
•
7th - 9th Grade
20 questions
EXAMEN DAND-JS 2P

Quiz
•
University
Popular Resources on Wayground
15 questions
Hersheys' Travels Quiz (AM)

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
30 questions
Lufkin Road Middle School Student Handbook & Policies Assessment

Quiz
•
7th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
17 questions
MIXED Factoring Review

Quiz
•
KG - University
10 questions
Laws of Exponents

Quiz
•
9th Grade
10 questions
Characterization

Quiz
•
3rd - 7th Grade
10 questions
Multiply Fractions

Quiz
•
6th Grade
Discover more resources for Computers
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
15 questions
Hersheys' Travels Quiz (AM)

Quiz
•
6th - 8th Grade
30 questions
Lufkin Road Middle School Student Handbook & Policies Assessment

Quiz
•
7th Grade
17 questions
MIXED Factoring Review

Quiz
•
KG - University
10 questions
Laws of Exponents

Quiz
•
9th Grade
10 questions
Characterization

Quiz
•
3rd - 7th Grade
10 questions
Multiply Fractions

Quiz
•
6th Grade
20 questions
Guess The Cartoon!

Quiz
•
7th Grade