Computer Science Programming Fundamentals and Algorithms

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/34

flashcard set

Earn XP

Description and Tags

Comprehensive vocabulary flashcards covering programming fundamentals, data structures, constructs, algorithms, and file processing based on the lecture transcript.

Last updated 5:38 PM on 5/22/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

35 Terms

1
New cards

Variable

A container that stores data that can change, designated as mutable.

2
New cards

Constant

A container that stores data that should not change, designated as immutable.

3
New cards

Operator

A symbol used for arithmetic or comparisons, such as ,+,,,/,, +, -, *, /, %, ==, !=, >, <, >=, <=, \text{and}, \text{or}, \text{not}.

4
New cards

Data Type

Defines the kind of data stored, such as Boolean, Character, Decimal/Float, Integer, or String.

5
New cards

Local variable

A variable defined inside a function that is only accessible within that specific function.

6
New cards

Global variable

A variable defined outside of functions that is accessible anywhere within the program.

7
New cards

Trace tables

A tool used to manually follow the flow of code step by step to track how variable values change over time.

8
New cards

String

A sequence of characters, for example, "Alice Smith".

9
New cards

Substring

A smaller part of a string, such as name[0:5]name[0:5] resulting in "Alice".

10
New cards

Exception

An unexpected event that disrupts program flow, such as a divide by 00 error.

11
New cards

Exception handling

The process of using try/except/finally blocks to prevent program crashes during unexpected events.

12
New cards

Bug

An error that causes a program to produce unexpected results.

13
New cards

Debugging

The process of finding and fixing bugs within a program.

14
New cards

Static data structure

A data structure with a fixed size stored in contiguous memory, such as arrays in Java, which offers faster access but less flexibility.

15
New cards

Dynamic data structure

A data structure that can grow or shrink at runtime and may be non-contiguous, such as lists in Python, which is more memory efficient.

16
New cards

Array

A structure that stores multiple values in an indexed format, which can be 1D1D or 2D2D.

17
New cards

Parallel arrays

Two or more arrays of equal length used to store related data.

18
New cards

Tuples

Fixed, immutable data collections used in Python.

19
New cards

Lists

Dynamic, flexible arrays in Python that support methods like .append().append(), .pop().pop(), and .remove().remove().

20
New cards

Stack

A Last-In, First-Out (LIFO\text{LIFO}) data structure, similar to a stack of plates, supporting operations like push()push(), pop()pop(), and peek()peek().

21
New cards

Queue

A First-In, First-Out (FIFO\text{FIFO}) data structure, similar to a line at a store, supporting operations like enqueue()enqueue() and dequeue()dequeue().

22
New cards

Sequence

A programming construct where code executes in the exact order it is written.

23
New cards

Selection

A programming construct for choosing between different paths based on conditions, implemented as if/elif/else in Python.

24
New cards

Looping

The process of repeating code until a specific condition is met, including conditional (while) and counted (for) loops.

25
New cards

Function

A named block of reusable code.

26
New cards

Modularization

The practice of breaking code into smaller parts to improve clarity, reusability, testing, and maintenance.

27
New cards

Big O notation

A notation used to describe how quickly operations increase as input size (nn) grows, measuring an algorithm's scalability.

28
New cards

Time complexity

A measure of how the runtime of an algorithm changes as the size of the input increases.

29
New cards

Linear Search

A retrieval algorithm with complexity O(n)O(n) that checks items one-by-one; it works on both sorted and unsorted data.

30
New cards

Binary Search

A retrieval algorithm with complexity O(logn)O(\log n) that repeatedly checks the middle item and discards half the list, requiring sorted data.

31
New cards

Bubble Sort

An inefficient sorting algorithm with complexity O(n2)O(n^2) that works by swapping adjacent items until larger values "bubble" to the end.

32
New cards

Selection Sort

A sorting algorithm with complexity O(n2)O(n^2) that repeatedly selects the smallest item and places it into the correct position.

33
New cards

Recursion

A programming concept where a function calls itself to solve smaller versions of a problem, requiring a base case and a recursive case.

34
New cards

Absolute Path

The full location of a file or folder starting from the root directory.

35
New cards

Relative Path

The location of a file or folder expressed relative to the current working directory.