User Interface – Controlling the Tab Order - Visual Basic Questions and Answers

1.

Which property contains a number that represents the order in which the control was added to the form?

   A.) Index property
   B.) Tab order property
   C.) Order property
   D.) TabIndex property

Answer: Option 'D'

Most controls have a TabIndex property that determines the order in which the controls was added to the form. The first control added to the form has TabIndex 0, the second control has TabIndex 1 and so on.

DigitalOcean Referral Badge

2.

What determines the Tab order?

   A.) TabIndex values
   B.) TabOrder values
   C.) Arrangement of the controls in the interface
   D.) Tab values

Answer: Option 'A'

TabIndex values
The tab index values determine the tab order which is the order in which each control receives the focus when the user wither presses a Tab key or employs an access key while an application is running. A control whose TabIndex is 2 will receive the focus immediately after the control whose TabIndex is 1.

DigitalOcean Referral Badge

3.

When a control has focus it can accept __________

   A.) strings
   B.) numbers
   C.) values
   D.) any user input

Answer: Option 'D'

When a control has focus, it can accept user input, which can be anything, and it will be accepted as a string i.e. even a number will be accepted as a string, and we need to change to number by parsing in the click event property, if we want to work with the number itself.

DigitalOcean Referral Badge

4.

Set the identifying labels tab index property that is __________ than text box’s tab index property.

   A.) One number lesser
   B.) Same as text box’s tab index
   C.) Does not depend on text box’s tab index
   D.) One number more

Answer: Option 'A'

One number lesser

Since the identifying level of the text box contains the text box’s access key, thus the identifying level must be assigned tab index value one number less than the text box’s tab index value such that it can work properly.

DigitalOcean Referral Badge

5.

When you start an application, the computer sends the focus to the control whose TabIndex is __________

   A.) One
   B.) Last TabIndex (that is if we have 8 control’s at 8th Tab Index)
   C.) Two
   D.) Zero

Answer: Option 'D'

Zero

When you start an application, the computer sends the focus to the control whose TabIndex is zero. However, since level controls cannot receive the focus, the computer sends the focus to the next control in the tab order sequence. The blinking insertion in the text box indicates that it has the focus, and can receive input text from you.

DigitalOcean Referral Badge

6.

Pressing the enter key when the button is on focus produces __________

   A.) Button’s properties
   B.) Button’s click event
   C.) Removes the button
   D.) Dialog box to change button name

Answer: Option 'B'

Button’s click event

Pressing the Enter key when the button has the focus invokes the Button’s click event, causing the computer to access any code in the Click Event procedure.

DigitalOcean Referral Badge

7.

Press __________ to move the focus to the text box’s access key named textBlue.

   A.) Alt+b
   B.) Alt+t
   C.) Alt+c
   D.) Alt+x

Answer: Option 'A'

When an application starts to remove the focus to an text box’s access key, use the Alt key plus the starting name after the keyword “text”, that is to move focus to textbox named textBlue press Alt+b ; similarly to move the focus to textName press Alt+n.

DigitalOcean Referral Badge

8.

Use the __________ to verify the tab order control in the interface.

   A.) Enter key
   B.) Shift key
   C.) Tab key
   D.) Alt key

Answer: Option 'C'

Tab key moves the focus forward and Shift+tab key moves the focus backward. If we place the focus at TabIndex 0 and continue pressing tab key, we can verify the tab order control in the interface. When the button has the focus its border is darkened.

DigitalOcean Referral Badge

9.

You can set the control’s tab index property using __________

   A.) Properties window
   B.) File
   C.) Edit
   D.) Control Window

Answer: Option 'A'

Properties window

You can set the control’s Tab Index property from the properties Window or the tab order option on the View menu. The Tab order option is available only when the designer window is the active window.

DigitalOcean Referral Badge

10.

Set the identifying labels tab index property that is __________ than text box’s tab index property.

   A.) One number lesser
   B.) One number more
   C.) Same as text box’s tab index
   D.) Does not depend on text box’s tab index

Answer: Option 'A'

One number lesser

Since the identifying level of the text box contains the text box’s access key, thus the identifying level must be assigned tab index value one number less than the text box’s tab index value such that it can work properly.

DigitalOcean Referral Badge

11.

A __________ is an example that accepts user input and is determined by a label control.

   A.) Text box
   B.) Tool box
   C.) Button
   D.) Property box

Answer: Option 'A'

Text box

To determine the appropriate tab index values you must first make a list of the controls that accept user input. The list should reflect the order in which the user wants to access the controls. If a control that accepts user input is defined by a label control, you should include the label control in the list. A text box is such an example that accepts user input and is determined by the label control.

DigitalOcean Referral Badge

User Interface – Controlling the Tab Order - Visual Basic Questions and Answers Download Pdf

Recent Posts