CH. 6 icomp 2 vocab-- not from class

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

A top controlled Do While loop begins with the keywords, Do While. Next the condition is specified. The condition is expressed using the same operators that are available with the If statements

...

Any condition that can be specified in an If statement can be specified in a Do While condition. The condition can compare numeric values or string values.

...

Because the While condition is the last statement of the loop, the body of the loop is executed one time regardless of the status of the condition.

...

Visual Basic provides top controlled and bottom controlled Do While and Do Until loops, meaning it can be execute four types of Do loops

...

When using an input box, the data should be checked using the IsNumeric function and If statements.

...

Decision structure

A decision structure allows a program to perform actions only under certain conditions. In code, you can use the IF statement to write a simple decision structure.

Looping structure

A major control structure to repeat a series of instructions either while a condition is true (or not true) or until a condition is true (or not true).

hot key

A special combination of keys that causes a specific command to be executed.

Action Tag

Allows you to create a full standard menu bar commonly provided in Windows programs, with File, Edit, Tools, and Help menus. Appears in the upper-right corner of many objects, including a MenuStrip. Provide a way for you to specify a set of actions for an object as you design a form.

Example of Addition Compound Operator

Assume that intResult = 24, decResult, and strSample = "tree" ---------------Example----------------- intResult += 1 ------------Result---------------------- intResult = 25

Example of Addition Single Operator

Assume that intResult = 24, decResult, and strSample = "tree" ---------------Example----------------- intResult = intResult + 1 ------------Result---------------------- intResult = 25

Example of Concatenate Compound Operator

Assume that intResult = 24, decResult, and strSample = "tree" ---------------Example----------------- strSample &= "house" ------------Result---------------------- strSample = "treehouse"

Example of Concatenate Single Operator

Assume that intResult = 24, decResult, and strSample = "tree" ---------------Example----------------- strSample = strSample & "house" ------------Result---------------------- strSample = "treehouse"

General Format of the Do....Until Loop (Bottom-Controlled)

Do ' Loop Body Loop Until condition

General Format of the Do....Until Loop (Top-Controlled)

Do Until condition ' Loop Body Loop

&File

F is the the hot key

The general format of a For....Next loop

For Control Variable = Beginning Numeric Value To Ending Numeric Value ' Body of the Loop Next

Similar to a MessageBox object, you code the ____________ function to specify when the ___________ object appears.

InputBox

Which letter of the word is often used for the hot key?

Most of the time the first letter is used but it is not always the case. Example: E&xit

To activate hot key

Press Alt Example: Alt + F ( to open file)

Debugging

Resolving defects in code

Action tags provide a way for you to specify a set of actions, called _____, for an object as you design a form

Smart actions

Priming the Loop

Starting a loop with a preset value in the variable(s) tested in the condition.

To create a list box, you use the ListBox object provided in the __________ .

Visual Basic Toolbox

Creating a hot key

When a ampersand is used before a letter a hot key is created

E&xit

X is the hot key

Instead of typing the menu name on a MenuStrip object, you can choose to add a _____, _______, or ________ to the _______.

a menu item, combo box, or text box to the menu bar.

Compound Operator

allows you to add, subtract, multiply, divide, use modulus or exponents, or concatenate strings, storing the result in the same variable

Breakpoints

are the stop points placed in the code to tell the Visual Studio 2010 debugger where and when to pause the execution of the application.

The InputBox function displays a

dialog box that consists of a message asking for input, input area, a title, an OK button, and a Cancel button.

Iteration

each repetition of the loop

writing a menu item event handler is the same as writing an _____________.

event handler for a button click

The Do Until loop

executes until the condition becomes true. It is stated as, "Do the loop processing until a condition is true."

When IntelliSense is used to enter a For....Next loop it automatically _______ the code properly.

indention

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

input

The Input object

is a dialog box that prompts the user to enter a value

Menu

is a group of commands, or items, presented in a list.

Infinite Loop

is a loop that never ends.

Menu bar

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

Iteration structure

is another name for looping

&

is known as a ampersand

Decision structure

is one of the three fundamental control structures used in computer programing

Top controlled loop

is tested before the loop is entered. The body of a top-controlled loop might be executed at all because the condition being tested might be true before any processing in the loop occurs.

Control Value

is the numeric value that keeps track of the number of iterations the loop completes

What is the a step value?

is the value in a For....Next loop that is added to or subtracted from the beginning value on each iteration of the loop

Accumulator

is the variable that contains an accumulated value such as the total of speeds

Counter

is the variable that keeps track of how many items are entered

A ListBox displays a group of values, called ________, with one _____ per line.

items, with one item per line

The general format of adding items to a ListBox object is

lstListBoxName.Items.Add(Variable Name)

The general format to clear the ListBox is

lstListBoxName.Items.Clear ()

The prefix for MenuStrip object is

mnu

The general format to assign the selected item in a ListBox Object is

strVariableName = lstListBoxName.SelectedItem

Bottom controlled loop

test the condition at the bottom of the loop, so the body of a bottom controlled lop is executed at least once.

Do loops are either _________ or ______ depending on whether the condition is tested before the loop begins or after the body of the loop has executed one time.

top controlled or bottom controlled

When is the For......Next Loop used?

when a selection of code is to be executed an exact number of times

The SelectedItem property identifies

which item in the ListBox is selected.


Ensembles d'études connexes

Cancer and Oncology NCLEX Quiz 1

View Set

Finc415 Chapter 6 : international parity relationships

View Set

Adjustable rate mortgages (ARMS)

View Set

Chapter 1 Reading Guides and Test candidate questions

View Set