Final Exam Review Flashcards
Debugging
The process of ensuring a program is free of errors (bugs)
Java
High-level, object oriented programming language frequently used for web-based applications
Fortran
High-level programming language used for mathematical, scientific, and engineering applications
Still used today for high-performance computing tasks (weather forecast)
COBOL
Designed for business transaction processing
Makes extensive use of modules and submodules
Being phased out in many organizations
Y2K scare
Pseudocode
Uses English-like statements to outline the logic of a program
Compiler
Language translator that converts an entire program into machine language before executing it
Flowchart
Program flowcharts show graphically step-by-step how a computer program will process data
Stage
The Stage in Scratch represents the viewable/playable area of a program
It is 480px wide by 360px tall, and its size cannot be changed
Underlying the stage is an XY grid which can be used to refer to a position on the stage
The programmer can change the appearance of the stage using Backdrops
Sprite
Interactive objects in your scratch program are referred to as Sprites (a term which comes from Game Development)
Every Scratch program begins with the default sprite (MIT’s Scratch Mascot), which can easily be deleted with the x in the upper left corner
Adding new Sprites can be in the same methods as backdrops, except the camera
Argument
Many of the code blocks in scratch have arguments
An argument is an area in a block which accepts programmer input or another block
Arguments in scratch can be one of several types, which depend on the block containing the argument - numeric insert, string insert, built-in drop-down list, boolean block insert, built-in color selector.
Block
Blocks are puzzle-piece shapes that are used to create code in Scratch
The blocks connect to each other like a jigsaw puzzle
Each data type (event, command, reported value, reported boolean, or script end) has its own shape and a specifically shaped slot for it to be inserted into
This prevents syntax errors, since pieces will only fit where they are allowed to go
Script
Series of connected blocks are called scripts
Comments
Comments allow a programmer to put descriptive text in their program that is ignored during execution
They provide other people looking at your program a better understanding of what your code is doing
They can also be useful when you return to code after a long time away to remind yourself what you did
Comments are added in scratch by right click in the scripts tab
They can be adjusted horizontally and vertically
They can float free, or be attached to a particular code block
Stranded Code
Any code blocks in your scripts tab that aren’t attached to a Hat Block (event), or another block that is attached to a Hat Block will never get executed
Make sure not to leave the code stranded
Byte
Bit: the smallest unit of data that a binary computer can recognize (a single 1 or 0)
A byte is 8 bits
Byte terminology is used to express the size of documents and other files, programs, etc.
Nibble
Groups of four bits are called a nibble