Freshies LOGPROG Midterms Reviewer

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/13

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

14 Terms

1
New cards

Sequence Structures

A set of statements that execute in the order they appear

2
New cards

Control Structure

Logical design that controls the order in which a set of statements execute

3
New cards

Decision Structure

Specific actions performed only if a condition exists. Also known as a selection structure.

4
New cards

Logical Operators

Special operators in Python: 'not', 'and', and 'or', used to manipulate Boolean values.

5
New cards

Short-circuit evaluation

Deciding value of a compound Boolean expression after evaluating only one sub expression.

6
New cards

Exceptions

These are handled with try-except blocks.

7
New cards

Simple If Statement

The simplest kind of if statement with one test and one action.

8
New cards

Indentation

Plays the same role in if statements as it does in for loops. All indented lines after an if statement will be executed if the test passes, and the entire block of indented lines will be ignored if the test does not pass.

9
New cards

If-Else Statements

Dual-Alternative Decision Structure with two possible paths of execution.

10
New cards

If-Elif-Else Chain

A structure used to test more than two possible situations. Python executes only one block in an if-elif-else chain.

11
New cards

Boolean Expression

A conditional test that results in a Boolean value (True or False).

12
New cards

Try-Except Block

A construct used to handle exceptions in Python. It allows the program to continue running even if an error occurs.

13
New cards

While Loop

A loop that repeatedly executes a block of code as long as a specified condition is true.

14
New cards

Break Statement

A statement used to exit a loop prematurely, before the loop condition is met.