CMPT 120 Study Guide - Final Guide: Boolean Expression

61 views2 pages
meghan78 and 39786 others unlocked
CMPT 120 Full Course Notes
29
CMPT 120 Full Course Notes
Verified Note
29 documents

Document Summary

The order in which individual statements, instructions or function calls are executed or evaluated: sequence, iteration, decision. Continuation at a different statement - goto statement. Executing a set of statements only if some condition is met - if statement. Executing a set of statements zero or more times, until condition is met - while loop. Executing a set of distant statements, after which flow of control usually returns - subroutines. Stopping programming, no further executions - unconditional halt. The conditional statement lets the program decide whether to do this or that depending on value of variables that validates true / false. If statement - consists of boolean expression followed by one or more statements. If else statement - has optional else statement that executes when boolean expression is false. Nested if statement - using if or else if statement inside another if or else if. Elif statement - used to decrease structure, fewer indentation needed.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers

Related Documents