wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Database Validation Rules Quiz

Total questions: 12

Worksheet time: 6mins

Name
Class
Date
1.

What is the purpose of validation rules in a database?

a)

To prevent users from entering data

b)

To ensure data is accurate and consistent

c)

To store additional information

d)

To delete duplicate records

2.

Which of the following is an example of a presence check?

a)

Ensuring an email field contains '@'

b)

Preventing a student’s initial from being left blank

c)

Making sure a number is between 1 and 100

d)

Checking if a phone number is exactly 10 digits

3.

A length check is used to:

a)

Ensure a value falls within a certain range

b)

Restrict the number of characters in a field

c)

Check for blank fields

d)

Verify a specific format for input

4.

What validation rule would prevent a student’s grade from being below 1 or above 8?

a)

Presence check

b)

Range check

c)

Length check

d)

Format check

5.

What happens when a format check is applied?

a)

It ensures the data is not empty

b)

It checks if a value follows a specific pattern

c)

It verifies that a field only contains numbers

d)

It compares values from two different fields

6.

In MS Access, a validation rule is set in which field property?

a)

Default Value

b)

Input Mask

c)

General Properties

d)

Data Type

7.

If a field requires a currency value, which validation type should be used?

a)

Type check

b)

Range check

c)

Presence check

d)

Length check

8.

What would be an appropriate validation rule for a session date field?

a)

SessionDate >= Date()

b)

SessionDate = Date()

c)

SessionDate = NULL

d)

SessionDate 7 OR Stage = 7 AND Stage <= 11

9.

What type of validation would best ensure a student's name contains only letters?

a)

Type check

b)

Range check

c)

Format check

d)

Presence check

10.

If a user enters '12th' instead of '12' for a student’s grade, what validation check should be applied?

a)

Format check

b)

Presence check

c)

Type check

d)

Range check

11.

What is the purpose of a lookup field in a database?

a)

To allow users to search records

b)

To restrict input to predefined options

c)

To automatically correct input errors

d)

To prevent duplicate records

12.

What does the validation rule >= Date() ensure?

a)

The field must be left blank

b)

The entered date must be in the future or today

c)

The entered date must be a past date

d)

The field only accepts numbers