Test 1 CSCI 130
Fall 2022
- Please answer each question fully, carefully and thoughtfully.
- No credit will be given for unreadable answers, please write neatly.
- Answer the questions in any order, but please number each answer.
- Make sure that your name is on your test.
- Algorithms
- [6 points] Define algorithm.
- [4 points] An algorithm must meet two criteria. What are these criteria?
- Program Design
- [6 points] List, in order, the major steps in the Programming Process .
- [4 points] At least two of the major steps above involve testing or verifying. Why are these steps important?
- Syntax vs Convention
- [2 points] Give an example of a syntax rule in c++
- [2 points] Give an example of a programming convention used in our class.
- [4 points] Explain the difference between a convention and a syntax rule. State the entity responsible for judging/enforcing each.
- [2 points] Why is it important to follow programming conventions?
- Constants and Variables.
- [3 points] Describe at least three commonalities between variables and constants. These can be syntax rules, conventions, or properties.
- [2 points] Describe at THE major difference between variables and constants.
- [2 points] What is an identifier?
- [3 points] Is an identifier the same as a constant/variable? Explain.
- Program Construction.
- [3 points] What is the purpose of a text editor?
- [3 points] What does a compiler do?
- Program Outline
- [4 points] Give the basic outline of all c++ programs. (This is code and should look like code)