10 % 4 * 2
4
What primitive type is used for decimal values?
double
a law that says
NOT (A AND B) is equivalent to NOT A OR NOT B
NOT (A OR B) is equivalent to NOT A AND NOT B
DeMorgan's Law
Which Pokémon is this?
Lucario
System.out.print("computer".substring(4));
What is "uter"?
11 / 2 * 3
What is 15 ?
What primitive type can only hold true or false values?
boolean
The output of:
if (5 * 7 < 4 * 9 && 0 == 0)
return true;
else
return false;
true
Who is this?
Yoshi
System.out.print("catastrophe".indexOf("z"));
What is -1?
10/4.0
What is 2.5 ?
What is the value of x after the following sequence of statements?
int x = 10;
x--;
x++;
x % 2
0
When the result of a logical expression using && or || can be determined by evaluating only the first Boolean operand, the second is not evaluated.
Short-circuit evaluation
An Olympic gold medal is mostly comprised of what metal?
It's 92.5% silver.
String a = "apple";
System.out.print(a.substring(1,2));
What is "p"?
(int) (10.01 / 4.99)
What is 2 ?
What is the output by the code below?
int x = 9;
double y = x;
System.out.println(y);
What does the following evaluate to?
!(x || y) == ((!x) & (!y))
What is 9.0?
Write a conditional to test to see if a number n is odd
if (n % 2 == 1){
return true;
}
else{
return false;
}
What was the first Pixar movie?
Toy story
System.out.println(("13" + "16");
What is the output?
"catastrophe".substring(0);
1316, the two numbers concatenate together
(double) (10/4)
What is 2.0 ?
converting from one data type to another
What is casting?
!(x!=5 && y!=7)
Using demorgans law, What is the equivalent to this?
(x == 5) || (y == 7)
What technology company was founded in 1993 with the vision that the next wave of computing would be graphics-based? The company took its name from the Latin word for "envy" and features product families GeForce, Quadro, and Tegra.
Nvidia
System.out.print("taco".length());
What is 4