SQL Quiz

SQL Quiz

11th Grade

10 Qs

quiz-placeholder

Similar activities

Basic Excel Spreadsheet

Basic Excel Spreadsheet

9th - 12th Grade

10 Qs

5.03 Business Essentials

5.03 Business Essentials

9th - 12th Grade

10 Qs

Kuis Basis Data DDL - XI RPL - UKIN

Kuis Basis Data DDL - XI RPL - UKIN

11th Grade

10 Qs

SQL Programming

SQL Programming

4th Grade - Professional Development

10 Qs

MySQL & PDO

MySQL & PDO

11th Grade

10 Qs

HTML5-FORMS

HTML5-FORMS

11th - 12th Grade

15 Qs

Database fundamentals III

Database fundamentals III

11th Grade

8 Qs

BÀI KIỂM TRA 15P HK2 TIN HỌC 11

BÀI KIỂM TRA 15P HK2 TIN HỌC 11

11th Grade

10 Qs

SQL Quiz

SQL Quiz

Assessment

Quiz

Computers

11th Grade

Hard

Created by

arturo parinas

Used 1+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?