CS Quiz Comprehensive Study Guide - Vocabulary Flashcards

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

1/57

flashcard set

Earn XP

Description and Tags

Vocabulary flashcard set generated from Lectures 1–10 of the Computer Science comprehensive study guide.

Last updated 1:41 AM on 9/29/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

58 Terms

1
New cards

Bit

The most basic unit of computer data, which can only hold a value of 0 or 1.

2
New cards

Memory

A computer component that stores bits of data.

3
New cards

Cache Memory

Relatively small, volatile storage with the fastest access speed, located directly on the processor chip.

4
New cards

RAM (Random Access Memory)

Volatile storage with faster access than disk storage, usually located off the processor chip.

5
New cards

Disk Storage

Non-volatile storage with slower access speed used for long-term data preservation.

6
New cards

System Clock

The hardware component that measures the speed at which a processor executes instructions.

7
New cards

Operating System (OS)

Software that manages programs and interfaces directly with computer hardware and peripherals.

8
New cards

Machine Instruction

A series of 0s and 1s stored in memory that instructs a processor to execute a specific operation.

9
New cards

Assembly Language

Human-readable processor instructions that use mnemonics to represent machine instructions.

10
New cards

Compiler

A program that translates high-level language source code into low-level machine instructions all at once prior to execution.

11
New cards

Interpreter

A program that executes computer code directly, processing it instruction-by-instruction.

12
New cards

Application

Another general word for a computer program or set of instructions.

13
New cards

Python

A programming language released in 1991 by Guido van Rossum designed to emphasize code readability and developer productivity.

14
New cards

Comments

Optional notes in source code meant for human documentation that are completely ignored by the Python interpreter.

15
New cards

NameError

An error raised by Python when code attempts to access or evaluate an identifier that is not defined as a variable.

16
New cards

input() Function

A built-in function that reads user input as text and always returns a string (str) data type.

17
New cards

Variable Naming Rules

Python identifier guidelines: must start with a letter or underscore (_), cannot start with a digit, can only contain alphanumeric characters and underscores, cannot contain spaces/punctuation, and cannot be a reserved keyword.

18
New cards

Assignment Statement

A statement using the = operator where the left-hand side must be a single variable name and the right-hand side is an expression evaluated to a value.

19
New cards

int

A Python data type representing whole integer counts or values without decimals.

20
New cards

float

A Python data type representing real numbers containing decimal or fractional parts.

21
New cards

Compound Assignment Operators

Short-hand operators (+=, -=, *=, /=) that perform an arithmetic operation on a variable and reassign the resulting value back to that variable.

22
New cards

Floor Division (//)

An arithmetic operator that divides numbers and truncates the fractional portion, rounding down to the nearest integer.

23
New cards

math.ceil()

A math module function that rounds a given floating-point number UP to the nearest integer.

24
New cards

math.floor()

A math module function that rounds a given floating-point number DOWN to the nearest lesser integer.

25
New cards

random.randrange(N)

A random module function that generates a random integer from 00 up to N−1N - 1.

26
New cards

random.randint(a, b)

A random module function that returns a random integer between aa and bb INCLUSIVE, producing b−a+1b - a + 1 total possible values.

27
New cards

Raw String

A string literal prefixed with r (e.g., r'\') that treats backslashes as literal characters instead of escape sequences.

28
New cards

String

An immutable, ordered sequence of text characters that allows duplicate values, written using single or double quotes.

29
New cards

List

A mutable, ordered sequential collection of modifiable data created using brackets […] or list().

30
New cards

Tuple

An immutable, ordered sequence of data used for read-only collections, created using parentheses (…) or tuple().

31
New cards

Set

A mutable, unordered collection of unique elements created using braces {…} or set(), which automatically eliminates duplicate values.

32
New cards

Frozenset

An immutable, unordered set of unique elements created using frozenset() that can be nested inside other sets.

33
New cards

Dictionary

A mutable associative data structure created using {k: v} or dict() that stores key-value pairs; keys must be unique and immutable.

34
New cards

String Slicing

The indexing syntax s[start:stop:step] used to extract substring segments, where start is inclusive, stop is exclusive, and step determines increment direction.

35
New cards

a.union(b)

A set method returning a new set containing all unique elements present in set a, set b, or both.

36
New cards

a.intersection(b)

A set method returning a new set containing only elements present in both set a and set b.

37
New cards

a.difference(b)

A set method returning a new set containing elements that are in set a but not in set b.

38
New cards

a.symmetric_difference(b)

A set method returning a new set containing elements present in set a or set b, but not in both.

39
New cards

d.pop(key)

A dictionary method that removes the specified key and returns its corresponding value.

40
New cards

d.get(key, default_value)

A dictionary method that safely retrieves a key's value without raising a KeyError if the key is missing.

41
New cards

elif

A contraction of 'else if' used in conditional structures to chain multiple checks where at most one branch executes.

42
New cards

Factoring Out Code

The process of moving identical statements found across multiple conditional branches outside of the branch structure to eliminate code redundancy.

43
New cards

Membership Operators

The operators in and not in used to check whether a specific value exists within a sequence or collection.

44
New cards

Identity Operators

The operators is and is not used to check whether two variables refer to the exact same object in memory.

45
New cards

Definite Iteration

A repetition control structure, such as a for loop, that executes a known, predefined number of times.

46
New cards

Indefinite Iteration

A repetition control structure, such as a while loop, that continues executing until a given condition changes or is satisfied.

47
New cards

Pre-test Loop

A loop type (like a while loop) that evaluates its conditional expression before executing the loop body.

48
New cards

Sentinel Logic

An indefinite loop pattern that keeps running until a specific designated input value (the sentinel) signals the loop to stop.

49
New cards

break Statement

A control flow statement that immediately terminates execution of the innermost loop and jumps control to the statement directly following the loop.

50
New cards

continue Statement

A control flow statement that skips the rest of the current loop iteration and immediately evaluates the condition for the next iteration.

51
New cards

Loop else Clause

An optional block appended to a while or for loop that executes only when the loop completes all iterations normally without hitting a break statement.

52
New cards

range(start, stop, step)

A built-in generator function producing sequence integers starting at start, incrementing by step, up to but excluding stop.

53
New cards

enumerate()

A built-in function used in loops to track both the current index and element value concurrently during sequence iteration.

54
New cards

def Keyword

The Python keyword used to define a new user-defined function.

55
New cards

None

The default return value of a Python function when execution finishes without encountering an explicit return statement.

56
New cards

pass Statement

A placeholder statement used when code is syntactically required to prevent empty code block syntax errors.

57
New cards

Dynamically Typed Language

A programming language (like Python) where variable types are checked at runtime, allowing variables to be created without explicit type declarations.

58
New cards

Statically Typed Language

A programming language (like C++ or Java) where variable data types are explicitly declared and verified at compile-time.