Chapters 1 to 5 Flashcards

(161 cards)

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
A(n) ___________ represents a user action, such as clicking a Button. A) event B) statement C) method header D) application
A) event
26
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) before
27
The Form's ________ property specifies the text that is displayed in the Form's title bar. A) Title B) Label C) Text D) Name
C) Text
28
The ______ control allos users to add and view items in a list. A) ListItems B) ListBox C) TextBox D) GroupBox
B) ListBox
29
The ___________ operator returns False if the left operand is larger than the right operand. A) = B) < C) <= D) All of the above
D) All of the above
30
Variable declarations in event handlers begin with the keyword __________. A) Declare B) Sub C) Dim D) Double
C) Dim
31
The _______ operator assigns the result of adding the left and right operands to the left operand. A) += B) + C) =+ D) =
A) +=
32
Visual Basic keywords are ___________ A) identifiers B) reserve words C) properties D) names
B) reserve words
33
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
B) Error List
34
Programs that translate high-level programs into machine language are called ___________. A) compiler B) assembler C) linker D) debugger
A) compiler
35
Parentheses added to an expression simply to make it easier to read are known as _______ parentheses. A) necessary B) redundent C) embedded D) nested
B) redundent
36
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
B) Solution
37
A label's boderStyle property can be set to _________. A) Fixed3D B) Single C) Double D) 3D
A) Fixed3D
38
The three types of control structures are sequence, selection, and __________. A) redo B) repeate C) repetition D) looping
C) repetition
39
A __________ is a control in which the user can enter data from a keyboard. A) Button B) Label C) PictureBox D) TextBox
D) TextBox
40
Item's method __________ adds an item to a listBox. A) Include B) Add C) Append D) Plus
B) Add
41
A(n) ________ contains code that performa specific task. A) variable B) method C) operand D) constant
B) method
42
A Button's text should use _________ capitalization A) book-title B) complete C) no D) sentence-style
A) book-title
43
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
C) control how text is formatted
44
If .... Then.....Else is a ____________ selection statement. A) single B) double C) nested D) triple
B) double
45
An example of a white space character is a ________ character. A) Tab B) Space C) newline D) All of the above
D) All of the above
46
Item's method __________ deletes all the values in a ListBox. A) Remove B) Del C) Delete D) Clear
D) Clear
47
The ______ control allos users to add and view items in a list. A) ListItems B) ListBox C) TextBox D) GroupBox
B) ListBox
48
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) Me.Close()
49
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 (+)
B) an asterisk (*)
50
Which symbol is used in a flowchart to represent a calculation task? Question 50 options: A) circle B) oval C) parallelogram D) rectangle
D) rectangle
51
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) 2
52
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
C) 1
53
The ______________ event occurs when the contents of a text box have changed. Question 53 options: A) Changed B) TextChanged C) TextChange D) Change
B) TextChanged
54
If intNumber
D) 180
55
Logical groupings of programming methods to organize a program
Modules
56
Programming language statements in a program before they are compiled into the code that is actually used by the computer
Source Code
57
One or more projects grouped together to form a program
Solution
58
Words which are reversed by Visual Basic which cannot be used as variable names as they are definition used by VB
Keyword
59
Used to allow the user to view source files
Solution Explorer
60
GUI
Graphical User Interface
61
Used to declare a variable which will be used in the program. Identified by the keyword Dim
Declaration
62
Assist in improving the readability of the code
Comment
63
IDE
Integrated Development Environment
64
VB file
File which ends in .vb and contains the programmer-readable code
65
Executable
Contains the Microsoft Intermediate Language (MSIL) which is used by the computer to run the program
66
Computer program
The set of instructions which allows the computer to process data
67
The group of files which make up a program
Project
68
BASIC
Beginner's All-purpose Symbolic Instruction Code
69
Two types are subroutines and functions which are used to perform a common task
Methods
70
Order of operations ``` ^ +,- *, / \ MOD +,- & ```
Exponentiation Operator Sign Operators Multiplication Operator, Division Operator Integer Division Operator Modulus (divides and finds the remainder) Addition, Subtraction String concatenation
71
``` Equality Operators = <> > < >= <= ```
``` 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
Logical Operators A statement which allows a program to execute a path based on the truth or falsity of an expression
If... Then...
73
Logical Operators A statement which allows a program to execute different paths based on the truth or falsity of an expression
If... Then... Else
74
Logical Operators Tests if two conditions both evaluate to True or False
AND
75
Logical Operators Tests two conditions and if either condition or both conditions are True or False then expression evaluates
OR
76
Logical Operators Evaluates if both conditions are True or False and only until its truth or falsity is known
ANDalso
77
Logical Operators Evaluates if either condition or both conditions are True or False and only until its truth or falsity is known
ORelse
78
Code which causes a program to produce erroneous results
Bug
79
Allows a programmer to monitor the execution of a program to locate and remove logic errors
Debugger
80
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
compilation error
81
Indicates where an exception occurred, the type of exception, and links to information on how to handle the exception
exception assistant
82
The mode entered when a program is suspended during execution at a break point
break mode
83
Markers which identify where a program wants to pause the program and run it line by line
breakpoints
84
Resumes execution until the next breakpoint or end of main whichever comes first
continue command
85
adding a breakpoint to the code to stop the execution of the program at the line where the breakpoint is inserted
insert breakpoint
86
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
edit and continue
87
transforms the high level language into machine language
compile
88
this prevents the execution of the program from stopping at the location but does not remove the breakpoint
disable breakpoint
89
allows a programmer to assign new values to variables while the program is running
locals window
90
executes the next statement in the code and immediately halts
step into
91
the grey bar on the left of the code window
margin indicator box
92
the program is suspended when the breakpoint is reached and the program is now in break mode
suspend execution
93
indicates an active breakpoint
solid breakpoint circle
94
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
logic error
95
indicates that the highlighted line contains the next statement to execute in break mode
yellow arrow in break mode
96
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
just my code debugging
97
the information that is displayed as you move the cursor over the variable the programmer would like to look at
quick info box
98
a type of debugger provided to programmers
visual studio debugger
99
executes the contents of a called method without actually entering the called method
step over
100
executes the remaining statements in a method and returns control to the calling method
step out
101
allows the programmer to watch the value of the variables as a program executes
watch window
102
an error which can only occur during the running of the program
run-time error
103
a selection of program statements or actions are executed based on whether or not a condition is true or false
selection structure
104
takes data processed by the computer and either displays or stores that information to an output device
output unit
105
a device which performs calculations, logical decisions, and other functions multiple times faster than humans
computer
106
used for long term storage of data, usually on a storage media
secondary storage
107
a selection of program statements or actions are executed while a condition remains true or false
repetition structure
108
allows programmers to write programs which look like common english phrases and contain mathematical operations
high level language
109
the rapid access, temporary storage section of a computer
memory unit
110
a computer language which is similar to english abbreviations which are then translated to machine language
assembly language
111
procedure to be used to solve a problem which defines the actions to be executed and the order in which the actions are executed
algorithm
112
statements which enable programmers to specify the next statement to be executed which many not necessarily be in the order that they are written
control statements
113
the natural language of a computer defined by the hardware and consisting of 1's and 0's
machine language
114
administrator of the computer and supervises the other components
central processing unit
115
obtains information from the user via various devices
input unit
116
program statements executed one after another as they are written in the program
sequential structure
117
three types of control statements
sequential structure, selection structure, repetition structure
118
the different language formats used to write program code
programming language
119
informal language using english structure to assist programmers in developing algorithms
pseudocode
120
A method that does not return a value when the task has completed
subroutine
121
a parameter which is not required by the called method but if included it can be used; it must contain a default value
optional parameter
122
terminates execution of the subroutine and tells the program to return to the calling program
return
123
a method with the same name as another method but which contains a different parameter list
overloading
124
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
pass by value
125
a variable which is only known within the method in which it is declared
local variable
126
a statement used in a subroutine to leave the subroutine if a specific condition or error occurs
exit
127
the values being passed to the called method
parameter
128
performs tasks and can return information when the task has completed
method
129
a variable is passed to the called method and the called method has access and is able to modify the original variable directly
pass by reference
130
a method which will return a value to the calling routine once the task has completed
function
131
a variable which is known throughout an entire program
global variable
132
a collection of cells within a sheet
range
133
VBA
visual basic applications
134
a spreadsheet page in Microsoft Excel
sheet
135
The contents of a cell within a spreadsheet
value
136
a set of instructions in VBA which can be repeated
macro
137
Every year or two, the capacities of computer hardware have approximately doubled inexpensively. This remarkable trend is often called ______ Law
Moore's
138
The smallest data item in a computer can assume the value 0 or the value 1. Such a data item is called a _____
bit
139
Digits, letters and special symbols are known as ______
characters
140
The _____ character set contains characters for many of the world's languages.
Unicode
141
Just as characters are composed of bits, _____ are composed of bytes. A _____ is a group of characters or bytes that conveys meaning.
field
142
``` 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 ```
record
143
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]
file
144
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.
database
145
Visual Basic, C++, C#, and Java are examples of ____ ____ languages
high level
146
____, or more precisely the classes _____ come from, are essentially reusable software components
objects
147
In object oriented programming languages, we create a program unit called a _____ to house the set of methods that perform the _____ 's tasks
class
148
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
instantiation, instance
149
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.
method call
150
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' _____ ______
instance variables
151
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
encapsulation
152
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.
inheritance
153
OOAD
Object Oriented Analysis and Design
154
A single graphical language for communicating the results of any OOAD process.
UML (Unified Modelling Language)
155
The precursor of today's internet
ARPAnet, created by ARPA (Advanced Research Projects Agency) of the US Department of Defense
156
The protocol (set of rules) for communicating over the ARPAnet
Transmission Control Protocol (TCP)
157
The information carrying capacity of communications lines
bandwidth
158
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
event, events
159
The .NET Framework contains the .NET Framework _____ _____, which provides many capabilities that you'll use to build substantial Visual Basic apps quickly and easily.
class library
160
______ ______ are software systems that make using computers more convenient for users, app developers, and system administrators
operating systems
161
Visual Basic programs are created using Microsoft's Visual Studio - a collection software tools called an ______ ______ _____ (IDE).
Integrated Development Environment