Variable | Constant |
Data Type | Declaration |
Assignment | Scope |
Global Variable | Local Variable |
A value that remains unaltered throughout the execution of a program. | A named storage location in a computer's memory that can hold a value |
Defining a variables name and type. | Classification that specifies which type of value a variable can hold in a programming language. |
The limit of accessibility and visibility of a variable | The process of providing a variable with a specific value. |
A variable that can only be accessed within a specific function. | A variable that can be accessed and modified from any part of a program. |
Type Inference | Sequencing |
Selection | If Statement |
Switch Statement | Condition |
Boolean | Execution Path |
The order in which statements are executed in a program. | Automatic variables in programming languages can ascertain their data type by analyzing their value. |
A control structure that executes a block of code if a certain condition is true. | The process of making a decision based on certain conditions. |
A boolean expression that determines the execution path of a program. | A control structure that selects one of many code blocks to be executed. |
The sequence of statements executed based on the condition in an if or switch statement. | A data type that can have two possible values: true or false. |
Nested If Statement | Default Case |
Nested Loop | Definite Iteration |
For Loop | While Loop |
Iteration | Loop |
A case in a switch statement that is executed when none of the other cases match. | An if statement that is inside another if statement. |
In computer programming, a programming construct is utilized to repetitively execute a block of code for a predetermined number of times. | A loop inside another loop, often used in a flowchart to indicate more complex algorithms. |
A definite iteration construct is employed as a means of repeating a block of code until a specified condition is no longer true. | A common construct used for definite iteration in many programming languages is the ability to execute a block of code repeatedly for a specified number of times. |
In programming, a control structure enables the recurring execution of a block of code until a specific condition is satisfied. | Repetition refers to the process of executing a block of code or a set of instructions repeatedly. |
Counter | Increment |
Decrement | Control Flow |
Indefinite Iteration | Do-While Loop |
Break Statement | Continue Statement |
The process of enhancing the value of a variable by a set amount. | A variable utilized in definite iteration that keeps record of the number of times a loop has executed. |
The order of execution of a program's statements and instructions. | The process of reducing the value of a variable by a fixed amount. |
A loop that executes a block of code at least once, and then repeatedly executes it as long as a specified condition evaluates to true. | A control flow structure that repeats a block of code indefinitely until a certain condition is met. |
A statement used to skip the rest of the current iteration in a loop and proceed to the next iteration. | A statement used to exit a loop prematurely, without executing the remaining code. |
Infinite Loop | Conditional Loop |
Arithmetic Operators | Addition Operator |
Subtraction Operator | Multiplication Operator |
Logical Operators | AND |
A loop that repeats a block of code as long as a specified condition is true. | A loop that never terminates and keeps repeating indefinitely. |
To combine two values, the plus sign (+) is employed. | Mathematical calculations in a programming language are employed for numerical operations. |
The symbol (*) is employed to perform the operation of multiplying two values. | The symbol (-) is utilized to deduct one value from another. |
Operator which only returns True if both operands are True. | operators used in programming to manipulate Boolean values |
OR | NOT |
XOR | Comparison Operators |
== | != |
> | < |
Reverses the logical state of its operand. | Operator which returns True if at least one of the operands is True. |
Used to compare values and return a boolean result. | Only returns True if either operand is True, but not both. |
Used to check if two values are not equal. | Used to check if two values are equal. |
Used to check if the left operand is less than the right operand. | Used to check if the left operand is greater than the right operand. |
>= | <= |
In | Not In |
Is | |
Used to check if the left operand is less than or equal to the right operand. | The '>=' Used to check if the left operand is greater than or equal to the right operand. |
Used to check if a value does not exist in a sequence. | Used to check if a value exists in a sequence. |
Used to check if two variables refer to the same object in memory. | |