Multiple Choice
How many radio buttons can be selected at the same time as the result of the following code?
Hours = new JRadioButton("Hours") ;
Minutes = new JRadioButton("Minutes") ;
Seconds = new JRadioButton("Seconds") ;
Days = new JRadioButton("Days") ;
Months = new JRadioButton("Months") ;
Years = new JRadioButton("Years") ;
TimeOfDayButtonGroup = new ButtonGroup() ;
DateButtonGroup = new ButtonGroup() ;
TimeOfDayButtonGroup.add(hours) ;
TimeOfDayButtonGroup.add(minutes) ;
TimeOfDayButtonGroup.add(seconds) ;
DateButtonGroup.add(days) ;
DateButtonGroup.add(months) ;
DateButtonGroup.add(years) ;
A) 1
B) 2
C) 3
D) 4
Correct Answer:

Verified
Correct Answer:
Verified
Q4: When a splash screen is displayed, the
Q6: Programs that operate in a GUI environment
Q13: You use the _ key word in
Q14: Why doesn't the following code compile correctly?<br>Import
Q16: Check boxes may be grouped in a
Q17: What will be the result of executing
Q19: When an application uses many components, rather
Q20: The ability to display splash screens was
Q22: When an application uses many components, instead
Q23: Which of the following statements is NOT