Professional Documents
Culture Documents
CH 5 Match The Following
CH 5 Match The Following
3. Column A has method names in Java and Column B has their 1. c Knowledge
Swing controls. Match the Column A with Column B (an option 2. a
in Column B may be used more than once)
Column A Column B
1.getSelectedItem() a. List box
2.getSelectedValue() b. Text Area
c. Combo box
d. Text Field
4. Column A has methods and properties in Java and Column B 1. b,c Knowledge
has their respective categories/controls. Match the Column A 2. a,d
with Column B (an option in Column B may be used more than
once)
Column A Column B
1.getText() a.Property
2.model b.Text Field
c.Method
d.List box
5. Column A has types of selection of items in Java and Column B 1. b,d Knowledge
has their respective controls. Match the Column A with Column 2. a,c
B (an option in Column B may be used more than once)
Column A Column B
1.Single a.Check box
2.Multiple b.Radio Button
c.List box
d.Combo Box
7. Column A has various terms used in Java and Column B has 1. a Knowledge
respective expansions. Match the Column A with Column B (an 2. c
option in Column B may be used more than once)
Column A Column B
1.IDE a.Integrated Development Environment
2.RAD b.Integrated Design Environment
c.Rapid Application Development
d.Rapid Application Design
8. Column A has categories of operators in Java and Column B has 1. a,c Knowledge
symbols of operators. Match the Column A with Column B (an 2. b,d
option in Column B may be used more than once)
Column A Column B
1. Unary a. --
2. Binary b. *
c. ++
d. %
9. Column A has classes in Java and Column B has theirrespective 1. a,c Knowledge
methods. Match the Column A with Column B (an option in 2. b,d
Column B may be used more than once)
Column A Column B
1.JOptionPane a.showMessageDialog()
2.Math b.round()
c.showConfirmDialog()
d.pow()
10. Column A has categories of controls in Java and Column B has 1. b,d Knowledge
names of controls. Match the Column A with Column B (an 2. a,c
option in Column B may be used more than once)
Column A Column B
1.Parent Control a.Text Field
2.Child Control b.JFrame
c.List Box
d. JPanel
11. Column A has methods in Java and Column B has their 1. a Knowledge
respective return types. Match the Column A with Column B 2. c
(an option in Column B may be used more than once)
Column A Column B
1.getText() a.String
2.isSelected() b.float
c.boolean
d.int
12. Column A has names of methods in Java and Column B has 1. a,b Knowledge
data types of values that it accepts as parameters. Match the 2. c
Column A with Column B (an option in Column B may be used
more than once)
Column A Column B
1.setSelected() a.true
2.isEnabled() b.false
c.void
13. Column A has Swing controls in Java and Column B has 1. b Knowledge
respective methods to clear controls. Match the Column A with 2. a
Column B (an option in Column B may be used more than once) 3. a
Column A Column B 4. d
1. Check Box a.setText()
2. Text Field b.setSelected()
3. Text Area c.clear()
4. combo box d. setSelectedIndex()
15. Column A has data types in Java and Column B has number of 1. b Knowledge
bytes it occupies in memory. Match the Column A with Column 2. a
B (an option in Column B may be used more than once) 3. b
Column A Column B 4. d
1.float a.8
2.double b.4
3. int c.2
4. byte d. 1
16. Column A has categories of data types in Java and Column B 1. a,d Knowledge
has names of data types. Match the Column A with Column B 2. b,c
(an option in Column B may be used more than once)
Column A Column B
1.Floating Point a.float
2.Character Type b.char
c. String
d. double
17. Column A has selection statements in Java and Column B has 1. b Knowledge
their respective features. Match the Column A with Column B 2. a, c,d
(an option in Column B may be used more than once)
Column A Column B
1. if a.Can not compare ranges
2. switch b.supports decimal values
c.equality Comparison only
d. can not compare decimals
Column A Column B
1. 1. Name the native classes a. java.String 1.b
supported by Java b. Math and String
2. Name the package that c. String and Int 2.d
contain in built methods of d. java.lang
Math class
1. A method which is an a. round() 1.a
example of Method b. pow()
Overloading
2. 2. A method that is used to c. trim() 2.c
remove leading and trailing d. ltrim()
white spaces e. rtrim()