Questions from Starting Out With Java


Q: 30. True or False: A JMenu object cannot contain other

30. True or False: A JMenu object cannot contain other JMenu objects. 31. True or False: A JTextArea component does not automatically display scroll bars. 32. True or False: By default, a JTextArea...

See Answer

Q: 1. This section of an HTML document contains all of the

1. This section of an HTML document contains all of the tags and text that produce output in the browser window. 1. head 2. content 3. body 4. output 2. You place the tag in this section of an HTML...

See Answer

Q: Assume myBox is a Rectangle object. Write the statement that rotates

Assume myBox is a Rectangle object. Write the statement that rotates myBox 45 degrees about its center.

See Answer

Q: 11. In a class that extends JApplet or JFrame you override

11. In a class that extends JApplet or JFrame you override this method to get a reference to the Graphics object. 1. paint 2. paintComponent 3. getGraphics 4. graphics 12. In a class that extends JPa...

See Answer

Q: 20. A Timer object generates this type of event.

20. A Timer object generates this type of event. 1. action events 2. timer events 3. item events 4. interval events 21. The following Applet class method returns a URL object with the location of the...

See Answer

Q: 31. True or False: An object of the Frame class

31. True or False: An object of the Frame class does not have a content pane. 32. True or False: In an overriding paint method, you should never call the superclass’s version of the paint method....

See Answer

Q: 1. A(n) is a method that automatically executes

1. A(n) is a method that automatically executes when a specific event occurs. 1. controller 2. event listener 3. initialize method 4. autoresponder 2. A is a tree-like hierarchical data structure tha...

See Answer

Q: 11. A(n) is a name that identifies a

11. A(n) is a name that identifies a component in the FXML file. 1. fx:name 2. fx:id 3. fx:component 4. fx:variable 12. In a JavaFX application, the class loads the FXML file and builds the scene gra...

See Answer

Q: 21. True or False: The controller class usually loads the

21. True or False: The controller class usually loads the FXML file and builds the scene graph. 22. True or False: You can use Scene Builder to register a controller class to a GUI. 23. True or Fals...

See Answer

Q: 1. This part of the computer fetches instructions, carries out

1. This part of the computer fetches instructions, carries out the operations commanded by the instructions, and produces some outcome or resultant information. 1. memory 2. CPU 3. Secondary Storage 4...

See Answer