click below
click below
Normal Size Small Size show me how
VB ch5
Question | Answer |
---|---|
____ or ___ relate to the manner in which a business or organization operates. | business logic, business rules |
A ____ is used in Windows applications to present lists of choices. | ComboBox control |
A _____ is a user interface element used to present several discrete text choices to a user. | drop-down list box |
___ means that an If..Then..Ekse structure contains a second If..Then...Else structure within it | nested structure |
Before the new controls can be added to a locked form, the form must be unlocked. T or F | T |
With a ComboBox control, the appearance of the list and the method used to select an item are defined by the value of its __. | DropDownStyle property. |
With a drop0down list box, the user can select only one item from a discrete list of choices. T or F? | T |
When naming ComboBox controls, use the __ prefix. | cmb |
The ______ window allows you to enter and set the intitial values of items for a ComboBox list. During design time the values are not visible on the form. | String Collection Editor |
The methods you can use in code to modifiy the list include methods such as:(4) | Add, addRange, Insert, Remove |
When you add items to a ComboBox using the String Collection Editor, VB.NET assigns each item a consecutive number called an ___. | index |
When a user selects an item from a ComboBox list during run time, the _____ property of the ComboBox control is assigned the value of that item's index. | SelectedIndex |
Adding code that sets the SelectedIndex property value to ___ indicates that no item is selected and thus resets the ComboBox control to its default value. | -1 |
In a program, ____ is the process of determining which of one or more paths to take. | decision making |
The ____ structure indicates that a program can take oe or more actions based on a certain condition. | If...Then...Else |
One flowline will always be shown entering the symbol and __ flowlines always will be shown leaving the symbol. | 2 |
The ___ is used to implement an extension of the If...Then...Else structure, in which there are more than two alternatives. | Select Case statement |
The ____ class is part of the .NET framework class library and provides the ability to display a message to the user in a pop-up window, called a ___. | MessageBox, message box |
In order to display a message box with a title on the title bar, you use the __ method of the MessageBox class and pass the ____ method at least two parameters. The message to display and the title on the window. | Show() |
When a user selects a control on a form, the control is said to have ___. | focus |
You can set the focus to a control during run time by using the ___ method. | Focus() |
A condition is made up of __ expressions and a relational operator. | 2 |
A condition is sometimes called a ___ expression, because the condition specifies a relationship between expressions that is either true or false. | relational |
A ___ If...Then...Else statement is used to perform a single task when the condition in the statement is true. | single-line |
A ___ If...Then...Else statement, is used to execute more than one statement in response to a condition. | block |
If you declare a variable in a block statement, the variable is valid only inside that block statement. This is known as ___. | block-level scoping |
To ensure that no further processing occurs, the ___ statement is used to tell VB.NET to exit the event procedure and return control to the user interface. | Exit sub |
The _____ window is displayed by Intellisense whenever you begin coding a call to a method or event. | Parameter Info |
For readability purposes, it is recommended that you do not use the single-line If...Then...Else statement. T or F | T |
When two or more conditions are combined by these logical operators, the expression is called a ____. | compound condition |
The ____ logical operator allows you to write a condition in which the true value is complemented or reversed. | Not |
The ___ logical operator is used to combine two or more conditions in an expression. | And |
When two or more conditions are combined by the And logical operator, the expression is called a ___ condition. | compound |
The __ logical operator requires only one of two or more conditions to be true for the compound condition to be true. | Or |
The __ logical operator requires one of the two conditions to be true for the compound condition to be true. If both conditions are true, the compound condition is false. If both are false, then the compound condition also is false. | Xor |
An important characteristic of the And and Or logical operators is that if the left side is sufficient to decide the condition, the right side always is evaluated. T or F | T |
The AndAlso logical operator and the OrElse logical operator, perform the And and Or operations, but include a feature called ___. | short-circuiting |
The order of evaluation of a series of logical operators is a part of what are called the ____. | rules of precedence |
VB.NET reads from left to right and evaluates conditions using logical operators in what order? | arithmetic operatorsrelationship operatorNot operatorsAnd/AndAlso oepratorsOr/OrElse or Xor operators |
__ can be used to change the order of precendence. | parathensesis |
In VB, string expressions include string constants, string variables, character constants, character variables, string function references, and a combination of these seperated by the concatenation operator. T or F | T |
The ___ operator joins two strings into one. You should use the & operator instead of + | concatenation |
In a Select Case, the keyword __ is required when a relational operator such as < is used. | Is |
When specifying a rance in a Case clause, make sure the ___ value is listed first. | smaller For example: -1 To 3 |