Computer Science - 9210 OxfordAQA

Robust And Secure Programming

Muhtasari

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.

Malengo

  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.

Ramani ya mawazo

Mada hii imechorwa ili uone jinsi mawazo yanavyounganika.

Fungua ramani ya mawazo kwenye programu

Maelezo ya Somo

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.

Dokezo Kamili la Somo Linapatikana kwenye Programu ya Green Bridge

Pata programu ya Green Bridge CBT kwenye simu au kompyuta yako kwa maktaba kamili ya IGCSE: mitihani ya miaka iliyopita, miongozo ya usahihishaji, ramani za mawazo, kadi za marudio na masomo ya sauti.

Maelezo kamili ya masomo yenye michoro
Msaidizi wa kujifunza wa AI
Mitihani ya majaribio yenye muda, husahihishwa mara umalizapo
Inapatikana kwa Android, Windows, macOS, na Linux Programu ya iOS inakuja hivi karibuni

Tathmini ya Somo

Hongera kwa kukamilisha somo la Robust And Secure Programming. Sasa kwa kuwa umechunguza dhana na mawazo muhimu, ni wakati wa kuweka ujuzi wako kwa mtihani. Sehemu hii inatoa mazoezi mbalimbali maswali yaliyoundwa ili kuimarisha uelewaji wako na kukusaidia kupima ufahamu wako wa nyenzo.

Utakutana na mchanganyiko wa aina mbalimbali za maswali, ikiwemo maswali ya kuchagua jibu sahihi, maswali ya majibu mafupi, na maswali ya insha. Kila swali limebuniwa kwa umakini ili kupima vipengele tofauti vya maarifa yako na ujuzi wa kufikiri kwa makini.

Tumia sehemu hii ya tathmini kama fursa ya kuimarisha uelewa wako wa mada na kubaini maeneo yoyote ambapo unaweza kuhitaji kusoma zaidi. Usikatishwe tamaa na changamoto zozote utakazokutana nazo; badala yake, zitazame kama fursa za kukua na kuboresha.

  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

Fanyia kazi maswali haya kwenye programu

Fanyia kazi maswali haya kwenye programu

Fanya Mazoezi ya Maswali ya Majaribio

Ungependa kufanya mazoezi ya maswali ya majaribio kuhusu Robust And Secure Programming? Pakua programu ya Green Bridge CBT ili kupata maswali ya majaribio na tathmini kamili za mazoezi kuhusu mada hii.

Pakua Programu Kwenye Google Playstore

Kila kitu unachohitaji ili kufaulu katika JAMB, WAEC & NECO.

Green Bridge CBT Mobile App
Msaidizi wa Gumzo wa Kujifunza wa AI Uliobinafsishwa
Maswali ya mtihani zaidi ya 200,000 ya IGCSE, JAMB, WAEC na NECO
Zaidi ya Madaftari ya Masomo 1200
Msaada Nje ya Mtandao - Jifunze Wakati Wowote, Popote Pale
Ratiba ya Daraja la Kijani
Muhtasari wa Fasihi na Maswali Yanayoweza Kutokea
Fuata Utendaji na Maendeleo Yako
Maelezo ya Kina kwa Kujifunza kwa Kina