A Truth Table is a table that displays all of the possible inputs and their respective outputs of a logical statement. One use for truth tables is to verify that an equation or set of equations create true statements. They are also used in electrical engineering and programming languages to show the state of a variable.
In other words, a truth table is a table that displays all possible combinations of input values for each variable in the logic statement. It will typically include input, output, and the corresponding rows to show how the output changes when input changes. For example, if there are three variables in a truth table, then there will be eight rows in the table to display how each variable affects the outcome.
Truth tables are used to capture the result of evaluating an expression that combines several different or complex Boolean operators in sequence.