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 | |
|---|---|---|
| 1=COUNTBLANK(B2:B9) | ACompleteness also needs every record to be present. Two records are missing, so the data is incomplete even if the 98 records have no blank fields. | |
| 2if len(records) < expected: | BChecks whether fewer records arrived than were expected, which means some records are missing and the data is incomplete | |
| 3A required field must not be left blank, so a record with an empty email is incomplete | Cif received == sent: print("All records arrived") | |
| 4Completeness also means no records are missing, so the count received must match the count sent | DThe condition is reversed. It reports a missing name when the name is present. It should test name == "" to find a blank required field. | |
| 5if name != "": print("Name is missing") | Eif email == "": print("Incomplete record") | |
| 6A file with 98 of 100 records is complete because every record that arrived has all its fields filled in | FCounts the blank cells in a column so you can see how many values are missing and whether the data is complete |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
completeness — Data is complete when every required value is present. There are no blank fields and no missing records, so everything the exchange needs has arrived.SELECT * FROM students WHERE house IS NULL;=COUNTBLANK(B2:B9)required = ["id", "name", "email"]
complete = all(f in row for f in required)if len(rows) < expected_rows:
print("Missing records")if email == "":
print("Blank field")