Binary
Variables
Datatypes
Functions
Processing
100
0000 0100
What is 4
100
All variables must be declared before they can be used. [a] true [b] false
What is [a] true
100
Which of the following is NOT the name of a Java primitive data type? a. int b. number c. double d. float
What is b. number
100
In the following function, what does each function parameter represent? background(R, G, B);
What is Red, Green, Blue
100
What is the command for setting the dimensions of the processing window?
What is size(height, width); size(640, 360);
200
010
What is the binary prefix for a capital letter?
200
The following statement is valid double price = 7,450.98; [a] true [b] false
What is [b] false
200
List three primitive data types used in Java.
What is Any of: byte, short, long, char, int, float, double, boolean
200
When calling a function, what is the statement terminated with?
What is a semi-colon (;)
200
What does the fill(R, G, B) function do?
It fills the subsequent shapes with the defined color
300
011
What is the binary prefix for a lowercase letter?
300
A variable is given a value through [a] osmosis [b] as assignment statement [c] the import statements [d] the public class declarations
What is [b] as assignment statement
300
Which one of the following code segments will cause an error? A. int x; x = 7; B. double y = 42.8; C. int b; int b = 5; D. double a = 7.6; a = 54.9;
What is C. int b; int b = 5;
300
When using processing to draw shapes, where specifically is coordinate 0,0
Top left corner of the window
300
The rect() function contains how many parameters and what is each parameter's purpose when drawing the rectangle
What is rect(x, y, width, height); rect(81, 81, 63, 63);
400
0010 1111
What is 47?
400
It terminates every line of code in Java. A. } B. ) C. ; D. .
What is A. }
400
Name one of the two datatypes that are used when representing decimal numbers
What is float or double
400
In the following declaration, what is the function's name? void setup() { }
What is setup
400
The triangle() function contains how many parameters and what is each parameter's purpose when drawing the triangle
What is triangle(x1, y1, x2, y2, x3, y3); triangle(288, 18, 351, 360, 288, 360);
500
1111 0101
What is 245?
500
The name of a variable is known as its: [a] identifier [b] constant [c] data type [d] base
What is [a] identifier
500
Explain what happened with the number of likes for that PSY - GANGNAM STYLE youtube video
What is developer used an int vs. long datatype.
500
What are the two lifecycle methods in processing?
What is setup and draw
500
What is the Processing code to output to the console the following (use a variable for age): Mr Stasiak is 40 years old
int age = 40; What is println("Mr. Stasiak is "+ age + " years old");
Continue
ESC
Reveal Correct Response
Spacebar
M
e
n
u
Team 1
0
+
-
Logic and Programming Interim 1 Review
No teams
1 team
2 teams
3 teams
4 teams
5 teams
6 teams
7 teams
8 teams
9 teams
10 teams
Custom
Press
F11
Select menu option
View > Enter Fullscreen
for full-screen mode
Edit
•
Print
•
Download
•
Embed
•
Share
JeopardyLabs