Exam 6: Graphical User Interface GUI and Object-Oriented Design OOD

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

GUI components are placed in a window called JFrame.

(True/False)
4.7/5
(33)

In Java, data members are also known as fields.

(True/False)
4.9/5
(31)

Every window has a title, width, and height.

(True/False)
4.8/5
(40)

The class ActionListener contains only one method, actionEvent.

(True/False)
4.8/5
(44)

The GridLayout manager arranges GUI components in a list formation.

(True/False)
5.0/5
(34)

Which class is part of the package java.awt?

(Multiple Choice)
4.9/5
(37)

Which of the following from the window above is a JButton?

(Multiple Choice)
4.8/5
(35)

To display a window, you must invoke the method ____.

(Multiple Choice)
4.7/5
(45)

Write a program that takes as input the pay rate and hours worked of an employee and calculates the pay of the employee.Based on the problem statement above, which of the following would most likely be chosen as the class?

(Multiple Choice)
4.9/5
(35)

The height and width of a window are measured in inches.

(True/False)
4.8/5
(43)

A(n) ____ is a method of a class that is automatically executed when an object of the class is created.

(Multiple Choice)
4.9/5
(40)

If Shape is a class and you create a new class Rectangle that extends Shape, then Shape is a(n) ____ and Rectangle is a(n) ____.Which word goes in the second blank of the sentence above?

(Multiple Choice)
4.9/5
(32)

Given the declaration, Integer x; After executing either of the following two statements, x points to an Integer object with value 8: x = 8;x = new Integer(8);

(True/False)
4.8/5
(34)

Whenever there is a superclass-subclass relationship, the superclass inherits all data members and methods of the subclass.

(True/False)
4.7/5
(32)

JTextFields are used to get input, but not show output.

(True/False)
4.8/5
(45)

In object-oriented design, the verbs in the problem specification can be used to identify the objects in the program.

(True/False)
4.8/5
(38)

The method getContentPane of the class JFrame is used to access the content pane of the window.

(True/False)
4.8/5
(37)

In object-oriented design, the nouns found in the problem specification can be used to select the operations in the program.

(True/False)
4.9/5
(30)

Write a program that takes as input the pay rate and hours worked of an employee and calculates the pay of the employee.Based on the problem statement above, which of the following would be a data member?

(Multiple Choice)
4.8/5
(30)

Write a program to input the radius of the base and height of a cylinder, and calculate and print the surface area, volume, and area of the base of the cylinder.Which words from the problem statement above could we use to determine the operations for this program?

(Multiple Choice)
4.7/5
(36)
Showing 21 - 40 of 50
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)