Unit 3 Lesson 1 Flashcards

(18 cards)

1
Q

Bubble sort

A

A simple sorting algorithm that repeatedly steps through a list, compares adjacent elements, and swaps them if they are in the wrong order.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Concrete step

A

A detailed action that specifies exactly how to perform a task.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Count-controlled loop

A

A loop that repeats a specific number of times, controlled by a counter variable (e.g., ‘for’ loop).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Desk checking

A

A manual method of reviewing the logic of a program or algorithm using a pencil and paper instead of a computer.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Event-controlled loop

A

A loop that continues to execute until a specific condition or event occurs, such as user input or a sensor reading.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Heterogeneous

A

A term describing a collection of items that are of different types.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Homogenous

A

A term describing a collection of items that are all of the same type.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Index

A

A numerical representation of an element’s position within an array or list.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Insertion sort

A

A sorting algorithm that builds the final sorted array one item at a time by inserting each new item into its correct position.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Processing

A

The act of performing operations on data according to a set of instructions to achieve a desired result.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Record

A

A composite variable that can store multiple fields of different data types, usually related to a single entity.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Searching

A

The process of finding a specific item or value within a collection of data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Selection sort

A

A simple sorting algorithm that repeatedly finds the minimum element from the unsorted part of a list and moves it to the beginning.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Sequential search (linear search)

A

A search algorithm that checks each element in a list one by one until the desired element is found or the list ends.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Sorting

A

The process of arranging data in a particular order, such as ascending or descending.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Array

A

A collection of items stored at contiguous memory locatin; each item can be accessed using an index

17
Q

Binary Search

A

A search algorithim that finds the position of a target value within a sorted array by repeatedly dividing the search interval in half

18
Q

String

A

A sequence of characters treated as a single data item; commonly used to represent text