The two planning tools demonstrated in class.
What are Pseudocode and Flowcharts?
The selection control used when the user is limited to one choice from a group of two or more choices.
What are Radio Buttons?
A Loop whose number of Iterations is determined by a counter.
What is a Count Controlled Loop?
The Procedure that returns a value directly.
What is a Function?
The four steps of File I/O.
1. Create variable to interact with file
2. Link file
3. Interact with file
4. Close Link to file
Our five most used data types, listed in increasing accuracy for the numeric ones.
What are: Integer, Double, Decimal, Boolean, and String?
The selection control used when the user is allowed multiple selections in a group of two or more choices.
What are Check Boxes?
The number of repetitions required to print all planet names in our solar system.
What is Eight?
Yes.
Th data type used to create input file interaction variables.
What is StreamReader?
Variable memory location naming conventions.
What is camelCase with a three letter precursor identifying the data type/class?
The three Logical Operators.
What are And, Or, and Not?
Rephrase into a coded loop:
Eating donuts while they're present.
Do
Eat(donut)
Loop While blnDonutsExist
Write two examples for event sub procedure names on the whiteboard.
Varies.
Ex:
btnExit_Click
rdoBlue_CheckedChanged
frmMain_Load
The method used to determine if an input file is present.
If File.Exists("file.txt") Then
Constant memory location naming conventions.
What is ALL CAPS with a three letter precursor identifying the data type/class, separated words by underscores?
The four Arithmetic Operators.
What are +=, -=, /=, and *=?
Rephrase into a coded loop:
Drinking until the establishment closes.
Do Until Not blnOpen
Drink()
Loop
Write the syntax for a basic independent sub procedure on the whiteboard.
Private Sub Example()
End Sub
Given the variable used to interact with the input file: inFile, how would it appear in code when checking if the next character in the file is the end of the file?
inFile.Peek() = -1
Give an example (like it'd appear in code) of Promotion and Demotion on the whiteboard.
Varies.
Required:
Datatype indication, either in datatype or variable/constant name
Promotion/Demotion
The six Comparison Operators and two examples of their use on the whiteboard.
What are <, >, =, <=, >=, and <>.
Whiteboard: Varies
Required: Evaluates to True or False and uses at least one Comparison Operator.
Write an example of For...Loop syntax on the whiteboard.
Varies. Ex:
For intCounter As Integer = intNumOne To intNumTwo
Next intCounter
Write the syntax for a basic Function procedure on the whiteboard.
Private Function Example() As datatype
Return datatypeValue
End Function
Example of all steps of File I/O on the whiteboard, as would be seen in code.
Varies:
Step 1 ex:
Dim iSR As StreamReader
Step 2 ex:
iSR = File.OpenText("file.txt")
Step 3 ex:
Dim strInfo = iSR.ReadLine()
Step 4 ex:
iSR.Close()