SQL (Part 1/2)

Quiz
•
Computers
•
2nd Grade
•
Hard
Frank Neubüser
Used 2+ times
FREE Resource
8 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
The SQL command to create a database schema is...
CREATE SCHEMA
CREATE TABLE
CREATE DATABASE
CREATE INDEX
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In SQL, the truth value of (FALSE OR NULL) is...
TRUE
FALSE
NULL
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You’re creating a table for a pizza delivery app.
Which column should NOT allow NULL values?
pizza_size VARCHAR(20)
delivery_address VARCHAR(100)
extra_cheese BOOLEAN
customer_comments TEXT
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You’re creating a table for a library.
Which column should be the primary key?
book_title VARCHAR(100)
author_name VARCHAR(100)
book_id INT
publication_date DATE
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You’re creating a table for a movie database.
Which column should be a foreign key?
movie_title VARCHAR(100)
release_year INT
director_id INT
genre VARCHAR(50)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A relation may have multiple foreign keys.
Yes.
No.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Each table can contain more than one primary key.
True
False
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Your friend accidentally runs
DROP TABLE users;
instead of
CREATE TABLE users;.
What happens?
The table is created successfully.
The table is deleted forever.
The table is renamed to "users_backup".
The database explodes.
Similar Resources on Wayground
10 questions
Lenguaje Sql

Quiz
•
1st - 4th Grade
10 questions
Basis Data

Quiz
•
2nd Grade
10 questions
QUIZZ 4 : DATABASE FUNDAMENTALS

Quiz
•
1st - 3rd Grade
10 questions
Introduction to Arrays

Quiz
•
KG - University
10 questions
Intro to database

Quiz
•
1st - 10th Grade
13 questions
Structured Query Language (SQL)

Quiz
•
2nd Grade
10 questions
Advanced SQL

Quiz
•
KG - University
10 questions
Programming

Quiz
•
1st - 10th Grade
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz

Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
15 questions
Compare and Order Decimals

Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
20 questions
Multiplication facts 1-12

Quiz
•
2nd - 3rd Grade