Questions from Starting Out With Java


Q: Write, compile, and test a class that uses four println

Write, compile, and test a class that uses four println() statements to display, in order, your favorite movie quote, the movie it comes from, the character who said it, and the year of the movie. Sav...

See Answer

Q: Write, compile, and test a class that displays the pattern

Write, compile, and test a class that displays the pattern shown in Figure 1-26. Save the class as TableAndChairs.java.

See Answer

Q: Write, compile, and test a class that displays the pattern

Write, compile, and test a class that displays the pattern shown in Figure 1-27. Save the class as Triangle.java.

See Answer

Q: 1. The most basic circuitry-level computer language is _________________.

1. The most basic circuitry-level computer language is _________________. a. machine language b. Java c. high-level language d. C++ 2. Languages that let you use an easily understood vocabulary of de...

See Answer

Q: 11. You must compile classes written in Java into ____________.

11. You must compile classes written in Java into ____________. a. bytecode b. source code c. Javadoc statements d. object code 12. All Java programming statements must end with a ____________. a. pe...

See Answer

Q: 1. When data cannot be changed after a class is compiled

1. When data cannot be changed after a class is compiled, the data is _____________. a. variable b. constant c. volatile d. mutable 2. Which of the following is not a primitive data type in Java? a....

See Answer

Q: 11. The remainder operator _____________. a. is represented

11. The remainder operator _____________. a. is represented by a forward slash b. must follow a division operation c. provides the quotient of integer division d. is represented by a percent sign 12....

See Answer

Q: Advantages to creating methods in addition to the main() method include

Advantages to creating methods in addition to the main() method include all of the following except _____. a. the main() method is easier to follow b. all methods are prewritten, saving the programmer...

See Answer

Q: 11. The method public static Boolean test Value(int response

11. The method public static Boolean test Value(int response) returns _____________. a. no value b. an int value c. a boolean value d. You cannot determine what is returned. 12. Which of the followin...

See Answer

Q: An object’s data items are also known as _____________. a.

An object’s data items are also known as _____________. a. fields b. functions c. themes d. instances 2. You send messages or information to an object through its _____________. a. fields b. methods...

See Answer