Databases - 1.2 Primary Key

Quiz
•
Information Technology (IT)
•
11th Grade
•
Medium
Susan Fudge
Used 2+ times
FREE Resource
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a primary key?
A unique identifier for each record in a table that cannot contain NULL values.
A duplicate identifier for records in a table.
A foreign key in a table.
A non-unique identifier for records in a table.
Answer explanation
A primary key is essential for uniquely identifying each record in a table, ensuring that no two records can have the same key value. It also cannot contain NULL values, making it a reliable reference point.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a composite key?
A composite key is a primary key made up of two or more columns to uniquely identify a record.
A composite key is a single column used to uniquely identify a record.
A composite key is a foreign key used to link two tables.
A composite key is a unique constraint on a single column.
Answer explanation
A composite key consists of two or more columns that together uniquely identify a record in a database table, making the first answer choice correct.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A primary key column can contain duplicate values because:
It is allowed by database design.
It ensures data integrity.
It uniquely identifies each record.
It can have null values.
Answer explanation
A primary key must uniquely identify each record in a database. This means it cannot contain duplicate values, as duplicates would violate the uniqueness requirement essential for data integrity.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Activity Question: Given a "Library" table with columns BookID, Title, and AuthorID, which column(s) would be the most appropriate primary key?
BookID
Title
AuthorID
Title and AuthorID
Answer explanation
The most appropriate primary key is BookID because it uniquely identifies each book in the Library table. Title and AuthorID may not be unique, as multiple books can have the same title or be written by the same author.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which is the best example of a primary key?
Driver's License Number
Home Runs Hit
Price
First and Last Name
Answer explanation
A primary key uniquely identifies each record in a database. A Driver's License Number is unique to each individual, making it an ideal primary key. In contrast, Home Runs Hit, Price, and First and Last Name can be duplicated.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a method to enforce data integrity in Access?
Using primary keys
Using foreign keys
Using validation rules
All of the above
Answer explanation
All of the options—using primary keys, foreign keys, and validation rules—are methods to enforce data integrity in Access. They each play a crucial role in ensuring that data remains accurate and consistent.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In Access, what does the term "referential integrity" refer to?
Ensuring that all data is encrypted
Ensuring that relationships between tables remain consistent
Ensuring that all tables have a primary key
Ensuring that all queries run efficiently
Answer explanation
Referential integrity ensures that relationships between tables remain consistent, meaning that foreign keys in one table must match primary keys in another, preventing orphaned records and maintaining data accuracy.
Similar Resources on Wayground
10 questions
Database Practice Test 1 Part 2 Review

Quiz
•
11th Grade
5 questions
SQL Database Quiz

Quiz
•
University
10 questions
BÀI 21. CẬP NHẬT VÀ TRUY XUẤT DỮ LIỆU CÁC BẢNG

Quiz
•
12th Grade
10 questions
Quiz Fungsi Agregasi SQL

Quiz
•
11th Grade
10 questions
QUiS Arsikom 2

Quiz
•
University
11 questions
JavaEE-servlets-jsp

Quiz
•
University
8 questions
MA3-App Lab Design and Functionality

Quiz
•
9th - 12th Grade
10 questions
Information Management

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Information Technology (IT)
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
20 questions
Getting to know YOU icebreaker activity!

Quiz
•
6th - 12th Grade
10 questions
Impact of 9/11 and the War on Terror

Interactive video
•
10th - 12th Grade
28 questions
Ser vs estar

Quiz
•
9th - 12th Grade
6 questions
Biography

Quiz
•
4th - 12th Grade
16 questions
Metric Conversions

Quiz
•
11th Grade
25 questions
ServSafe Foodhandler Part 3 Quiz

Quiz
•
9th - 12th Grade
10 questions
Fact Check Ice Breaker: Two truths and a lie

Quiz
•
5th - 12th Grade