Questions from Starting Out With Java


Q: 11. True or False: In a 640 by 480 window

11. True or False: In a 640 by 480 window, the coordinates of the pixel in the upper-left corner are (0, 0). 12. True or False: In a 640 by 480 window, the coordinates of the pixel in the lower-right...

See Answer

Q: 1. A method is called once from a program’s

1. A method is called once from a program’s main method, and then it calls itself four times. The depth of recursion is ___. 1. one 2. four 3. five 4. nine 2. This is the part of a problem that can...

See Answer

Q: Write a statement that instantiates the Polygon class, and uses the

Write a statement that instantiates the Polygon class, and uses the constructor to draw a polygon with vertices at the following points: (100, 100), (200, 100), (200, 200), and (100, 200).

See Answer

Q: 1. With Swing, you use this class to create a

1. With Swing, you use this class to create a frame. 1. Frame 2. SwingFrame 3. JFrame 4. JavaFrame 2. This is the part of a JFrame object that holds the components that have been added to the JFrame...

See Answer

Q: 11. You use this class to create Border objects.

11. You use this class to create Border objects. 1. BorderFactory 2. BorderMaker 3. BorderCreator 4. BorderSource 12. True or False: A panel cannot be displayed by itself. 13. True or False: You can...

See Answer

Q: 1. This is the technology that makes it possible for a

1. This is the technology that makes it possible for a Java application to communicate with a DBMS. 1. DBMSC 2. JDBC 3. JDBMS 4. JDSQL 2. This is a standard language for working with database managem...

See Answer

Q: 11. This method is specified in the Statement interface, and

11. This method is specified in the Statement interface, and should be used to execute a SELECT statement. 1. execute 2. executeUpdate 3. executeQuery 4. executeSelect 12. This method is specified in...

See Answer

Q: 21. True/False: In SQL, the not-

21. True/False: In SQL, the not-equal-to operator is !=, which is the same as in Java. 22. True/False: When a ResultSet object is initially created, its cursor is pointing at the first row in the res...

See Answer

Q: 11. This is text that appears in a small box when

11. This is text that appears in a small box when the user holds the mouse cursor over a component. 1. mnemonic 2. instant message 3. tool tip 4. pop-up mnemonic 12. This is a key that activates a co...

See Answer

Q: 21. This method sets the intervals at which major tick marks

21. This method sets the intervals at which major tick marks are displayed on a JSlider component. 1. setMajorTickSpacing 2. setMajorTickIntervals 3. setTickSpacing 4. setIntervals 22. True or False:...

See Answer