CNIT 105 - Functions, Loops, and Conditionals

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/11

flashcard set

Earn XP

Description and Tags

These flashcards cover key concepts related to functions, loops, and control statements in C programming.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

12 Terms

1
New cards

break statement

Used to terminate a loop or switch statement immediately.

2
New cards

continue statement

Skips the current iteration of a loop and proceeds to the next iteration.

3
New cards

function

A block of code designed to perform a specific task, which can be reused throughout a program.

4
New cards

User-defined functions

Functions created by the programmer to perform specific operations.

5
New cards

Library functions

Pre-defined functions provided by programming libraries, such as printf() in C.

6
New cards

for loop

A control flow statement for specifying iteration, which repeats a block of code a predetermined number of times.

7
New cards

while loop

A control flow statement that executes a block of code as long as a specified condition is true.

8
New cards

do-while loop

A post-test loop that guarantees at least one execution of the loop body before checking the condition.

9
New cards

nested loop

A loop inside another loop, used for multi-dimensional data structures or complex iteration patterns.

10
New cards

relational operators

Operators that compare two values and return a Boolean result, such as ==, !=, >,

11
New cards

logical operators

Operators used to combine multiple Boolean expressions, such as AND (&&), OR (||), and NOT (!).

12
New cards

random number generation

The process of generating a sequence of numbers that cannot be reasonably predicted better than by random chance.