Shared Flashcard Set

Details

Quiz 9
Chapter 6
70
Computer Science
Undergraduate 3
11/14/2014

Additional Computer Science Flashcards

 


 

Cards

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
Looping structure
Term
Term: Control that allows user to enter data, popping up as a dialog/message box
Definition
Input box
Term
Term: Object that is a strip across the top of a window that contains 1+ menu names
Definition
Menu bar
Term
Term: Group of commands, or items, presented in a list
Definition
Menu
Term
What is a good reason to use a menu, rather than buttons?
Definition
To conserve space
Term
What is the prefix for a menu strip, each menu, and each command within a menu?
Definition
mnu
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
Inputbox Object
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
Listbox Object
Term
What is the prefix for a listbox object?
Definition
'lst'
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
SelectedItem property
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
Accumulator
Term
Term: Variable that keeps track of how many values are entered
Definition
Counter
Term
Term: Shortcut mathematical operator; allows you to perform any operation while storing the result on the same variable
Definition
Compound operator
Term
What does a compound operator look like?
Definition
intNumberOfTurns += 1
Term
True/False: Compound operators work with concatenation
Definition
True
Term
Term: Each repetition of a loop
Definition
Iteration
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
True
Term
What type of loop continues until a condition changes?
Definition
Do loop
Term
What are the two types of do loops?
Definition
1. Do While
2. Do Until
Term
Term: Type of do loop that is executed as long as the condition is true
Definition
Do While
Term
Term: Type of do loop that is executed until the condition becomes true
Definition
Do until loop
Term
Term: Condition is tested before loop is entered
Definition
Top-controlled loop
Term
True/False: A top-controlled loop may never be entered
Definition
True
Term
True/False: A bottom-controlled loop may never be entered
Definition
False
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
Bottom-controlled loop
Term
What keyword indicates the end of a loop?
Definition
Loop
Term
Term: Loop that does not end
Definition
Infinite loop
Term
Term: Starting a loop with a preset value in the variable that is tested in the condition
Definition
Priming a loop
Term
Term: Stop points placed in the code to pause execution
Definition
Break points
Term
Term: Used to examine values in all variables that are within the scope of execution
Definition
DataTips
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
Block of scope
Term
Give an example of a block of scope
Definition
If-then statement
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
True
Term
Term: Another name for 5 nested loops
Definition
5-dimensional loop
Term
Term: Strip across the top of a program with menu items
Definition
Menu strip
Term
Term: Group of commands presented in a list
Definition
Menu
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
lst
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
lstListBox.Items.Clear()
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
ClickOnce Deployment
Term
Term: Placing an executable version of your program on your hard disk, on a web server, or on a network server
Definition
Deploying a project
Term
Your deployed program will work on any computer that has the __ __ installed.
Definition
.NET framework
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"
Supporting users have an ad free experience!