Search Header Logo

6 - defensive design - mmd

Authored by muhammad abdulmajeed

Computers

11th Grade

6 - defensive design - mmd
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

35 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of defensive design in programming?

To make programs run faster

To ensure programs function properly and prevent misuse

To increase the size of the program

To make programs look visually appealing

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is input sanitisation?

Checking if data meets certain criteria

Removing unwanted characters before processing

Ensuring data is within a specified range

Checking data against a table of acceptable values

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is an example of input validation?

Removing unwanted characters

Checking if an email address contains an "@" symbol

Deleting unnecessary files

Formatting text to be bold

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the function formatName() do in the example provided?

It formats the file name to uppercase

It removes unwanted characters "(" and ")" from the file name

It checks the length of the file name

It adds a prefix to the file name

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which validation check ensures that data has been entered?

Range check

Presence check

Format check

Length check

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a common way that programs confirm the identity of a user before allowing access to certain features?

Using passwords

Asking security questions

Sending a verification email

Using biometric data

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is one method to increase the security of a password-based authentication system?

Use strong passwords

Share passwords with others

Use the same password for all accounts

Write passwords on paper

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?