A store has 20 apples in its inventory. How can you store this information in a JavaScript variable?

Semester Exam Review

Quiz
•
Computers
•
12th Grade
•
Medium

Alicia Alanis
Used 7+ times
FREE Resource
50 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
let numApples == 20;
20 numApples;
let numApples = 20;
let applesToBuy
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a code comment?
A way to teach Karel a new word
A way to give notes to the reader to explain what your code is doing
A message to your teacher in code
A place to write whatever you want in your code
3.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Which of the following choices is a properly formed JavaScript variable name, meaning it is both legal in the JavaScript language and considered good style?
user_age
UserAge
userAge
User age
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If you were given the following variables:
let distance = 2;
let time = 30;
What line of code would print the speed in km/hr if the distance is given in km and the time is given in minutes? (Speed = distance / time)
console.log(distance / (time / 60));
console.log(distance / time);
console.log(distance * (time / 60));
console.log(distance * time);
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What symbol do you use to do multiplication in JavaScript?
x
X
*
#
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following code print to the screen?
console.log(2 + 2);
2 + 2
2
4
22
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following returns a random decimal number between 1 and 10?
randomFloat(1, 10);
randFloat(1, 10);
Randomizer.float(1, 10);
Randomizer.nextFloat(1, 10);
Create a free account and access millions of resources
Similar Resources on Quizizz
50 questions
Computer Basics Test

Quiz
•
9th - 12th Grade
50 questions
NOCTI - Computer Networking Fundamentals Quiz - 1

Quiz
•
12th Grade
53 questions
The Internet - AP CSP Unit 4

Quiz
•
9th - 12th Grade
46 questions
BTEC Information Technology: Unit 1 Learning Aim A

Quiz
•
11th - 12th Grade
50 questions
Information Technology

Quiz
•
12th Grade
45 questions
Cybersecurity Quiz

Quiz
•
12th Grade
48 questions
2019 Review - I, IGCSE CS 0478 - dfm

Quiz
•
9th - 12th Grade
53 questions
HTML And CSS

Quiz
•
4th Grade - Professio...
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
30 questions
Linear Inequalities

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

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University