Programming Flashcards
What is a variable?
Component that allows us to store data
What are the data types, and what do they store?
5
- String: Stores texts and numbers
- Char: Stores single characters
- Integer: Stores negative & positive whole numbers
- Single/Real: Stores negative & positive decimal numbers
- Boolean: Stores either true or false
What is an input?
Data that is put into the program
What is a process?
A calculation or evaluation within the program
What is an output?
Data that is displayed to the user
What is the purpose of a logical operator?
To join two or more conditions together to make a complex condition
What are the logical operators and their functions?
- AND: Both conditions must be true for the complex condition to be evaluated as true
- OR: Either condition must be true for the complex condition to be evaluated as true
- NOT: Inverts a true to a false and a false to a true
What is iteration?
When a section of code is executed several times, which makes the program more efficient and error free.
What are the two types of iteration?
Fixed loop & Conditional Loop
What are the two types of conditional loops and their functions?
- Do while: used when there is a condition that is true
- Do until: used when we start with the code that repeats
What are the 6 stages of development?
- Analysis
- Design
- Implementation
- Testing
- Documentation
- Evaluation
Stages of Development
What is the iterative process?
When a process is repeated, such as revisiting an earlier stage when encountering a problem
Stage 1:
Describe the analysis stage
During the analysis stage, you create a document called the software specification, which lists all the functional requirements of the program (inputs, processes and outputs)
Stage 2:
Describe the design stage
During the design stage, one of three design methods is used as well as the user interface being designed so that it is comfortable to use. Program should be designed efficiently.
What are the three design techniques used and their features?
- Psuedocode: human readable design method used to write out inputs, processes, outputs and refinements before they are coded
- Structure diagram: graphical design method describing the steps of a program, read top to bottom and left to right
- Flow chart: graphical design method describing the steps of a program, read from top to bottom