Skip to content
Your progress

Checking your sign-in…

Who's learning?

Each profile keeps its own read lessons, badges, streak, and practice scores on this device.

Lesson 9 of 11

The big picture

Show on a big screen

5 min

Text size

Eight ideas, one line each. Every count below came from a real run.

Data Handling II — eight ideas, in order
IdeaRememberExample
One record, one rowA row is four values kept together, found by two positions.rows[2][3] → 1450
The naming valueA key is a column whose values each name one record.Ananya is shared; admission is not
Naming the columnsA header name becomes a position; minus one means absent.indexOf('marks') → −1
Asking one conditionA query walks every row and keeps the matches.due 1450: 4 of 12
Two conditionsA row must meet both conditions — fewer rows or the same.9-A and due ≥ 1000: 4 of 12
The answer, in orderSame passes, moving whole rows. Two tied rows are never swapped with each other.smallest due in the four rows: A-107
Counting the groupsCount the answer, not the table. Groups listed first show a 0.9-A 4, 9-B 4, 10-C 0
What a database addsA database program can give the same answer as the walk, on much bigger tables.12 rows now, thousands later

One point holds for all eight. Every number above came from a real run, never from memory.

Next term the questions turn to a program's guesses. Your next track is How AI Learns II: Neural Networks Intuition.