Computer Science - 9210 OxfordAQA

Robust And Secure Programming

Übersicht

Ask a program for a number between 1 and 10 and somebody will type 0, and somebody else will type 11, and somebody else will type seven, and somebody else will press Enter without typing anything at all. None of those people is being difficult. They are what a user is, and a program that only works when it is given exactly what it expected is not finished.

This lesson covers the three things the specification asks for here. Writing simple data validation routines, using the checks it names by example: a minimum length, an empty string, and a number within a given range. Writing a simple authentication routine using a username and a password. And selecting suitable test data that covers normal, or typical, boundary and erroneous cases, and being able to justify the choice. That last objective is the one candidates prepare for least and it is worth as many marks as the other two.

Ziele

  1. Be able to write simple data validation routines.
  2. Be able to write simple authentication routines.
  3. Be able to select suitable test data that covers normal (typical), boundary and erroneous data. Be able to justify the choice of test data.

Mindmap

Dieses Thema ist als Karte dargestellt, damit die Zusammenhange sichtbar werden.

Mindmap in der App offnen

Lektionshinweis

Robust describes a program that keeps working sensibly when it is given input it did not expect. A program that stops with an error message full of internal detail when somebody types a letter into a number box is not robust, and neither is one that carries on silently with a meaningless value.

Vollstaendige Lernnotiz in der Green Bridge App

Holen Sie sich die Green Bridge CBT App auf Handy oder Computer fuer die komplette IGCSE-Bibliothek: fruehere Pruefungen, Bewertungsschemata, Mindmaps, Lernkarten und Audiolektionen.

Vollständige Lernnotizen mit Diagrammen
KI-gestützter Lernassistent
Pruefungssimulationen auf Zeit, sofort nach Abgabe bewertet
Verfügbar für Android, Windows, macOS und Linux iOS-App demnachst verfugbar

Unterrichtsbewertung

Herzlichen Glückwunsch zum Abschluss der Lektion über Robust And Secure Programming. Jetzt, da Sie die wichtigsten Konzepte und Ideen erkundet haben,

Sie werden auf eine Mischung verschiedener Fragetypen stoßen, darunter Multiple-Choice-Fragen, Kurzantwortfragen und Aufsatzfragen. Jede Frage ist sorgfältig ausgearbeitet, um verschiedene Aspekte Ihres Wissens und Ihrer kritischen Denkfähigkeiten zu bewerten.

Nutzen Sie diesen Bewertungsteil als Gelegenheit, Ihr Verständnis des Themas zu festigen und Bereiche zu identifizieren, in denen Sie möglicherweise zusätzlichen Lernbedarf haben.

  1. Which of these is a data validation check named in the specification? A. Checking that a password has been encrypted B. Checking that a string is not empty C. Checking that a name is spelled correctly D. Checking that a user is over 18 by asking twice Answer: B
  2. A routine accepts values from 20 to 40 inclusive. Which is a boundary test value? A. 0 B. 30 C. 41 D. forty Answer: C
  3. Which loop structure is most appropriate for a validation routine? A. A FOR loop B. A REPEAT UNTIL loop C. A nested FOR loop D. No loop is needed Answer: B
  4. In an authentication routine, why should the failure message not say which of the username and the password was wrong? A. It would make the message too long B. It would confirm to a guesser that a username exists C. The program cannot tell which was wrong D. The specification forbids messages Answer: B
  5. What does validation check? A. That the data entered is true B. That the data entered is reasonable C. That the user is who they claim to be D. That the program has no syntax errors Answer: B

Bearbeiten Sie diese Fragen in der App

Bearbeiten Sie diese Fragen in der App

Übungsklausuren üben

Möchten Sie Übungsklausuren zu Robust And Secure Programming üben? Laden Sie die Green Bridge CBT App herunter, um Übungsklausuren und vollständige Prüfungssimulationen zu diesem Thema zu erhalten.

Lade die App im Google Playstore herunter.

Alles, was du brauchst, um in JAMB, WAEC & NECO zu glänzen.

Green Bridge CBT Mobile App
Personalisierter KI-Lern-Chat-Assistent
Über 200.000 Prüfungsfragen für IGCSE, JAMB, WAEC und NECO.
Über 1200 Unterrichtsnotizen
Offline-Unterstützung - Lernen jederzeit und überall
Fahrplan der Grünen Brücke
Literaturzusammenfassungen & Potenzielle Fragen
Verfolgen Sie Ihre Leistung und Ihren Fortschritt
Detaillierte Erklärungen für umfassendes Lernen