1 & 2
The 8 primitive data types are: byte, short, int, long, float, double, boolean, and _____.
What is char?
(page 50)
This is the very first step that must be done in order to use an accumulator.
What is initializing the accumulator?
This is the opposite of a value returning method.
What is a void method?
(page 269)
This is what is meant by the words HTML.
What is HyperText Markup Language?
When using JOptionPane, showInputDialog always returns the value as a string. If a numeric value is needed, this method must be used to convert.
What is the Parse method?
What is highly portable?
This is the difference between = and ==.
= is the assignment operator and == is a test for equality.
(page 174)
In the header example below, the word _____ means that the method belongs to the class, not a specific object.
Ex: public static void main (String[] args)
What is static?
(page 272)
In HTML, it's what these are called: <br>, <p>, <head>
What are tags?
True or False:
When creating a method, data types must be declared below the header.
What is false?
They must be declared in the header. (page 306)
Example:
public static void newResults(double total, double avg)
A repository of pre-written codes for performing operations, also known as application programmer interface.
Example: println
What is Java API?
True or False:
When using data types in switch statements, only these are allowed: char, byte, short, int, or string.
What is true?
(page 157)
The values that are passed into a method are called ___________, and the variables that receive those values are called ___________.
What are arguments and parameters?
(page 279)
<strong> does this in HTML.
Example:
<body>
<strong>Hello Geeks</strong>
<br>
</body>
What is bold text?
This is the name of Flora's dog.
What is Tito?
This is the definition of object-oriented programming.
What is reusing a piece of code over and over again after it has been meticulously tried and tested?
This is the advantage of using a sentinel.
What is to signal the end of a list of inputs.
(page 221)
This Java utility is used in conjunction with @param for documentation purposes.
What is Javadoc?
(page 288)
<html> and </html> signify this in HTML.
What is the beginning and ending of a document?
Two Answers:
Regarding argument and data type compatibility, Java performs a (1) __________ conversion when the data type in the argument is ranked lower than the parameter variable. If the data type is higher, it will return an error.
Example: Given an int parameter variable
double d = 1.0;
displayValue (d);
(2) Will this return a conversion or an error?
What is (1) widening conversion and (2) error
(pages 281-282)
When Javadoc is run, this is the extension of the new file that is created.
What is .html?
(page 80)
This is the Java API import package needed to access the Random class.
What is util?
More specifically--
import java.util.Random;
(page 249)
True or False:
Method arguments are passed by value. Only a copy of an argument's value is passed into a parameter variable. If a parameter variable is changed inside the method, it has no effect on the original argument.
What is true?
(Checkpoint 5.9)
These are the three components of an HTML element.
What is a start tag, content, and an end tag?
Although these two ideas are only slightly different, the idea of widening conversion was also mentioned in chapter 1 with this different name. This name refers to the process as a manual conversion.
What is a cast operator?
(page 66)