Names
Logic
Loopy Loops
Funky Math
Watch Out
100
boolean, char, byte,short, int, long, float, double
What are the java primitive types?
100
&& | |
What are the conditional AND and OR symbols?
100
while, do while, for
What are different types of control loops?
100
++x or x++
What is pre or post incrementing?
100
multiple selection statement
What is a "switch" statement?
200
command to "exit" a loop without performing any more loop iterations
What is the "break" command?
200
& and |
What are the boolean logical operators for AND and OR?
200
x = 5; while (x > 0) { System.out.printf("hello!\n"); }
What is an infinite loop?
200
total *= 4;
What is a shortcut for total = total * 4 (compound assignment operator)?
200
one loop inside another
What is a "nested" loop?
300
set of well defined steps to be executed in a specific order to achieve a certain outcome/result
What is an algorithm?
300
0 0 0 0 1 1 1 0 1 1 1 1
What is a truth table for OR?
300
type of loop where the user inputs a "flag" to signal the end of the input
What is a sentinel (or indefinite repetition) loop?
300
according to the computer, 3/2 = 1
What happens when doing integer math that would normally result in a float/double?
300
Scanner
What is needed for input in java?
400
temporarily changing a primitive type to perform a calculation
What is "casting"?
400
!
What is the symbol used for "not"?
400
post-test
What type of loop/when is the test peformed for a "do while" loop?
400
%
What is the remainder operator?
400
unexpected result from an if-else statement when curly braces not used to clearly define grouping(s)
What is a "dangling else" problem?
500
informal language in which algorithms can be expressed
What is pseudocode?
500
0 0 0 0 1 1 1 0 1 1 1 0
What is the truth table for Exclusive OR?
500
a loop has suddenly skips to the next iteration of itself without completing the loop body
What does the "continue" command cause to happen?
500
truncation
What happens when two integers are divided without casting?
500
diamond shape
What is the shape used in a flowchart to show a decision?
Continue
ESC
Reveal Correct Response
Spacebar
M
e
n
u
Team 1
0
+
-
cs152sp14-1
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