Visual Basic Flashcards

1
Q

You can open the IDE for editing the program by double-clicking on the _______ file

A

sln

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

To save your project to another dirve such as a USB drive, you need to save:

A

the entire project file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Visual Basic.NET 2013 is part of _________________

A

Visual Studio 2013

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

IDE is the acronym for:

A

Interactive Development Environment

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

To start debugging your program press the ____ key

A

F5

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

The _____________ is the area that lists the files that make up the project

A

Solution Explorer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Which is not a part of the Visual Basic IDE?

A

Toolkit

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

In the property pane, the elipsis ( three dots ), indicates that the property has an associated _____________ to indicate parameters for that control.

A

dialog box

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

The __________ is where the form is designed.

A

Design Area

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

As you move a control on the form, ______ appear to show you how the moving control lines up with other controls on the form.

A

snap lines

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

All _____ have properties

A

objects

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

________ are used to describe an objects color, size, location, name, etc.

A

properties

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Controls are objects that are placed on the form and are taken from the

A

toolbox

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

A control’s ______ describe the control.

A

properties

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

A control’s ______ describe the control.

A

properties

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

To move a control you must first give it

A

focus

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

To hid a control from the form viewer, set the __________ property to false.

A

visible

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

The statement ___________ is used to close a form.

A

Me.Close()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

The ___________ control, holds an image and displays it on the form.

A

PictureBox

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

The _________ is usually a letter pressed with the Alt key to generate a click event.

A

Access Key

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

The Forms ______________ property holds the command that will be executed when the ESC key is pressed.

A

Cancel Button

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

The Forms ___________ property holds the command that will be executed when the enter key is pressed

A

Accept Button

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

The _______________ and footer are the container for the code to be executed when an event is triggered

A

subroutine header

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

The _______ window is where you enter the statements to be executed for an event.

A

code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
_________ occur from a user action or something that happens during the execution of some other code or when something happens in the system.
Events
26
The ___________ property for a control dictates the color of the control.
Background
27
The ___________ property for a control dictates the color of the control.
Background
28
_______ determines which part of a program can access a variable
Scope
29
A ________ is a category of variables that is given a value when declared and may not be changed by any code statement.
Constant
30
Which statement will take a value from a TextBox named txtHireDate, and store it in a variable named dteHire
dteHire = CDte(txtHireDate.Text)
31
The syntax to declare a variable of data type integer named intHours is:
Dim intHours as Integer
32
________ variables properly helps the programmer remember what data is stored in the space.
Naming
33
The program may create storage places of data called:
variables
34
Which statement puts the value 55 into the variable name intSpeed
intspeed = 55
35
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)
36
A ______ helps the compiler reserve the correct number of memory locations to store the data
data type
37
Which variable name is not correct.
intPay Rate
38
Which variable name is not correct.
intPay Rate
39
_______________ 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
40
The label control displays the contents of its ___ property on the form
text
41
An ______ data type, by definition does not allow fractional data
Integer
42
The _____ property of the Button control allows the program to disable the button and enable it from within the code
enable
43
The _________ control displays the contents of its text property on the Windows Form
Label
44
The code takes the data from the _____ property of the TextBox control
text
45
The ________ operator calculates the remainder from integer division
mod
46
The ____ operator is used for integer division
\ back slash
47
The _____ controls are used to accept data from the user.
TextBox
48
There are _____ arithmetic operators
7
49
There are _____ arithmetic operators
7
50
To comment the contents of the variable named decPayRate to the currency format is
decPayRate.ToString(“C”)
51
Formatting numbers is accomplished using the __________ function
ToString()
52
``` 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
53
A full syntax for the MessageBox.Show method is:
MessageBox.Show(Message, Caption, Buttons, Icon, Default Btn)
54
The ___________ method is a way for the program to communicate a mesage to the user
MessageBox.Show
55
A string with zero (0) characters is known as a ______ string.
null
56
Strings cannot be used in a calculation until they have been ______ into a valid numeric data type.
converted
57
The concatenation character is the
& ampersand
58
The date string literals must be enclosed in a pair of:
#
59
A _____ is a group of zero or more characters
String
60
A _____ is a group of zero or more characters
String
61
The __________ statement allows the program to specify a variable and then test for multiple values in that variable.
Select Case
62
An __________ is a literal, variable, or an expression.
operand
63
The If...Then statement is ________ If statement.
single-sided
64
The program can examine the _________ property of a checkbox to determine if it is checked or not checked.
IsChecked
65
There are ______ relational operators
six
66
____________ allow only one choice in a group.
RadioButton
67
A _________ expression has only two possible outcomes, True or False.
boolean
68
An IF statement placed within another IF statement is referred to as a _______ IF statement.
nested
69
_________ are used in forms to allow the user to select one or more items
CheckBoxes
70
________ operators can be used to combine several boolean expressions into a single expression.
Logical
71
The __________ function returns a string value to the calling statement.
InputBox()
72
The ________ loop tests the loop condition after executing the loop instructions one time.
posttest
73
The _______ control displays a list of items and allows the user to select one item from the list.
ListBox
74
The Do .... While Loop is a _________ loop
posttest
75
____________ loops are loops that are executed based on a value in a numeric variable
Counter-Controlled
76
The listbox property __________, when set to true allows the listbox to contain multiple columns.
multicolumn
77
Loops inside of loops are referred to as ______ loops
nested
78
A ________ loop tests the loop condition before executing any loop instructions.
pretest
79
The Repetition structure is also known as _________
looping
80
A loop that never reaches a condition where the loop can exit, is known as an ________ loop.
infinite
81
A loop that never reaches a condition where the loop can exit, is known as an ________ loop.
infinite
82
The value within parenthesis of the array declaration is called the __________.
uppersubscript
83
The code to declare an array with 3 values (“Jan”, “Feb”, “Mar”) is
Dim strQtr1() As String = {“Jan”,”Feb”, “Mar”}
84
An _________ is a group of variables.
Array
85
Two arrays that hold related data that shares index values for the related elements, is known as ________ arrays.
parallel
86
If no values are assigned to an array, all elements of the array have the value of _____
0
87
The code to declare an array named decPay of six values is:
Dim decPay(5) As Decimal
88
Each value stored in an array is referred to as an ________.
element
89
The upperbound property of an array can be determined by accessing the _______ property of the array.
Length
90
The code to place the value 15.55 to the second element of the array named decPay.
decPay(1) = 15.55
91
The statement to access the first element of the array named decPay and store the value in decNow is:
decNow = decPay(0)
92
The MenuStrip Control is found in the __________ of the ToolBox
Menus & Toolbars
93
Double clicking on a menu item in design view generates a _____ event.
click
94
_____________ are used to mark off sections of a drop down menu.
Separator Bars
95
Generate a random number with the _______ function
rnd()
96
_______ ae such an impotant part of applications that Microsoft has included a special control system to assist programmers developing applications.
menus
97
Some programs place ___________ next to selected items
check marks
98
The ________ number is the largest number that will be calculated by the random number function.
upperbound
99
A _______ system is a big advantage over buttons, where therre are more than a few choices.
menu
100
The ________ number is the smallest number that will be calculated by the random number function.
lowerbound
101
All menu items should have the preface ____
mnu
102
All menu items should have the preface ____
mnu
103
_______ are programs that can be called by any part of the project to perform some task.
modules
104
A _______ is just a window that appears briefly when a program first starts.
splash screen
105
Use _______ forms when all components do not fit on a single form.
Multiple
106
_______ are just information and appear and disappear by themselves.
Splash Screens
107
_______ a control resizes a control within its parent control.
Docking
108
A splash screen usually appears in the _____ of the screen
center
109
A _______ form needs to be closed before the user can continue working with the rest of the application
modal
110
Multiple forms do not include
pictures
111
_________ 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
112
_______ forms are forms that do not need to be closed before the application can continue processing.
modeless