Intro Programming Flashcards
What is a computer program?
Computer programs, known as software, are the invisible instructions that control the hardware and make it perform tasks.
Computer programming is…
…the writing of instructions (i.e., code) for computers to perform
What is CPU?
The central processing unit (CPU) is a computer’s brain. It retrieves instructions from memory and executes them.
Computers use ____ and ____ because digital devices have two _____ electrical states, ___ and ___, referred to by convention as ____ and ____.
Computers use zeros and ones because digital devices have two stable electrical states, off and on, referred to by convention as zero and one.
A bit is a…
…binary digit 0 or 1
A byte is a…
…sequence of 8 bits
A kilobyte is about _____ bytes, a megabyte about _____ bytes, a gigabyte about _____ bytes, and a terabyte about _____ gigabytes.
A kilobyte is about 1,000 bytes, a megabyte about 1 million bytes, a gigabyte about 1 billion bytes, and a terabyte about 1,000 gigabytes.
What does the memory in a computer do?
Memory stores data and program instructions for the CPU to execute.
Memory is _____ because information that hasn’t been saved is _____ when the power is turned off.
Memory is volatile because information that hasn’t been saved is lost when the power is turned off.
What is machine language?
The machine language is a set of primitive instructions built into every computer.
What is assembly language?
Assembly language is a low-level programming language in which a mnemonic is used to represent each machine-language instruction.
High-level languages are _______ and easy to learn and program.
High-level languages are English-like and easy to learn and program.
A program written in a high-level language is called _______.
source code
What is a compiler?
A compiler is a software program that translates the source program into a machine-language program.
What is the operating system (OS)?
The operating system (OS) is a program that manages and controls a computer’s activities.