CH5: Data Foundations Flashcards

(8 cards)

1
Q

What is data and why is it important?

A

Data is information in any form — words, numbers, pictures, or sounds. It’s like fuel for technology: we need it to make decisions, run automations, or train AI.

Example:
A smart assistant like Siri needs data like your voice commands and calendar to help you.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the main roles we play when working with data?

A

When working with data, we:
1. Decide where it comes from (input)
2. Decide how it’s processed (rules or AI)
3. Decide what happens next (action/output)

Example:
You might collect customer messages, use AI to sort them, and send responses automatically.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the three main types of data and how are they different?

A

Types of data:
- Structured: Like a tidy Excel sheet (easy to search)
- Unstructured: Like a messy pile of photos or texts (hard to search)
- Semi-Structured: Like tagged notes (some structure)

Example:
A spreadsheet = structured, a YouTube video = unstructured, a JSON file = semi-structured.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the two main types of information: qualitative vs quantitative?

A

Qualitative data (text): Descriptive, like names or comments.
Quantitative data (numbers): Countable or measurable, like age or scores.

Example:
‘James is happy’ is qualitative. ‘James is 25 years old’ is quantitative.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Why is it important to understand different data types?

A

Knowing your data type helps you know how to store, process, and analyze it. Different types need different tools and methods.

Example:
You wouldn’t store photos the same way you store numbers. One might go in cloud storage, the other in a spreadsheet.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are common data types in systems and code?

A

Common data types:
- String: Text (‘name’: ‘John’)
- Number: Whole or decimal (‘price’: 9.99)
- Boolean: True or false (‘isMember’: true)
- Array: List of items (‘tags’: [‘fun’, ‘learning’])
- Object: Key-value pair data (‘user’: {‘id’: 1})
- Null: Missing value (‘phone’: null)

Example:
A product might have ‘price’ as a number and ‘name’ as a string.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How do data types affect workflow logic?

A

Data types change how things work in automations:
- Booleans: Help make decisions (if true, do this)
- Arrays: Used to repeat things (like emailing lots of people)
- Numbers: Used for math
- Objects: Used for structured profiles

Example:
If ‘isSubscribed’ is true, send a welcome email.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the key takeaways for handling data effectively?

A

Always:
- Check your data outputs
- Convert data types if needed
- Test different cases (like missing info)
- Use tools to clean and format data

Example:
If a user didn’t give a phone number (null), your system should know not to send an SMS.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly