Chapter 6 VS

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

Sampled

Before deployment, an application should be ____.

True

Each code snippet inserted by the command in the accompanying figure consists of a complete programming task.

mnu

Prefix for a Menu item.

&

Symbol used to designate a Hot Key

True

The beginning, ending, and step values used in a For...Next loop can vary based on input from a user.

False

Use a For...Next loop when the number of repetitions is unknown.

For intOuterCount = 1 to 5 For intInnerCount = 1 to 4 intTotalCount +=1 Next Next

20

True

A Step value in a For...Next loop can be positive or negative.

For...Next

A ____ loop is best used when the specific number of iterations required is known.

top

A ____-controlled loop tests the condition before the loop body is executed.

infinite

A loop that will never end.

False

A variable defined between the Then keyword and the Else keyword in an If...Then...Else structure can be referenced from within the Else section of the structure.

lstListBoxName.Items.Add(Variable Name)

Code that would allow the ability to add data to a ListBox.

List Box

Object that displays a group of values, called items, with one item per line.

False

Only one breakpoint can be set in a program, as shown in the accompanying figure.

True

Starting a loop with a preset value for the variable tested in the condition is called priming the loop.

step vaule

Statement used to change the increment value of a For...Next loop. Can be positive or negative.

control

A loop's ____ variable is a numeric variable that keeps track of the number of iterations the loop completes.

5

How many times will the following loop execute? For intCount = 10 To 1 Step -2 'Body of loop Next

4

How many times will the following loop execute? For intCount = 10 To 16 Step 2 'Body of Loop Next

False

In a Do While loop, the body of the loop is executed until the condition becomes true.

True

In an If...Then statement, the code between the If and the End If keywords is considered a block of code.

AndAlso

In an expression using the logical operator ____, as soon as one of the compound conditions is found to be false, no further conditions are tested and the expression evaluates to false

none of the above

In order to run a program deployed with ClickOnce Deployment, the computer needs ____ installed on it.

Selected Item

The ____ property of a ListBox object identifies which item in the ListBox was selected.

+=

The compound operator ____ adds the value of the right operand to the value of the left operand and stores the result in the left operand's variable. AND Compound operator for addition

&=

The compound operator ____ is used to add a string to an existing string AND Compound operator for concatenation.

Looping structure

A fundamental process in a computer program is to repeat a series of instructions either while a condition is true (or not true) or until a condition is true (or not true).

False

A hot key in a menu name must be the first letter.

nested loop

A loop inside of a loop.

False

A top-controlled loop is always executed at least once.

Iteration

A(n) ____ is a single repetition of a loop. AND Another term for looping.

hot

A(n) ____ key provides a keyboard shortcut for opening a menu.

Accumulator

A(n) ____ variable collects a total value over a period of time.

Counter

A(n) ____ variable keeps track of how many times a loop has executed.Typically counts one at a time.

Action

As shown in the accompanying figure, Visual Basic 2015 contains a(n) ____ Tag that allows you to create a full standard menu bar commonly provided in Windows programs.

yellow

Breakpoint lines are highlighted in what color?

False

Breakpoints are stop points placed in the code where execution will be paused during the execution of the program, and enter debug mode.

lstListBoxName.Items.Clear()

Code that would clear all items from a ListBox.

do loop

Loop used when a section of code is to be executed an indefinite amount of times based on a condition.

False

MenuStrip objects can be placed along any edge of the form, depending on which side is closer to the mouse pointer.

BackgroundImage

Property that allows the ability to change the background of a Form to an image.

InputBox

Separate object outside of a form that allows the user to enter data to be processed later. AND The ____ function provides a dialog box that asks the user for input and provides an input area.

True

The InputBox function returns a null string ("") when a user clicks the Cancel button.

False

The Step value for a For...Next loop must be a positive whole integer value.

control variable

The ____ follows the keyword For in a For...Next loop.

False

The beginning and ending values for a For...Next loop must be predefined and cannot contain an expression.

smart

The feature shown in the accompanying figure provides an easy way for you to specify ____ actions for an object as you design a form.

Alt

The hot key for a menu item can be activated with the keyboard by pressing the ____ key and the hot key at the same time.

True

The installation files created by the ClickOnce Publishing Wizard can be used for a software release.

priming

Using a preset value for the variable tested in a loop condition is a process called ____ the loop

500

Visual Basic contains a code library of almost ____ pieces of code called code snippets, inserted by the command shown in the accompanying figure

False

You must include a Step value in a For...Next loop, even if the Step value is 1.

Breakpoint

____ are stop points placed in the code to tell Visual Studio 2015 debugger where and when to pause the execution of the program.

Menu Bar

A strip across the top of a window that contains one or more menu names.

Datatips

When in break mode, you can use ____ to examine the value of variables.

9

A For...Next loop with a beginning value of 1, an ending value of 25, and a Step value of 3 will execute ____ times.

Compound

A ____ operator allows you to perform arithmetic operations with a variable and store the results back to that variable. AND A shortcut that allows you to add, subtract, multiply, divide, use modulus or exponents, or concatenate strings, storing the result in the same variable.

bottom

A ____-controlled loop tests the condition after the code in the loop body has been executed.

Do While

If ____ appears as the first line of a loop, the loop is a top-controlled Do loop that will execute as long as a condition remains true.

do until

If ____ appears as the first line of a loop, the loop is a top-controlled Do loop that will stop execution when a condition becomes true.

loop while

If ____ appears as the last line of a loop, the loop is a bottom-controlled Do loop that will execute as long as a condition remains true.

loop until

If ____ appears as the last line of a loop, the loop is a bottom-controlled Do loop that will stop execution when a condition becomes true.

True

It is best to indent the body of the loop, to identify clearly the code that is being repeated.

Clear

To remove all objects from a ListBox object, the ____ method is used.

true

When expecting a number from an input box, the IsNumeric function should be used to ensure that the input data can be converted to a numeric variable

True

When nesting loops, the inner loop must be completely contained in the outer loop and must use a different control variable.

True

When using an If...Then...ElseIf structure, when a condition is found to be true, the rest of the ElseIf statements are skipped.

lstDirections.Items.Add("East")

Which line of code will add the value "East" to a ListBox object named lstDirections?

an entire program

Which of the following CANNOT be contained in a code snippet?

True

Writing an event handler for a menu item is the same as writing an event handler for a button click.

False

You can create your own code snippets but they cannot be added to the library.

true

You can display a code snippet to ensure you understand the syntax and requirements for a given type of statement.

ClickOnce Deployment

You can place an executable version of a program on your hard disk, on a web server, or on a network server by using the ____ process. AND Process in VisualStudio used to a create a deployed program to be installed and executed on any computer that has the .NET framework in- stalled.


Kaugnay na mga set ng pag-aaral

Ch 11 problem solving and creativity

View Set

Photoshop FINAL (Photoshop 1.1-1.3, Photoshop 3.1-3.3, Photoshop 4.1-4.3 (and some tools from L. 3), lesson2 quiz3, 6.1 and 6.2, Photoshop 7.1-7.1)

View Set

3i/RESEARCH THE SCOPE AND DELIMITATION CHAP 1

View Set

American History Unit: 1. EARLY SETTLEMENT OF NORTH AMERICA

View Set

Saunders Pregnancy Complications

View Set

National Real Estate Exam Practice

View Set

Digital Imaging in Dentistry: Intraoral, Extraoral, and 3D Technology

View Set

Personal insurance coverages- Personal Auto Insurance

View Set