Topic 2, Control Statement, Lecture 4

16 flashcardsby Clement
Study these flashcardsFree · spaced repetition · iPhone, Android, Mac & web

All cards

1
Program control structures define
the order of execution of statements in a program.
2
Sequential control structure means
instructions are executed in a linear order.
3
Selection control structure involves
making decisions based on true/false conditions.
4
Iteration control structure allows
repeating a block of instructions.
5
Flow control statements alter
the default sequential order of execution.
6
Branching statements are used to
transfer control from one point to another.
7
Conditional branching transfers control
based on the outcome of a condition.
8
The if statement executes
a statement if the expression is true.
9
Unconditional branching transfers control
without checking any conditions.
10
The switch statement selects
a block of code to execute based on an expression's value.
11
The for statement is used when
the number of iterations is known in advance.
12
The while statement repeats
a block of code as long as a condition is true.
13
The do-while statement checks the condition
after the block of code is executed.
14
The break statement is used to
terminate loops or switch statements.
15
The continue statement is used to
skip the current iteration of a loop.
16
The return statement ends
the execution of a function and returns a value.

Each flashcard is separated by a new line as requested.
Study all 16 cards for free

More Computer science flashcards

Cybersecurity: Cryptography56 cardsComputer science · EnglishAndrewAWS Cloud Practitioner part 246 cardsComputer science · EnglishFredburgerUnits, Numbers, Characters, Images and Sounds39 cardsComputer science · EnglishAli_vxxxAWS Cloud Practitioner part 133 cardsComputer science · EnglishFredburgerChapter 5: System Software27 cardsComputer science · English—Griffith—2.3.1 BIG O NOTATIONS STIFDF21 cardsComputer science · EnglishSabs2023The File System and Its Problems16 cardsComputer science · English—Griffith—User Interfaces11 cardsComputer science · English—Griffith—Database Systems: Users, Transactions and Logs186 cardsComputer science · EnglishBigBurt18ISDS 409: Networking Fundamentals (Chapters 1 & 3)125 cardsComputer science · EnglishEthanComputer Hardware and Peripherals89 cardsComputer science · EnglishPERAS,Windows Administration: Active Directory and Accounts70 cardsComputer science · EnglishJay

All Computer science decks

Study these decks in the app

Free on iPhone, Android, Mac and the web. Add any deck to your account in one tap.

Download on the App StoreGet it on Google Play
Study all 16 cards for free