What are some of the commonly used CheckBox and RadioButton properties, and the default event for which a method shell is generated for these classes in the IDE? If you wanted a user to select which pizza toppings he or she wanted from a group of possible toppings, which Control would you use and why?
What will be an ideal response?
Commonly used properties include:
Property or MethodDescription
CheckedIndicates whether the CheckBox or RadioButton is checked
TextThe text displayed to the right of the CheckBox or RadioButton
CheckedChanged()The default event that is generated when the Checked property changes
When a Form contains multiple Checkboxes, any number of them can be checked or unchecked at the same time. RadioButtons differ in that only one RadioButton in a group can be selected at a time. Therefore, Checkboxes would be more suitable for pizza toppings so that multiple toppings could be selected.
You might also like to view...
Explain why program inspections are an effective technique for discovering errors in a program. What types of error are unlikely to be discovered through inspections?
What will be an ideal response?
What does the following code do? Assume this method is invoked by the method call mystery( 70, 80 ). What value is returned from this method call?
``` 1 private int mystery( int number1, int number2 ) 2 { 3 int x; 4 int y; 5 6 x = number1 + number2; 7 y = x / 2; 8 9 if ( y <= 60 ) 10 { 11 return x; 12 } 13 else 14 { 15 return y; 16 } 17 18 } // end method mystery ```
Display course titles along with their prerequisite names. Display courses without prerequisite also.
Use the Indo–US (IU) College database tables to design the following queries. (Use the spooling method to capture all queries and results in the CHAP7SP2.LST file)
By default, the caption text is ____.
A. aligned left and placed above the table B. aligned left and placed below the table C. centered and placed above the table D. centered and placed below the table