Back to marketplace

2.3 Robust Programs

No description yet. This curated deck is ready for daily study.

Total cards: 24•Content version: v4•Public deck•Updated: 8/1/2026

Card preview (24)

#1
Front (Question)

What is Validation ?

Back (Answer)

Ensuring that any data input is possible and sensible.

#2
Front (Question)

What is a range check ?

Back (Answer)

the input must fall within a specified range.

#3
Front (Question)

What is a length check ?

Back (Answer)

the input must not be too long or too short.

#4
Front (Question)

What is a presence check ?

Back (Answer)

a data value must be entered

#5
Front (Question)

What is a format check ?

Back (Answer)

the data must be in the correct format

#6
Front (Question)

What is a type check ?

Back (Answer)

the data must be of a specified data type

#7
Front (Question)

What is a verification check ?

Back (Answer)

they repeat the entered data to the user and ask them to confirm if this data is correct.`

#8
Front (Question)

What is authentication ?

Back (Answer)

the process of a user confirming that they are who they say they are on a computer system

#9
Front (Question)

What are the 3 factors of authentication?

Back (Answer)

• something you are - username • something you know - password • something you have - swipe card, biometrics

#10
Front (Question)

What is the purpose of defensive design ?

Back (Answer)

that a program runs correctly and continues to run no matter what actions a user takes.

#11
Front (Question)

What are the 3 areas of defensive design?

Back (Answer)

• protection against unexpected user inputs • maintainability • minimising/removing bugs

#12
Front (Question)

How are anticipation and protection applied ?

Back (Answer)

• validation • sanitisation -authentication -maintenance • testing

#13
Front (Question)

What is the purpose of maintainability ?

Back (Answer)

to ensure that, over time, a program can be easily maintained.

#14
Front (Question)

How to increase maintainability ?

Back (Answer)

• Using comments • Using naming conventions • Using indentation

#15
Front (Question)

What are comments ?

Back (Answer)

Lines in programs that provide information about what the different parts of the program do.

#16
Front (Question)

What are naming conventions ?

Back (Answer)

Choosing a variable name that reflects the purpose of the variable.

#17
Front (Question)

What is Indentation ?

Back (Answer)

Code within selections or iterations should be indented

#18
Front (Question)

What are subprograms ?

Back (Answer)

small programs that are written within a larger, main program.

#19
Front (Question)

What are the two types of subprograms ?

Back (Answer)

• procedures • functions

#20
Front (Question)

What are the benefits of subprograms ?

Back (Answer)

• small in size - easier to write, test and debug • can be saved separately as modules - used again in other programs • may be used repeatedly at various points in the main program.

#21
Front (Question)

What is a procedure ?

Back (Answer)

A procedure is a subprogram that performs a specific task

#22
Front (Question)

How is a procedure run ?

Back (Answer)

A procedure is run by calling it.

#23
Front (Question)

What is a function ?

Back (Answer)

works in the same way as a procedure, except that it manipulates data and returns a result back to the main program.

#24
Front (Question)

How is a function run ?

Back (Answer)

A function is run by calling it.