Search Header Logo

SQL Quiz

Authored by arturo parinas

Computers

11th Grade

Used 1+ times

SQL Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

From the given code below, answer the following questions

CREATE TABLE Users (

UserID INT AUTO_INCREMENT PRIMARY KEY,

FirstName VARCHAR(50),

LastName VARCHAR(50),

Email VARCHAR(100) UNIQUE,

DateOfBirth DATE );

What is the name of the table being created in the SQL code?

Users

UserID

FirstName

LastName

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which column in the "Users" table is designated as the Primary Key?

FirstName

LastName

Email

UserID

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What data type is used for the "UserID" column?

VARCHAR(50)

INT

DATE

VARCHAR(100)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which column allows NULL values in the "Users" table?

UserID

FirstName

LastName

Email

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the AUTO_INCREMENT keyword in the SQL code?

to automatically increment the value of the "UserID" column.

to enforce uniqueness in the "Email" column.

to set a default value for the "DateOfBirth" column.

to specify the maximum length of the "FirstName" column.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which column in the "Users" table has a UNIQUE constraint?

UserID

FirstName

LastName

Unique

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the maximum length allowed for values in the "FirstName" column?

50 characters

100 characters

variable length

no limit

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?