Advanced Control Structures: Selection, Iteration, and Analysis

0.0(0)
Studied by 0 people
0%Unit 2 Mastery
0%Exam Mastery
Build your Mastery score
multiple choiceMultiple Choice
call kaiCall Kai
Supplemental Materials
Card Sorting

1/26

Last updated 8:30 PM on 3/4/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

27 Terms

1
New cards

Algorithm

A precise sequence of instructions implemented to solve a specific task using programming languages.

2
New cards

Selection

The process of making decisions in programming to choose which code block to run based on certain conditions.

3
New cards

Iteration

The repetition of a process or set of instructions in programming.

4
New cards

Modulus Operator (%)

An operator that returns the remainder of the division of one number by another.

5
New cards

Even Check

A condition to check if a number is even: if (num % 2 == 0).

6
New cards

Odd Check

A condition to check if a number is odd: if (num % 2 != 0).

7
New cards

Multiple Check

A condition to determine if a number is a multiple of another number: if (num % k == 0).

8
New cards

Integer.MIN_VALUE

A constant in Java representing the smallest possible integer value.

9
New cards

Integer.MAX_VALUE

A constant in Java representing the largest possible integer value.

10
New cards

Accumulator

A variable that keeps a running total by adding values from a dataset.

11
New cards

Counter

A variable that increments by one each time a specified condition is met.

12
New cards

String Traversal

Iterating through a string to analyze or manipulate its characters.

13
New cards

charAt(int index)

A method in Java that returns the character at a specified index in a string.

14
New cards

substring(int beginIndex, int endIndex)

A method that returns the substring from the specified begin index to end index (exclusive) in a string.

15
New cards

Trace Table

A grid used to track the values of variables during the execution of a program.

16
New cards

Nested Loops

A loop structure where one loop is placed within another, causing the inner loop to execute multiple times for each iteration of the outer loop.

17
New cards

Off-By-One Error

A common programming mistake tied to loop boundaries, where the last valid index is miscalculated.

18
New cards

Infinite Loop

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

19
New cards

System.out.print

A method that prints output to the console without adding a new line.

20
New cards

System.out.println

A method that prints output to the console and adds a new line after printing.

21
New cards

String Comparison

The process of checking if two strings are equal, which should be done using .equals() instead of ==.

22
New cards

Integer Division

The result of dividing two integers, which truncates the decimal portion and returns an integer result.

23
New cards

Digit Extraction

An algorithmic process to analyze each digit of an integer by repeatedly using the modulus and division operations.

24
New cards

Reversing a String

An algorithm that constructs a new string from the original string by iterating through it in reverse order.

25
New cards

Finding Minimum/Maximum Values

An algorithm to determine the lowest or highest value in a sequence of numbers.

26
New cards

Counting Occurrences

An algorithm to determine how many times a specific character appears in a string.

27
New cards

Predicting Output

The process of anticipating the output of a program by analyzing its logic and control structures.

Explore top flashcards

flashcards
faf
40
Updated 956d ago
0.0(0)
flashcards
faf
40
Updated 956d ago
0.0(0)