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
Q

_________ occur from a user action or something that happens during the execution of some other code or when something happens in the system.

A

Events

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

The ___________ property for a control dictates the color of the control.

A

Background

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

The ___________ property for a control dictates the color of the control.

A

Background

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

_______ determines which part of a program can access a variable

A

Scope

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

A ________ is a category of variables that is given a value when declared and may not be changed by any code statement.

A

Constant

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

Which statement will take a value from a TextBox named txtHireDate, and store it in a variable named dteHire

A

dteHire = CDte(txtHireDate.Text)

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

The syntax to declare a variable of data type integer named intHours is:

A

Dim intHours as Integer

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

________ variables properly helps the programmer remember what data is stored in the space.

A

Naming

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

The program may create storage places of data called:

A

variables

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

Which statement puts the value 55 into the variable name intSpeed

A

intspeed = 55

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

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

A

decPay = Cdec(txtPay.Text)

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

A ______ helps the compiler reserve the correct number of memory locations to store the data

A

data type

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

Which variable name is not correct.

A

intPay Rate

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

Which variable name is not correct.

A

intPay Rate

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

_______________ 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

A

Assignment

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

The label control displays the contents of its ___ property on the form

A

text

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

An ______ data type, by definition does not allow fractional data

A

Integer

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

The _____ property of the Button control allows the program to disable the button and enable it from within the code

A

enable

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

The _________ control displays the contents of its text property on the Windows Form

A

Label

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

The code takes the data from the _____ property of the TextBox control

A

text

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

The ________ operator calculates the remainder from integer division

A

mod

46
Q

The ____ operator is used for integer division

A

\ back slash

47
Q

The _____ controls are used to accept data from the user.

A

TextBox

48
Q

There are _____ arithmetic operators

A

7

49
Q

There are _____ arithmetic operators

A

7

50
Q

To comment the contents of the variable named decPayRate to the currency format is

A

decPayRate.ToString(“C”)

51
Q

Formatting numbers is accomplished using the __________ function

A

ToString()

52
Q
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
A

Tuesday, September 16, 2014

53
Q

A full syntax for the MessageBox.Show method is:

A

MessageBox.Show(Message, Caption, Buttons, Icon, Default Btn)

54
Q

The ___________ method is a way for the program to communicate a mesage to the user

A

MessageBox.Show

55
Q

A string with zero (0) characters is known as a ______ string.

A

null

56
Q

Strings cannot be used in a calculation until they have been ______ into a valid numeric data type.

A

converted

57
Q

The concatenation character is the

A

& ampersand

58
Q

The date string literals must be enclosed in a pair of:

A

#

59
Q

A _____ is a group of zero or more characters

A

String

60
Q

A _____ is a group of zero or more characters

A

String

61
Q

The __________ statement allows the program to specify a variable and then test for multiple values in that variable.

A

Select Case

62
Q

An __________ is a literal, variable, or an expression.

A

operand

63
Q

The If…Then statement is ________ If statement.

A

single-sided

64
Q

The program can examine the _________ property of a checkbox to determine if it is checked or not checked.

A

IsChecked

65
Q

There are ______ relational operators

A

six

66
Q

____________ allow only one choice in a group.

A

RadioButton

67
Q

A _________ expression has only two possible outcomes, True or False.

A

boolean

68
Q

An IF statement placed within another IF statement is referred to as a _______ IF statement.

A

nested

69
Q

_________ are used in forms to allow the user to select one or more items

A

CheckBoxes

70
Q

________ operators can be used to combine several boolean expressions into a single expression.

A

Logical

71
Q

The __________ function returns a string value to the calling statement.

A

InputBox()

72
Q

The ________ loop tests the loop condition after executing the loop instructions one time.

A

posttest

73
Q

The _______ control displays a list of items and allows the user to select one item from the list.

A

ListBox

74
Q

The Do …. While Loop is a _________ loop

A

posttest

75
Q

____________ loops are loops that are executed based on a value in a numeric variable

A

Counter-Controlled

76
Q

The listbox property __________, when set to true allows the listbox to contain multiple columns.

A

multicolumn

77
Q

Loops inside of loops are referred to as ______ loops

A

nested

78
Q

A ________ loop tests the loop condition before executing any loop instructions.

A

pretest

79
Q

The Repetition structure is also known as _________

A

looping

80
Q

A loop that never reaches a condition where the loop can exit, is known as an ________ loop.

A

infinite

81
Q

A loop that never reaches a condition where the loop can exit, is known as an ________ loop.

A

infinite

82
Q

The value within parenthesis of the array declaration is called the __________.

A

uppersubscript

83
Q

The code to declare an array with 3 values (“Jan”, “Feb”, “Mar”) is

A

Dim strQtr1() As String = {“Jan”,”Feb”, “Mar”}

84
Q

An _________ is a group of variables.

A

Array

85
Q

Two arrays that hold related data that shares index values for the related elements, is known as ________ arrays.

A

parallel

86
Q

If no values are assigned to an array, all elements of the array have the value of _____

A

0

87
Q

The code to declare an array named decPay of six values is:

A

Dim decPay(5) As Decimal

88
Q

Each value stored in an array is referred to as an ________.

A

element

89
Q

The upperbound property of an array can be determined by accessing the _______ property of the array.

A

Length

90
Q

The code to place the value 15.55 to the second element of the array named decPay.

A

decPay(1) = 15.55

91
Q

The statement to access the first element of the array named decPay and store the value in decNow is:

A

decNow = decPay(0)

92
Q

The MenuStrip Control is found in the __________ of the ToolBox

A

Menus & Toolbars

93
Q

Double clicking on a menu item in design view generates a _____ event.

A

click

94
Q

_____________ are used to mark off sections of a drop down menu.

A

Separator Bars

95
Q

Generate a random number with the _______ function

A

rnd()

96
Q

_______ ae such an impotant part of applications that Microsoft has included a special control system to assist programmers developing applications.

A

menus

97
Q

Some programs place ___________ next to selected items

A

check marks

98
Q

The ________ number is the largest number that will be calculated by the random number function.

A

upperbound

99
Q

A _______ system is a big advantage over buttons, where therre are more than a few choices.

A

menu

100
Q

The ________ number is the smallest number that will be calculated by the random number function.

A

lowerbound

101
Q

All menu items should have the preface ____

A

mnu

102
Q

All menu items should have the preface ____

A

mnu

103
Q

_______ are programs that can be called by any part of the project to perform some task.

A

modules

104
Q

A _______ is just a window that appears briefly when a program first starts.

A

splash screen

105
Q

Use _______ forms when all components do not fit on a single form.

A

Multiple

106
Q

_______ are just information and appear and disappear by themselves.

A

Splash Screens

107
Q

_______ a control resizes a control within its parent control.

A

Docking

108
Q

A splash screen usually appears in the _____ of the screen

A

center

109
Q

A _______ form needs to be closed before the user can continue working with the rest of the application

A

modal

110
Q

Multiple forms do not include

A

pictures

111
Q

_________ 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.

A

Anchoring

112
Q

_______ forms are forms that do not need to be closed before the application can continue processing.

A

modeless