What are the two key steps in program design?
What is an algorithm?
A well-defined logical sequence of steps to perform a task.
What are pseudocode and flowcharts used for in program design?
Pseudocode is used to focus on design without syntax rules, and flowcharts graphically represent program steps.
What symbols are used in flowcharts, and what do they represent?
What is the difference between a syntax error and a logic error?
What are the three steps in the Input, Processing, Output (IPO) structure?
What is an IPO chart?
A planning tool that describes a program’s input, processing, and output.
What are the three main control structures in programming?
What is a variable in programming?
A named storage location in memory that holds data.
What are the rules for naming variables?
What is a string in programming?
A sequence of characters used as data.
What is a string literal?
A string value written directly in the program code, enclosed in quotation marks.
What is an assignment statement?
A statement that sets a variable to a specified value.
What is the order of operations in math expressions?
What is the difference between an integer and a real number?
What is a named constant?
A value that cannot be changed during execution, typically declared in ALL_UPPERCASE naming.
What is the purpose of program documentation?
To explain how the program works, through external documentation for users and internal comments in the code.
What are the types of comments in programming?