CH5: Data Foundations Flashcards
(8 cards)
What is data and why is it important?
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.
What are the main roles we play when working with data?
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.
What are the three main types of data and how are they different?
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.
What are the two main types of information: qualitative vs quantitative?
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.
Why is it important to understand different data types?
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.
What are common data types in systems and code?
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 do data types affect workflow logic?
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.
What are the key takeaways for handling data effectively?
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.