What will be the output of the following code segment?
int x = 15;
int y = 4;
int z = 3;
System.out.println((x + y) / (z - 1));
9
Which expression is equivalent to:
!(a && b)
!a || !b
The freezing point of water in Celsius
0º
This can be seen being eaten by Aliyah every morning
Overnight Oats
This pokemon has objectively the worst design of any legendary / mythical
Enamorous
What is the final value of x after the following code runs?
int x = 10;
x += 5;
x -= 2;
x *= 3;
39
Consider the following code segment:
if (b != 0 && a / b > 100)
{
statement1;
}
else
{
statement2;
}
If b has a value of 0 when this segment is executed, what will happen?
An Arithmetic exception will occur
video game features blocks falling from the sky
Tetris
The total number of classes + Club opportunities that I have the APCSA girls this year
7
The number of badges you can win in the Heart gold / soul silver games
16
What is a valid single-line comment in Java?
//
Consider the following code segment:
for (int i = 1; i <= 4; i++)
{
for (int j = 1; j <= 4; j++)
{
if (i == j)
{
System.out.print("* ");
}
else
{
System.out.print("- ");
}
}
System.out.println();
}
What will be the printed output when run?
* - - -
- * - -
- - * -
- - - *
The national fruit of the United States
Blueberry
our 3 most frequent guests this year
Kayla, Noa, Lana
Rhydon's claim to fame
Being the first pokemon ever created
What is the output of the following code?
int x = 10;
int y = 5;
x = x + y;
y = x - y;
System.out.println(y);
10
What output will this code segment produce?
for (int i = 5; i >= 1; i--)
{
for (int j = i; j >= 1; j--)
{
System.out.print((4 * j - 1) + " ");
}
System.out.println();
}
19 15 11 7 3
15 11 7 3
11 7 3
7 3
3
The number of Bones in the adult human body
206
Our Least frequent guest this year
Michal
A bonus multiplier added to attacks the same type of the user
S.T.A.B
What is wrong with the following code segment:
int x = 3.5;
incorrect variable assignment
Given the following code segment:
int sum = 0;
for (int i = 1; i <= 10; i++)
{
if (i % 2 == 0)
{
sum += i;
}
}
System.out.println(sum);
What will be the output?
30
The thing Thomas Hopkins Gallaudet is most famous for
Founding Gallaudet University
The total number of class absences
12!
The evolution method of the pokemon Inkay
Turning the physical game console upside down as it levels up