Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1name,age,score Amy,12,85 | Aid,name,year_level 1,Sam,7 | |
| 2score: Number | BAge was left as Text, so it will sort like words (10 before 9) and cannot be used for number calculations or range rules. | |
| 3The first row of the CSV file becomes the field names of the new table | CThe data type chosen for the score field so it can be used in calculations, sorting and range checks | |
| 4After importing, check each field's data type, such as a phone number that should be Text, not Number | Dphone: Text | |
| 5Import CSV with no heading row, so the first record is used as the field names | EThe first row of the file is used for field names, so if a real record is in row one, its data becomes the headings and is lost as a record. The file needs a heading row first. | |
| 6age: Text (imported without checking the types) | FA small CSV file: the first row holds the field names (name, age, score) and the next row is a record |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
Import CSV — Fills a new database table from a CSV file. The first row becomes the field names, and you choose a data type for each field, such as text or number, and check them after the import.IMPORT CSV "pets.csv" INTO NEW TABLERow 1: Name,Age,Pet
Row 1 becomes the field namesRow 2: Milo,7,Dog
Set Age data type: NumberStep 3: Check the data types after importValues in a CSV row are split by commas