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 | |
|---|---|---|
| 1data = read_csv("sensor_log.csv") | AThe data is stored straight away without being checked on arrival, so errors and missing values go into the solution. | |
| 2if reading >= 0 and reading <= 50 then | BBrings data from a chosen file source into the solution so it can be used | |
| 3Choosing a source: the solution gets its weather data from an open data portal through an API | CThe input is used without confirming it is a number. Typed input is text, so the data was not captured in a usable form. | |
| 4Capturing accurately: typed survey answers are entered twice and compared | Dif entry1 = entry2 then accept(entry1) | |
| 5data <- read_file("survey.csv") store(data) | EChecks the data on arrival to see if it is reasonable before accepting it | |
| 6age <- input() age <- age + 1 | Fsource <- "https://data.example.gov.au/weather" |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
data acquisition — Capturing data from a source and bringing it into a solution in a usable form: choose the source, capture it accurately, then check it on arrival.print "Enter the temperature"
input templine ← readLine(file)
fields ← split(line, ",")if temp < -10 or temp > 50 then
print "Reading rejected"
end ifif name = "" then
print "Missing value"
end ifrepeat
input score
until score >= 0 and score <= 100