| Terms |
Definitions |
|
Chapter 3
34.) MessageBox.Show(“Hello”, “Goodbye”) will display _____.
Multiple choice options-“Hello” in the message box titlebar and “Goodbye” in the body of the message box-“Goodbye” in the body of the message; “Hello” in th
|
Chapter 3
34.) MessageBox.Show(“Hello”, “Goodbye”) will display _____.
Multiple choice options-“Hello” in the message box titlebar and “Goodbye” in the body of the message box-“Goodbye” in the body of the message; “Hello” in the project’s title bar+“Goodbye” in the message box titlebar and “Hello” in the body of the message box-None of these
|
|
Programs are limited without the ability to make decisions?
|
True
|
|
What is an applications main window....
|
form
|
|
the _______ window contains your applications form. This is where you design your applications user interface by placing controls on the form that appears when your application executes
|
design
|
|
The If...Else statement is called a one-way selection structure?
|
False
|
|
An If statement a two-way selection structure?
|
False
|
|
Rules that must be followed when writing a program are called...
|
Syntax
|
|
A number that identifies a specific element within an array is a
|
subscript
|
|
What property causes the distance between a controls edge and the forms edge to remain constant, even when the form is resized?
|
Anchor property
|
|
What control is used to display graphic images?
|
PictureBox
|
|
________ is the standard prefix for textbox control names
|
txt
|
|
a(n) ___________ is a container for holding a project
|
solution
|
|
to set the visual basic environment options, click the Options...command, which is found on the ________ menu
|
tools
|
|
Which of the following is the concatenation operator?
a. @
b. #
c. $
d. &
e. *
|
D. &
|
|
Which type of variable can only hold true or false
|
Boolean
|
|
What property allows a label to change size to fit the amount of text in text property?
|
Autosize
|
|
What is the process of inspecting input values and determining whether they are acceptable?
|
Input Validation
|
|
All of the variables within an array are called?
|
Elements
|
|
What object has methods that can generate a sequence of random numbers?
|
random object
|
|
What connect two or more relational expressions into one or reverse the logic?
|
Logical operators
|
|
the control that has the ________ is the one that receives the user's keyboard input or moues clicks
|
focus
|
|
the __________ window allows you to navigate among the files in your project
|
solution explorer
|
|
Which of the following statements prompts the user for a number, and the correctly assigns the user's response to a double variable named number?
a. InputBox("Enter a number:", "Number") = number
b. number = Double.Parse(InputBox("Enter a number:",
|
b. number = Double.Parse(InputBox("Enter a number:", "Number"))
|
|
Chapter 3
21.) What statement should be used to declare a variable that is accessible from all procedures of a form?
-Dim-Const-Private-Public
|
Chapter 3
21.) What statement should be used to declare a variable that is accessible from all procedures of a form?
-Dim-Const+Private-Public
|
|
What statement is used to end a subroutine before the bottom of the subroutines code
|
End sub
|
|
This statement tests the value of an expression only once and then uses that value to choose one of several alternative actions.
|
Select Case
|
|
When an argument is passed to a procedure this way, the procedure has access to the original argument and may make changes to it.
|
By reference
|
|
a ________ is a statement that causes visual basic to create a variable in memory
|
variable declaration
|
|
The two general categories of software are ________ and __________.
|
Operating Systems, applications
|
|
Chapter 3
11.) If Option Strict is turned off and a declaration statement does not specify a data type, it will default to _____.
-Boolean-string -object-variable
|
Chapter 3
Chapter 3
11.) If Option Strict is turned off and a declaration statement does not specify a data type, it will default to _____.
-Booleanno-string +object-variable
(PG 115) If you omit the optional data type, the variable's type defaults to the objects. It is recommended practice to always declare the data type.
|
|
What is code used to display the words "Visual Basic" in a label named lblTitle?
|
lblTitle.Text="Visual Basic"
|
|
a(n) ________ error is generated anytime a non-numeric value that cannot be automatically converted to a numeric value is assigned to a numeric variable or propety
|
type conversion or type mismatch
|
|
Assume the cityName variable contains the string "Boston" and the stateName variable contains the string "MA". Which of the following will display the string "Boston, MA" (the city, a comma, a space, and the state) in the uiAddressLabel control?
a.
|
D. uiAddressLabel.Text = cityName & ", " & stateName
|
|
Chapter 2
17. The property used to display information in a TextBox is _______.
A) Text B) Appearance C) Caption D) Name
|
Chapter 2
17. The property used to display information in a TextBox is _______.
A) Text
|
|
Chapter 3
31.)In order to control the number of decimals that will appear when a number is displayed, you can use _____.
Multiple choice options-a conversion function-a string variable-a constant -the format specified codes
|
Chapter 3
31.)In order to control the number of decimals that will appear when a number is displayed, you can use _____.
Multiple choice options-a conversion function-a string variable-a constant +the format specified codes
|
|
Chapter 3
30.)You can use the ______ method to round decimal values to the desired number of decimal positions.
Multiple choice options-ToDecimal-ToSingle-ToRound-Round
|
Chapter 3
30.)You can use the ______ method to round decimal values to the desired number of decimal positions.
Multiple choice options-ToDecimal-ToSingle-ToRound+Round
|
|
Chapter 3
10.) Which of the following is NOT a rule for naming identifiers for constants
Multiple choice options-Include the data type at the end of the identifier-Everything in the identifier's name shoudl be capitalized except the data type-Iden
|
Chapter 3
10.) Which of the following is NOT a rule for naming identifiers for constants
Multiple choice options
+Identifiers for constants should begin with a prefix of Const.
|
|
Error handlers cannot end a subroutine early.
|
False, you can code Exit Sub
|
|
A string variableâs default value is Nothing. The value Nothing is invalid for many operations and can cause a run-time error.
|
When is a local variable destroyed?
|
|
Chapter 2
33. The _______ must be set to True for text to wrap to a second line in a text box and a rich text box.
A) MultipleLine B) MultipleLine property C) WordWrap and Multiline properties D) Wrapping and the MultipleLine properties
|
Chapter 2
33. The _______ must be set to True for text to wrap to a second line in a text box and a rich text box.
A) MultipleLine B) MultipleLine property C)----- WordWrap and Multiline properties D) Wrapping and the MultipleLine properties
Logic: Word Wrap property determines if text will go to the next line when the text reaches the end of the rich text box. Also You have to enable the multiline property. Also MultipleLine property does not exist.
|
|
Chapter 2
36. In order to make a picture expand to fill an image control, you must _______.
A) set the Visible property to True B) set the Visible property to False C) set the SizeMode property to StretchImage D) set the SizeMode property to AutoS
|
Chapter 2
36. In order to make a picture expand to fill an image control, you must _______.
A) set the Visible property to True B) set the Visible property to False C)--- set the SizeMode property to StretchImage D) set the SizeMode property to AutoSize
|
|
To display image so that it can be fully seen as large as possible without distortion use,,
|
Zoom value for SizeMode Property
|
|
It causes the letter that immediately follows the ampersand (in the Text property) to appear underlined.
|
What is the difference between the single and integer data types?
|
|
When you plan a Visual Basic program, you follow a three-step process that should end with _______.
A) Writing the Basic code
B) Setting the properties
C) Defining the user interface
D) Coding all of the remark statements
|
When you plan a Visual Basic program, you follow a three-step process that should end with _______.
Ans: Defining the user interface
Logic: First you Plan with the 3 step process-1. Design the user interface-2. Plan the properties-3. Plan the basic codeThen in actual programming you use a 3 step process again. (Page 7)-1. Define the user interface //The reason this is the answer is after you plan, this is the first step in actual programming-2. Set the Properties-3. Write the basic code
|
|
The Single data type stores floating point numbers, while the Integer data type stores whole numbers.
|
Why should you always make sure that a string variable is initialized or assigned a value before it is used in an operation?
|
|
7. To print a form, add a _______ component to the component tray.
A) Print B) PrintAll C) FormPrint D) PrintForm
|
7. To print a form, add a _______ component to the component tray.
D) PrintForm
|