The output of the following code:
int val = 5;
if (val > 2) { return true;}
else { return false;}
true
The operator that goes in the blank:
Animal a = ____ Animal();
new
The famous computer maker that starts with a "D"
Dell
The capital of the US
Washington, D.C.
The actor that plays Captain America in the Marvel movies
Chris Evans
The value of sub in:
String s = "Awesome";
String sub = s.substring(3);
"some"
The Java package that we import to be able to use Scanner
java.util
This stores short-term memory in a computer
RAM
The capital of Germany
The actor that plays Luke Skywalker in the Star Wars movies
Mark Hamill
The sign (positive or negative) of v in:
int v = ("here).compareTo("there");
(-), or negative
The possible random numbers that this generates:
(int)(Math.random() * 5) + 3;
3, 4, 5, 6, 7
The three-letter abbreviation for the technical name for a video card
GPU
The state containing the Grand Canyon
Arizona
The actor that played Black Panther (may he rest in peace)
Chadwick Boseman
What is returned if here is true, and there is false?
if (!here && !there) { return notAnywhere;}
else { return here; }
here / true
The class name of a special type of array object that allows you to add and remove items from a dynamically changing list.
ArrayList
This is what Windows and Mac OS are called
Operating System
The state that contains most of Yellowstone National Park
Wyoming
The actress who plays Rey in the recent Star Wars movies
Daisy Ridley
What is the String sub in:
String s = "hello, welcome";
String sub = s.substring(2,5) + substring(s.length() - 2);
llome
The name of the inheritance concept that allows us to do this:
Game g = new MonopolyGame();
Polymorphism
This is often called the "brain" of the computer
CPU / Central Processing Unit / Processor
A country that is known for its chocolate
Belgium or Switzerland
The movie that has a desert world called Arakis
Dune / Dune 2