Comp Sci Ch. 3 Flashcards
What do software requirements do?
Tell what a program is supposed to do
What are the 4 steps of program development?
Establishing requirements, creating a design, implementing the code, and testing the implementation
What is software design?
The central planning of a program
What is pseudo code?
The outline of a program
What is impememtation?
The least creative step. Translating the design into source code
What is testing?
Running the code to fix errors with multiple inputs
in what way is a program executed?
Linear unless specified otherwise
What is the order in which a program is executed called?
Flow of control
How are conditional statements tested?
Booleans
What is executed with multiple if/ else if statements?
Just one of the statements
What is a block statement?
The text between the brackets in a method or condition
How do you format code in eclipse?
Highlight it, then hit control-L
What is implementation like?
Actually doing something
What does an if else statement do?
Catch anything that doesn’t go into the if statement
What is a block statement?
Everything between braces
What does the ! Do?
Negate a statement
What is discrete math?
Logical stuff like statements
What does a carrot mean?
And
What does an upside down carrot mean?
Or
What is XOR?
One is true so the whole thing is
When is an implication false?
When P is true but Q isn’t
What do letters represent?
Statements that can be true or false
This is a complete proposition/statement that is always true
Tautology
This is a statement that is always false
Contradiction
This is something that is not a tautology or a contradiction
Contingency