1/39
Looks like no tags are added yet.
Variable
A named storage location for a value is a(n) _
userAge
A legal JavaScript variable name written in common camelCase style is _______
Variable assignment
The JavaScript statement 'var numApples = 20' demonstrates _______
readLine()
_ is a CodeHS-supported function used to read a line of text input
readInt()
To ask the user to enter a whole number—a program can use _______
Concatenation
Joining two or more strings together into one is called _
Florence Fernandez
If 'first_name' is 'Florence' and 'last_name' is 'Fernandez'—then 'first_name + last_name' produces _______ because no space was added between the strings
Output
Information that a program displays or produces is called _
30
The code 'var userNum = 5 var calculatedNum = (userNum * userNum) + userNum calculates _______
1
The result of 13 % 3 is _______
Leftover/remanider
The modulus operator ('%') returns the _______ after division
Speed = distance/time in hours
To calculate speed in kilometers per hour when time is given in minutes—convert minutes to hours and use _______
Variable assignment
In the AP CSP pseudocode—the left arrow represents _______
Modulus %
In AP CSP pseudocode—'MOD' performs the same type of operation as JavaScript's _______ operator
2
If a = 18—b = 4—and c = a MOD b—then the value of c is _______
1
For a = 10—b = 5—and c = 2—the expression ((a - b) * c) % 3 evaluates to _______
12.4
In 'var x = 4 * 3 + 2 / 5 ' multiplication and division happen before addition—so the result is _______
40
In CodeHS graphics—'new Circle(40)' creates a circle with a radius of _______
add(circle)
After creating and positioning a graphics object—use _______ to make it appear on the canvas
Color.blue
The method circle.setColor(Color.blue) sets the circle's color to _______
Top left
The canvas coordinate (0—0) is at the _______ corner of the graphics window
getWidth()/2 And getHeight()/2
The center of the canvas is located at _______
X coordinate
In 'ball.setPosition(x—y)'—the 'x' value represents the _______ of the circle's center
Y coordinate
In 'ball.setPosition(x—y)'—the 'y' value represents the _______ of the circle's center
Diameter/2
If the user enters a diameter—the radius used in 'new Circle(…)' should be _______
Circle radius
A circle positioned at (radius—radius) has its center at the coordinate whose x- and y-values both equal the _______
Added
If a program creates a circle and sets its position but does not call 'add(circle)'—the circle will not be visible because it has not been _______ to the canvas
Callback function
A function that is passed to an event handler and called when an event occurs is called a _______
mouseClickMethod(drawSquare)
To call 'drawSquare' whenever the mouse is clicked—write _______
event handler
When using 'mouseClickMethod(drawCircle)'—the function name is passed without parentheses so it can be called when the event happens by the _______
X coordinate
In 'function drawCircle(e)'—the parameter 'e' contains information about the mouse event—including the click location. The expression 'e.getX()' gives the mouse click's _______
Y coordinate
The expression 'e.getY()' gives the mouse click's _______
Click
A program that creates a circle at 'e.getX()—e.getY()' places the circle where the user _______
Mouse Event
An event triggered specifically by mouse activity is a(n) _
High level
Of binary—assembly language—and JavaScript—JavaScript is considered a _______ language
Binary
The number sequence '10110011010011101010' is written in _______
Smartphone
A _______ is a device that can perform computational tasks
Hello Rowan
In the example where the user enters 'Rowan'—the displayed greeting is _______
3
In the assignment sequence a = 12
Sequence
The AP CSP idea of executing instructions in order is called ______