ECEN/CSCE 155E Chapter 04: Looping Structures

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

1/14

flashcard set

Earn XP

Description and Tags

Flashcards covering key concepts and definitions related to looping structures as discussed in the lecture notes.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

15 Terms

1
New cards

Looping Structures

Programming routines that implement repetitive tasks.

2
New cards

while Statement

A control structure that executes a block of code repeatedly as long as the condition evaluates to true.

3
New cards

do-while Statement

A control structure that executes a block of code at least once before checking the condition at the end of the loop.

4
New cards

for Statement

A control structure that is used for repetitive tasks with a predetermined count, typically more concise than while statements.

5
New cards

count Variable

A loop control variable that determines how many times the loop will execute.

6
New cards

infinite loop

A loop that continues indefinitely because its terminating condition is never met.

7
New cards

strcmp()

A function that compares two strings character by character.

8
New cards

strlen()

A function that calculates the length of a string, excluding the null character.

9
New cards

fgets()

A function that reads a line of text from a terminal or file.

10
New cards

Academic Integrity Policy

A set of rules that prohibits collaboration and use of unauthorized tools in coursework.

11
New cards

Repetitive tasks

Actions that are performed multiple times, often implemented using loops.

12
New cards

Checkpoint

A condition that determines whether the loop should continue executing or terminate.

13
New cards

Buffer Length

The maximum number of characters that can be read into a string variable.

14
New cards

Null Character

A special character ‘\0’ used to indicate the end of a string in C/C++.

15
New cards

Input from Standard Input

Data that is received by the program, typically via keyboard or terminal.