Search Header Logo

Databases (Week 02)

Authored by Long Trần

Computers

University

Used 4+ times

Databases (Week 02)
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following are types of relations in SQL?

Stored relations

Views

Temporary tables

All of the above

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which SQL data type stores a fixed-length string of up to 8000 characters?

VARCHAR(n)

CHAR(n)

NCHAR(n)

TEXT

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is a valid SQL data type for storing dates?

TEXT

DATETIME

VARCHAR

CHAR

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What does the `IDENTITY` property in SQL define?

The data type of a column

The default value for a column

The initial value and increment step for a column

The foreign key constraint

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following SQL commands is used to delete a table?

DELETE TABLE

DROP TABLE

REMOVE TABLE

ERASE TABLE

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the purpose of the `DEFAULT` option in SQL?

To specify the default data type

To specify a default value for an attribute

To modify the table structure

To define the primary key

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following SQL data types are used for fixed precision and scale numbers?

FLOAT

DECIMAL(p,s) or NUMERIC(p,s)

INT

DATETIME

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?

Discover more resources for Computers