Computers and Programs Flashcards
Machine Instructions
Represented as 0s and 1s
Executable Program
Sequence of machine instructions
High-Level Languages
More closely related to human thought than machine instructions
Compiler
Program that automatically translates high-level languages into low-level executable programs
Computer Program
Consists of instructions that a computer executes
Code
Textual representation of a program
Variable
Represents a memory location used to store data
Assignment Statement
Assigns (stores) the right-side’s current value into the variable on the left side
Uses =
Expression
Combination of items (number, variable name, literal, operator, or a calculation)
Identifier
Name created by a programmer for a variable or function
Sequence of letters (a-z, _) and digits (0-9). Must start with a letter.
Reserved Word
aka keyword
Word that is part of the language and can’t be used as an identifier
Camel Case
Capitalize each word
Underscore Separated
Lowercase words separated by an underscore
Literal
Specific value
Function
List of statements executed by referring to function’s name (function call)