Chapter 4 Outcomes
Generalization
Knowledge Outcomes
Define each of the key terms listed in the chart below.
| analogy | keyboard | input instruction |
| get | variable | declaration of variable |
| var | white space | return |
| enter | execution window | initialization |
| initialized variable | echo of input | prompt |
| message | sqrt | div |
| mod | real number | data type |
| fraction | mixed number | integer part |
| fraction part | significant digits | exponent |
| exponent form of real number | assignment statement | constant |
| comment | documentation | user friendly program |
| disk file name | syntax error | debugging |
| compile-time error | run-time error |
Explain how we can use an analogy to arrive at a general solution to problem.
Describe the relationship between computer memory and software.
Describe how to reserve space in the memory of a computer so that it can be used in a program. Specifically you should know how to correctly use var.
Explain why variables must be declared prior to their use.
Explain the type of numbers that can be stored in variables that are defined as int or real.
State what white space is.
Explain the purpose of the get statement. Describe what effect this instruction has on the program.
Describe how values entered into the computer through the keyboard will be stored in memory.
Explain the importance of prompting users for what they are to input and labelling output in an appropriate manner.
Explain the difference between a / and div when performing division in a program.
Explain the purpose and use of the sqrt function.
Show how the computer stores real numbers as a combination of the significant digits and the exponent.
Differentiate between the following terms:
Explain what an assignment statement is. Include in your explanation the meaning of the := symbol.
Describe the difference between a constant (const) and a variable (var).
State what the functions round and mod will do in a program.
Outline the 7 ways that programs can be made more understandable.
Describe the purposes of comment lines found within a program.
Explain the meaning of each of the following:
Skills Outcomes
Create single and multiple variable declarations.
Create a program that will prompt for input and have labels for output.
Show how the computer stores real numbers as a combination of the significant digits and the exponent.
Show how very large or very small numbers are represented in their exponent form (as expressed in Turing).
Detect and correct a variety of common errors as outlined in the chapter. Be able to differentiate between syntax errors, debugging, compile-time errors, and run-time errors.