APCO 1P00 Mid-Term Test Comprehensive Review

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

1/32

flashcard set

Earn XP

Description and Tags

Vocabulary practice flashcards covering fundamental computational thinking, Python syntax, digital image processing, and algorithms for APCO 1P00.

33 Terms

1
New cards

Media Computation

The practice of using computation to create, transform, analyze, and present digital media such as text, images, sounds, and web pages.

2
New cards

Algorithm

A finite, ordered sequence of precise steps designed to solve a specific problem.

3
New cards

Input–Processing–Output (IPO) Model

A fundamental program structure consisting of obtaining input data, performing calculations or logical operations on that data, and displaying or storing the resulting output.

4
New cards

Pseudocode

A language-independent representation of an algorithm written in plain prose that emphasizes logical flow rather than rigid programming syntax.

5
New cards

Integer (int)

A standard Python data type representing positive, negative, or zero whole numbers without any fractional or decimal component.

6
New cards

Float (float)

A Python numerical data type representing numbers that contain a decimal point.

7
New cards

String (str)

A Python data type representing textual sequences enclosed within matching single or double quotation marks.

8
New cards

Boolean (bool)

A computational data type representing truth values, consisting strictly of True or False.

9
New cards

Variable

A named location in computer memory allocated to store and track a value.

10
New cards

Floor Division (//)

An arithmetic operator that divides two operands and rounds down to the nearest integer by discarding the decimal remainder.

11
New cards

Modulo (%)

An arithmetic operator that calculates and returns the integer remainder resulting from division.

12
New cards

input() Function

A built-in Python function that reads user input from the console and always returns it as a string (str).

13
New cards

Syntax Error

A programming error that occurs when the written code violates Python structural rules, preventing the interpreter from parsing or executing the script.

14
New cards

Runtime Error

An error occurring during active program execution where syntactically valid code triggers an illegal operation (such as division by zero) that crashes the program.

15
New cards

Logic Error

A flaw in an algorithm design causing the program to run to completion without crashing while producing incorrect or unintended outputs.

16
New cards

Function

A named, reusable block of instructions defined with the def keyword to execute a distinct computational sub-task.

17
New cards

Parameter

A variable defined within a function header that receives data passed into the function.

18
New cards

Argument

The actual concrete value or expression passed into a function when calling it.

19
New cards

return Statement

A function command that terminates execution immediately and delivers a calculated result back to the caller.

20
New cards

Local Variable

A variable initialized inside a function body or parameter list whose existence and scope are confined solely to that function's execution.

21
New cards

Program Decomposition

The practice of breaking down a large, complex computational problem into smaller, modular, and reusable functions.

22
New cards

Pixel

The smallest individual picture element situated on a digital image coordinate grid that stores colour information.

23
New cards

RGB Colour Model

An additive colour system representing pixels using Red, Green, and Blue color channels, each scaled by an integer ranging from 00 to 255255.

24
New cards

RGB Clamping

A boundary-checking procedure ensuring that calculated colour channel values remain strictly within the legal bounds of 00 to 255255.

25
New cards

Red-Eye Detection Logic

An algorithmic condition identifying flash reflection artifacts by testing whether a pixel's Red channel exceeds 200200 and is greater than both its Green and Blue channels.

26
New cards

range() Function

A built-in sequence generator that yields an arithmetic progression of integers starting at a given start value up to, but strictly excluding, a specified stop value.

27
New cards

Nested Loop

A control structure in which an inner loop runs through its complete sequence of iterations for each individual iteration of an enclosing outer loop.

28
New cards

Negative Image Filter

An image transformation algorithm that reverses pixel intensities by computing newChannel=255−oldChannel\text{newChannel} = 255 - \text{oldChannel} for each RGB channel.

29
New cards

Python List

A native, ordered, zero-indexed data structure that supports dynamic sizing and can store heterogeneous data types.

30
New cards

Typed Array

A sequence structure imported from the array module that enforces strict type uniformity across all contained elements.

31
New cards

Accumulation Pattern

A looping technique that initializes a variable prior to loop entry and iteratively updates it across iterations to calculate an aggregate result.

32
New cards

Histogram

A frequency list consisting of 256256 counters (indices 00 through 255255) that tallies the occurrences of each specific channel intensity across an image.

33
New cards

Horizontal Image Flip

A geometric transformation mirroring an image across its central vertical axis by mapping pixel column coordinate xx to newX=width−1−x\text{newX} = \text{width} - 1 - x while keeping row coordinate yy unchanged.