The text box’s………….event procedure prevents user from entering a specified character.
a) KeyPress
b) check
c) checkchar
d) checkinput
Explanation: The KeyPress event handles any unacceptable input the user provides in the given text area. For example, when alphabets are entered in place of numbers in text area, which is only used to enter numbers.
A control’s KeyPress event occurs every time…
a) The user selects the text area
b) The user submits the information in the text area
c) The user types a character in the text area
d) The user taps the enter key
Explanation: A control’s KeyPress event occurs every time the user types a character in the text area. A control’s KeyPress event occurs each time the user presses a key while the control has the focus.
The procedure associated with the KeyPress event has………….parameters.
a) 2
b) 3
c) 4
d) 1
Explanation: The procedure associated with the KeyPress event has two parameters, which appear within the parentheses in the procedure header, sender and e (small e).
‘e’ parameter’s………….property is used to determine the pressed key.
a) Keypress
b) KeyChar
c) Keychar
d) Key.Char
Explanation: The ‘e’ parameter’s KeyChar property is used to determine the pressed key. To prevent a text box from accepting an unacceptable character, first the ‘e’ parameter’s KeyChar property is used to determine the pressed key. KeyChar stands for “key character.”
‘e’ parameter’s………….property is used to cancel the key if not accepted
in the text area.
a) Remove
b) RemoveChar
c) Handled
d) handled
You use the………….tool to add a radio button to a form.
a) Button
b) Radio
c) Option
d) RadioButton
Explanation: RadioButton is used to add radio button to a form. Radio buttons are used to make mutually exclusive choices that means only one option can be selected at a time. We can select only one option in a radio button, whereas in a checkbox we can select multiple options.