Visual Basic Flashcards
You can open the IDE for editing the program by double-clicking on the _______ file
sln
To save your project to another dirve such as a USB drive, you need to save:
the entire project file
Visual Basic.NET 2013 is part of _________________
Visual Studio 2013
IDE is the acronym for:
Interactive Development Environment
To start debugging your program press the ____ key
F5
The _____________ is the area that lists the files that make up the project
Solution Explorer
Which is not a part of the Visual Basic IDE?
Toolkit
In the property pane, the elipsis ( three dots ), indicates that the property has an associated _____________ to indicate parameters for that control.
dialog box
The __________ is where the form is designed.
Design Area
As you move a control on the form, ______ appear to show you how the moving control lines up with other controls on the form.
snap lines
All _____ have properties
objects
________ are used to describe an objects color, size, location, name, etc.
properties
Controls are objects that are placed on the form and are taken from the
toolbox
A control’s ______ describe the control.
properties
A control’s ______ describe the control.
properties
To move a control you must first give it
focus
To hid a control from the form viewer, set the __________ property to false.
visible
The statement ___________ is used to close a form.
Me.Close()
The ___________ control, holds an image and displays it on the form.
PictureBox
The _________ is usually a letter pressed with the Alt key to generate a click event.
Access Key
The Forms ______________ property holds the command that will be executed when the ESC key is pressed.
Cancel Button
The Forms ___________ property holds the command that will be executed when the enter key is pressed
Accept Button
The _______________ and footer are the container for the code to be executed when an event is triggered
subroutine header
The _______ window is where you enter the statements to be executed for an event.
code
_________ occur from a user action or something that happens during the execution of some other code or when something happens in the system.
Events
The ___________ property for a control dictates the color of the control.
Background
The ___________ property for a control dictates the color of the control.
Background
_______ determines which part of a program can access a variable
Scope
A ________ is a category of variables that is given a value when declared and may not be changed by any code statement.
Constant
Which statement will take a value from a TextBox named txtHireDate, and store it in a variable named dteHire
dteHire = CDte(txtHireDate.Text)
The syntax to declare a variable of data type integer named intHours is:
Dim intHours as Integer
________ variables properly helps the programmer remember what data is stored in the space.
Naming
The program may create storage places of data called:
variables
Which statement puts the value 55 into the variable name intSpeed
intspeed = 55
Whcih statement takes a value from a TextBox named txtPay and stores it as a number of decimal data type in a variable declard as data type decimal, named decPay
decPay = Cdec(txtPay.Text)
A ______ helps the compiler reserve the correct number of memory locations to store the data
data type
Which variable name is not correct.
intPay Rate
Which variable name is not correct.
intPay Rate
_______________ operators are a coding shortcut that may be used when a value is calculated using a value in a variable, with the result stored in that variable
Assignment
The label control displays the contents of its ___ property on the form
text
An ______ data type, by definition does not allow fractional data
Integer
The _____ property of the Button control allows the program to disable the button and enable it from within the code
enable
The _________ control displays the contents of its text property on the Windows Form
Label
The code takes the data from the _____ property of the TextBox control
text
The ________ operator calculates the remainder from integer division
mod
The ____ operator is used for integer division
\ back slash
The _____ controls are used to accept data from the user.
TextBox
There are _____ arithmetic operators
7
There are _____ arithmetic operators
7
To comment the contents of the variable named decPayRate to the currency format is
decPayRate.ToString(“C”)
Formatting numbers is accomplished using the __________ function
ToString()
The code: Dim dteToday As Date = #09/16/2014# Dim strResult As String strResult = dteToday.ToString(“D”) lblDate.Text = strResult Produces the following date on the designated label
Tuesday, September 16, 2014
A full syntax for the MessageBox.Show method is:
MessageBox.Show(Message, Caption, Buttons, Icon, Default Btn)
The ___________ method is a way for the program to communicate a mesage to the user
MessageBox.Show
A string with zero (0) characters is known as a ______ string.
null
Strings cannot be used in a calculation until they have been ______ into a valid numeric data type.
converted
The concatenation character is the
& ampersand
The date string literals must be enclosed in a pair of:
#
A _____ is a group of zero or more characters
String
A _____ is a group of zero or more characters
String
The __________ statement allows the program to specify a variable and then test for multiple values in that variable.
Select Case
An __________ is a literal, variable, or an expression.
operand
The If…Then statement is ________ If statement.
single-sided
The program can examine the _________ property of a checkbox to determine if it is checked or not checked.
IsChecked
There are ______ relational operators
six
____________ allow only one choice in a group.
RadioButton
A _________ expression has only two possible outcomes, True or False.
boolean
An IF statement placed within another IF statement is referred to as a _______ IF statement.
nested
_________ are used in forms to allow the user to select one or more items
CheckBoxes
________ operators can be used to combine several boolean expressions into a single expression.
Logical
The __________ function returns a string value to the calling statement.
InputBox()
The ________ loop tests the loop condition after executing the loop instructions one time.
posttest
The _______ control displays a list of items and allows the user to select one item from the list.
ListBox
The Do …. While Loop is a _________ loop
posttest
____________ loops are loops that are executed based on a value in a numeric variable
Counter-Controlled
The listbox property __________, when set to true allows the listbox to contain multiple columns.
multicolumn
Loops inside of loops are referred to as ______ loops
nested
A ________ loop tests the loop condition before executing any loop instructions.
pretest
The Repetition structure is also known as _________
looping
A loop that never reaches a condition where the loop can exit, is known as an ________ loop.
infinite
A loop that never reaches a condition where the loop can exit, is known as an ________ loop.
infinite
The value within parenthesis of the array declaration is called the __________.
uppersubscript
The code to declare an array with 3 values (“Jan”, “Feb”, “Mar”) is
Dim strQtr1() As String = {“Jan”,”Feb”, “Mar”}
An _________ is a group of variables.
Array
Two arrays that hold related data that shares index values for the related elements, is known as ________ arrays.
parallel
If no values are assigned to an array, all elements of the array have the value of _____
0
The code to declare an array named decPay of six values is:
Dim decPay(5) As Decimal
Each value stored in an array is referred to as an ________.
element
The upperbound property of an array can be determined by accessing the _______ property of the array.
Length
The code to place the value 15.55 to the second element of the array named decPay.
decPay(1) = 15.55
The statement to access the first element of the array named decPay and store the value in decNow is:
decNow = decPay(0)
The MenuStrip Control is found in the __________ of the ToolBox
Menus & Toolbars
Double clicking on a menu item in design view generates a _____ event.
click
_____________ are used to mark off sections of a drop down menu.
Separator Bars
Generate a random number with the _______ function
rnd()
_______ ae such an impotant part of applications that Microsoft has included a special control system to assist programmers developing applications.
menus
Some programs place ___________ next to selected items
check marks
The ________ number is the largest number that will be calculated by the random number function.
upperbound
A _______ system is a big advantage over buttons, where therre are more than a few choices.
menu
The ________ number is the smallest number that will be calculated by the random number function.
lowerbound
All menu items should have the preface ____
mnu
All menu items should have the preface ____
mnu
_______ are programs that can be called by any part of the project to perform some task.
modules
A _______ is just a window that appears briefly when a program first starts.
splash screen
Use _______ forms when all components do not fit on a single form.
Multiple
_______ are just information and appear and disappear by themselves.
Splash Screens
_______ a control resizes a control within its parent control.
Docking
A splash screen usually appears in the _____ of the screen
center
A _______ form needs to be closed before the user can continue working with the rest of the application
modal
Multiple forms do not include
pictures
_________ a control is when you set a property of a control that insures the control maintains its distance from the edge of the parent control.
Anchoring
_______ forms are forms that do not need to be closed before the application can continue processing.
modeless