Test 1 Mod 1-2 Flashcards
Program
set of instructions that a computer follows to perform a task
Commonly referred to as Software
Hardware
The physical devices that make up a computer Typical major components: Central processing unit Main memory Secondary storage devices Input and output devices
Byte
just enough memory to store letter or small number
Divided into eight bits
Bit: electrical component that can hold positive or negative charge, like on/off switch
ASCII
Most important coding scheme is ASCII
ASCII is limited: defines codes for only 128 characters
Unicode
coding scheme becoming standard
Compatible with ASCII
Can represent characters for other languages
CPU
designed to perform simple operations on pieces of data
Examples: reading data, adding, subtracting, multiplying, and dividing numbers
To carry out meaningful calculation, CPU must perform many operations
Key Words
predefined words used to write program in high-level language
Each key word has specific meaning
Operators
perform operations on data
Example: math operators to perform arithmetic
Syntax
set of rules to be followed when writing program
Statement
individual instruction used in high-level language
Compiler
: translates high-level language program into separate machine language program
Machine language program can be executed at any time
Interpreter
translates and executes instructions in high-level language program
Python uses an interpreter
Interprets one instruction at a time
No separate machine language program
Source Code
statements written by programmer
Program development cycle
Design the program Write the code Correct syntax errors Test the program Correct logic errors
Algorithim
set of well-defined logical steps that must be taken to perform a task