Search Header Logo

Databases - Review Questions With Answers

Authored by Susan Fudge

Information Technology (IT)

11th Grade

Databases - Review Questions With Answers
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

7 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

What is the difference between VARCHAR and INT data types?

VARCHAR stores variable-length text

INT is used for whole numbers

Answer explanation

VARCHAR is designed to store variable-length text, making it suitable for strings of different sizes. INT, on the other hand, is specifically for whole numbers, allowing for efficient storage and calculations with numeric data.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type would you use for storing dates in a database?

DATE

STRING

INTEGER

FLOAT

Answer explanation

The DATE data type is specifically designed to store date values in a database, allowing for proper date manipulation and querying. Other types like STRING, INTEGER, and FLOAT are not suitable for date storage.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What data type should you choose for a column that stores boolean values (e.g., TRUE/FALSE)?

BOOLEAN

INTEGER

VARCHAR

FLOAT

Answer explanation

The BOOLEAN data type is specifically designed to store true/false values, making it the ideal choice for a column that needs to represent boolean values. Other types like INTEGER or VARCHAR are not suitable for this purpose.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Activity Question: Given a "Student" table with columns StudentID, Name, EnrollmentDate, and IsActive, choose appropriate data types. Answer: StudentID: INT, Name: VARCHAR, EnrollmentDate: DATE, IsActive: BOOLEAN

StudentID: INT, Name: VARCHAR, EnrollmentDate: DATE, IsActive: BOOLEAN

StudentID: STRING, Name: TEXT, EnrollmentDate: DATETIME, IsActive: INT

StudentID: NUMBER, Name: CHAR, EnrollmentDate: TIMESTAMP, IsActive: STRING

StudentID: INTEGER, Name: STRING, EnrollmentDate: TEXT, IsActive: BOOL

Answer explanation

The correct choice specifies appropriate data types: INT for StudentID (numeric), VARCHAR for Name (variable-length string), DATE for EnrollmentDate (date type), and BOOLEAN for IsActive (true/false).

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

In a database, Yes/No, Text and Date/Time are all examples of:

data types

data queries

tabs you can select

records in the data table

Answer explanation

Yes/No, Text, and Date/Time are all examples of data types, which define the kind of data that can be stored in a database. Therefore, the correct answer is 'data types'.

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

A data type that can only hold 2 values e.g. Yes/No or True/False.

Boolean

Integer

Real

String

Answer explanation

The correct answer is 'Boolean' because it is a data type that can only hold two values, such as Yes/No or True/False. Other options like Integer, Real, and String can hold multiple values, making them incorrect.

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

A data type used for storing numbers with a fractional part e.g. 3.142

Integer

Boolean

Real / Float

String

Answer explanation

The correct answer is 'Real / Float' because it represents data types that can store numbers with fractional parts, such as 3.142. In contrast, 'Integer' stores whole numbers, 'Boolean' stores true/false values, and 'String' stores text.

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?