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:
____ store the information passed to a procedure when it is invoked. a.
Data stores b.
Controls c.
Variables d.
Parameters
Q:
It is a common practice to begin a procedure name with a verb and to enter the name using ____ case. a.
Camel b.
Hungarian c.
Pascal d.
Capitalized
Q:
The ____ provides a code template for every event procedure. a.
Code Editor b.
Template Editor c.
Code Template d.
Template Tool
Q:
When you pass a variable's address to a procedure, the computer uses the address to locate the variable in its external memory.
Q:
To pass a variable by reference in Visual Basic, you include the keyword ByRef before the variable's corresponding parameter in the receiving procedure's header.
Q:
A procedure-level variable is removed from the computer's memory when the procedure in which it is declared ends.
Q:
When you select a check box, for example, its Checked property changes from False to True.
Q:
When only a copy of the contents of a variable are passed, the receiving procedure can change the value stored inside the variable.
Q:
When only the contents of a variable are passed, the receiving procedure is given access to the variable in memory.
Q:
Every variable declared in an application has both a value and a unique address that represents the location of the variable in the computer's internal memory.
Q:
In a sub procedure, the number of arguments in the Call statement do not have to agree with the number of parameters in the procedure list.
Q:
An independent Sub procedure can contain one or more parameters in its procedure header.
Q:
Each argument represents an item of information that is passed to the procedure when the procedure is invoked.
Q:
You can invoke a Sub procedure using the Invoke statement.
Q:
In a sub procedure, a set of parentheses that contains an optional procedure name follows the parameter list in the procedure header.
Q:
Independent Sub procedures are not used extensively in large and complex programs, which typically are written by a team of programmers.
Q:
You can use an independent Sub procedure to avoid duplicating code when different sections of a program need to perform the same task.
Q:
An event procedure is a set of Visual Basic instructions that are processed when a specific event (such as the Click event) occurs.
Q:
You can prevent the user from editing the contents of a text box by setting the text box's ____ property to True. a.
Read b.
ReadOnly c.
Editable d.
Change
Q:
For the ScrollBars property to take effect, the text box's ____ property must be set to True. a.
Scroll b.
ScrollBars c.
Manyline d.
Multiline
Q:
A text box's ____ property specifies whether the text can span more than one line in the control. a.
ScrollBars b.
Manyline c.
Multiline d.
Span
Q:
The ____ property indicates whether any scroll bars appear on the text box. a.
Scroll b.
ScrollBar c.
ViewScroll d.
ScrollBars
Q:
A text box can have ____, which allow you to view any information not currently showing in the control. a.
scroll bars b.
view bars c.
scroll handles d.
highlight bars
Q:
To pause program execution for a half of a second, type ____.
a. System.Threading.Sleep(500)
b. System.Threading.Thread.Sleep(500)
c. System.Threading.Sleep(1000)
d. System.Threading.Thread.Sleep(1000)
Q:
To display minutes values from 0 through 5 type the following: ____.
a. For MinutesInt As Integer = 0 To 5
b. For intgMinutes As Integer = 0 To 5
c. For intMinutes As Integer = 0 To 5
d. For Minutes As Integer = 0 To 5
Q:
In the Clock Solution, the ____ and Sleep methods are required so that you can view each of the minute and second values in the interface. a.
Show b.
Renew c.
Display d.
Refresh
Q:
In the Clock application, you have a(n) ____ loop display the number of seconds. a.
outer b.
control c.
nested d.
subordinate
Q:
In the Clock application, you have a(n) ____ loop display the number of minutes. a.
outer b.
control c.
nested d.
master
Q:
In the Clock application, the Start button's ____ event procedure contains the loops. a.
Click b.
Open c.
Select d.
Run
Q:
When writing a clock application, the second hand on a clock is controlled by the ____ loop. a.
subordinate b.
outer c.
control d.
inner
Q:
When writing a clock application, the minute hand on a clock is controlled by the ____ loop. a.
subordinate b.
outer c.
control d.
inner
Q:
A programmer determines whether a problem's solution requires a nested loop by studying the problem ____.
a. specification
b. syntax
c. control
d. resource allocation
Q:
____ means that you can place one repetition structure entirely within another repetition structure. a.
Encasing b.
Subordinating c.
Nesting d.
Folding
Q:
You can prevent the user from editing the contents of a text box by setting the text box's Editable property to False.
Q:
Users can edit the contents of a label control while the application is running.
Q:
For a text box to contain scroll bars, its Multiline property must be set to True.
Q:
The ScrollBars property indicates whether the text box has no scroll bars, a horizontal scroll bar, a vertical scroll bar, or both horizontal and vertical scroll bars.
Q:
To include scroll bars on a text box, you need to change the ScrollBar property's setting from None to either Horizontal or Vertical.
Q:
For a text box to include scroll bars, its ScrollBars and Multiline properties must be set appropriately.
Q:
A label control can have a scroll bar.
Q:
A text box can only display a limited amount of information.
Q:
To display minute values from 0 through 9 use the following syntax: for intMinutes = 0 to 9.
Q:
In the clock application, the entire nested loop must be contained within the outer loop in order to work properly.
Q:
A clock uses nested repetition structures to keep track of the time.
Q:
A programmer determines whether a problem's solution requires a nested loop by studying the
code.
Q:
When nesting loops, both repetition structures must be pretest loops.
Q:
Like selection structures, repetition structures can be nested.
Q:
Nested loops occurs when one loop is placed immediately after another loop.
Q:
The Enter key on your keyboard is represented by the ____ constant. a.
ControlChars.NextLine b.
ControlChars.NewLine c.
ControlChars.SpaceLine d.
ControlChars.EnterLine
Q:
You connect or link strings using the ____ operator, which is the ampersand (&). a.
join b.
connect c.
concatenation d.
link
Q:
The ____ operator reverses the sign of a number. a.
sign change b.
change c.
sign d.
negation
Q:
The ____ method contains a complex mathematical formula for calculating a periodic payment. a.
Fincl.Pmt b.
Financial.Pmt c.
Fin.Pmt d.
Fin.Payment
Q:
Visual Basic's ____ feature exposes a set of commonly used objects to the programmer. a.
Obj b.
My c.
MyObj d.
ComObj
Q:
To have an application play an audio file while it is running, you use the syntax ____. a.
My.Computer.Play(fileName) b.
Play(filename) c.
My.Computer.Audio.Play(fileName) d.
fileName.Play
Q:
The ____ object refers to your computer. a.
This.Computer b.
My.ComputerObject c.
Local.Computer d.
My.Computer
Q:
Fewer unintentional errors occur in applications when the variables are declared using the ____ scope needed.
a. broadest c. minimum
b. most open d. maximum c.
minimum d.
maximum
Q:
When a variable is declared in a(n) ____ statement at the beginning of a procedure, it has procedure scope and can be used by the entire procedure. a.
Dim b.
New c.
As d.
Create
Q:
When you declare a variable in the For clause, the variable has ____ scope and can be used only within the For...Next loop. a.
program b.
block c.
solution d.
method
Q:
You can use the ____ portion of the For clause to declare the counter variable. a.
As dataType b.
dataType c.
Dim As dataType d.
Dim dataType
Q:
The counter variable must be a(n) ____ variable. a.
iterative b.
alpha c.
alphanumeric d.
numeric
Q:
You code a posttest counter-controlled loop using the ____ statement. a.
Execute"¦Until b.
Do...Loop c.
For"¦Next d.
Do"¦Counter
Q:
A counter-controlled loop uses a counter ____ to keep track of the number of times the loop instructions are processed. a.
variable b.
constant c.
condition d.
control
Q:
A loop whose instructions you want processed a precise number of times is often referred to as a ____ loop. a.
conditional b.
precision c.
counter-controlled d.
sequential
Q:
You can use the ControlChars.NextLine constant to advance the insertion point to the next line in a control, file, or printout.
Q:
When concatenating strings, you must be sure to include a space before and after the ampersand.
Q:
With the negation operator, a positive number preceded by the negation operator remains a positive number.
Q:
In the Financial.Pmt method, if Rate is a monthly interest rate, then NPer must specify the number of monthly payments.
Q:
The mathematical formula for calculating a periodic payment on a loan is rather complex, so Visual Basic provides a method that performs the calculation for you.
Q:
To have the Audio object play an audio file, you use its Sound method.
Q:
Q:
The My.Computer object provides access to several objects, such as your computer's Audio object.
Q:
The For"¦Next statement's counter variable must be numeric.
Q:
You can declare the counter variable in a Dim statement, as long as the Dim statement appears somewhere after the For"¦Next statement.
Q:
When you declare a variable in the For clause, the variable stays in the computer's internal memory when the loop ends.
Q:
You do not need to specify the name of the counter variable in the Next clause, but doing so is highly recommended because it makes your code more self-documenting.
Q:
The For...Next statement provides the most convenient way to code a posttest counter loop.
Q:
A pretest counter loop can only be coded using the Do"¦Loop statement.
Q:
A counter-controlled loop can be either a pretest loop or a posttest loop.
Q:
You may test an initial condition of a posttest loop by ____.
a. using a nested loop for the initial condition
b. placing the posttest loop inside a selection structure
c. resetting the counter variable on each pass of the loop
d. initializing all loop variables to zero
Q:
One problem with posttest loops is that they always execute at least once. You can fix the problem in the Posttest Loop button's code by placing the posttest loop in a(n) ____ structure. a.
selection b.
execute c.
iterative d.
another posttest loop