Final Exam Flashcards
Procedural Programming
- Solves spaghetti problem
- organized by feautures
- Main program has functions that have functions
- Small Moduals
- Many programs and subprograms being used at same time in many places by many people.
Compiler vs Run Time Errors
Both found in Preliminary Debugging stage of Testing
Compiler Error: Program does not run
-a syntax error
-programs does not follow the rules
Run-Time Errors: occurs while program is running
-logical/semantic error
-Produces Incorrect Result
Program Development Life Cycle
The process of creating Programs
- Analysis (Understand program specifics)
- Design (Lay out program before coding)
- Coding (Writing Program Language)
- Debugging and Testing (find defects in Program)
- Implementation and Maintenance
Choosing Program Languages
Languages: Set of rules to write computer program
1. Categories:
Low Level (difficult and machine dependent)
High Level (closer to natural language)
2. Purpose:
weather forecasting, business transactions, math
3. Difficulty
BASIC is a beginner language
4.Popularity:
Java-Most popular
Python-Google, NASA
Source Code vs Object Code
Before an object can be debugged, it must be translated into executable code
Source Code: coded program before it is compiled(language translator coverts source code into machine language)
Object Code: machine language version of a program
4 Ways to Add a Sprite on Scratch
- Choose a sprite from the library
- Draw a Sprite
- Upload a Sprite
- Take a Picture
Draw and Label Scratch X,Y Grid
x:
y: ^ 180, 0, -180 v
Forever Loop (Scratch)
- Forever loop is a control block in scratch
- it is used so the contained code will loop forever
- it would be helpful if you wanted a sprite to have the same translation repeatedly.
- I used it in my sprite to make multiple cars drive across the screen
- there was not time limit for the game, so a repeat function would not have been as affective
Broadcasting (Scratch)
- Is an event block
- it is used to create reaction between sprites
- a broadcast is sent out so a sprite is waiting for a reaction
Sensing Blocks (Scratch)
- Ask ___ and wait (Pose a question that the user can type an answer to)
- Answer (Use the previous answer in another speech)
- Touching (A reaction based on what sprite is touching)
- Key___pressed (A reaction based off of which key is pressed)
Frame by Frame vs Physical Simulation
Frame by frame: Draw each new image to string together into animation
Physical Simulation: tweening
Dyslexic Font
Dyslexie
- Helps them recognize 2D objects as 2D objects
- anchors the letter so they do not move
Rotation, Scaling, Shear, Translation
shearing is stretching
translation is moving
rotation is rotating
scale is to make bigger or smaller
Raster to Vector Font
Raster image may be prettier, but costs money. Costs storage money.
Vector images use math to use less storage and save money.
Debugging
taking defects out of programes
Java
most popular object oriented programming language that uses bytecode
COBOL
programming language that deals with business transaction processing that has extensive moduals
Fortran
programming language that is used for math, engineering and science
Pseudocode
English like statements to outline the logic of a program
Compiler
A type of language transltor that does entire program at once
Stage
backdrop area of Scratch
Sprite
Image or character in Scratch