Shared Flashcard Set

Details

Lesson 11
Lesson 11 - List boxes, For Next Loops, and Label Settings
20
Other
Not Applicable
12/11/2009

Additional Other Flashcards

 


 

Cards

Term
T/F: A Do While loop cannot be used to repeat a block of code a specific number of times.
Definition
False
Term
T/F: A ListBox can only hold one piece of information
Definition
False. A ListBox holds a list with multiple pieces of information.
Term
T/F: A For Next loop always begins with a For statement and ends with a Next statement
Definition
True
Term
T/F: A For Next loop always involves a Counter variable.
Definition
True
Term
T/F: A list box always has a slider bar.
Definition
False. A slider bar appears on a ListBox only when required to show more information than will fit at one time.
Term
T/F: A label's Font property can be used to control its appearance on a form.
Definition
True
Term
T/F: A ListBox cannot be empited once information has been placed in it.
Definition
False. The Items.Clear method will empty a ListBox
Term
T/F: When For next loops are nested, each nested loop must be completely contained within the outer loop.
Definition
True
Term
T/F: You cannot count backwards with a For Next loop
Definition
False. By using the Step keyword and a negative number, a For Next loop can count backwards.
Term
T/F: A label's font property can be used to control its appearance on a form.
Definition
False. The loop control variable is optional in the Next statements.
Term
What types of objects can be added to a ListBox?
Definition
Any object type can be added to a ListBox, but strings are the most common type of object used with ListBoxes.
Term
What statement or method is used to add information to a ListBox?
Definition
The Items.Add method is used to add information to a ListBox.
Term
How can multiple pieces of information be added to a single line in a Listbox?
Definition
Several pieces of information can be converted into strings and concatenated into a single string before being added to the ListBox.
Term
For what purpose is the For Next loops specifically designed?
Definition
The For Next loop is specifically designed for repeating a block of code a specific number of times.
Term
What keyword allows you to count by an increment other than one when used with a For Next loop?
Definition
The Step keyword allows you to specify counting increments other than one with a For Next loop.
Term
Why might you include a Counter variable name after the Next statement of a For Next loop?
Definition
You would include a Counter variable name after the Next statement of a For Next loop to make it clear which loop is ending. This is especially useful with nested loops.
Term
What are three appearance attributes that can be changed in a Font dialog box?
Definition
Possible answers include font name, font style, size, effects (strikeout and/or underlined), and script.
Term
Where is the loop control variable initialized for a For Next loop?
Definition
The loop control variable for a For Next loop is initialized as part of the For statement.
Term
How many lines of code may be between the For and Next statements?
Definition
Any number of statements may be entered between the For and Next statements.
Term
What fonts can be used in a label box?
Definition
A label box can use any font that is installed on your computer that is available from the Font dialog box.
Supporting users have an ad free experience!