Contents

...........indicates the order in which the controls were added to the groupbox.
a) Tab index                       
b) Tab order
c) Groupbox tool
d) Tab value

a

Explanation: You need to lock the controls in place and set the tab order. The number that appears after the period in the tab index values indicates the order in which the controls were added to the group box. The current tab index values appear on blue boxes in the form.


The TabIndex value of a group box is 5. If the txtName control was the first control added to the group box, its TabIndex value will be……
a) 1                        
b) 5.0     
c) 5.1     
d) 1.5

b

Explanation: The TabIndex values of the controls contained within the groupbox starts with the tab index value of the groupbox itself. Thus the control txtName has tabIndex 5, which indicates that the control belongs to the GroupBox and not to the form.


An application communicates with the user through………….
a) DialogBox                       
b) AlertBox
c) MessageBox   
d) AlertDialog

c

Explanation: Application may need to communicate with the user during run time; one means of doing this is through a message box. You display a message box using the MessageBox.Show method. The message box contains text, one or more buttons, and an icon.


One can display a message box using the ………….method.
a) MessageBox   
b) AlertBox.View
c) MessageBox.show         
d) MessageBox.Show

d

Explanation: Application may need to communicate with the user during run time; one means of doing this is through a message box. You display a message box using the MessageBox.Show method. The message box contains text, one or more buttons, and an icon.


When referring to the method’s return value in code, one should use the ……… value rather than the integer.
a) DoubleReturn 
b) BooleanResults
c) charResult                       
d) DialogResult

d

Explanation: When referring to the method’s return value in code, one should use the DialogResult value rather than an integer. The values make the code more self-documenting and easier to understand.


You use the………….constant to include the Exclamation icon in a message box.
a) MessageBox.exclamation
b) MessageBox.Iconexclamation
c) MessageBoxIcon.Exclamation
d) MessageBoxWarning.Icon

c

Explanation: The various constants like MessageBoxIcon.Exclamation is used to give icons in the Message Box. It is a constant to include the exclamation icon. MessageBoxIcon.Alert is another example which is used to give alert. MessabeBoxIcon.Close is another example, which gives the red-cross symbol.