返回卡包市场

2.3 New

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

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

卡片预览 (24 张)

#1
正面 (问题)

Defensive design

背面 (解答)

Approach to software development where every possible input from a user is considered

#2
正面 (问题)

Purpose of defensive design

背面 (解答)

-to anticipate ways a user could misuse a program -ensure the final program is robust and reliable for all users

#3
正面 (问题)

What can developers do to anticipate errors in programs

背面 (解答)

Ensure the software has a way of dealing with the potential errors to ensure software does not crash

#4
正面 (问题)

Examples of error in programs

背面 (解答)

-peripheral errors -disk errors -communication errors -division by 0

#5
正面 (问题)

Peripheral error

背面 (解答)

-When peripherals do not perform as intended -eg printer runs out of paper(fix is allow user to reprinting document after refilling the paper)

#6
正面 (问题)

Disk error

背面 (解答)

-Error that occur on a disk -such as disk running out of space(fix=allowing user to save work on another disk)

#7
正面 (问题)

Communication errors

背面 (解答)

Applications using online systems losing online connection to the host server(fix = automatically retry if connection resumes)

#8
正面 (问题)

Authentication

背面 (解答)

Process of ensuring that a system is secure by asking the user to complete tasks to prove they are an authorised user of the system

#9
正面 (问题)

Examples of authentication

背面 (解答)

-Usernames and passwords -CAPTCHA

#10
正面 (问题)

Input validation

背面 (解答)

Code which is used to check that an input from a user is acceptable and matches the requirements of the program

#11
正面 (问题)

What are the 5 main categories of validation

背面 (解答)

Length check Type check Range check Presence check Format check

#12
正面 (问题)

Type check

背面 (解答)

Checking if what is entered is a certain data type such as integers for age

#13
正面 (问题)

Range check

背面 (解答)

Ensuring data entered falls under a particular range such as between 0-100 for age

#14
正面 (问题)

Length check

背面 (解答)

Checks the length of a string and checks if it meets the condition

#15
正面 (问题)

Presence check

背面 (解答)

Looks to check if any data has been entered in a field

#16
正面 (问题)

Format check

背面 (解答)

Ensures that the data has been entered in the correct formate such as email containing @ and . symbol

#17
正面 (问题)

Program maintainability

背面 (解答)

Ensuring programmers can easily understand what a program is doing a long time after having written it

#18
正面 (问题)

How are programs maintained

背面 (解答)

-commenting of code: explain the purpose of each code -white space(makes each section clear) -indentation: show each instance of selection and iteration and make it clear which doe belongs to which clause in the program -sensible variable names: name describes what the variable does to prevent confusion later on -use of sub programs: make reusable sections of code which removes the need for duplicating code and also structures the code better

#19
正面 (问题)

Purpose of testing programs

背面 (解答)

-ensure there are no errors or bugs in the code -ensure that the code performs as it was intended -ensure no one can gain unauthorised access to the system -check the program solves in the initial problem and meets all requirements

#20
正面 (问题)

Types of testing programs

背面 (解答)

Iterative testing Final testing

#21
正面 (问题)

Iterative testing

背面 (解答)

-each part of program is tested -every pathway through the program is tested(if statements) -done during development of program -make changes and improvements while testing

#22
正面 (问题)

Final testing

背面 (解答)

-Testing that all parts of a program work together -checking the program against real data to ensure it meets all of the requirements -testing program using normal, boundary and erroneous data -done towards end of development -can alpha testing or beta testing

#23
正面 (问题)

How to identify syntax errors

背面 (解答)

-program will not execute when there is a syntax error (IDE provides information about the error)

#24
正面 (问题)

How to identify logic errors

背面 (解答)

-Program runs but expected output is not produced -check obvious areas such as logical and Boolean operators or division by 0