Content Frame
Note for screen reader users: There is text between the form elements on this page. To be sure that you do not miss any text, use item by item navigation methods, rather than tabbing from form element to form element
[Skip Breadcrumb Navigation]
Home  arrow Student Resources  arrow Chapter Quizzes  arrow Chapter 3

Chapter 3
Chapter 3 Quiz: Input, Variables, Exceptions, And Calculations

This activity contains 11 questions.

Question 1
1 Which way does not clear a text box named txtInput for input? (hint page 99-100)
 
End of Question 1


Question 2
2 To break up long lines of code, the line continuation character is:
 
End of Question 2


Question 3
3 Which statement(s) are true?

i. txtBox.Focus() put the focus, and thus the cursor, into a control called txtBox.

ii. Only controls capable of receiving some sort of input may have the focus.

iii. When an application is running and a form is displayed, one of the form’s controls always has the focus.

iv. myButton.Focus() will enable the user to press the enter key to engage the button’s commands.

 
End of Question 3


Question 4
4
Open Hint for Question 4 in a new window
Which statement(s) are true?

i. The order the controls are placed on the form determines the tab order.

ii. The tab order is permanent and can not be changed.

iii. The TabIndex property contains an integer which indicates the controls position in the tab order.

iv. The first control placed on a form has a TabIndex of 1.

 
End of Question 4


Question 5
5 Which statement(s) are true?

i. More than one button can be assigned the same access key, but only the first button assigned the access key will be able to utilize it during a click event.

ii. You assign an access key through the Text property.

iii. An access key is defined by placing an ampersand (&) behind the first letter of the text the button is to contain. This will underline the first letter and make that letter an access key.

iv. In order to use an ampersand in the button’s text, you simply type two of them (&&) together, and only one will appear in the text..

 
End of Question 5


Question 6
6
Open Hint for Question 6 in a new window
Which is not a correctly formatted assignment statement?
 
End of Question 6


Question 7
7 Which statement(s) are not true?

i. A variable is a name that represents a storage location in the computer’s RAM.

ii. To declare a variable you use a DIM statement.

iii. Variable names have the same naming convention as control names.

iv. A variables data type determines the amount of memory that variable uses.

 
End of Question 7


Question 8
8 The difference between Decimal and Double data types is:
 
End of Question 8


Question 9
9 Which statement(s) are true?

i. A variable can not be used before it is declared.

ii. Implicit type conversion is when Visual Basic attempts to convert one value type to another value type through an assignment statement.

iii. When Option Strict is set to On any conversion, other than a widening conversion, will cause the code not to compile.

iv. CStr(expr) converts a numerical, Boolean, Date or string expression to a String.

 
End of Question 9


Question 10
10 How many decimal places does the FormatNumber function format a number to by default?
 
End of Question 10


Question 11
11
Open Hint for Question 11 in a new window
Which statement(s) about Group Boxes are true?

i. The title for the Group Box is stored in the Group Box’s Text property.

ii. To place a control inside a Group Box, select the existing Group Box control, and then double click the desired tool within the toolbox to place the control within the Group Box.

iii. To place a control inside a Group Box, select the existing Group Box control, and then click on the desired tool within the toolbox and draw the control within the Group Box.

iv. Group Box controls can receive the focus, and have an access key assigned to them.

 
End of Question 11






Answer choices in this exercise appear in a different order each time the page is loaded.




Copyright © 1995-2008, Pearson Education, Inc., publishing as Pearson Addison Wesley
Legal and Privacy Terms
Pearson Education

[Return to the Top of this Page]