Computer Science - 9210 OxfordAQA

Robust And Secure Programming

Overzicht

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.

Doelstellingen

  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

Dit onderwerp is in kaart gebracht zodat je ziet hoe de ideeen samenhangen.

Open de mindmap in de app

Lesnotitie

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.

Volledige lesnotitie beschikbaar in de Green Bridge-app

Installeer de Green Bridge CBT-app op je telefoon of computer voor de volledige IGCSE-bibliotheek: examens uit voorgaande jaren, correctiemodellen, mindmaps, flashcards en audiolessen.

Volledige lesnotities met diagrammen
AI-gestuurde leerassistent
Proefexamens op tijd, nagekeken zodra je klaar bent
Beschikbaar voor Android, Windows, macOS en Linux iOS-app binnenkort beschikbaar

Lesevaluatie

Gefeliciteerd met het voltooien van de les op Robust And Secure Programming. Nu je de sleutelconcepten en ideeën, het is tijd om uw kennis op de proef te stellen. Deze sectie biedt een verscheidenheid aan oefeningen vragen die bedoeld zijn om uw begrip te vergroten en u te helpen uw begrip van de stof te peilen.

Je zult een mix van vraagtypen tegenkomen, waaronder meerkeuzevragen, korte antwoordvragen en essayvragen. Elke vraag is zorgvuldig samengesteld om verschillende aspecten van je kennis en kritisch denkvermogen te beoordelen.

Gebruik dit evaluatiegedeelte als een kans om je begrip van het onderwerp te versterken en om gebieden te identificeren waar je mogelijk extra studie nodig hebt. Laat je niet ontmoedigen door eventuele uitdagingen die je tegenkomt; beschouw ze in plaats daarvan als kansen voor groei en verbetering.

  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

Maak deze vragen in de app

Maak deze vragen in de app

Oefen Proefexamenvragen

Wilt u proefexamenvragen over Robust And Secure Programming oefenen? Download de Green Bridge CBT-app voor toegang tot proefexamenvragen en volledige oefentoetsen over dit onderwerp.

Download de app in de Google Playstore

Alles wat je nodig hebt om uit te blinken in JAMB, WAEC en NECO.

Green Bridge CBT Mobile App
Persoonlijke AI Leerchat Assistent
Meer dan 200.000 IGCSE-, JAMB-, WAEC- en NECO-examenvragen.
Meer dan 1200 lesnotities
Offline ondersteuning - Leer altijd en overal
Dienstregeling Groene Brug
Literatuursamenvattingen & Potentiële Vragen
Volg je prestaties en vooruitgang.
Diepgaande Uitleg voor Uitgebreid Leren