CCS 1400 Reviewer: Basic Data Structures, Programming Statements, and Functions

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

1/41

flashcard set

Earn XP

Description and Tags

Vocabulary practice flashcards covering basic Python data structures, programming statements, control loops, logical operators, and function concepts.

Last updated 2:27 PM on 9/15/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

42 Terms

1
New cards

Data Structures

Ways of organizing data so it can be accessed efficiently, acting as containers for organizing or grouping data.

2
New cards

List

An ordered, changeable collection that allows duplicate members and can contain different data types.

3
New cards

Tuple

An ordered collection of Python objects that is immutable (unchangeable) and allows duplicate members.

4
New cards

Set

An unordered and unindexed collection that does not allow duplicates, useful for membership testing and eliminating duplicates.

5
New cards

Dictionary

An ordered (as of Python 3.7) and changeable collection of key:value pairs with no duplicate keys.

6
New cards

Indentation

The mechanism in Python that declares a block of code, grouping statements at the same indentation level into the same block.

7
New cards

if Statement

A decision statement that tests a condition and executes its indented block if the condition is True.

8
New cards

if-else Statement

A decision statement that runs the if block when the condition is True; otherwise, it runs the else block.

9
New cards

elif

A keyword used to check multiple conditions, executing the block belonging to the first condition that evaluates to True.

10
New cards

Nested if

An if statement placed inside another if statement.

11
New cards

for Loop

An iteration statement that repeats code once for each item in a sequence such as a list, tuple, dictionary, set, or string.

12
New cards

while Loop

An iteration statement that repeats code as long as its condition remains True.

13
New cards

break

A control statement that immediately stops execution of the loop before all items are processed.

14
New cards

continue

A control statement that stops the current iteration of a loop and moves to the next iteration.

15
New cards

range()

A function that produces a sequence of numbers, starting at 0 by default, increasing by 1 by default, and stopping before the specified ending number.

16
New cards

for-else Construct

A control construct where the else block executes when the for loop finishes normally, but not when stopped by a break statement.

17
New cards

Nested Loop

A loop placed inside another loop, where the inner loop runs once for each iteration of the outer loop.

18
New cards

pass

A placeholder statement that allows a loop, function, or block to contain no action yet.

19
New cards

do-while Concept

A loop structure that executes code at least once before checking its condition, emulated in Python using while True together with break.

20
New cards

Ternary / Conditional Operator

A one-line expression testing a condition and returning one value if True and another if False (e.g., a if condition else b).

21
New cards

and Operator

A logical operator that returns True only when both conditions are True.

22
New cards

or Operator

A logical operator that returns True when at least one condition is True.

23
New cards

not Operator

A logical operator that reverses a Boolean result.

24
New cards

Function

A block of code that executes when called, accepting passed data and returning data as a result.

25
New cards

def

The keyword used to define a function in Python.

26
New cards

Parameter

The variable written in a function definition that receives a value when the function is called.

27
New cards

Argument

The information or value supplied and passed into a function call.

28
New cards

*args

A feature allowing a function to accept an arbitrary number of positional arguments.

29
New cards

Keyword Arguments

Arguments passed using parameter names so that the order of the arguments does not matter.

30
New cards

**kwargs

A feature allowing a function to accept an arbitrary number of keyword arguments.

31
New cards

Default Parameter Value

A value used for a parameter when the caller does not provide an argument for it.

32
New cards

return

A statement used to send a result back from a function to the code that called it.

33
New cards

Recursion

A programming technique where a function calls itself, reducing a larger problem into smaller calls.

34
New cards

Scope

The region of a program where a variable can be accessed.

35
New cards

Local Scope

Scope of a variable created inside a function, accessible only within that function's scope.

36
New cards

Global Scope

Scope of a variable defined outside functions, belonging to the broader script execution area.

37
New cards

nonlocal

A keyword used in nested functions when referring to a variable from an enclosing (non-global) scope.

38
New cards

random Module

Python's built-in module used to generate random numbers.

39
New cards

Lambda Function

A small anonymous function that can take any number of arguments but has only one expression.

40
New cards

Python Data Structure Comparison Table

A summary table comparing List, Tuple, Set, and Dictionary based on ordering, changeability, duplicate support, and main characteristics.

41
New cards

Logical Operators Truth Table

A truth table showing the boolean outcomes of 'A and B' and 'A or B' across all True/False combinations of inputs A and B.

42
New cards

CCS 1400 Exam Cheat Sheet

A reference table outlining key Python terms, loop control statements, function parameters, variable scopes, and data structures for quick exam preparation.