CH1 Flashcards
Computer
programmable machine designed to follow instructions
Program
instructions in computer memory to make it do something
Main hardware components
CPU
Main memory (RAM)
Secondary memory (storage)
I/O devices
CPU parts:
Control Unit -retrives/decodes instructions -coordinates activities of all other parts Arithmetic/logic unit -numeric calc -T/F, Y/N
Main memory
AKA RAM
volatile: erased when terminated/off
organized as bits: 0 or 1
-byte: 8 bits
Secondary storage
Non-volatile Media variety: -magnetic -solid-state -optical -flash drives
Input devices
send info to computer from outside
Categories of software
System
-manage computer hardware + programs that run on
them (OS, software dev tools)
Application
-provide services to user (word processing, games)
Algorithm
start
set of well-defined steps
Machine language
binary
Types of languages
low-level
-comm with computer hardware directly (binary)
High-level
-closer to human lang
High-levvel program to executable file
- ) create file
- ) preprocessor: convert source file directives –> source code program statements
- ) compiler: source program –> machine instructions
- ) linker: connect HW-specific code + machine instructions = executable file
What is a program made of?
key words programmer-defined IDs operators punctuation syntax
Procedural programming
focus on the process, written to process data
Object-oriented programming
focus on object: contain data/means to manip data
objects perform operations