Which are the standard prefixes for the Button and Combo box controls respectively?
-
btn and chb
-
btn and cbo
-
bto and chb
-
bto and cbo
-
cmd and cbo
To solve this question, the user needs to be familiar with common naming conventions for controls in user interfaces. Specifically, the user should know the standard prefixes used for button and combo box controls.
Now, let's go through each option and explain why it is right or wrong:
A. btn and chb: This option is incorrect. The prefix "btn" is commonly used for button controls, but the prefix "chb" is not typically used for combo box controls.
B. btn and cbo: This option is correct. The prefix "btn" is commonly used for button controls, and the prefix "cbo" is commonly used for combo box controls.
C. bto and chb: This option is incorrect. Neither the prefix "bto" nor the prefix "chb" are commonly used for button or combo box controls.
D. bto and cbo: This option is incorrect. The prefix "bto" is not commonly used for button controls, and the prefix "cbo" is commonly used for combo box controls.
E. cmd and cbo: This option is incorrect. The prefix "cmd" is not commonly used for button controls, and the prefix "cbo" is commonly used for combo box controls.
The correct answer is:
B. btn and cbo
'btn and cbo' is correct. These come from the standard Hungarian-notation prefix conventions widely used in VB/VB6 and classic Windows GUI development for naming controls consistently: 'btn' for CommandButton controls and 'cbo' for ComboBox controls. The distractors mix in 'chb' (which would suggest CheckBox, not relevant here) and 'bto' / 'cmd' variants that aren't the standard recognized prefixes for these two specific control types in that convention (though 'cmd' is sometimes seen informally for buttons, the standardized reference lists — e.g., the well-known Reddick VBA/VB naming conventions — use 'btn' and 'cbo').