Accounting
Anthropology
Archaeology
Art History
Banking
Biology & Life Science
Business
Business Communication
Business Development
Business Ethics
Business Law
Chemistry
Communication
Computer Science
Counseling
Criminal Law
Curriculum & Instruction
Design
Earth Science
Economic
Education
Engineering
Finance
History & Theory
Humanities
Human Resource
International Business
Investments & Securities
Journalism
Law
Management
Marketing
Medicine
Medicine & Health Science
Nursing
Philosophy
Physic
Psychology
Real Estate
Science
Social Science
Sociology
Special Education
Speech
Visual Arts
Computer Science
Q:
You can use the Exists method to avoid the run time error that occurs when the computer cannot locate the file you want opened for input.
Q:
After creating the StreamReader object, you declare a variable to store the object in the computer's internal memory.
Q:
You can use a text box's Focus method to send the focus to the text box during run time.
Q:
When you are writing data to a file, in most cases you will use the Write method.
Q:
The "doc" filename extension is commonly used when naming sequential access files.
Q:
When you open a file for output, if the file already exists, the computer erases the contents of the file before writing any data to it.
Q:
Before you create a StreamWriter object, you first declare a variable to store the object in the computer's internal memory.
Q:
An item of datasuch as the string "Taylor"is viewed similarly by a human being and a computer.
Q:
Most input and output files are composed of lines of text that are both read and written sequentially.
Q:
In addition to getting data from the keyboard and sending data to the computer screen, an application can also get data from and send data to a file on a disk.
Q:
To access a member of a structure variable in an array, you use the syntax ____.
a. memberVariableName.arrayName(subscript)
b. arrayName(subscript).memberVariableName
c. arrayName.memberVariableName(subscript)
d. memberVariableName(subscript).arrayName
Q:
A structure variable can be passed to a procedure or stored in a(n) ____. a.
function b.
constant c.
variable d.
array
Q:
The dot member access operator is a(n) ____. a.
asterisk b.
semicolon c.
period d.
colon
Q:
You use the ____ to separate the structure variable's name from the member variable's name. a.
dot member access operator b.
access operator c.
dot member access d.
dot access operator
Q:
You refer to a member variable by preceding the member's name with the name of the ____ variable. a.
member b.
object c.
module d.
structure
Q:
You use the ____ keyword to declare a class-level structure variable. a.
Public b.
Dim c.
Private d.
Static
Q:
You use the ____ keyword to declare a procedure-level structure variable. a.
Dim b.
Public c.
Static d.
Internal
Q:
Variables declared using a structure as their data type are often referred to as ____ variables. a.
object b.
structure c.
static d.
internal
Q:
In most structures, the member variables are defined using the keyword ____ followed by the variable's name, the keyword As, and the variable's data type. a.
Private b.
Static c.
Dim d.
Public
Q:
The members of a structure can be ____. a.
variables only b.
procedures only c.
variables or procedures d.
neither variables nor procedures
Q:
Between the Structure and End Structure clauses, you define the ____ included in the structure. a.
members b.
objects c.
parameters d.
structs
Q:
The convention with structure statements is to enter structure names using ____ case.
a. LISP
b. Pascal
c. COBOL
d. FORTRAN
Q:
Data types created using the Structure statement are referred to as ____. a.
structures b.
objects c.
object structures d.
data objects
Q:
You can create your own data types in Visual Basic using the ____ statement. a.
UserType b.
UserStructure c.
DateType d.
Structure
Q:
A structure variable can be stored in an array only when its members have the same data type.
Q:
The ability to pass a structure variable and its members as one unit is the not an advantage of using a structure.
Q:
When you pass a structure variable to a procedure, all of its members are passed automatically.
Q:
You can use a structure to group together related items.
Q:
The member variables in a structure variable cannot be used just like any other variables.
Q:
In most applications, you enter the Structure statement in the form's Declarations section.
Q:
In a structure, you can group together items having the String data type along with items having a numeric data type.
Q:
The items in a structure must have the same data type.
Q:
The Structure statement provides the pattern for a data type that can be used to reserve a memory location.
Q:
The Structure statement itself reserves locations in the computer's internal memory.
Q:
The variables defined in a structure are referred to as member variables.
Q:
Most programmers use the Structure statement to create data types that contain procedures.
Q:
Between the Structure and End Structure clauses, you define the members included in the structure.
Q:
Pascal case means capitalizing the first letter in the name and the first letter of each subsequent word in the name.
Q:
When GetUpperBound is used with a two-dimensional array, the ____ in the dimension argument represents the column dimension. a.
0 b.
1 c.
col d.
horz
Q:
When GetUpperBound is used with a two-dimensional array, the ____ in the dimension argument represents the row dimension. a.
0 b.
1 c.
row d.
vert
Q:
When GetUpperBound is used with a one-dimensional array, the dimension argument will always be ____. a.
0 b.
1 c.
2 d.
3
Q:
In the GetUpperBound syntax, ____ is an integer that specifies the dimension whose upper or lower bound you want to retrieve. a.
initialValue b.
dimension c.
rowValue d.
columnValue
Q:
An array's ____ method returns an integer that indicates the highest subscript in the specified dimension in the array. a.
GetGreatestBound b.
GetHighestBound c.
GetUpperBound d.
GetUpper
Q:
If the outer loop of a nested loop controls the ____ subscript in a two-dimensional array, the array is filled with data row by row. a.
column b.
row c.
outer d.
nested
Q:
Within the individual ____ sections of a two-dimensional array, you enter one or more values separated by commas. a.
dimension b.
typeValue c.
initialValues d.
defaultValues
Q:
The first row subscript in a two-dimensional array is ____. a.
0 b.
1 c.
2 d.
3
Q:
In a two-dimensional array, the variable's row and column subscripts are specified in a set of ____ immediately following the array name. a.
square brackets b.
braces c.
slashes d.
parentheses
Q:
In a two-dimensional array, the variable's row and column subscripts are separated by a ____. a.
semicolon b.
comma c.
period d.
dash
Q:
Elements located in the first row in a two-dimensional array are assigned a row subscript of ____. a.
0 b.
1 c.
2 d.
3
Q:
The ____ in a two-dimensional array specify the variable's row and column positions in the array. a.
array scripts b.
array pointers c.
subscripts d.
superscripts
Q:
A ____-dimensional array resembles a table in that the variables (elements) are in rows and columns. a.
one b.
two c.
three d.
four
Q:
To accumulate the values stored in an array, you need to access each array element.
Q:
You can only use the GetUpperBound method with two-dimensional arrays.
Q:
If the outer loop of a nested loop controls the row subscript in a two-dimensional array, the array is filled with data column by column.
Q:
If you need to access each element in a two-dimensional array, you typically do so using an outer loop and a nested loop.
Q:
The variables (elements) in a two-dimensional array can be used just like any other variables.
Q:
The number of rows in a two-dimensional array is always one number less than the highest row subscript.
Q:
You refer to each element in a two-dimensional array by the array's name and the element's row and column subscripts.
Q:
Elements located in the first column in a two-dimensional array are assigned a column subscript of 1.
Q:
Elements in the second row of a two-dimensional array are assigned a row subscript of 2.
Q:
Each element in a two-dimensional array is identified by a unique combination of two subscripts that the computer assigns to the element when the array is created.
Q:
You can determine the number of elements in a two-dimensional array by multiplying the number of its rows by the number of its columns.
Q:
You can visualize a one-dimensional array as a table of variables.
Q:
The most commonly used arrays in business applications are one-dimensional and two-dimensional.
Q:
An empty array is declared using an empty set of ____. a.
slashes b.
brackets c.
braces d.
curly braces
Q:
An empty array is an array that contains no ____. a.
data b.
indexes c.
memory d.
elements
Q:
An array whose number of elements changes while an application is running is referred to as a(n) ____ array. a.
dynamic b.
updating c.
active d.
renewing
Q:
The optional ____ keyword in the syntax of the ReDim statement tells the computer to keep the current array values when the size of the array changes. a.
Keep b.
Protect c.
Save d.
Preserve
Q:
You can change the number of elements in an array while the application is running using the ____ statement. a.
ReDo b.
DoDim c.
ReDim d.
ReFit
Q:
The ____ statement is used when you know the exact number of times the loop instructions should be processed. a.
Do"¦While b.
For"¦Next c.
For"¦Until d.
Do"¦Until
Q:
Variables declared in a form's Declarations section are referred to as ____ variables.
a. global
b. local-level
c. class-level
d. program-level
Q:
Variables and arrays declared in a form's Declarations section have ____ scope.
a. class
b. program
c. global
d. location
Q:
____ variables are recognized by every procedure contained in the form's Code Editor window. a.
Dim b.
Local-level c.
Program-level d.
Class-level
Q:
Class-level variables are declared using the ____ keyword. a.
Dim b.
Public c.
Private d.
Class
Q:
When two or more procedures in an application may need to use the same variable or array, you can declare the memory locations in the form's ____ section.
a. Memory
b. Storage
c. Declarations
d. Statements
Q:
The elements in a parallel array are related by their ____. a.
classes b.
data types c.
superscripts d.
subscripts
Q:
____ arrays are two or more arrays whose elements are related by their position in the arrays. a.
Parallel b.
Connected c.
Equivalent d.
Comparable
Q:
If you use the ReDim statement to reduce the size of an array, the values in the truncated elements are saved.
Q:
Although the ReDim statement allows you to make an array either larger or smaller, in most cases you will use it to decrease the size of the array.
Q:
At times, you may not know the precise number of array elements needed to store an application's data.