Mod 3 Flashcards
Make me smarter
Four basic data types
Character integer float boolean
//
/* */
Comments - compiler ignores everything after the comment until the end of the line.
Single line comment
Start multiple line comment
Stop multiple line comment
Four essential Loop actions
I
C
C
B
Initialization: assigns initial value
Condition: evaluate the control variable to determine whether the loop should execute or not
Change: changes the value of the control variable to ensure the loop as a means to exit.
Body: statements defined between the opening and closing curly braces of the for Loop.
If
Else if
Else
Are all what?
If statements
!
&&
| |
These are what kind of statements and what are their names.
Decision statements
Not
And
Or
What is a constant?
A named memory location whose value cannot change
What is a variable
A named memory location
What are the four program structural components?
D
I
P
O
Declarations: storage for data being workedwith.
Input: allows acquisition of data from a source.
Processing: manipulating data to arrive at a result.
Output: provides processed data to find a destination. Could be a monitor a file on the hard drive or a web page
What are the four program structural components?
D
I
P
O
Declarations: storage for data being workedwith.
Input: allows acquisition of data from a source.
Processing: manipulating data to arrive at a result.
Output: provides processed data to find a destination. Could be a monitor a file on the hard drive or a web page
———–>
What is this symbol called?
flow line
It shows the direction of program flow on a flowchart.
What is the flowchart symbol for a predefined process?
The symbol should be a rectangle with two thin vertical rectangles on either side.
What is the flowchart symbol for decision?
The symbol is a daimond it represents Branch based boolean decision making. Has a true or false output.
What is the flowchart symbol for input/output?
It should look like a parallelogram and represents input from user or output to a display.
What is the flowchart symbol for terminal?
Terminal is represented by an oval and represents a programs start or stop point.
What is the flowchart symbol for process?
The symbol is a rectangle and it represents an action to be executed.