What is the standard prefix for the name of a CheckBox?
-
chb
-
chk
-
ckb
-
ckx
-
cbx
To determine the standard prefix for the name of a CheckBox, we need to understand common naming conventions and standards used in programming.
In most programming languages, including HTML and ASP.NET, the standard prefix for the name of a CheckBox is typically "chk".
Now, let's go through each option and explain why it is right or wrong:
A. chb: This option is incorrect because "chb" is not the standard prefix for the name of a CheckBox. The standard prefix is "chk".
B. chk: This option is correct. "chk" is the standard prefix for the name of a CheckBox in most programming languages.
C. ckb: This option is incorrect because "ckb" is not the standard prefix for the name of a CheckBox. The standard prefix is "chk".
D. ckx: This option is incorrect because "ckx" is not the standard prefix for the name of a CheckBox. The standard prefix is "chk".
E. cbx: This option is incorrect because "cbx" is not the standard prefix for the name of a CheckBox. The standard prefix is "chk".
The Answer is: B
The standard Hungarian-notation prefix for a CheckBox control is chk, distinguishing it in code from other control types like chb/ckb/cbx, which aren't the conventional abbreviations used for this control. Following a consistent prefix convention makes it easy to identify a control's type just from its variable name.