CSE Final Exam Notes
CSE Final Exam Notes 1. What does a state diagram show? - ANS-A state diagram shows a program's current status, or state, and where it can go from there. 2. The Light Bot activity demonstrated that computers work by: - ANS-Executing one instruction at a time. 3. Why is it a good idea to program a little at a time and test frequently? - ANS-So that you can more easily catch errors before they pile up and become hard to find. 4. A Boolean expression, such as an If-Then block in Scratch, executes by: - ANS-Checking to see if a condition is true before executing a section of code. If it is false, the code is skipped over and the program moves on. 5. How is a Most Recent variable different from a Fixed variable? - ANS-The value of a Most Recent variable changes as the program progresses, while a Fixed variable is assigned once and does not change during the program. 6. Distinguish between and Accumulator and an Aggregator. - ANS-An accumulator will add values together into one new value, while an aggregator will gather all the values together, perhaps into a list. 7. How is a Best-so-far variable different from a Most Recent variable? - ANS-Best-so-far will check to see if it is better than the current value and will only supersede it if it is. Most Recent will not check against the current value. 8. When would a One-Way Flag variable be used? - ANS-A One-Way Flag variable might be used to indicate that a level has been passed in a game. 9. Why is an Agile design process preferable to a Waterfall design process for software design? - ANS-...
Written for
- Institution
- CSE
- Course
- CSE
Document information
- Uploaded on
- November 24, 2023
- Number of pages
- 7
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
Also available in package deal