A value that is either true or false
What is boolean
System.out.println( (20 % 4) + 3 );
What is 3
It can be any data type and defines what the result of a method will be when it is called.
What is the return type
This is an instance that contains data or information
What is an object
The type of control structure that can be used for making decisions in a program is based on the value of a Boolean expression.
What is an if statement (or selection, or branching)
What is a 'while' loop
The largest number that can be stored in 4-bits or a nibble
What is 15?
Essentially, it is an array of characters
What is a String?
Private and protected visibility accords to this law
What is encapsulation
The process of placing a loop inside another loop.
What is nesting
These keywordS together allow you to combine a second condition with the first. It is only evaluated if the first condition is false
The DATA TYPE for result of
16 / 2.0 + 1
What is double
You should use this instead of double equals == when comparing two objects (e.g. Strings)
What is equals()?
Compile, runtime and logical are all types of this
What is an error?
The failure to create a correct condition that controls a repeat statement results in this type of programming error.
What is an infinite loop
The keywordS are used together to define a class datatype called Point that can be accessed from any other class.
What is 'public class Point'
The result of:
int[] nums = {-1, 0, 1, 2, 3};
int a = nums[2];
int b = nums[a];
int c = nums[b];
System.out.println(c);
What is -1
Returns a String representation of an object
What is toString()?
Tiffani has a channel on a popular video-sharing site and has over 100 thousand subscribers. After making her latest video and uploading it to her channel, she notices that the quality of the video is better on her home computer than the uploaded version. This is the likely cause of Tiffani’s video quality.
What is lossy compression
The following code should display "EVEN" if the positive number num is even.
if (MISSING CONDITION) {
System.out.println("EVEN");
}
Give a Boolean expression that could replace MISSING CONDITION
What is 'num % 2 == 0'
It is required to declare that we are creating space in memory for additional objects or array elements.
The data that is PASSED INTO a method.
What is an argument
An important principle when designing code where programmers should use loops and methods to avoid redundant code.
What is DRY code or the Don't-Repeat-Yourself principle
The output of the following code:
int sum = 0;
for (int i = 0; i < 4; i++) {
sum = sum + i;
}
System.out.println(sum);
What is 6