Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
82 Cards in this Set
- Front
- Back
A _____ structure is used to deal with different conditions that occur based on values entered into an application. |
decision |
|
To display a message box window, such as an error message, use the _____ procedure of the MessageBox class. |
Show |
|
The specify a continuous range of values to be tested in a Case statement within a Select Case structure, the word _____ must be used. |
To |
|
The end a Select Case structure, a(n) _____ statement is used. |
End Select |
|
True or False?
In an If... Then statement, the If keyword should appear on the first line with the conditional expression, and the Then keyword should appear on the second line. |
false
If condition Then Statement(s) executed when condition is true End If |
|
Every If statement block must be terminated by the _____ keyword. |
End If |
|
If a program attempts to process invalid data, unexpected errors can occur. |
true |
|
A statement that tests a value is called a _____ statement. |
conditional |
|
The use multiple conditions in a single If...Then...Else statement, _____ conditions are required. |
compound |
|
A message box is also known as a(n) _____ box. |
dialog |
|
In an expression using the logical operator _____, as soon as one of the compound conditions is found to be true, no further conditions are tested and the expression evaluate to true. |
OrElse |
|
True or False?
If data analyzed by the IsNumeric function cannot be converted to a numeric data type, the function will return a value of _____. |
False |
|
True or False?
A condition can be true and false at the same time. |
false |
|
True or False?
When RadioButton objects are contained in a group box, the user can select only one of the radio buttons on the panel. |
true |
|
True or False?
In a Select Case statement, the keyword Is must be used when testing with relational operators. |
true
Select Case decOrderAmount Case Is > 500D decShippingCost = 30D Case Is > 400D decShippingCost = 25D Case Is > 200D decShippingCost = 20D Case Else decShippingCost = 0D End Select |
|
What is the value of the MsgBoxStyle.OKOnly? |
0 |
|
The plus sign is the preferred operator for concatenation. |
false
& |
|
What cannot be contained in a code snippet? |
an entire program |
|
True or False?
Often, during design time, you should set the Checked property for the most commonly selected RadioButton object to True and save the user from having to select the most common choice. |
true |
|
To create a compound condition in an If statement, a(n) _____ operator is required. |
logical |
|
True or False?
Only one condition can be tested in an If statement. |
false |
|
The business traveling rule "If the flight costs less than $300.00 and the hotel is less than $120.00 per night" is an illustration of _____ conditions. |
compound |
|
True or False?
An End Case statement is used to terminate a Select Case structure. |
false
End Select |
|
Visual Basic contains a code library of almost _____ pieces of code called code snippets, inserted by the command shown on the accompanying figure. |
500 |
|
Which of the following is a feature of the Panel object?
- have a caption - have scroll bars - display a labeled border |
none of the above
(all are options for GroupBox objects) |
|
The _____ object provides several options not available with the Panel object. |
GroupBox |
|
True or False?
Each code snippet inserted by the InsertSnippet command consists of a complete programming task. |
true |
|
True or False?
Variables declared within a block of code can only be referenced within that block. |
true |
|
The IsNumeric function will return a(n) _____ type value. |
Boolean |
|
True or False?
The process of validating input data is fundamental to programming when using a graphical user interface. |
true |
|
When relational operators are used in a Case statement within a Select Case structure, the keyword _____ must be used with the relational operator. |
Is
Select Case Case Is Case Else End Select
|
|
The _____function is used to determine if an input can be converted into a numeric value. |
IsNumeric |
|
In an expression using the logical operator _____, as soon as one of the the compound conditions is found to be false, no further conditions are tested and the expression evaluates to false. |
AndAlso |
|
The ampersand (&) symbol is the operator used to _____ two strings together. |
concatenate |
|
It is important to _____ the line in the code editing window where you want to insert a code snippet to produce the shortcut menu. |
right-click |
|
True or False?
The the era of IntelliSense, developers need no longer anticipate that users will enter invalid data. |
false |
|
In a Select Case structure, the _____ statement includes all conditions not specifically tested for in the other Case statements. |
Case Else |
|
Of all the following objects provided by Visual Basic for Windows applications, the _____ object is used most often.
- TableLayoutPanel - GroupBox - SplitContainer - TabControl |
GroupBox |
|
True or False?
A RadioButton's Selected property will indicate if the radio button has been selected by the user. |
false (checked) |
|
True or False?
Developers can code Visual Basic applications to make decisions based on the input of users or other conditions that occur. |
true |
|
In an If...Then...Else statement, if the condition is false, the statements between the Else and End If keywords will be executed. |
true |
|
The _____scope of a variable means where a variable can be referenced within a program. |
scope |
|
Kind of object that associates items as a group, allowing the user to select one item from the group |
GroupBox |
|
When this kind of object is contained in a GroupBox, the user can select only one of the options |
RadioButton |
|
Message boxes can display these to represent the type of message being displayed |
icons |
|
The kind of statement between the If keyword and the Then keyword in an If...Then statement |
conditional |
|
A conditional expression tested uses this kind of operator to evaluate to either true or false |
relational |
|
Multiple conditions can be tested using this kind of statement |
If...Then...ElseIf |
|
This kind of operator is used to create compound conditions |
logical |
|
An easier and clearer alternative to using a series of If...Then...ElseIf statements |
Select Case |
|
Keyword automatically added by Visual Studio to a Select Case statement that uses relational operators |
Is |
|
True or False?
In string comparison, a number is more than an uppercase letter. |
false |
|
The logical operator _____ reverse the logical value of a condition. |
Not |
|
_____ objects are used to gather related RadioButtons together so that the user can select one radio button from each group. |
Container |
|
An expression using the logical operator _____ evaluates to true when only one but not both of the two compound conditions are true. |
Xor |
|
In an If...Then statement, the _____ symbol is used to test for inequality. |
<> |
|
True or False?
In an If... Then statement, the code between the If and the End If keywords is considered a block of code. |
true |
|
The Panel, GroupBox, and TabControl objects are examples of _____ objects |
container |
|
True or False?
A Panel object can have a caption, but a GroupBox object cannot. |
false |
|
True or False?
A variable defined between the Then keyword and the Else keyword in an If...Then...Else structure can be referenced from within the Else section of the structure. |
false |
|
True or False?
Each value in a Case statement is separated by a period. |
false |
|
An expression using the logical operator ______ will evaluate to true only when both of the conditions are true. |
And |
|
When a condition is tested in a Visual Basic program, there are two possible outcomes: _____ or _____. |
the condition is true or the condition is false |
|
An If...Then statement can be used to compare an arithmetic expression to a(n) _____ or ______. |
constant or other data type |
|
The Panel object performs in the same manner as the _____ object. |
GroupBox |
|
True or False?
You can create your own code snippets bu they cannot be added to the library. |
false |
|
When using an If...Then...ElseIf structure, when a condition is found to be true, the rest of the ElseIf statements are skipped. |
true |
|
_____ is the default setting for the buttons that will be displayed in a message box like the one in the accompanying figure. |
MessageBoxButtons.OKOnly |
|
Which of the following are relational operators?
= < & + > |
= > < |
|
An expression using the logical operator _____ will evaluate to true when either of the compound conditions is true. |
Or |
|
True or False?
An If...Then statement can be used to compare two strings. |
true |
|
True or False?
You can display a code snippet to ensure you understand the syntax and requirements for a given type of statement. |
true |
|
In adding a code snippet, if you right-click outside the desired location for your code, the shortcut menu might list choices that are customized to that area of code and not include the code snippet for which you were searching. |
true |
|
Use the _____ statement to execute one set of instructions if the condition is true, and another set of instructions if the condition is false. |
If...Then...Else |
|
When using multiple _____ or _____ operators in an If statement, the order of precendence of the operators should be established through the use of parentheses. |
relational or logical |
|
When a RadioButton object is selected by a user, the _____ property changes from False to True. |
Checked |
|
True or False?
A Case statement in a Select Case structure can test for a range of values. |
true |
|
True or False?
When comparing two data values in Visual Basic, both values must be the same data type. |
false |
|
What is the value of the MsgBoxStyle.OKCancel? |
1 |
|
True or False?
A Case Else statement is required in a Select Case structure. |
false |
|
True or False?
When you want to move a GroupBox object, you must first move its contained objects. |
false |
|
The logical operator _____ has the highest priority and is evaluated first. |
Not |