21. What is the correct syntax to designate a default button?

Form.default=button1
Form.defaultButton=button1
Form.AcceptButton=button1
Form.focused=button1

Detailed SolutionWhat is the correct syntax to designate a default button?

22. An . . . . . . . . function will display a message box where the user can enter a value.

msgbox()
inputbox()
print
nested

Detailed SolutionAn . . . . . . . . function will display a message box where the user can enter a value.

23. . . . . . . . . is used to differentiate the one redio button group to another radio button group.

bottom
top
dim
frame

Detailed Solution. . . . . . . . is used to differentiate the one redio button group to another radio button group.

24. Margin lines are . . . . . . . . in colour.

Blue
Red
Green
Black

Detailed SolutionMargin lines are . . . . . . . . in colour.

25. In a . . . . . . . . loop the condition is evaluated before the instructions within the loop are processed.

Posttest
Pretest
Conditional loop
Unconditional loop

Detailed SolutionIn a . . . . . . . . loop the condition is evaluated before the instructions within the loop are processed.

26. How many times will the MessageBox.Show method in the following code be processed? For count As Integer = 5 to 9 Step 5 MessageBox.Show(“Hi”) Next count

0
1
2
4

Detailed SolutionHow many times will the MessageBox.Show method in the following code be processed? For count As Integer = 5 to 9 Step 5 MessageBox.Show(“Hi”) Next count

27. Using array in a program is efficient because . . . . . . . .

It shortens the program.
The program compiles faster
Number of variables are reduced.
Data is accessed faster

Detailed SolutionUsing array in a program is efficient because . . . . . . . .

28. A button’s caption is entered using . . . . . . . .

sentence capitalization
book title capitalization
character capitalization
word capitalization

Detailed SolutionA button’s caption is entered using . . . . . . . .

29. If you keep a variable undeclared, it is automatically taken as to which of the following data type in Visual Basic?

Char
Int
Object
String

Detailed SolutionIf you keep a variable undeclared, it is automatically taken as to which of the following data type in Visual Basic?

30. Designers generally avoid using . . . . . . . . and . . . . . . . . in an interface.

Italics and underline
Underline and bold
Bold and italics
Regular and bold

Detailed SolutionDesigners generally avoid using . . . . . . . . and . . . . . . . . in an interface.