Chp 1: Computer Programming Flashcards
Computer: definition
Any device that stores and processes data.
algorithm
A sequence of steps that species how to solve a problem, with or without a computer.
bug
An error in a program.
processors
(or CPUs) perform simple calculations
memory
(or RAM) that temporarily stores information.
program
the sequence of instructions that specifies how to perform a computation on computer hardware.
input
Get data from the keyboard, a file, a sensor, or some other device.
output
Display data on the screen, or send data to a file or other device.
math
Perform basic mathematical operations like addition and division.
decision
Check for certain conditions and execute the appropriate code.
repetition
Perform an action repeatedly, usually with some variation.
programming
the process of breaking down a large, complex task into smaller and smaller subtasks
statement
a line of code that performs a basic action; specifies one step of an algorithm.
print statement
displays a message to the user
method
a named sequence of statements.