๐Ÿ—ƒ๏ธ
๐Ÿ“ Working with Data ยท DATA-201 ยท Assignments

Working with Data โ€” Assignments

Work each problem yourself first, then open the worked solution to check your thinking. This is where the course sticks.

๐Ÿ“ 5 problemsโœ๏ธ Worked solutions
Problem 1

For a small app idea, decide where its data should live and justify it.

Show worked solution

A strong answer weighs data volume, query needs and concurrency, and picks the simplest fit (a file/store for small data, a database when scale/relationships/many users are needed) - avoiding both under- and over-engineering.

Problem 2

Describe the save/load cycle and one bug to avoid in each direction.

Show worked solution

Good answers describe loading at start (handling the missing-file first run with a default) and saving on change (not forgetting to save), keeping data in memory between - the reliable persistence pattern.

Problem 3

Write (in words or pseudo-query) a filter/sort/select query over some records.

Show worked solution

Strong answers express a real question as narrow (filter/where), order (sort/order_by), and pick fields (select), optionally with a limit or aggregate - showing the universal query shape.

Problem 4

Explain what a relational database is, and read a simple SELECT statement.

Show worked solution

Good answers describe tables of rows/columns that relate, and correctly read a SELECT ... FROM ... WHERE ... ORDER BY ... LIMIT as filter/sort/select over a table - mapping SQL onto known query concepts.

Problem 5

Model a small domain (e.g. a blog): the record types and how they relate, avoiding duplication.

Show worked solution

Strong answers identify the entities (users, posts, comments), give each clear fields and an id, link related ones by id (post has author_id) rather than duplicating, and state the one-source-of-truth principle.

More in this course

Course home → · Browse all courses →