Search Header Logo
Validation

Validation

Assessment

Presentation

Computers

10th Grade

Practice Problem

Medium

Created by

Andy tsui

Used 52+ times

FREE Resource

7 Slides • 7 Questions

1

Validation and verification

Slide image

2

Slide image

3

What is validation?

  • Ensures data being entered is both sensible and possible

  • Good validation can prevent program from breaking (or even hacking)

4

Open Ended

If you want need to ask user to input his age, what do you want to make sure in your program?

5

Common types of validation

  • Range Check (data must be numerical data in a range)

  • Presence Check (Data must be entered)

  • Type Check (Data must be a certain acceptable data type)

  • Lookup check (Data must be within a list of options)

  • Length Check (Usually for string, the length of the string must be within a given range)

  • Format Check (The data has to conform to a specific format)

6

Multiple Choice

Question image

What is this type of validation?

1

Range

2

Presence

3

Lookup

4

Format

7

Multiple Choice

Which validation check if the value is a number or not?

1

Presence

2

Type

3

Lookup

4

Format

8

Multiple Choice

Which validation can check if you enter an email address correctly?

1

Presence

2

Type

3

Lookup

4

Format

9

Multiple Choice

Which validation can check if you enter gender?

1

Presence

2

Type

3

Lookup

4

Format

10

More about validation

  • Usually validation is done automatically by computer

  • Most of the time, more than one type of validation check might be needed for a set of data

11

Multiple Select

Check all the validation needed for entering a student class and class number

1

Range

2

Prescence

3

Type

4

Lookup

5

Length

12

Check Digit

13

Fill in the Blank

How many digits are there in the ISBN in your textbook?

14

Check digit

  • To verify if a series of number is entered / transferred correctly

  • Usually check digit is the last digit

  • A special algorithm is used to calculated the check digit

Validation and verification

Slide image

Show answer

Auto Play

Slide 1 / 14

SLIDE