Multiple choice technology programming languages

A true or false statement put into code that the programmer expects to always be true is an ...

  1. exception

  2. harness

  3. assertion

  4. expression

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

An assertion is a statement that a programmer believes should always be true at a specific point in code execution. Assertions are used as debugging and testing aids to check assumptions during development, and typically trigger an error or exception if the condition evaluates to false.