Topic 2 - Programming
No description yet. This curated deck is ready for daily study.
Card preview (24)
What is readability?
How easily program code can be understood.
What are three ways of enhancing readability?
• Comments • Descriptive Variable Names • Indentation
What is an error?
An occurrence of an unexpected result.
What are three types of errors?
• Logic (when results are different than expected) • Syntax (structure and rules of program code) • Runtime (Occurs during or after program execution)
What is a Test Plan?
A document outlining the stages of the testing process.
In a test plan, what are three categories that test data is usually put into?
• NORMAL (typical inputs) • BOUNDARY (not so typical inputs) • ERRONEOUS (inputs that just don’t work)
What is a Trace Table?
A method used to test for Logic Errors
What is an Integrated Development Environment (IDE) ?
An application that provides a selection of tools for programmers whilst coding.
What is debugging?
The process of finding and removing errors.
What is a Watcher?
A tool that ‘watches’ anything specified by the programmer.
What is a Breakpoint?
A tool that allows a programmer to halt the programmer’s execution at specified points.
What is ‘Stepping’ ?
The process of executing the program line by line.
What are four factors that make up a good program?
• Correctness • Efficiency • Robustness • Understandability
What two purposes does Declaration serve?
• To reserve memory space 2. To ensure the compiler interprets and uses instructions correctly
What is a Command?
Instructs the computer to do something specific.
What is a Conditional?
A statement that evaluate to True or False (Boolean)
What are the three types of Control Constructs?
• Sequence • Selection • Repetition
How does a Sequence Construct work?
Each line follows the previous line (all lines are executed)
How does a Selection Construct work?
Decisions are made that choose the program’s execution
How does a Repetition Construct work?
Code is repeated (looped) until specified conditions are met.
What are the 5 Data Types?
• Integers (Whole numbers) • Float (decimal point / fractional point) • Boolean (one of two values) • Character (letter, number, symbol) • String (sequence of characters)
What is a variable?
A location in the memory containing data values.
What are Constants?
Identifiers associated with values that remain fixed during the program’s execution.
Why are variables used?
Allows you to store a value that can be used later on.