SlideShare a Scribd company logo
1 Which component contains menus?
a. Menu button.
b. Title bar.
c. Menu bar.
d. Combo box.
2. Which of the following statements for a JTextField is false?
a. Can be used to display uneditable text.
b. Can be used to display editable text.
c. Enables users to enter data from the keyboard.
d. Displays a list of fields.
3. Which of the following statements about heavyweight components is false?
a. AWT components are not heavyweight components.
b. Several Swing components are heavyweight components.
c. The look-and-feel may vary across platforms.
d. The functionality may vary across platforms.
4. Which pair of words does not complete the sentence below correctly?
A ________ is a ________.
a. Container, Component.
b. Container, JPanel.
c. JComponent, Container.
d. Component, Object.
5. provides the basic attributes and behaviors of a window—a title bar at the top of the
window, and buttons to minimize, maximize and close the window.
a. JLabel.
b. JFrame.
c. JSwing.
d. JWindowControl.
6. Method can be used to set the layout manager of a container.
a. setManager.
b. setLayout.
c. setLayoutManager.
d. setGUILayout.
7. A JLabel can be attached to a JFrame using method:
a. attach.
b. contain.
c. append.
d. add.
8. A JRadioButton is different from a JCheckBox in that .
a. a JRadioButton is a subclass of JToggleButton, JCheckBox is not.
b. normally several JRadioButtons are grouped together and are mutually exclusive.
c. a JRadioButton is a type of button, JCheckBox is not.
d. a JRadioButton is a state button, JCheckBox is not.
9. The logical relationship between radio buttons is maintained by objects of what class?
a. MutualExclusionGroup.
b. RadioButtonGroup.
c. Group.
d. ButtonGroup.
10. Adding a ButtonGroup object to a container:
a. is necessary for the functionality of the ButtonGroup to work properly.
b. causes all the JRadioButtons in the group to have their event handlers registered.
c. results in a compilation error.
d. None of the above.
1 Which component contains menus?
a. Menu button.
b. Title bar.
c. Menu bar.
d. Combo box.
2. Which of the following statements for a JTextField is false?
a. Can be used to display uneditable text.
b. Can be used to display editable text.
c. Enables users to enter data from the keyboard.
d. Displays a list of fields.
3. Which of the following statements about heavyweight components is false?
a. AWT components are not heavyweight components.
b. Several Swing components are heavyweight components.
c. The look-and-feel may vary across platforms.
d. The functionality may vary across platforms.
4. Which pair of words does not complete the sentence below correctly?
A ________ is a ________.
a. Container, Component.
b. Container, JPanel.
c. JComponent, Container.
d. Component, Object.
5. provides the basic attributes and behaviors of a window—a title bar at the top of the
window, and buttons to minimize, maximize and close the window.
a. JLabel.
b. JFrame.
c. JSwing.
d. JWindowControl.
6. Method can be used to set the layout manager of a container.
a. setManager.
b. setLayout.
c. setLayoutManager.
d. setGUILayout.
7. A JLabel can be attached to a JFrame using method:
a. attach.
b. contain.
c. append.
d. add.
8. A JRadioButton is different from a JCheckBox in that .
a. a JRadioButton is a subclass of JToggleButton, JCheckBox is not.
b. normally several JRadioButtons are grouped together and are mutually exclusive.
c. a JRadioButton is a type of button, JCheckBox is not.
d. a JRadioButton is a state button, JCheckBox is not.
9. The logical relationship between radio buttons is maintained by objects of what class?
a. MutualExclusionGroup.
b. RadioButtonGroup.
c. Group.
d. ButtonGroup.
10. Adding a ButtonGroup object to a container:
a. is necessary for the functionality of the ButtonGroup to work properly.
b. causes all the JRadioButtons in the group to have their event handlers registered.
c. results in a compilation error.
d. None of the above.
Solution
1.
2. Displays a list of fields (d)
3. Several Swing components are heavyweight components (b)
4. Container, JPanel (b)
5. JFrame (b)
6. setLayout (b)
7. add (d)
8. normally several JRadioButtons are grouped together and are mutually exclusive. (b)
9. Button group (d)
10. results in a compilation error (c)
Because ButtonGroup object is not a component nd we can't add it to a container.

More Related Content

DOCX
What is the container for top level menu items Select one a menu ba.docx
PDF
Gui builder
PDF
Starting Out With Java From Control Structures Through Data Structures 2nd Ed...
PDF
Starting Out With Java From Control Structures Through Data Structures 2nd Ed...
PPTX
java2 (3).pptxbsbsbnsjsjjsshshshwhwhwhwhhwhw
PDF
I need some help answering these three questions listed below.1. A.pdf
PDF
Tutorial MATLAB GUI. MATLAB GUI (G hi l U I t f ) T t i l f B i MATLAB GUI (G...
PPT
13457272.ppt
What is the container for top level menu items Select one a menu ba.docx
Gui builder
Starting Out With Java From Control Structures Through Data Structures 2nd Ed...
Starting Out With Java From Control Structures Through Data Structures 2nd Ed...
java2 (3).pptxbsbsbnsjsjjsshshshwhwhwhwhhwhw
I need some help answering these three questions listed below.1. A.pdf
Tutorial MATLAB GUI. MATLAB GUI (G hi l U I t f ) T t i l f B i MATLAB GUI (G...
13457272.ppt

Similar to 1 Which component contains menusa. Menu button.b. Title bar.c.pdf (20)

DOCX
QUESTION 1What type of items are valid for use in the value list o.docx
PDF
Starting Out With Java From Control Structures Through Data Structures 2nd Ed...
PDF
17 A Label controls property allows a label to change si.pdf
PDF
Starting Out With Java From Control Structures Through Data Structures 2nd Ed...
PPTX
Chapter - 6.pptx
PPTX
UNIT 2 SWIGS for java programing by .pptx
PPTX
PDF
Starting Out With Java From Control Structures Through Data Structures 2nd Ed...
PDF
Flutter and Dart MCQS
PDF
Which of the following about radio button is correct a The.pdf
PPT
Graphical User Interface in JAVA
PDF
Test Bank for Starting Out With Visual Basic 2012, 6th Edition Gaddis, Irvine
DOCX
Graphic Programming
PPT
java swing
PDF
Java Foundations Introduction to Program Design and Data Structures 4th Editi...
PDF
Test Bank for Starting Out With Visual Basic 2012, 6th Edition Gaddis, Irvine
PPTX
Advanced java programming
PDF
Java Foundations Introduction to Program Design and Data Structures 4th Editi...
PDF
Session 9_AWT in java with all demonstrations.pdf
PPT
Java_gui_with_AWT_and_its_components.ppt
QUESTION 1What type of items are valid for use in the value list o.docx
Starting Out With Java From Control Structures Through Data Structures 2nd Ed...
17 A Label controls property allows a label to change si.pdf
Starting Out With Java From Control Structures Through Data Structures 2nd Ed...
Chapter - 6.pptx
UNIT 2 SWIGS for java programing by .pptx
Starting Out With Java From Control Structures Through Data Structures 2nd Ed...
Flutter and Dart MCQS
Which of the following about radio button is correct a The.pdf
Graphical User Interface in JAVA
Test Bank for Starting Out With Visual Basic 2012, 6th Edition Gaddis, Irvine
Graphic Programming
java swing
Java Foundations Introduction to Program Design and Data Structures 4th Editi...
Test Bank for Starting Out With Visual Basic 2012, 6th Edition Gaddis, Irvine
Advanced java programming
Java Foundations Introduction to Program Design and Data Structures 4th Editi...
Session 9_AWT in java with all demonstrations.pdf
Java_gui_with_AWT_and_its_components.ppt
Ad

More from fashiondestinationld (20)

PDF
Determine if the following series or improper integrals are converge.pdf
PDF
Define the yield to maturity.SolutionYTM is the discount rate .pdf
PDF
CPU has an ArithmeticLogic Unit (ALU). Which are true for ALUSel.pdf
PDF
a) How many bit strings of length 6 are there which contain at least.pdf
PDF
A group of legislators wanted to look at factors that affect the num.pdf
PDF
6. Why might The Home Depot and Lowes choose such odd dates to end.pdf
PDF
3 Diseases [10 marks] create two classes zika and Plague. Each of t.pdf
PDF
Chapter 16 Question 15 - Case StudyWhat can fish color tell us abo.pdf
PDF
CASE APPLICATION #3 Decision Making, Saudi Style appreciate the disti.pdf
PDF
You and another tech are discussing the relative merits of SCSI inte.pdf
PDF
Which of the following is NOT true of reflexes They are involuntary.pdf
PDF
What is this pedigree and example of Autosomal dominant autosomal .pdf
PDF
what is total output in economicsSolutionWhat is total output .pdf
PDF
What are the components of the prokaryotic and eukaryotic cells a.pdf
PDF
The Software Quality plan and a Software Configuration Management pl.pdf
PDF
t distribution is a continuous distribution.TrueFalseSolutio.pdf
PDF
Since this is a group discussion, each group has own conversation for.pdf
PDF
REEF Activity Which of the following general transcriptions factors u.pdf
PDF
Q2. Jay rents a room in his house to a college student. In the event.pdf
PDF
Problem 5.7 Part A How do mammals, including humans, solve the dosa.pdf
Determine if the following series or improper integrals are converge.pdf
Define the yield to maturity.SolutionYTM is the discount rate .pdf
CPU has an ArithmeticLogic Unit (ALU). Which are true for ALUSel.pdf
a) How many bit strings of length 6 are there which contain at least.pdf
A group of legislators wanted to look at factors that affect the num.pdf
6. Why might The Home Depot and Lowes choose such odd dates to end.pdf
3 Diseases [10 marks] create two classes zika and Plague. Each of t.pdf
Chapter 16 Question 15 - Case StudyWhat can fish color tell us abo.pdf
CASE APPLICATION #3 Decision Making, Saudi Style appreciate the disti.pdf
You and another tech are discussing the relative merits of SCSI inte.pdf
Which of the following is NOT true of reflexes They are involuntary.pdf
What is this pedigree and example of Autosomal dominant autosomal .pdf
what is total output in economicsSolutionWhat is total output .pdf
What are the components of the prokaryotic and eukaryotic cells a.pdf
The Software Quality plan and a Software Configuration Management pl.pdf
t distribution is a continuous distribution.TrueFalseSolutio.pdf
Since this is a group discussion, each group has own conversation for.pdf
REEF Activity Which of the following general transcriptions factors u.pdf
Q2. Jay rents a room in his house to a college student. In the event.pdf
Problem 5.7 Part A How do mammals, including humans, solve the dosa.pdf
Ad

Recently uploaded (20)

PDF
CISA (Certified Information Systems Auditor) Domain-Wise Summary.pdf
PDF
What if we spent less time fighting change, and more time building what’s rig...
PDF
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
PPTX
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
PPTX
A powerpoint presentation on the Revised K-10 Science Shaping Paper
PPTX
TNA_Presentation-1-Final(SAVE)) (1).pptx
PDF
Paper A Mock Exam 9_ Attempt review.pdf.
PPTX
History, Philosophy and sociology of education (1).pptx
PDF
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 1)
PPTX
ELIAS-SEZIURE AND EPilepsy semmioan session.pptx
PDF
My India Quiz Book_20210205121199924.pdf
PDF
IGGE1 Understanding the Self1234567891011
PPTX
B.Sc. DS Unit 2 Software Engineering.pptx
PDF
Weekly quiz Compilation Jan -July 25.pdf
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PDF
Trump Administration's workforce development strategy
PDF
AI-driven educational solutions for real-life interventions in the Philippine...
PDF
Vision Prelims GS PYQ Analysis 2011-2022 www.upscpdf.com.pdf
PDF
LDMMIA Reiki Yoga Finals Review Spring Summer
CISA (Certified Information Systems Auditor) Domain-Wise Summary.pdf
What if we spent less time fighting change, and more time building what’s rig...
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
A powerpoint presentation on the Revised K-10 Science Shaping Paper
TNA_Presentation-1-Final(SAVE)) (1).pptx
Paper A Mock Exam 9_ Attempt review.pdf.
History, Philosophy and sociology of education (1).pptx
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 1)
ELIAS-SEZIURE AND EPilepsy semmioan session.pptx
My India Quiz Book_20210205121199924.pdf
IGGE1 Understanding the Self1234567891011
B.Sc. DS Unit 2 Software Engineering.pptx
Weekly quiz Compilation Jan -July 25.pdf
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
Trump Administration's workforce development strategy
AI-driven educational solutions for real-life interventions in the Philippine...
Vision Prelims GS PYQ Analysis 2011-2022 www.upscpdf.com.pdf
LDMMIA Reiki Yoga Finals Review Spring Summer

1 Which component contains menusa. Menu button.b. Title bar.c.pdf

  • 1. 1 Which component contains menus? a. Menu button. b. Title bar. c. Menu bar. d. Combo box. 2. Which of the following statements for a JTextField is false? a. Can be used to display uneditable text. b. Can be used to display editable text. c. Enables users to enter data from the keyboard. d. Displays a list of fields. 3. Which of the following statements about heavyweight components is false? a. AWT components are not heavyweight components. b. Several Swing components are heavyweight components. c. The look-and-feel may vary across platforms. d. The functionality may vary across platforms. 4. Which pair of words does not complete the sentence below correctly? A ________ is a ________. a. Container, Component. b. Container, JPanel. c. JComponent, Container. d. Component, Object. 5. provides the basic attributes and behaviors of a window—a title bar at the top of the window, and buttons to minimize, maximize and close the window. a. JLabel. b. JFrame. c. JSwing. d. JWindowControl. 6. Method can be used to set the layout manager of a container. a. setManager. b. setLayout. c. setLayoutManager. d. setGUILayout. 7. A JLabel can be attached to a JFrame using method: a. attach. b. contain.
  • 2. c. append. d. add. 8. A JRadioButton is different from a JCheckBox in that . a. a JRadioButton is a subclass of JToggleButton, JCheckBox is not. b. normally several JRadioButtons are grouped together and are mutually exclusive. c. a JRadioButton is a type of button, JCheckBox is not. d. a JRadioButton is a state button, JCheckBox is not. 9. The logical relationship between radio buttons is maintained by objects of what class? a. MutualExclusionGroup. b. RadioButtonGroup. c. Group. d. ButtonGroup. 10. Adding a ButtonGroup object to a container: a. is necessary for the functionality of the ButtonGroup to work properly. b. causes all the JRadioButtons in the group to have their event handlers registered. c. results in a compilation error. d. None of the above. 1 Which component contains menus? a. Menu button. b. Title bar. c. Menu bar. d. Combo box. 2. Which of the following statements for a JTextField is false? a. Can be used to display uneditable text. b. Can be used to display editable text. c. Enables users to enter data from the keyboard. d. Displays a list of fields. 3. Which of the following statements about heavyweight components is false? a. AWT components are not heavyweight components. b. Several Swing components are heavyweight components. c. The look-and-feel may vary across platforms. d. The functionality may vary across platforms. 4. Which pair of words does not complete the sentence below correctly? A ________ is a ________. a. Container, Component. b. Container, JPanel.
  • 3. c. JComponent, Container. d. Component, Object. 5. provides the basic attributes and behaviors of a window—a title bar at the top of the window, and buttons to minimize, maximize and close the window. a. JLabel. b. JFrame. c. JSwing. d. JWindowControl. 6. Method can be used to set the layout manager of a container. a. setManager. b. setLayout. c. setLayoutManager. d. setGUILayout. 7. A JLabel can be attached to a JFrame using method: a. attach. b. contain. c. append. d. add. 8. A JRadioButton is different from a JCheckBox in that . a. a JRadioButton is a subclass of JToggleButton, JCheckBox is not. b. normally several JRadioButtons are grouped together and are mutually exclusive. c. a JRadioButton is a type of button, JCheckBox is not. d. a JRadioButton is a state button, JCheckBox is not. 9. The logical relationship between radio buttons is maintained by objects of what class? a. MutualExclusionGroup. b. RadioButtonGroup. c. Group. d. ButtonGroup. 10. Adding a ButtonGroup object to a container: a. is necessary for the functionality of the ButtonGroup to work properly. b. causes all the JRadioButtons in the group to have their event handlers registered. c. results in a compilation error. d. None of the above. Solution
  • 4. 1. 2. Displays a list of fields (d) 3. Several Swing components are heavyweight components (b) 4. Container, JPanel (b) 5. JFrame (b) 6. setLayout (b) 7. add (d) 8. normally several JRadioButtons are grouped together and are mutually exclusive. (b) 9. Button group (d) 10. results in a compilation error (c) Because ButtonGroup object is not a component nd we can't add it to a container.