Introduction to Computers and Programming Flashcards
What is a program?
A set of instructions for a computer to perform a task
What does a programmer or software developer do?
Designs, creates, and tests computer programs
Define hardware in computing
Physical devices that make up a computer
List the major hardware components of a computer
CPU, main memory, secondary storage, input devices, output devices
What is the primary function of the CPU?
Runs programs
What is another term for modern CPUs?
Microprocessors
What is main memory also known as?
RAM
Describe the function of main memory
Computer’s work area, stores running programs and data
What happens to data in main memory when power is off?
Contents are erased (volatile)
What is the purpose of secondary storage?
Holds data long-term, even without power
List examples of secondary storage
Disk drives, solid state drives, USB drives, cloud storage
What do input devices do?
Collect data
Give examples of input devices
Keyboard, mouse, touchscreen
What is the function of output devices?
Present data
Provide examples of output devices
Video displays, printers
How do computers store all data?
As sequences of 0s and 1s
What is a byte?
8 bits
Define a bit
Binary digit (0 or 1)
What is the binary numbering system?
System of numbers using only 0s and 1s
How are characters stored in computers?
Using numeric codes (e.g., ASCII, Unicode)
What language do CPUs understand?
Machine language (binary instructions)
Describe the program execution process
- Fetch instruction 2. Decode instruction 3. Execute operation
What are the two levels of programming languages?
Low-level and high-level
What is assembly language?
A low-level programming language that uses mnemonics
What is a compiler?
Translates high-level language to machine language
Define an interpreter
Translates and executes high-level language instructions
What is source code?
Statements written by programmer
What is an IDE?
Software for writing, compiling, and testing programs
What are the two main categories of software?
System software and application software
What does system software do?
Controls or enhances computer operation
What is the purpose of application software?
Performs everyday tasks