IT-3000 Exam 5-6: List of Choices, Point Mode, The Panel Object – Flashcards

Unlock all answers in this set

Unlock answers
question
A RadioButton's Selected property will indicate if the radio button has been selected by the user.
answer
False
question
The plus sign is the preferred operator for concatenation.
answer
False
question
An If...Then statement can be used to compare two strings.
answer
True
question
In string comparison, a number is more than an uppercase letter.
answer
False
question
A condition can be true and false at the same time.
answer
False
question
When used in a menu name, the asterisk character is used to indicate that a character is a hot key.
answer
False
question
Menu item hot keys are case sensitive.
answer
False
question
Double-clicking a menu item in design mode opens the code editing window to the Click event handler for that menu item.
answer
True
question
Smart actions can be specified for a menu by using Action Tags.
answer
True
question
The Checked property of a ListBox object identifies which item in the ListBox has been selected.
answer
False
question
PICTURE As shown in the accompanying figure, a ____ object forces the user to select only one option from a group of options.
answer
Radio button
question
When the object indicated by the value Pine (or Oak or Cherry) in the accompanying figure is selected by the user, the ____ property changes from False to True.
answer
checked
question
Which of the following is a feature of the Panel object?
answer
none of the above
question
The Panel object performs in the same manner as the ____ object.
answer
groupbox
question
____ objects are used to gather related RadioButtons together so that the user can select one radio button from each group.
answer
container
question
Of all the following objects provided by Visual Basic for Windows applications, the ____ object is used most often.
answer
groupbox
question
The ____ object provides several options not available with the Panel object.
answer
groupbox
question
The Panel, GroupBox, and TabControl objects are examples of ____ objects.
answer
container
question
PICTURE A message box like the one shown in the accompanying figure is also known as a(n) ____ box.
answer
dialog
question
PICTURE To display a message box window like the one in the accompanying figure, use the ____ procedure of the MessageBox class.
answer
show
question
____ is the default setting for the buttons that will be displayed in a message box like the one in the accompanying figure.
answer
MessageBoxButtons.OKOnly
question
What is the value of the MsgBoxStyle.OKCancel?
answer
1
question
The ampersand (;) symbol is the operator used to ____ two strings together.
answer
concactenate
question
A ____ structure is used to deal with different conditions that occur based on values entered into an application.
answer
decision
question
A statement that tests a value is called a ____ statement.
answer
conditional
question
In an If...Then statement, the ____ symbol is used to test for inequality.
answer
;;
question
Every If statement block must be terminated by the ____ keyword.
answer
End If
question
Use the ____ statement to execute one set of instructions if the condition is true, and another set of instructions if the condition is false.
answer
If... Then.... Else.....
question
The ____ of a variable means where a variable can be referenced within a program.
answer
scope
question
To use multiple conditions in a single If...Then...Else statement, ____ conditions are required.
answer
compound
question
To create a compound condition in an If statement, a(n) ____ operator is required.
answer
logical
question
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.
answer
compound
question
An expression using the logical operator ____ will evaluate to true only when both of the conditions are true.
answer
And
question
An expression using the logical operator ____ will evaluate to true when either of the compound conditions is true.
answer
Or
question
The logical operator ____ reverses the logical value of a condition.
answer
Not
question
An expression using the logical operator ____ evaluates to true when only one but not both of the two compound conditions are true.
answer
Xor
question
In an expression using the logical operator ____, as soon as one of the compound conditions is found to be false, no further conditions are tested and the expression evaluates to false.
answer
AndAlso
question
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 evaluates to true.
answer
OrElse
question
The logical operator ____ has the highest priority and is evaluated first.
answer
Not
question
To end a Select Case structure, a(n) ____ statement is used.
answer
End Select
question
In a Select Case structure, the ____ statement includes all conditions not specifically tested for in the other Case statements.
answer
All Else
question
When relational operators are used in a Case statement within a Select Case structure, the keyword ____ must be used with the relational operator.
answer
Is
question
To specify a continuous range of values to be tested in a Case statement within a Select Case structure, the word ____ must be used.
answer
To
question
Which of the following CANNOT be contained in a code snippet?
answer
An entire program
question
PICTURE Visual Basic contains a code library of almost ____ pieces of code called code snippets, inserted by the command shown in the accompanying figure
answer
500
question
PICTURE It is important to ____ the line in the code editing window where you want to insert a code snippet to produce the shortcut menu in the accompanying figure.
answer
right click
question
The ____ function is used to determine if an input value can be converted into a numeric value.
answer
IsNumeric
question
The IsNumeric function will return a(n) ____ type value.
answer
Boolean
question
If data analyzed by the IsNumeric function cannot be converted to a numeric data type, the function will return a value of ____.
answer
False
question
A(n) ____ is a group of commands presented in a list.
answer
Menu
question
The ____ prefix is used for a MenuStrip object.
answer
mnu
question
The ____ character is used to indicate that a letter is a hot key on a menu item.
answer
ampersand ;
question
The hot key for a menu item can be activated with the keyboard by pressing the ____ key and the hot key at the same time.
answer
ALT
question
A(n) ____ key is a keyboard shortcut for opening a menu.
answer
hot
question
PICTURE As shown in the accompanying figure, Visual Basic 2010 contains a(n) ____ Tag that allows you to create a full standard menu bar commonly provided in Windows programs.
answer
Action
question
PICTURE The feature shown in the accompanying figure provides an easy way for you to specify ____ actions for an object as you design a form
answer
smart
question
The ____ function provides a dialog box that asks the user for input and provides an input area.
answer
InputBox
question
A ____ object displays a collection of items, or values, with one item per line.
answer
ListBox
question
Which line of code will add the value "East" to a ListBox object named lstDirections?
answer
CheckBox
question
To remove all objects from a ListBox object, the ____ method is used.
answer
Clear
question
The ____ property of a ListBox object identifies which item in the ListBox was selected.
answer
Selected item
question
A(n) ____ variable collects a total value over a period of time.
answer
accumulator
question
A(n) ____ variable keeps track of how many times a loop has executed.
answer
counterrr
question
A ____ operator allows you to perform arithmetic operations with a variable and store the results back to that variable.
answer
compound
question
The compound operator ____ adds the value of the right operand to the value of the left operand and stores the result in the left operand's variable.
answer
+=
question
The compound operator ____ is used to add a string to an existing string.
answer
&=
question
A(n) ____ is a single repetition of a loop.
answer
iteration
question
A ____ loop is best used when the specific number of iterations required is known.
answer
For... Nextt
question
A loop's ____ variable is a numeric variable that keeps track of the number of iterations the loop completes.
answer
control
question
The ____ follows the keyword For in a For...Next loop.
answer
control variable
question
A For...Next loop with a beginning value of 1, an ending value of 25, and a Step value of 3 will execute ____ times.
answer
9
question
How many times will the following loop execute? For intCount = 10 To 16 Step 2 'Body of Loop Next
answer
4
question
How many times will the following loop execute? For intCount = 10 To 1 Step -2 'Body of loop Next
answer
5
question
If ____ appears as the first line of a loop, the loop is a top-controlled Do loop that will execute as long as a condition remains true.
answer
Do white
question
A ____-controlled loop tests the condition before the loop body is executed.
answer
top
question
A ____-controlled loop tests the condition after the code in the loop body has been executed.
answer
bottom
question
If ____ appears as the last line of a loop, the loop is a bottom-controlled Do loop that will execute as long as a condition remains true.
answer
Loop while
question
If ____ appears as the first line of a loop, the loop is a top-controlled Do loop that will stop execution when a condition becomes true.
answer
Do until
question
If ____ appears as the last line of a loop, the loop is a bottom-controlled Do loop that will stop execution when a condition becomes true.
answer
Loop until
question
SMALL PICTUREE As demonstrated in the accompanying figure, a loop that does not terminate is called a(n) ____ loop.
answer
infinite
question
Using a preset value for the variable tested in a loop condition is a process called ____ the loop.
answer
priming
question
The ____ function can be used to test if data entered by the user is numeric.
answer
IsNumeric
question
What will be the value of the variable intTotalCount when the following code is executed? For intOuterCount = 1 to 5 For intInnerCount = 1 to 4 intTotalCount +=1 Next Next
answer
20
question
When in break mode, you can use ____ to examine the value of variables.
answer
DataTips
question
PICTURE As shown in the accompanying figure, ____ are stop points placed in the code to tell Visual Studio 2010 debugger where and when to pause the execution of the program.
answer
BREAKPOINTS
question
PICTURE By default, when a program reaches the item shown in the accompanying figure and pauses execution, the line of code that is about to be executed is highlighted in what color?
answer
yellow
question
You can create a deployed version of a program by using the ____ process.
answer
ClickOnce Deployment
question
Before deployment, an application should be ____.
answer
all
question
In order to run a program deployed with ClickOnce Deployment, the computer needs ____ installed on it.
answer
none
question
Developers can code Visual Basic applications to make decisions based on the input of users or other conditions that occur.
answer
True
question
When you want to move a GroupBox object, you must first move its contained objects.
answer
False
question
When RadioButton objects are contained in a group box, the user can select only one of the radio buttons on the panel.
answer
True
question
Often, during design time, you should set the Checked property for the most commonly selected RadioButton object to True to save the user from having to select the most common choice.
answer
True
question
A Panel object can have a caption, but a GroupBox object cannot.
answer
False
question
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.
answer
False
question
When comparing two data values in Visual Basic, both values must be the same data type.
answer
False
question
In an If...Then...Else statement, if the condition is false, the statements between the Else and End If keywords will be executed.
answer
True
question
When using an If...Then...ElseIf structure, when a condition is found to be true, the rest of the ElseIf statements are skipped.
answer
True
question
In an If...Then statement, the code between the If and the End If keywords is considered a block of code.
answer
True
question
Variables declared within a block of code can only be referenced within that block.
answer
True
question
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.
answer
False
question
Only one condition can be tested in an If statement.
answer
False
question
A Case Else statement is required in a Select Case structure.
answer
False
question
An End Case statement is used to terminate a Select Case structure.
answer
False
question
In a Select Case statement, the keyword Is must be used when testing with relational operators.
answer
Truw
question
A Case statement in a Select Case structure can test for a range of values.
answer
True
question
Each value in a Case statement is separated by a period.
answer
False
question
Each code snippet inserted by the command in the accompanying figure consists of a complete programming task.
answer
True
question
You can create your own code snippets but they cannot be added to the library.
answer
False
question
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.
answer
True
question
You can display a code snippet to ensure you understand the syntax and requirements for a given type of statement.
answer
True
question
In the era of IntelliSense, developers need no longer anticipate that users will enter invalid data.
answer
False
question
If a program attempts to process invalid data, unexpected errors can occur.
answer
Truw
question
The process of validating input data is fundamental to programming when using a graphical user interface.
answer
Truw
question
MenuStrip objects can be placed along any edge of the form, depending on which side is closer to the mouse pointer.
answer
False
question
A hot key in a menu name must be the first letter.
answer
False
question
Writing an event handler for a menu item is the same as writing an event handler for a button click.
answer
True
question
The InputBox function returns a null string ("") when a user clicks the Cancel button.
answer
True
question
The prompt message displayed in an InputBox object can be customized by the programmer.
answer
True
question
If the user enters a numeric value in an InputBox object, the InputBox function will return a numeric data type.
answer
Falsee
question
All data collected by an InputBox object is automatically converted to the best data type for the data.
answer
False
question
An InputBox object allows user input without the need for a TextBox object on the Windows Form object.
answer
True
question
When the user clicks the Cancel button in an input box and the InputBox function returns a null character, the program can test for the null character to determine further processing.
answer
True
question
You must include a Step value in a For...Next loop, even if the Step value is 1.
answer
False
question
The beginning and ending values for a For...Next loop must be predefined and cannot contain an expression.
answer
False
question
The Step value for a For...Next loop must be a positive whole integer value.
answer
False
question
A Step value in a For...Next loop can be positive or negative.
answer
True
question
It is best to indent the body of the loop, to identify clearly the code that is being repeated.
answer
True
question
The beginning, ending, and step values used in a For...Next loop can vary based on input from a user.
answer
True
question
In a Do While loop, the body of the loop is executed until the condition becomes true.
answer
False
question
A top-controlled loop is always executed at least once.
answer
False
question
Starting a loop with a preset value for the variable tested in the condition is called priming the loop.
answer
True
question
When expecting a number from an input box, the IsNumeric function should be used to ensure that the input data can be converted to a numeric variable.
answer
Ture
question
Loops cannot be nested.
answer
False
question
When nesting loops, the inner loop must be completely contained in the outer loop and must use a different control variable.
answer
True
question
Use a For...Next loop when the number of repetitions is unknown.
answer
False
question
Breakpoints are stop points placed in the code where execution will be paused during the execution of the program, and enter debug mode.
answer
False
question
PICTURE Only one breakpoint can be set in a program, as shown in the accompanying figure.
answer
False
question
The installation files created by the ClickOnce Publishing Wizard can be used for a software release.
answer
True
Get an explanation on any task
Get unstuck with the help of our AI assistant in seconds
New