Chapters 1 to 5 Flashcards

1
Q

Property _________ specifies how text is aligned within a Label’s boundaries.

A) Alignment

B) TextAlign

C) Align

D) Aligntext

A

B) TextAlign

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

Which of the following If…Then statements correctly displays that a student received an A on an exam if the score was 90 or above?

A) If studentgrade = 90 Then displayLabel.Text = “Student received an A”

B) If studentgrade 90 Then displayLabel.Text = “Student received an A”

C) If studentgrade >= 90 Then displayLabel.Text = “Student received an A”

D) If studentgrade == 90 Then displayLabel.Text = “Student received an A”

A

C) If studentgrade >= 90 Then displayLabel.Text = “Student received an A”

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

In an activity diagram, a rectangle with curved sides represents ___________.

A) a complete algorithm

B) a comment

C) an action

D) the termination of the application

A

C) an action

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

The ^= operator _____________.

A) squares the value of the left operand by the value of the right operand and stores the result in the left operand.

B) adds the value of the right operand to the value of the left operand and stores the result in the left operand.

C) creates a new variable and assigns the value of the right operand to that variable.

D) multiplies the value of the left operand by the value of the right and stores the result in the left operand.

A

A) squares the value of the left operand by the value of the right operand and stores the result in the left operand.

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

When a value is placed into a memory location, the value _________ the previous value in that location.

A) copies

B) adds itself to

C) replaces

D) moves

A

C) replaces

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

The If …Then statement is called a ________ statement because it selects or ignore one action (or group of actions).

A) group-selection

B) single-selection

C) double-selection

D) multiple-selection

A

B) single-selection

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

An output label should ___________.

A) be distingueshed with other labels

B) initially have an empty Text property or a default value

C) use Fixed3D for the borderStyle property

D) All the above

A

D) All the above

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

The body of a Do While….Loop statement executes _____________.

A) at least once

B) never

C) while its condition is false

D) while its condition is true

A

D) while its condition is true

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

The if…Then…Else selection statement ends with the key words __________.

A) End if Else

B) End If

C) End Else

D) Else

A

B) End If

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

The __________ statement executes until its loop-termination condition becomes True.

A) Do While—-Loop

B) Do Until….Loop

C) While…Loop

D) Loop

A

B) Do Until….Loop

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

When a value is read from memory, that value is _____________.

A) overwritten

B) Not overwritten

C) replaced with a new value

D) moved to a new memory space

A

B) Not overwritten

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

Variables that store floating Point values should be declared as an _____________.

A) Int

B) Integer

C) Long

D) Double

A

D) Double

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

The ____________ window allows you to browse solution files

A) windows Explorer

B) Solution Explorer

C) IDE

D) property editor

A

B) Solution Explorer

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

Entering a value in a TextBox causes a ____________ event.

A) TextAltered

B) ValueChanged

C) ValueEntered

D) TextChanged

A

D) TextChanged

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

A __________ is a variable that helps control the number of times that a set of statements executes.

A) repeater

B) loop

C) counter

D) control statement

A

C) counter

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

A(n) __________ loop occurs when a condition in a Do While…Loop never becomes False.

A) nested

B) undefined

C) infinite

D) finite

A

C) infinite

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

An application enters break mode when __________.

A) a breakpoint is reached

B) Debug > Start is selected

C) there is syntax error

D) there is a logical error

A

A) a breakpoint is reached

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

A(n) ________ help the user understand a control’s purpose.

A) Button

B) descriptive Label

C) TextBox

D) title bar

A

B) descriptive Label

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

The data type in a variable declaration is immediately preceded by keyword ___________.

A) IsA

B) Type

C) As

D) Dim

A

C) As

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

A ________ occurs when an executed statement does not directly follow the previously executed statement in the written application

A) transfer of control

B) transition

C) logical error

D) flow

A

A) transfer of control

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

Property __________ maintains all the values in a ListBox.

A) Items

B) All

C) ListItemValues

D) List

A

A) Items

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

The symbol ________ is not a Visual Basic operator.

A) *

B) %

C) ^

D) <>

A

B) %

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

If number is initialized with the value 15, What value will number contain after the expression number += 7 executes?

A) 7

B) 22

C) 14

D) 15

A

B) 22

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

__________ is a programming language for sharing information via hyperlinked text documents on the World Wide Web.

A) HTTP

B) HTML

C) XML

D) Java

A

B) HTML

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

A(n) ___________ represents a user action, such as clicking a Button.

A) event

B) statement

C) method header

D) application

A

A) event

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

The expression to the right of an assignment operator is evaluated ________________ the assignment occurs.

A) before

B) after

C) at the same time

D) None of the above

A

A) before

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

The Form’s ________ property specifies the text that is displayed in the Form’s title bar.

A) Title

B) Label

C) Text

D) Name

A

C) Text

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

The ______ control allos users to add and view items in a list.

A) ListItems

B) ListBox

C) TextBox

D) GroupBox

A

B) ListBox

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

The ___________ operator returns False if the left operand is larger than the right operand.

A) =

B) <

C) <=

D) All of the above

A

D) All of the above

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

Variable declarations in event handlers begin with the keyword __________.

A) Declare

B) Sub

C) Dim

D) Double

A

C) Dim

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

The _______ operator assigns the result of adding the left and right operands to the left operand.

A) +=

B) +

C) =+

D) =

A

A) +=

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

Visual Basic keywords are ___________

A) identifiers

B) reserve words

C) properties

D) names

A

B) reserve words

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

If there are errors in an application, they appear in a window known as the ___________.

A) Task List

B) Error List

C) Output

D) Local

A

B) Error List

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

Programs that translate high-level programs into machine language are called ___________.

A) compiler

B) assembler

C) linker

D) debugger

A

A) compiler

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

Parentheses added to an expression simply to make it easier to read are known as _______ parentheses.

A) necessary

B) redundent

C) embedded

D) nested

A

B) redundent

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

A(n) ______________ is a group of one or more projects that collectively form a Visual Basic program.

A) IDE

B) Solution

C) Builder

D) file

A

B) Solution

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

A label’s boderStyle property can be set to _________.

A) Fixed3D

B) Single

C) Double

D) 3D

A

A) Fixed3D

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

The three types of control structures are sequence, selection, and __________.

A) redo

B) repeate

C) repetition

D) looping

A

C) repetition

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

A __________ is a control in which the user can enter data from a keyboard.

A) Button

B) Label

C) PictureBox

D) TextBox

A

D) TextBox

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

Item’s method __________ adds an item to a listBox.

A) Include

B) Add

C) Append

D) Plus

A

B) Add

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

A(n) ________ contains code that performa specific task.

A) variable

B) method

C) operand

D) constant

A

B) method

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

A Button’s text should use _________ capitalization

A) book-title

B) complete

C) no

D) sentence-style

A

A) book-title

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

Method String.Format is used to _____________.

A) create constants

B) format Visual Basic statements

C) control how text is formatted

D) display the formatted text in a text box

A

C) control how text is formatted

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

If …. Then…..Else is a ____________ selection statement.

A) single

B) double

C) nested

D) triple

A

B) double

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

An example of a white space character is a ________ character.

A) Tab

B) Space

C) newline

D) All of the above

A

D) All of the above

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

Item’s method __________ deletes all the values in a ListBox.

A) Remove

B) Del

C) Delete

D) Clear

A

D) Clear

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

The ______ control allos users to add and view items in a list.

A) ListItems

B) ListBox

C) TextBox

D) GroupBox

A

B) ListBox

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

You can use the ______________ method to terminate a running application.
Question 47 options:

A) Me.Close()

B) Me.Done()

C) Me,Clear()

D) Me.Stop()

A

A) Me.Close()

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

When a form has been modified since the last time it was saved, what appears on its tab in the designer window?
Question 48 options:

A) an ampersand (&)

B) an asterisk (*)

C) a percentage (%)

D) a plus sign (+)

A

B) an asterisk (*)

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

Which symbol is used in a flowchart to represent a calculation task?
Question 50 options:

A) circle

B) oval

C) parallelogram

D) rectangle

A

D) rectangle

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

What value is assigned to the lblNum control when the lblNum.Text = 71 \ 25 instruction is processed by the computer?
Question 51 options:

A) 2

B) 3

C) 21

D) 25

A

A) 2

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

What value is assigned to the lblMod control when the lblMod.Text = 76 Mod 3 instruction is processed by computer?
Question 52 options:

A) 2

B) 3

C) 1

D) 25

A

C) 1

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

The ______________ event occurs when the contents of a text box have changed.
Question 53 options:

A) Changed

B) TextChanged

C) TextChange

D) Change

A

B) TextChanged

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

If intNumber

A

D) 180

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

Logical groupings of programming methods to organize a program

A

Modules

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

Programming language statements in a program before they are compiled into the code that is actually used by the computer

A

Source Code

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

One or more projects grouped together to form a program

A

Solution

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

Words which are reversed by Visual Basic which cannot be used as variable names as they are definition used by VB

A

Keyword

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

Used to allow the user to view source files

A

Solution Explorer

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

GUI

A

Graphical User Interface

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

Used to declare a variable which will be used in the program. Identified by the keyword Dim

A

Declaration

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

Assist in improving the readability of the code

A

Comment

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

IDE

A

Integrated Development Environment

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

VB file

A

File which ends in .vb and contains the programmer-readable code

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

Executable

A

Contains the Microsoft Intermediate Language (MSIL) which is used by the computer to run the program

66
Q

Computer program

A

The set of instructions which allows the computer to process data

67
Q

The group of files which make up a program

A

Project

68
Q

BASIC

A

Beginner’s All-purpose Symbolic Instruction Code

69
Q

Two types are subroutines and functions which are used to perform a common task

A

Methods

70
Q

Order of operations

^
\+,-
*, /
\
MOD
\+,-
&
A

Exponentiation Operator
Sign Operators
Multiplication Operator, Division Operator
Integer Division Operator
Modulus (divides and finds the remainder)
Addition, Subtraction
String concatenation

71
Q
Equality Operators
=
<>
>
<
>=
<=
A
Is Equal to
Is Not Equal to
Is Greater than
Is Less than
Is Greater Than or Equal to
Is Less Than or Equal to
72
Q

Logical Operators

A statement which allows a program to execute a path based on the truth or falsity of an expression

A

If… Then…

73
Q

Logical Operators

A statement which allows a program to execute different paths based on the truth or falsity of an expression

A

If… Then… Else

74
Q

Logical Operators

Tests if two conditions both evaluate to True or False

A

AND

75
Q

Logical Operators

Tests two conditions and if either condition or both conditions are True or False then expression evaluates

A

OR

76
Q

Logical Operators

Evaluates if both conditions are True or False and only until its truth or falsity is known

A

ANDalso

77
Q

Logical Operators

Evaluates if either condition or both conditions are True or False and only until its truth or falsity is known

A

ORelse

78
Q

Code which causes a program to produce erroneous results

A

Bug

79
Q

Allows a programmer to monitor the execution of a program to locate and remove logic errors

A

Debugger

80
Q

An error in the sequence of characters in a line of code which are intended to be written in a particular order and are identified when the code is compiled

A

compilation error

81
Q

Indicates where an exception occurred, the type of exception, and links to information on how to handle the exception

A

exception assistant

82
Q

The mode entered when a program is suspended during execution at a break point

A

break mode

83
Q

Markers which identify where a program wants to pause the program and run it line by line

A

breakpoints

84
Q

Resumes execution until the next breakpoint or end of main whichever comes first

A

continue command

85
Q

adding a breakpoint to the code to stop the execution of the program at the line where the breakpoint is inserted

A

insert breakpoint

86
Q

allows the programmer to make modifications or changes to the code while in debug mode and then continue executing the code with the modifications and without having to recompile

A

edit and continue

87
Q

transforms the high level language into machine language

A

compile

88
Q

this prevents the execution of the program from stopping at the location but does not remove the breakpoint

A

disable breakpoint

89
Q

allows a programmer to assign new values to variables while the program is running

A

locals window

90
Q

executes the next statement in the code and immediately halts

A

step into

91
Q

the grey bar on the left of the code window

A

margin indicator box

92
Q

the program is suspended when the breakpoint is reached and the program is now in break mode

A

suspend execution

93
Q

indicates an active breakpoint

A

solid breakpoint circle

94
Q

a bug in the program which does not allow the program to operate correctly but it will not cause it to crash. It may cause behaviour which is unintended or undesired

A

logic error

95
Q

indicates that the highlighted line contains the next statement to execute in break mode

A

yellow arrow in break mode

96
Q

allows programmers to test and debug only the portion of the code that they have written. this is useful when there are many programmers writing one program

A

just my code debugging

97
Q

the information that is displayed as you move the cursor over the variable the programmer would like to look at

A

quick info box

98
Q

a type of debugger provided to programmers

A

visual studio debugger

99
Q

executes the contents of a called method without actually entering the called method

A

step over

100
Q

executes the remaining statements in a method and returns control to the calling method

A

step out

101
Q

allows the programmer to watch the value of the variables as a program executes

A

watch window

102
Q

an error which can only occur during the running of the program

A

run-time error

103
Q

a selection of program statements or actions are executed based on whether or not a condition is true or false

A

selection structure

104
Q

takes data processed by the computer and either displays or stores that information to an output device

A

output unit

105
Q

a device which performs calculations, logical decisions, and other functions multiple times faster than humans

A

computer

106
Q

used for long term storage of data, usually on a storage media

A

secondary storage

107
Q

a selection of program statements or actions are executed while a condition remains true or false

A

repetition structure

108
Q

allows programmers to write programs which look like common english phrases and contain mathematical operations

A

high level language

109
Q

the rapid access, temporary storage section of a computer

A

memory unit

110
Q

a computer language which is similar to english abbreviations which are then translated to machine language

A

assembly language

111
Q

procedure to be used to solve a problem which defines the actions to be executed and the order in which the actions are executed

A

algorithm

112
Q

statements which enable programmers to specify the next statement to be executed which many not necessarily be in the order that they are written

A

control statements

113
Q

the natural language of a computer defined by the hardware and consisting of 1’s and 0’s

A

machine language

114
Q

administrator of the computer and supervises the other components

A

central processing unit

115
Q

obtains information from the user via various devices

A

input unit

116
Q

program statements executed one after another as they are written in the program

A

sequential structure

117
Q

three types of control statements

A

sequential structure, selection structure, repetition structure

118
Q

the different language formats used to write program code

A

programming language

119
Q

informal language using english structure to assist programmers in developing algorithms

A

pseudocode

120
Q

A method that does not return a value when the task has completed

A

subroutine

121
Q

a parameter which is not required by the called method but if included it can be used; it must contain a default value

A

optional parameter

122
Q

terminates execution of the subroutine and tells the program to return to the calling program

A

return

123
Q

a method with the same name as another method but which contains a different parameter list

A

overloading

124
Q

a copy of a variable is made and passed to the called method. changes to the copied variable do not affect the value of the original variable

A

pass by value

125
Q

a variable which is only known within the method in which it is declared

A

local variable

126
Q

a statement used in a subroutine to leave the subroutine if a specific condition or error occurs

A

exit

127
Q

the values being passed to the called method

A

parameter

128
Q

performs tasks and can return information when the task has completed

A

method

129
Q

a variable is passed to the called method and the called method has access and is able to modify the original variable directly

A

pass by reference

130
Q

a method which will return a value to the calling routine once the task has completed

A

function

131
Q

a variable which is known throughout an entire program

A

global variable

132
Q

a collection of cells within a sheet

A

range

133
Q

VBA

A

visual basic applications

134
Q

a spreadsheet page in Microsoft Excel

A

sheet

135
Q

The contents of a cell within a spreadsheet

A

value

136
Q

a set of instructions in VBA which can be repeated

A

macro

137
Q

Every year or two, the capacities of computer hardware have approximately doubled inexpensively. This remarkable trend is often called ______ Law

A

Moore’s

138
Q

The smallest data item in a computer can assume the value 0 or the value 1. Such a data item is called a _____

A

bit

139
Q

Digits, letters and special symbols are known as ______

A

characters

140
Q

The _____ character set contains characters for many of the world’s languages.

A

Unicode

141
Q

Just as characters are composed of bits, _____ are composed of bytes. A _____ is a group of characters or bytes that conveys meaning.

A

field

142
Q
several related fields can be used to compose a \_\_\_\_\_\_. In a payroll system, for example, this \_\_\_\_\_\_for an employee might consist of the following fields:
   Employee Identification number
   Name
   Address
   Hourly pay rate
A

record

143
Q

A ____ is a group of related records. [ Note: more generally, a ____ contains arbitrary data in arbitrary formats. In some operating systems, a ____ is viewed simply as a sequence of bytes - any organization of bytes in a _____ is a view created by the programmer]

A

file

144
Q

A ______ is a collection of data that’s organized for easy access and manipulation. The most popular _____ model is the relational ______ in which data is stored in simple tabels.

A

database

145
Q

Visual Basic, C++, C#, and Java are examples of ____ ____ languages

A

high level

146
Q

____, or more precisely the classes _____ come from, are essentially reusable software components

A

objects

147
Q

In object oriented programming languages, we create a program unit called a _____ to house the set of methods that perform the _____ ‘s tasks

A

class

148
Q

Just as someone has to build a car from its engineering drawings before you can actually drive it, you must build an object from a class before a program can perform the tasks that the class’ methods define. The process of doing this is called _______. An object is then referred to as an _______ of its class

A

instantiation, instance

149
Q

when you drive a car, pressing its gas pedal sends a message to the car to perform a task - that is, to go faster. Similarly, you can send messages to an object. Each message is implemented as a ____ ____ that tells the method of an object to perform its task.

A

method call

150
Q

An object has attributes that it carries along as it’s used in a program. These attributes are specified as part of the object’s class. Attributes are specified by the class’ _____ ______

A

instance variables

151
Q

Classes _______ (ie, wrap) attributes and methods into objects - an object’s attributes and operations are intimately related. Objects may communicate with one another, but they’re not normally allowed to know how other objects are implemented - implementation details are hidden within the objects themselves

A

encapsulation

152
Q

a new class of objects can be created quickly and conveniently by ______ - the new class absorbs the characteristics of an existing class, possibly customizing them and adding unique characteristics of its own. In our car analogy, an object of class “convertible” certainly is an object of the more general class “automobile,” but more specifically, the roof can be raised or lowered.

A

inheritance

153
Q

OOAD

A

Object Oriented Analysis and Design

154
Q

A single graphical language for communicating the results of any OOAD process.

A

UML (Unified Modelling Language)

155
Q

The precursor of today’s internet

A

ARPAnet, created by ARPA (Advanced Research Projects Agency) of the US Department of Defense

156
Q

The protocol (set of rules) for communicating over the ARPAnet

A

Transmission Control Protocol (TCP)

157
Q

The information carrying capacity of communications lines

A

bandwidth

158
Q

visual basic is _____ driven. You’ll write programs that respond to user initiated _____ such as mouse clicks, keystrokes, timer expirations and - new in visual basic 2012 - touchers and finger swipes

A

event, events

159
Q

The .NET Framework contains the .NET Framework _____ _____, which provides many capabilities that you’ll use to build substantial Visual Basic apps quickly and easily.

A

class library

160
Q

______ ______ are software systems that make using computers more convenient for users, app developers, and system administrators

A

operating systems

161
Q

Visual Basic programs are created using Microsoft’s Visual Studio - a collection software tools called an ______ ______ _____ (IDE).

A

Integrated Development Environment