Programming MisconceptionsHomeMisconceptionsConceptsLanguagesTextbooksContributorsAbout
HomeConcepts
Conditional

Conditional

In a conditional statement or expression the value of a condition determines which alternative pieces of code to execute.

Related concepts:  StatementExpressionControl Flow

Closest Wikipedia entry:  Conditional (computer programming)

Misconceptions about Conditional
21 documented Misconceptions

Any LanguageJavaJavaScriptPythonScratch
Check Yourself
Misconception
BaseCaseNotNeeded
Recursive computations do not necessarily need a base case
Misconception
ConditionalIsSequence
If-then-else block is equivalent to sequence of two if-then blocks
Misconception
ElseAlwaysExecutes
The else branch of an if-then-else block always executes
Misconception
MissingElseTerminates
Blocks following an if without else will not execute if the condition is false

Find Misconceptions by...

Concept
Programming Language
Notional Machine
Textbook

About

About This Site
Structure and Content of the Inventory
Contributors