Programming I Final

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

You can delay program execution using the ____ method. -Sleep -Rest -Delay -Break

a

You use the ____ tool in the toolbox to add a list box to an interface. a) LBox b) ListBox c) Box d) List

b

____ means assigning a beginning value to a counter or an accumulator. Updating Initializing Incrementing Introducing

b

A list box should contain a minimum of ____ item(s). a) three b) four c) five d) two

a

A(n) ____ is processed only when it is called (invoked) from code. -independent Sub procedure -dependent Sub procedure -independent event procedure -event procedure

a

Adding increments of a negative number is referred to as ____. a) decrementing b) deprocessing c) initializing d) negating

a

In a nested repetition structure, one loop, referred to as the ____ loop, is placed entirely within another loop, called the ____ loop. -inner, outer -primary, secondary -dependent, independent -minor, major

a

It is a common practice to begin a procedure's name with a(n) ____. -verb -noun -adjective -adverb

a

Programmers us a ___________________ when they need the computer to repeatedly process one or more program instructions until some condition is met, at which time the _______________ ends. a) loop b) list box c) index d) counter

a

The number of choices the user can select from a list box is controlled by the list box's ____ property a) SelectionMode b) Selection c) Display d) Control

a

The symbol used to represent a loop condition on a flowchart is the ____ symbol. a) diamond b) rectangle c) hexagon d) parallelogram

a

The syntax _____________ assigns a return value to a variable

a

Usually, the statement that invokes a function will assign the function's return value to a __________. -variable -parameter -argument -address

a

When using ____, you capitalize the first letter in the procedure name and the first letter of each subsequent word in the name. -Pascal case -object case -camel case -sentence case

a

When you pass a variable ____, the computer passes only the contents of the variable to the receiving procedure. -by value -by dataType -by parameter -by reference

a

Which of the following is a valid header for a procedure that is passed the number 9.75? -Private Function CalcSubtotal(ByVal decPrice As Decimal) As Decimal

a

Which of the following statements adds the number stored in the decPrice variable to the number stored in the decSubtotal variable, and then assigns the result to the decSubtotal variable? a) decSubtotal += decPrice b) decPrice =+ decSubtotal c) decSubtotal =+ decPrice d) decPrice += decSubtotal

a

You can use a ____ to display a list of choices from which the user can select zero choices, one choice, or more than one choice. a) list box b) check box c) radio button d) group list

a

A ____________ structure is also referred to as a loop. a) recursion b) repetition c) selection d) sequence

b

A unique number called a(n) ____ identifies each item in a collection. a) tracker b) index c) counter d) accumulator

b

Each time either the user or a statement selects an item in a list box, the list box's SelectedValueChanged and ____ events occur. -ItemChanged -SelectedIndexChanged -SelectionChanged -SelectedItemChanged

b

The loop created by the For...Next statement is a ____ loop. a) selection b) pretest c) sequential d) posttest

b

The syntax of the Call statement is ____. -Call procedureName([argumentList], dataType) -Call procedureName([argumentList]) -Call procedureName{[parameterList]} -Call procedureName([argumentList]) As dataType

b

To leave a Do...Loop structure earlier than its full completion, you must execute a(n) ____ statement. a) Bypass b) Exit Do c) End Do d) Leave

b

Which of the following loop structures always executes at least once? a) selection b) posttest c) top-driven d) pretest

b

An independent Sub procedure can contain one or more ____ in its procedure header that have procedure scope and store an item of data. -events -variables -parameters -constraints

c

The ____ method ensures that any code appearing before it that affects the interface's appearance is processed. -Affect -Apply -Refresh -Process

c

Which of the following is a valid Return statement? -dblNumber Return -Return ByRef dblNumber -Return dblNumber -Return dblNumber ByRef -Return dblNumber ByRef

c

Which of the following is a valid header for a procedure that receives the address of a string variable and the address of an integer? -Private Sub GetInfo(ByRef strName, ByRef intAge) -Private Sub GetInfo(ByVal strName, ByVal intAge) -Private Sub GetInfo(ByRef strName As String, ByRef intAge As Integer) -Private Sub GetInfo(ByVal strName As String, ByVal intAge As Integer)

c

You can stop an endless loop by clicking Debug on the menu bar, and then clicking ____. -Cancel Debugging -Abort Debugging -Stop Debugging -End Debugging

c

You pass a variable ____ when the receiving procedure needs to know the variable's contents, but the receiving procedure does not need to change the contents. -by reference -by dataType -by value -by parameter

c

A(n) ____ is a numeric variable used for adding together something. a) incrementer b) updater c) counter d) accumulator

d

A(n) ____ read is used to prepare or set up a loop. -set up -initialization -preparation -priming

d

If the stepValue is omitted when coding a For...Next statement, the stepValue is ____ at execution time. a) -1 b) 0.1 c) 0 d) 1

d

In a For...Next statement, if stepValue is positive, then startValue must be ____ endValue for the loop instructions to be processed. a) more than b) more than or equal to c) less than d) less than or equal to

d

In most cases, the last statement within a function is the __________ expression. -As -Private -End Function -Return

d

The syntax _______________ displays a return value

d

Visual Basic's ____ class contains many methods that your applications can use to perform financial calculations. -Money -Monetary -Finance -Financial

d

Which of the following statements pauses program execution for 3 seconds? System.Threading.Thread.Pause(300) System.Threading.Thread.Pause(3000) System.Threading.Thread.Sleep(300) System.Threading.Thread.Sleep(3000)

d

Which of the following statements selects the "blue" item, which appears fourth in the lstColor control? a) lstColor.SelectedItem = 4 b) lstColor.SelectedIndex = 4 c) lstColor.SelectedItem = 3 d) lstColor.SelectedIndex = 3

d

You can use either the SelectedItem or ____ property to determine whether an item is selected in a list box. -Selection -Items -ItemChoice -SelectedIndex

d

You should use a ____ control to provide keyboard access to a list box. a) check box b) radio button c) text d) label

d


Ensembles d'études connexes

Nutrition Unit 1: Review questions

View Set

Combo with "Chapter 32: The Conservative Resurgence" and 10 others

View Set

UNIDAD 8: La tecnología y las ciencias Spanish-Spanish

View Set

Parts and Functions of the Musculoskeletal System

View Set

CBG.18 - Bacterial genetics 2 (Conjugation)

View Set