Topic 2, Control Statement, Lecture 4

16 flashcardspar Clement
Réviser ces flashcardsGratuit · répétition espacée · iPhone, Android, Mac et web

Toutes les cartes

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.
Réviser les 16 cartes gratuitement

Plus de flashcards : Informatique

Cisco Networking and CCNA Concepts75 cartesInformatique · AnglaisManethelCSDS 344: Vulnerability Assessment and Penetration Testing64 cartesInformatique · AnglaisSydneyUNIX Programming Final REview52 cartesInformatique · AnglaisJacksonSOFTDEV2 prelims eds44 cartesInformatique · AnglaisEdsonNetwork Security38 cartesInformatique · AnglaisAli_vxxxSection 6 -Data types 33 cartesInformatique · AnglaisDsoboDeployment and Maintenance26 cartesInformatique · Anglais—Griffith—Database Normalization21 cartesInformatique · Anglais—Griffith—IB Compsci Topic 316 cartesInformatique · AnglaisnoahmzSecurity Basics10 cartesInformatique · AnglaisYasmeenANetwork+ 2023222 cartesInformatique · AnglaisdinosoupRobotics History: The Word Robot and the Three Laws117 cartesInformatique · AnglaisPatrick

Tous les decks : Informatique

Révise ces decks dans l’app

Gratuit sur iPhone, Android, Mac et le web. Ajoute n’importe quel deck à ton compte en un tap.

Télécharger dans l’App StoreDisponible sur Google Play
Réviser les 16 cartes gratuitement