Programming Concepts Review

0.0(0)
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/16

flashcard set

Earn XP

Description and Tags

Flashcards covering key programming concepts, particularly focusing on dictionaries, sets, and related operations.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

17 Terms

1
New cards

Dictionary

A collection of key-value pairs that allows for mutability, meaning you can change, add, or remove items.

2
New cards

Set

A data structure that contains unique elements and does not allow duplicates, while also being mutable and unordered.

3
New cards

Tuple

An immutable sequence of elements that cannot be changed after it is created.

4
New cards

JSON

JavaScript Object Notation, a lightweight data interchange format that uses key-value pairs and is often used for transmitting data in web applications.

5
New cards

Key-Value Pair

A fundamental concept in dictionaries where a unique key is associated with a particular value.

6
New cards

Index

A numerical representation of an item's position in a list or array, which is not applicable in a set.

7
New cards

Union

A set operation that combines elements from two sets, resulting in a new set containing all unique elements.

8
New cards

Intersection

A set operation that produces a new set containing only the elements that are present in both sets.

9
New cards

Difference

A set operation that returns the elements that are in one set but not in another.

10
New cards

Mutable

Describing an object whose state can be modified after it is created.

11
New cards

Immutable

Describing an object that cannot be altered after it has been created.

12
New cards

Function

A block of organized code that performs a specific task, often taking inputs and providing outputs.

13
New cards

Length

A function that returns the number of items in a collection such as a list or a dictionary.

14
New cards

Clear

A method used to remove all items from a dictionary.

15
New cards

Del

A statement used to delete a variable or an item from a structure, such as a dictionary.

16
New cards

Curly Bracket

The symbol {} used to define a dictionary in programming languages like Python.

17
New cards

Square Bracket

The symbol [] used to denote a list in programming languages.