Tutorpip← About this lessonABCHide the answer keyDownload PDF
Coding · Ages 10+ · Set B
Data from a file
Scan to mark
on screen
B
Name
Date
Start Finish
Goal: 15 min
Score/ 12
Remember: A file keeps data after a program stops. A program reads it row by row.

Questions

1
Which one forgets when the program stops?
📓a saved notebook of rows⏳a value held while the program runs📁a file on the computer
2
Which one forgets when the program stops?
🗃️rows saved in a folder🧠a number held in memory🗂️a saved table of data
3
What does a program do last with a file?
🔒close the file📂open the file📖read a row
4
What does a program do with each row it reads?
📖read a row⚙️use the row🔒close the file
5
Which one keeps its data after the program stops?
📦a variable🧠a number held in memory🗂️a saved table of data
6
What does a program do first with a file?
📂open the file📖read a row🔒close the file
7
Which one keeps its data after the program stops?
📁a file on the computer🧠a number held in memory📦a variable
8
Which one forgets when the program stops?
📁a file on the computer🫙a box that empties at the end🗃️rows saved in a folder
9
Which one forgets when the program stops?
🗂️a saved table of data📦a variable📁a file on the computer
10
🗃️Does rows saved in a folder keep data after the program stops?
YesNo
11
Which one keeps its data after the program stops?
🧠a number held in memory📦a variable📓a saved notebook of rows
12
What does a program do after opening a file?
📂open the file📖read a row⚙️use the row
Scan the code at the top to mark this sheet on screenTake a photo of your answers or type them. It is marked for you automatically, and your score is kept.
Answer key · Set B
Data from a file
1a value held while the program runs
2a number held in memory
3close the file
4use the row
5a saved table of data
6open the file
7a file on the computer
8a box that empties at the end
9a variable
10Yes
11a saved notebook of rows
12read a row
Mark each answer, count the right ones and write the score on the sheet.