返回卡包市场

2.3

暂无描述。系统推荐的高质量记忆内容,适合每天坚持背诵学习。

卡片总数: 17内容版本: v4公开卡包更新时间: 8/1/2026

卡片预览 (17 张)

#1
正面 (问题)

What types of checks can you do to data input?

背面 (解答)

• Type check: data type • Range check: within range • Presence check: something has been entered • Format check: correct format • Length check: min/max

#2
正面 (问题)

Why are input validation techniques important?

背面 (解答)

• More robust • More user-friendly • Prevent further errors from occurring later • Ensures that data entered meets the specific rules

#3
正面 (问题)

What is defensive design?

背面 (解答)

• Thinking ahead about the problems that may occur • Nullifying them before they happen

#4
正面 (问题)

What are examples of defensive design?

背面 (解答)

Considering: - Division by zero: would crash because computer cannot compute - Communication error: unable to establish connection, server overloaded, should allow cancel/report - Printer and peripheral errors: running out of paper/ink, allow reprint - Disk errors: programs that need files (read/write) must consider the file not being found/out of storage space/corrupt data/end of file reached, and must be checked before further processing

#5
正面 (问题)

How can data used by systems be secure?

背面 (解答)

• Username and password (forms of authentication) • Recover password using email • Encryption • reCAPTCHA software • Awareness of SQL injection and other methods

#6
正面 (问题)

Why do programs need to be tested?

背面 (解答)

• No bugs • Has an acceptable performance • Ensure no unauthorised access • Check it meets the requirements

#7
正面 (问题)

What does iterative testing mean?

背面 (解答)

• Each function was individually tested as written • Ensures that it can handle incorrect data • Checking it does not introduce new errors in code

#8
正面 (问题)

What does terminal testing mean?

背面 (解答)

• Meets all requirements • Testing that all functions work together • Able to produce results with any data

#9
正面 (问题)

What is a normal input?

背面 (解答)

• Accepted without errors

#10
正面 (问题)

What is a boundary input?

背面 (解答)

• Correct data type which is on the edge of accepted validation boundaries

#11
正面 (问题)

What is an invalid input?

背面 (解答)

• Correct data type but outside accepted validation checks

#12
正面 (问题)

What is an erroneous input?

背面 (解答)

• Incorrect data type: rejected

#13
正面 (问题)

How do you handle inputs to make the program more robust?

背面 (解答)

• Anticipate a range of possible outputs • Descriptive and helpful prompts

#14
正面 (问题)

How do you deal with erroneous data?

背面 (解答)

• Try int(input()) • Except wrong data type displays error message

#15
正面 (问题)

Describe three ways in which a programmer can make their code maintainable

背面 (解答)

• Use sub programs to separate chunks of code • Use comments to explain sections of code • Use variables to allow different programmers to easily understand the code • Used indentations to see where structures begin and end

#16
正面 (问题)

State what is meant by ‘input validation’

背面 (解答)

• Checking that the input has the correct data type and format before using it in the rest of the program

#17
正面 (问题)

State a feature that shows that something is a function and not a procedure

背面 (解答)

It returns a value