Programming Fundamentals Flashcards
Variable
Named item used to hold a value
Assignment Statement
Assigns a variable with a value
Variable Declaration
Declares a new variable
Specifies variable’s name and type
Expression
Combination of items (variables, literal, operators, parentheses) that evaluates to a value
Identifier
Name created by a programmer for an item (variable or function)
Must be be a sequence of letters, underscores, and digits
Must start with a letter or underscore
Case sensitive
Reserved Word
aka Keyword
Part of the language and cannot be used as an identifier
Camel Case
Capitalize each word (except the first)
Underscore Separated
Lowercase words separated by underscore
Literal
Specific value in code
Operator
Symbol that performs a built-in calculation
Precedence Rules
Order of standard mathematics used in expressions () items within parentheses Logical not unary - negation */ \+- Relational Equality Logical AND Logical OR left-to-right
Unary Minus
Minus (-) used as negative
Incremental Development
Process of writing, compiling, and testing a small amount of code. Then doing another small amount.
Function
List of statements invoked with function’s name
Pseudo-Random
Random number generators have an equation based off a seed