
SQL Quiz
Authored by arturo parinas
Computers
11th Grade
Used 1+ times

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
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
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

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Logic Gates
Quiz
•
9th - 12th Grade
10 questions
conditional and iterative statements
Quiz
•
11th Grade
10 questions
Grade 11 Term 4 Practice 2
Quiz
•
11th Grade
14 questions
Computing figures
Quiz
•
4th - 12th Grade
15 questions
Digital Etiquette
Quiz
•
4th Grade - University
10 questions
Keyboarding Terms
Quiz
•
9th - 12th Grade
15 questions
CIW
Quiz
•
9th - 12th Grade
10 questions
Word basics
Quiz
•
8th - 12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade