1/22
Flashcards covering essential foundational programming terms and concepts, including operators, errors, scope, and variables.
Floor Division
A mathematical division operation that divides two numbers and rounds down the quotient to the nearest whole integer.
Syntax Error
An error that occurs when code violates the grammar and structural rules of a programming language, preventing the program from compiling or running.
Boolean Variable
A variable that holds a Boolean data type, representing only one of two possible states: true or false.
Assignment Operator
An operator used to assign or store a specified value into a variable.
MOD Operator
An arithmetic operator that divides one number by another and returns the remainder.
Boolean Expression
An expression that is evaluated to produce a result of either true or false.
Boolean Value
A binary data value that can represent only one of two conditions, typically true or false.
Global Variable
A variable defined outside of all functions, making it accessible throughout the entire program.
Run-Time Error
An error that occurs while a program is actively executing, causing it to crash or terminate abnormally.
Local Variable
A variable declared inside a specific function or code block that is only accessible within that scope.
Function
A named, reusable sequence of statements designed to perform a specific task.
Variable
A named storage location in memory used to hold data values that can be referenced and modified during program execution.
Local Scope
The specific region of a program—such as within a function—where variables declared locally can be recognized and used.
Comparison Operators
Operators used to evaluate the relationship between two values, resulting in a Boolean value.
Global Scope
The outermost context of a program in which variables and functions declared are visible to and accessible by all parts of the code.
Function Call
A code statement that instructs the program to invoke and execute the code contained within a specific function.
Magic Number
A hard-coded, unexplained numeric value directly written in code instead of being assigned to a descriptive named constant.
String
A data type consisting of an ordered sequence of characters, typically enclosed in quotation marks.
Logical Operators
Operators (such as AND, OR, and NOT) used to connect or modify Boolean conditions to determine compound logical outcomes.
Whitespace Characters
Characters that introduce non-printing blank space into code, including spaces, tabs, and line breaks.
Logic Error
A mistake in a program's design that allows the program to run without crashing but produces incorrect or unexpected outputs.
Conditional Statement
A control structure that decides which block of code to run depending on whether a given condition evaluates to true or false.
Expression
A combination of values, variables, and operators that is computed and evaluated to yield a single value.