Computer Science - 9210 OxfordAQA

Robust And Secure Programming

Resumen

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.

Objetivos

  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.

Mapa mental

Este tema esta esquematizado para ver como se conectan las ideas.

Abre el mapa mental en la app

Nota de la lección

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.

Apunte completo disponible en la aplicacion Green Bridge

Instala la aplicacion Green Bridge CBT en tu movil u ordenador para acceder a toda la biblioteca IGCSE: examenes anteriores, criterios de correccion, mapas mentales, tarjetas de estudio y lecciones en audio.

Notas de lección completas con diagramas
Asistente de aprendizaje con IA
Simulacros cronometrados que se corrigen en cuanto terminas
Disponible en Android, Windows, macOS y Linux App para iOS proximamente

Evaluación de la lección

Felicitaciones por completar la lección del Robust And Secure Programming. Ahora que has explorado el conceptos e ideas clave, es hora de poner a prueba tus conocimientos. Esta sección ofrece una variedad de prácticas Preguntas diseñadas para reforzar su comprensión y ayudarle a evaluar su comprensión del material.

Te encontrarás con una variedad de tipos de preguntas, incluyendo preguntas de opción múltiple, preguntas de respuesta corta y preguntas de ensayo. Cada pregunta está cuidadosamente diseñada para evaluar diferentes aspectos de tu conocimiento y habilidades de pensamiento crítico.

Utiliza esta sección de evaluación como una oportunidad para reforzar tu comprensión del tema e identificar cualquier área en la que puedas necesitar un estudio adicional. No te desanimes por los desafíos que encuentres; en su lugar, míralos como oportunidades para el crecimiento y la mejora.

  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

Resuelve estas preguntas en la aplicacion

Resuelve estas preguntas en la aplicacion

Practica preguntas simuladas

¿Quieres practicar preguntas simuladas sobre Robust And Secure Programming? Descarga la aplicación Green Bridge CBT para acceder a preguntas simuladas y evaluaciones completas sobre este tema.

Descarga la aplicación en Google Playstore.

Todo lo que necesitas para destacar en JAMB, WAEC y NECO.

Green Bridge CBT Mobile App
Asistente de Chat de Aprendizaje Personalizado con IA
Más de 200.000 preguntas de examen de IGCSE, JAMB, WAEC y NECO.
Más de 1200 notas de lecciones
Soporte sin conexión: Aprende en cualquier momento y lugar.
Horario del Puente Verde
Resúmenes de Literatura y Preguntas Potenciales
Controla tu rendimiento y progreso.
Explicaciones detalladas para un aprendizaje integral