Term
What is the second major control structure, with the first being decision statements? |
|
Definition
Looping structures (AKA iteration structure) |
|
|
Term
Term: Repeat a series of instructions either while a condition is true (or not true) or until a condition is true (or not true) |
|
Definition
|
|
Term
Term: Control that allows user to enter data, popping up as a dialog/message box |
|
Definition
|
|
Term
Term: Object that is a strip across the top of a window that contains 1+ menu names |
|
Definition
|
|
Term
Term: Group of commands, or items, presented in a list |
|
Definition
|
|
Term
What is a good reason to use a menu, rather than buttons? |
|
Definition
|
|
Term
What is the prefix for a menu strip, each menu, and each command within a menu? |
|
Definition
|
|
Term
How do you name a menu, including the hot key? |
|
Definition
By typing '&MenuName' with the & in front of the key you want to be your hot key
ex) &File |
|
|
Term
How do you specify the hot key of a command in a menu? |
|
Definition
By using the & sign in front of it
&Clear - C E&xit - X |
|
|
Term
How can you create a full standard menu bar quickly? |
|
Definition
By using the menustrip's action tag |
|
|
Term
Term: Dialog box that prompts user to enter a value |
|
Definition
|
|
Term
How do you declare that the text entered in an inputbox should be assigned to a certain variable? |
|
Definition
strVariableName = InputBox("Prompt instructions", "Title bar") |
|
|
Term
How do you display a default value in an inputbox? |
|
Definition
Inputbox("Prompt Instructions", "Title bar", "Default text") |
|
|
Term
Term: Displays a group of values, called items, with one item per line |
|
Definition
|
|
Term
What is the prefix for a listbox object? |
|
Definition
|
|
Term
How large should the Listbox object be? |
|
Definition
Large enough to contain all input |
|
|
Term
What is the code to add items to the listbox object [using a variable]? |
|
Definition
lstListBoxName.Items.Add(VariableName) |
|
|
Term
What happens if more inputs are entered than there is room in the current Listbox size? |
|
Definition
A scroll bar is automatically added |
|
|
Term
What code is used to program the Clear menu button when the form contains only a listbox? |
|
Definition
lstListBoxName.Items.Clear() |
|
|
Term
How can items be added in the ListBox during design? |
|
Definition
Items property of the Listbox -> Click elipsis |
|
|
Term
Term: Property that identifies which item of a prespecified list is selected |
|
Definition
|
|
Term
How can you use the SelectedItem property in your code? |
|
Definition
MsgBox("Your favorite store is" & lstStores.SelectedItem) |
|
|
Term
Term: Variable that contains an accumulated value such as the total of all inputted numbers |
|
Definition
|
|
Term
Term: Variable that keeps track of how many values are entered |
|
Definition
|
|
Term
Term: Shortcut mathematical operator; allows you to perform any operation while storing the result on the same variable |
|
Definition
|
|
Term
What does a compound operator look like? |
|
Definition
|
|
Term
True/False: Compound operators work with concatenation |
|
Definition
|
|
Term
Term: Each repetition of a loop |
|
Definition
|
|
Term
What are the two types of loops? |
|
Definition
1. For..Next loop 2. Do loop |
|
|
Term
How does a For..Next loop work? Give an example |
|
Definition
For intControlVariable = 1 To 5 Body of loop Next |
|
|
Term
What does a step value do? |
|
Definition
Including a step value in the For..Next loop implements a counter in the loop for each iteration |
|
|
Term
If a step value is not included in a For..Next loop, what happens? |
|
Definition
The default step value is 1 |
|
|
Term
What does a For..Next loop look like with a step value implemented? |
|
Definition
For intNumber 1 To 99 Step 2 Body of loop Next |
|
|
Term
True/False: A step value can be a negative or a decimal or even a variable or mathematic expression |
|
Definition
|
|
Term
What type of loop continues until a condition changes? |
|
Definition
|
|
Term
What are the two types of do loops? |
|
Definition
|
|
Term
Term: Type of do loop that is executed as long as the condition is true |
|
Definition
|
|
Term
Term: Type of do loop that is executed until the condition becomes true |
|
Definition
|
|
Term
Term: Condition is tested before loop is entered |
|
Definition
|
|
Term
True/False: A top-controlled loop may never be entered |
|
Definition
|
|
Term
True/False: A bottom-controlled loop may never be entered |
|
Definition
|
|
Term
What is the format of a top-controlled loop? |
|
Definition
Do while [Condition] Body of Loop Loop |
|
|
Term
What is the format of a bottom-controlled loop? |
|
Definition
Do Body of Loop Loop while [condition] |
|
|
Term
Term: Loop where the condition is tested at the end so the body is executed at least once |
|
Definition
|
|
Term
What keyword indicates the end of a loop? |
|
Definition
|
|
Term
Term: Loop that does not end |
|
Definition
|
|
Term
Term: Starting a loop with a preset value in the variable that is tested in the condition |
|
Definition
|
|
Term
Term: Stop points placed in the code to pause execution |
|
Definition
|
|
Term
Term: Used to examine values in all variables that are within the scope of execution |
|
Definition
|
|
Term
How can a break point be added? |
|
Definition
Right click the code you want to break at and Insert -> breakpoint |
|
|
Term
Term: Code where you can clearly see the beginning and end |
|
Definition
|
|
Term
Give an example of a block of scope |
|
Definition
|
|
Term
How can you insert a code snippet? |
|
Definition
Right click a blank line Insert > Code snippet |
|
|
Term
How can you add multiple images at one time? |
|
Definition
1. Right click solution's name [in solution explorer] 2. Select Properties 3. Select Resources |
|
|
Term
How can an image/textbox/etc. be set to disappear in coding? |
|
Definition
picPicture.Image = Nothing |
|
|
Term
True/False: Loops can be nested |
|
Definition
|
|
Term
Term: Another name for 5 nested loops |
|
Definition
|
|
Term
Term: Strip across the top of a program with menu items |
|
Definition
|
|
Term
Term: Group of commands presented in a list |
|
Definition
|
|
Term
How can you make a letter a hot key in a command? |
|
Definition
Using an ampersand (&) before the letter
ex) E&xit (X) |
|
|
Term
True/False: If you insert a standard toolbar, coding must be written for each menu command |
|
Definition
True, you always need to code each command |
|
|
Term
What is the prefix for a ListBox? |
|
Definition
|
|
Term
What is the code to add items entered into a variable to a listbox? |
|
Definition
lstListBox.Items.Add(varVariableName) |
|
|
Term
What is the code to clear the items in a listbox? |
|
Definition
|
|
Term
What is the code to add the selected item in a list box to a variable? |
|
Definition
varVariableName = lstListBox.SelectedItem |
|
|
Term
What is the code structure of making an inputbox? |
|
Definition
Inputbox("Prompt Instructions", "Title bar", "Default value") |
|
|
Term
After debugging your project, you can deploy it by using __ __. |
|
Definition
|
|
Term
Term: Placing an executable version of your program on your hard disk, on a web server, or on a network server |
|
Definition
|
|
Term
Your deployed program will work on any computer that has the __ __ installed. |
|
Definition
|
|
Term
What are the steps to deploy a program using Visual Studio? |
|
Definition
-Click the BUILD menu in Visual Studio -Click "Publish (Your Project Name)" -Change the default location to a file location *You may choose to put on a CD/DVD-ROM -Uncheck "Check for updates" |
|
|