Variable Names
Variables
User Input
Graphics & Mouse Events
DeGrazia's Random Knowledge
100

With this standard convention, you group words into one, the first word is lowercase, then every word that follows will have its first letter uppercased. Example: jeopardyIsFun

Camel Casing

100

This keyword signals that the variable can be reassigned a different value

let

100

What function do you need to call to ask the user of the program to enter text?


readLine

100

Events that occur when the mouse interacts with the program

Mouse Event

100

This is the birth-state of Taylor Swift and the home of the 76ers and Eagles

Pennsylvania

200

= is the ________ operator

Assignment

200

True or False. With var and let we can declare a value without assigning the variable a value.

True

200

The name of the function we would use to read integers from the user. (Example: age)

readInt

200

A function that is called by your program in response to an event

Callback function

200

This is the year that Propel was first created

2002

300

True or false. The variable jeopardyIsFun would reference the same memory location as jeopardyISfun

False. Variable names are case sensitive.

300

This is output of the code shown below.

17

300

In JavaScript, what is a string?

An ordered sequence of characters

300

If we’ve written a function drawCircle, how would we call that function every time the mouse is clicked. 


mouseClickMethod(drawCircle);


300

This is the name that Javascript was originally called

Mocha.

400

True or False. "const" could be a legitimate variable name

False. Variable names cannot be the same as JavaScript keywords

400

This would be the output of running this code:

TypeError: Assignment to constant variable.

400

What are the three functions we've used to get user input?

readLine

readInt

readFloat

400

In the following code, what is the meaning of the x variable?

var x = 20;
var circle = new Circle(x);
add(circle);

The radius of the circle

400

This college in Arizona has a Jackrabbit for a mascot and the initials NAU

Northern Arizona University

500

True or false: You should use the keyword var when assigning a new value to an existing variable

False

500

If you try to declare a const variable without a value, you’ll get this type of error.

SyntaxError

500

On the AP exam, INPUT() is used to accept a value from the user and DISPLAY() is used to display a value. Values that are displayed are NOT started on a new line but do contain a space following the value printed. 

Consider the code below:

DISPLAY ("What is your name?") name ← INPUT () DISPLAY ("Hello") DISPLAY (name)


What is displayed as a result if the user inputs “Karel” to the program?

What is your name? Karel

Hello Karel

500

What are the three steps we need to add graphics and adjust their properties?

  1. We create the object
  2. We add it to our canvas
  3. We adjust the properties (optional, and can come before #2)
500

This pixar movie about power and control has Kevin Spacey as the voice of "Hopper"

A Bug's Life