Data structures

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/9

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

10 Terms

1
New cards

List

Dynamic and mutable, no specific memory location

2
New cards

Dynamic meaning

Can change in size e.g. append or remove items

3
New cards

Mutable

Data can be changed after being set.

Mutable = “mutate - able”

4
New cards

Static meaning

Size does not change

5
New cards

Immutable

Data cannot be altered

6
New cards

Array

Static, mutable, fixed amount of RAM (memory locations are adjacent)

7
New cards

Tuple

Static, immutable, can have mixed data types

8
New cards

When to use square brackets?

When all the data is of the same type e.g. lists and arrays

9
New cards

When to use the classic brackets?

When the data types can vary e.g. a tuple

10
New cards

Records are an example of…

A tuple