C++ Conditional Statements (Lesson 1.4) - Grade 9 Computer Class

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

1/11

flashcard set

Earn XP

Description and Tags

Vocabulary flashcards covering key terms from the lecture on conditional statements and the I would rather values.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

12 Terms

1
New cards

Integrity

Choosing honesty and accountability; telling the truth even when you have made a mistake rather than making excuses.

2
New cards

Perseverance

Continued effort to solve a difficult problem and not give up; keep trying until you succeed.

3
New cards

Synergy

Working with others to complete a project, achieving a result greater than working alone.

4
New cards

Adaptability

Ability to adjust to new rules or schedules in school; flexibility to change when needed.

5
New cards

Conditional statements

Programming constructs that decide which part of code to execute based on whether a condition is true or false.

6
New cards

If statement

Executes the block of code when its condition evaluates to true.

7
New cards

Else statement

Executes the block of code when the condition evaluates to false.

8
New cards

Else-if statement

Tests a new condition if the previous condition is false; used to chain multiple conditions.

9
New cards

Brace usage

Use curly braces {} to enclose code blocks after conditional statements to avoid errors.

10
New cards

Assignment vs equality operator

Using = (assignment) instead of == (equality) in a condition can cause logic errors.

11
New cards

Missing parentheses around condition

In C++, the condition in an if statement must be inside parentheses; omitting them causes syntax errors.

12
New cards

Extra semicolon after if or else

A semicolon after the if/else is a no-op, causing the conditional to do nothing.