Deck 10: So Many Pathsso Little Time Multiple-Alternative Selection Structures
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/25
Play
Full screen (f)
Deck 10: So Many Pathsso Little Time Multiple-Alternative Selection Structures
1
To include more than one expression in an expressionList, you separate each expression with a ____.
A) comma
C) semicolon
B) forward slash
D) period
A) comma
C) semicolon
B) forward slash
D) period
A
2
The value stored in the Text property is treated as alphanumeric text.
True
3
The three-character ID used when naming String variables (and String named constants) is ____.
A) sti
C) srg
B) str
D) stg
A) sti
C) srg
B) str
D) stg
B
4
The If...Then...Else statement is the only statement you can use to code a multiple-path selection structure in Visual Basic.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
5
The ____ data type can store alphanumeric text, which is text that may contain letters, numbers, or special characters.
A) String
C) Integer
B) Double
D) Text
A) String
C) Integer
B) Double
D) Text
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
6
The Select Case statement begins with the keywords Select Case, followed by a(n) ____.
A) listExpression
C) expressionList
B) expressionSelector
D) selectorExpression
A) listExpression
C) expressionList
B) expressionSelector
D) selectorExpression
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
7
The code to create a String variable is ____.
A) dim string strCode
C) dim strCode as string
B) dim strCode string
D) dim Codestr as string
A) dim string strCode
C) dim strCode as string
B) dim strCode string
D) dim Codestr as string
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
8
Multiple-alternative selection structures or ____ selection structures can choose from several alternatives.
A) complex
C) extended
B) staged
D) control
A) complex
C) extended
B) staged
D) control
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
9
Using nested If…Then…Else statements is a much more convenient way of coding a multiple-alternative selection structure than using the If…ElseIf…Else statement.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
10
At times, you may need to create a selection structure that can choose from several alternatives.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
11
The data type of the expressions in a Select Case statement does not need to be compatible with the data type of the selectorExpression.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
12
In Visual Basic, the uppercase version of a letter is the same as its lowercase counterpart.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
13
You use the ____ method to convert a string to uppercase.
A) ConvToUpper
C) ToUpper
B) strUpper
D) ConvUpper
A) ConvToUpper
C) ToUpper
B) strUpper
D) ConvUpper
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
14
The minimum number of radio buttons in a group is two, because the only way to deselect a radio button is to select another radio button.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
15
As is true in most programming languages, string comparisons in Visual Basic are not case sensitive.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
16
Unicode assigns a unique numeric value to each character used in the written languages of the world.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
17
Variables declared with the Integer, Decimal, and Double data types can store numbers only.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
18
____ is the universal coding scheme for characters.
A) EBCDIC
C) ASCII
B) ANSI
D) Unicode
A) EBCDIC
C) ASCII
B) ANSI
D) Unicode
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
19
A radio button is created using the RadioButton tool in the toolbox, and it allows the user to choose more than one choice in a group of two or more related but not mutually exclusive choices.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
20
Each character on the computer keyboard is stored in the computer's internal memory using a different Unicode value.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
21
You can specify a range of values in a Case clause's ____, such as the values 1 through 5 or values greater than 10.
A) statementList
C) End Case
B) expressionList
D) Case
A) statementList
C) End Case
B) expressionList
D) Case
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
22
You designate a radio button as the default radio button by setting the button's ____ property to the Boolean value True.
A) Display
C) Selected
B) Default
D) Checked
A) Display
C) Selected
B) Default
D) Checked
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
23
Each radio button can have a unique ____ key that allows the user to select the button using the keyboard.
A) parameterized
C) selector
B) contact
D) access
A) parameterized
C) selector
B) contact
D) access
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
24
The selected button in a radio button group is called the ____ radio button and is either the radio button that represents the user's most likely choice or the first radio button in the group.
A) default
C) likely
B) first
D) preselected
A) default
C) likely
B) first
D) preselected
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
25
The recommended maximum number of radio buttons in a group is ____.
A) two
C) seven
B) five
D) ten
A) two
C) seven
B) five
D) ten
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck