How would you store 20 apples in inventory as a JavaScript variable?

JS and Graphics Unit Review

Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Tracy Hebert
Used 273+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
var numApples == 20;
20 = numApples;
var numApples = 20;
var num apples = 20;
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When entering a diameter value in the variable diameter, how can we draw the correct sized circle?
var circle = new Circle(diameter);
circle.setPosition(100,100);
add(circle);
var circle = new Circle(diameter*2);
circle.setPosition(100,100);
add(circle);
var circle = new Circle(diameter/2);
circle.setPosition(100,100);
add(circle);
var circle = new Circle(diameter%2);
circle.setPosition(100,100);
add(circle);
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What statement will read a number from a user?
var appleToBuy = readLine( "How many apples would you like? ");
var applesToBuy = println( "How many apples would you like? ");
var applesToBuy = nextInt( "How many apples would you like? ");
var applesToBuy - readInt( "How many apples would you like? ");
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following program do?
var radius = readInt( "What is the radius of the circle? ");
var circle = new Circle(radius);
circle.setPosition(radius, radius);
add(circle);
Draw a circle on the canvas that is always tangential to the top and left sides of the canvas
Draws a circle that is positioned in the bottom right corner of the canvas
Draws a circle on the canvas with the center positioned at the coordinate (0,0)
Draws a circle to the center of the canvas with size based on user inputted value
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When splitting up fruit equally between 3 people, which statement below will calculate how much fruit will be left over?
var leftOver = 3 % numFruit;
var leftOver = numFruit % 3;
var leftOver = 3 / numFruit;
var leftOver = numFruit / 3;
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is printed to the screen if the user enters '8' when the following program is run?
var userNum = readInt(" Enter your favorite number: ");
var calculatedNum = (userNum * userNum) + userNum;
println(calculated Num);
24
64
72
8
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a graphics canvas, what are the coordinates of the bottom right corner of the window?
0,0
0, getWidth()
getHeight(), getWidth()
getWidth(), getHeight()
Create a free account and access millions of resources
Similar Resources on Quizizz
11 questions
JavaScript Control Structures Basic

Quiz
•
12th Grade
12 questions
HTML Javascript

Quiz
•
9th Grade
19 questions
JavaScript Data Structures

Quiz
•
9th - 12th Grade
15 questions
JavaScript Knowledge & Skills

Quiz
•
9th - 12th Grade
15 questions
Code.Hs #3 | JavaScript and Graphics Quiz

Quiz
•
10th Grade
10 questions
Python в Minecraft

Quiz
•
9th Grade
15 questions
Functions and Parameters Quiz

Quiz
•
9th - 12th Grade
20 questions
Basic JavaScript Review

Quiz
•
9th - 12th 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
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