Python Programming - Second Exam 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/35

flashcard set

Earn XP

Description and Tags

Comprehensive vocabulary flashcards covering Python modules, string manipulation, containers, conditional branching, loops, precedence rules, and cybercrime concepts.

36 Terms

1
New cards

Module

A file containing Python code, functions, and definitions that can be imported and executed in other programs.

2
New cards

import

A Python statement that loads an external module so its attributes, functions, and classes can be accessed.

3
New cards

Dot notation

The syntax used to access a module's functions, methods, or attributes by writing the module name followed by a period and the component name.

4
New cards

Argument

A value passed into a function inside parentheses when invoking a function call.

5
New cards

String literal

A fixed sequence of characters explicitly specified within matching quotation marks in Python code.

6
New cards

len()

A built-in sequence function that returns the total count of elements or characters in a string, list, or container.

7
New cards

Concatenation

The operation of joining two or more strings together sequentially into a single string.

8
New cards

Container

A general data type or structure designed to store a collection of other objects or values.

9
New cards

List

A mutable, ordered container sequence in Python that can hold mixed data types, such as strings and numbers.

10
New cards

Index

An integer representing the zero-based positional location of an element within a sequential container.

11
New cards

append()

A list method that inserts a specified element at the very end of the existing list.

12
New cards

pop()

A list method that removes and returns an element at a specified index, defaulting to the final element if omitted.

13
New cards

remove()

A list method that locates and deletes the first occurrence of a specified matching value from a list.

14
New cards

Tuple

An ordered sequence container in Python whose elements cannot be modified, added, or removed after creation.

15
New cards

Immutable

A property of a data structure, such as a tuple, meaning its internal contents cannot be altered once instantiated.

16
New cards

Set

An unordered container collection containing only unique elements, commonly utilized to eliminate duplicate entries.

17
New cards

Dictionary

A container data type that stores values associated with unique keys in an associative key-value relationship.

18
New cards

Key:value pair

The fundamental entry format of a dictionary, where a unique identifier key maps directly to an associated value.

19
New cards

Equality operator (====)

A relational operator that compares two operands and evaluates to True if their values are identical.

20
New cards

Inequality operator (!=!=)

A relational operator that evaluates to True if two operands do not share the exact same value.

21
New cards

Relational operators

Operators such as <<, <=<=, >>, and >=>= used to compare values and establish relational order.

22
New cards

Logical operators

The Boolean keywords and, or, and not used to combine or invert logical conditions and expressions.

23
New cards

Membership operators

The operators in and not in used to test whether a value is present or absent within containers such as lists, tuples, or dictionaries.

24
New cards

Precedence rules

The established hierarchy determining the order of evaluation in an expression: grouping parentheses first, arithmetic operators next, relational operators, and logical operators last.

25
New cards

Code block

A group of programming statements that execute together, marked in Python by a shared indentation level (typically four spaces).

26
New cards

Conditional expression

An inline construct structured as expr_when_true if condition else expr_when_false that returns one of two values based on a Boolean test.

27
New cards

Loop body

The indented block of code within a loop structure that is executed repeatedly during each iteration.

28
New cards

Iteration

A single complete execution of the statements contained within a loop body.

29
New cards

While loop

A looping control structure that repeatedly executes its code block as long as a specified Boolean test condition evaluates to True.

30
New cards

Shorthand operators

Compound assignment operators (+=+=, −=-=, ∗=*=, and /=/=) used to reassign and calculate updated variable values efficiently (e.g., i+=1i += 1).

31
New cards

Cybercrime

Criminal acts and illegal operations committed using computers, digital devices, or network networks.

32
New cards

Financial fraud

A cybercrime category focused on using deception, theft, or unauthorized access to obtain monetary or economic assets illegally.

33
New cards

Cyberterrorism

The deployment of cyberattacks against computers, networks, or critical systems to intimidate or inflict harm for ideological or political purposes.

34
New cards

Cyberwarfare

State-sponsored or politically motivated digital attacks aimed at compromising, stealing, or disabling an adversary state's computer and information networks.

35
New cards

Computer as a target

A form of cybercrime where computer hardware, data, or network systems themselves are the focus of an attack, such as via malware or denial-of-service.

36
New cards

Computer as a tool

A form of cybercrime where computing systems are utilized as an instrument to execute offenses such as identity theft, communication fraud, or illicit sales.