Unit 1 Flashcards
Intro to Computers
computers
electronic devices that can perform computations and make logical decisions faster than human beings can
hardware
the physical components of a computer (e.g., mouse, screen, keyboard, disks)
software
the programs that run on a computer (e.g., operating systems, applicatoins)
input unit
the section that receives information from input devices and sends it off to other units to be processed (e.g., mouse, keyboard, microphone)
output unit
the section that sends information that has been processed to different output devices to be used outside of the computer (e.g., screen, printer, speaker)
memory unit
(low-capacity “warehouse”) the section that stores information and keeps it there till it is needed to be outputted (e.g., memory, primary memory, RAM)
secondary storage unit
(high-capacity “warehouse”) the section that places information(programs/data) that isn’t used often in larger storage units until they are used again (e.g., hard drives, CDs, flash drives)
arithmetic and logic unit (ALU)
the section that does calculations and contains tools that allow the computer to make decisions
central processing unit (CPU)
the section that manages the operations of other units (e.g., tells the input unit to read data, tells ALU to perform calculations)
machine language
the computer’s “natural language”; made up of binary bode (1s and 0s); give the computer instructions to perform operations
assembly language
abbreviations similar to English are used to represent simple computing operations
high-level language
simple statements that perform reasonable amounts of tasks; allows you to code in what looks like everyday English with commonly used mathematical notations
compilers
covert high-level language programs into machine language BEFORE the program runs
interpreters
convert high-level language programs into machine language LINE-BY-LINE as the program runs
Typical Java Environment Phases
Phase 1: Edit - where the program is typed and store on a disk, file name ending with .java
Phase 2: Compile - creates bytecodes and stores on disk, file name ending with .class
Phase 3: Load - loader reads file and puts bytecodes in memory (RAM)
Phase 4: Verify - verifier confirms the code is valid and doesn’t violate security restrictions
Phase 5: Execute - the program runs on the JVM and the interpreter reads code and compiles it into a language the computer can understand