Lesson 8: Boolean Expressions and "If" Statements

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

Else Clause

1. An IF statement can have an else clause, but an ELSE clause cannot exist on its own. 2. With an else clause you are guaranteeing that one of two portions of code will run.

Flowchart

A common visual that's used to represent the various paths of execution that your program might take. Many people use them to help plan.

Boolean Value

A computer science term that means a true/false value.

Selection

A generic term for a type of programming statement (usually an if-statement) that uses a Boolean condition to determine, or select, whether or not to run a certain block of statements.

Boolean

A single value of either TRUE or FALSE

Example of a Flowchart

Image: https://bit.ly/2GMARH7

Comparison Operators

Image: https://bit.ly/2GO5USF

Boolean Expression

In programming, an expression that evaluates to True or False

Conditionals

Statements that only run under certain conditions

If-Statement

The common programming structure that implements "conditional statements".


Kaugnay na mga set ng pag-aaral

The Outer Planets and Pluto 7: Touring Our Solar System

View Set

The New Deal: First Hundred Days

View Set

NCELX Questions Pediatric Nursing

View Set

Chapter 51: Nutrition, Digestion, and Absorption

View Set