First 50 of 198 questions. Each one lists the choices, the correct answer, and an explanation. The checker at the top of this page saves progress in this browser when it is available.
Continue in the practice tool above to load more questions, 50 at a time.
Question 1Understanding databases
Which term describes a single row of data in a relational database table?
- A key
- A record Correct answer.
- A field
- A query
Explanation
In relational databases, a table is made of rows and columns. Each row is a record (also called a tuple) that holds one complete set of related values, while each column is a field describing one attribute.
Question 2Understanding databases
What is the primary purpose of a primary key in a table?
- To sort the records alphabetically
- To compress the stored data
- To link the table to a report
- To uniquely identify each record Correct answer.
Explanation
A primary key is a field or combination of fields whose value is unique for every record and never empty. This guarantees that each row can be identified and referenced without ambiguity.
Question 3Understanding databases
Which data type is most appropriate for storing a person's date of birth?
- Date/Time Correct answer.
- Boolean
- Currency
- Text
Explanation
A Date/Time data type stores calendar dates as date values, allowing correct chronological sorting and date arithmetic. Storing dates as text would sort them incorrectly and prevent date calculations.
Question 4Understanding databases
In a relational database, what does a foreign key do?
- Defines the width of a field
- Encrypts sensitive columns
- References the primary key of another table Correct answer.
- Calculates totals automatically
Explanation
A foreign key is a field in one table that holds values matching the primary key of another table. It creates a relationship between the two tables and helps enforce referential integrity.
Question 5Understanding databases
A database contains a Customers table and an Orders table, where one customer can place many orders. What is this relationship called?
- Self-referencing
- One-to-one
- One-to-many Correct answer.
- Many-to-many
Explanation
When a single record in one table can be associated with multiple records in another table, but each of those records links back to only one record in the first table, the relationship is one-to-many.
Question 6Understanding databases
Which object in a database is used to retrieve selected data from one or more tables based on criteria?
- A macro
- A form
- A query Correct answer.
- A report
Explanation
A query is a stored request that selects, filters, and combines data from tables according to specified criteria. It returns a result set rather than presenting or automating the data.
Question 7Understanding databases
What is the main function of a database form?
- To provide a user-friendly interface for entering and viewing data Correct answer.
- To permanently store the raw records
- To back up the database file
- To define the relationships between tables
Explanation
A form is an interface object that presents fields from a table or query so users can enter, edit, or view data conveniently. The underlying records are still stored in the tables, not in the form.
Question 8Understanding databases
Which statement best describes a flat-file database?
- It always requires a foreign key
- It stores all data in a single table Correct answer.
- It splits data across many linked tables
- It cannot contain text fields
Explanation
A flat-file database keeps all records in one table with no structural links to other tables. Relational databases, by contrast, distribute data across related tables.
Question 9Understanding databases
A company wants to store customer details once and reference them from many invoices without repeating the data. Which approach achieves this?
- Store customers in a separate table linked by a key Correct answer.
- Use a report to merge the details
- Add a text note to each invoice
- Copy the customer details into every invoice record
Explanation
Separating customers into their own table and linking invoices through a key avoids duplication and keeps data consistent. This is a core benefit of relational design, known as normalization.
Question 10Understanding databases
What does referential integrity help prevent?
- Slow query performance
- Records with duplicate primary key values
- Orphaned records that reference a missing parent record Correct answer.
- Unauthorized user access
Explanation
Referential integrity ensures that a foreign key value always matches an existing primary key value in the related table. This prevents orphaned child records that point to a parent that does not exist.
Question 11Understanding databases
Which field would be the best choice for a primary key in a Students table?
- Student enrolment number Correct answer.
- Student home town
- Student surname
- Student year group
Explanation
A primary key must be unique and non-empty for every record. An enrolment number is assigned uniquely to each student, whereas the other fields can repeat or be shared by many students.
Question 12Understanding databases
What is a database index used for?
- Restricting which users can edit data
- Formatting numbers for display
- Speeding up searches on a field Correct answer.
- Enforcing that a field is unique
Explanation
An index maintains an ordered structure of field values so the database engine can locate records faster. It improves search and sort performance but does not by itself enforce uniqueness or control access.
Question 13Understanding databases
Which of these is an example of a validation rule rather than a data type?
- Currency
- Date/Time
- Age must be between 0 and 120 Correct answer.
- Text
Explanation
A validation rule restricts the values a field can accept, such as a numeric range. Data types such as Text, Date/Time, and Currency define what kind of value is stored, not the permitted range.
Question 14Understanding databases
What distinguishes a database management system (DBMS) from a simple data file?
- It stores data only in plain text
- It controls access, integrity, and concurrent use of the data Correct answer.
- It removes the need for tables
- It can only store numeric data
Explanation
A DBMS is software that manages the database, handling access control, integrity enforcement, concurrent users, and recovery. A plain data file provides storage but none of these management functions.
Question 15Understanding databases
Which term refers to the structure of a database, including its tables, fields, and relationships?
- The record set
- The view
- The schema Correct answer.
- The index
Explanation
The schema is the formal definition of the database structure: its tables, fields, data types, and relationships. It describes how data is organized rather than the data values themselves.
Question 16Understanding databases
Why is storing the same customer address in many order records considered poor database design?
- It prevents the use of primary keys
- It forces all fields to be text
- It creates redundancy and risks inconsistent data Correct answer.
- It makes the database run faster
Explanation
Repeating the same data in multiple records is redundancy; if one copy is updated and others are not, the data becomes inconsistent. Good relational design stores such data once and links to it.
Question 17Understanding databases
Which object would you use to present grouped and formatted data for printing to managers?
- A table
- A field
- A report Correct answer.
- A query
Explanation
A report is designed to present data in a formatted layout for viewing, printing, or sharing, often with grouping and totals. Tables store data and queries select it, but neither provides a print-ready presentation.
Question 18Understanding databases
What is a one-to-one relationship between two tables?
- No relationship exists between the tables
- Each record in one table matches at most one record in the other Correct answer.
- Records are matched randomly
- Each record matches many records in the other
Explanation
In a one-to-one relationship, each record in the first table is associated with at most one record in the second table, and vice versa. It is often used to split a table for security or optional data.
Question 19Understanding databases
Which data type would best store a yes/no flag indicating whether a membership is active?
- Currency
- Memo
- Date/Time
- Boolean Correct answer.
Explanation
A Boolean (Yes/No) data type stores exactly two states, true or false, which suits an active/inactive flag. It uses minimal space and prevents invalid values.
Question 20Understanding databases
What is the effect of setting a field's Required property to Yes?
- The field can only contain numbers
- The field becomes the primary key
- A value must be entered in the field for every record Correct answer.
- The field is automatically indexed
Explanation
The Required property forces a value to be present so the field cannot be left empty. It does not by itself index the field, make it a key, or restrict its data type.
Question 21Understanding databases
Which scenario best demonstrates the need for a many-to-many relationship?
- Students enrol in many courses, and each course has many students Correct answer.
- One order belongs to one customer
- Each employee has one payroll number
- Each country has one capital city
Explanation
A many-to-many relationship exists when records on both sides can link to many records on the other side, as with students and courses. It is typically implemented with a linking table holding foreign keys to both.
Question 22Understanding databases
What is the purpose of a lookup field in a database table?
- To calculate totals across records
- To let the user choose from a predefined list of values Correct answer.
- To encrypt the stored values
- To delete duplicate records
Explanation
A lookup field presents a list of allowed values, often drawn from another table, so the user selects rather than types. This improves accuracy and consistency of the entered data.
Question 23Understanding databases
Which statement about a database view is correct?
- It can only display numeric fields
- It stores a duplicate copy of all table data
- It presents data from a query without storing the underlying records Correct answer.
- It replaces the need for tables
Explanation
A view is a saved query that presents selected data as if it were a table, but the data itself remains in the base tables. It can simplify access and restrict which fields are visible.
Question 24Understanding databases
Which of these is a benefit of splitting data into related tables rather than one large table?
- It reduces duplicate data and update errors Correct answer.
- It guarantees faster internet access
- It eliminates the need for backups
- It removes the need for data types
Explanation
Related tables store each fact once, which reduces redundancy and the risk of inconsistent updates. Data types and backups are still required in a well-designed relational database.
Question 25Understanding databases
A table stores a full address in one field, making it hard to search by town. What is the best design improvement?
- Convert the address to a number
- Remove the address field entirely
- Split the address into separate fields such as street, town, and postcode Correct answer.
- Store the address as a longer text field
Explanation
Splitting a composite value into atomic fields lets each part be searched, sorted, and validated separately. This follows the principle that each field should hold a single piece of data.
Question 26Understanding databases
Which term describes a single row in a database table?
- Table
- Query
- Record Correct answer.
- Field
Explanation
A record is one complete set of related data items, corresponding to a row in a table. A field is a column, a table is the collection of records, and a query is a request for data.
Question 27Understanding databases
Which database object is used to enter or edit data one record at a time in a structured layout?
- Query
- Form Correct answer.
- Report
- Macro
Explanation
A form provides a user-friendly interface for data entry and editing, often showing one record at a time. Reports are for output, queries for retrieval, and macros for automation.
Question 28Understanding databases
What does a foreign key in a table do?
- Calculates totals for a group of records
- Ensures all values in a field are unique
- Defines the maximum length of a text field
- References the primary key of another table Correct answer.
Explanation
A foreign key stores a value that matches a primary key in another table, creating a relationship between the tables. Uniqueness is enforced by primary keys or unique constraints, not foreign keys.
Question 29Understanding databases
Which statement best describes a relational database?
- All data is stored in a single table
- Data is organized into tables that can be linked by common fields Correct answer.
- Each record is stored as a separate document
- Data is stored as plain text files in folders
Explanation
A relational database uses multiple tables with relationships established through common fields, typically primary and foreign keys. Single-table storage, plain text files, and separate documents describe other models.
Question 30Understanding databases
What is the main advantage of using a database over a paper filing system?
- It removes the need for any user training
- Data can be quickly searched and shared by multiple users Correct answer.
- It guarantees that data is always accurate
- It eliminates the need for data backup
Explanation
Databases enable fast retrieval and controlled multi-user access, which is a key advantage over paper files. They do not remove the need for backups, guarantee accuracy, or eliminate training.
Question 31Understanding databases
Which of these is a common example of a database management system?
- Microsoft Word
- Adobe Photoshop
- Google Chrome
- Microsoft Access Correct answer.
Explanation
Microsoft Access is a database management system used to create and manage databases. Word is a word processor, Photoshop is an image editor, and Chrome is a web browser.
Question 32Understanding databases
A table has a field for telephone numbers. Which data type is most suitable to preserve leading zeros and formatting?
- AutoNumber
- Currency
- Number
- Text Correct answer.
Explanation
Text preserves leading zeros and characters such as spaces or hyphens in phone numbers. Number, Currency, and AutoNumber store numeric values and would drop leading zeros or formatting.
Question 33Understanding databases
In a table of employees, which field would be the most appropriate primary key?
- HireDate
- LastName
- EmployeeID Correct answer.
- Department
Explanation
EmployeeID is a unique identifier for each employee, making it ideal as a primary key. LastName, Department, and HireDate can have duplicates and are not guaranteed unique.
Question 34Understanding databases
Which validation rule would correctly ensure that a numeric field accepts only values between 1 and 100 inclusive?
- >=1 And <=100 Correct answer.
- Between 1 Or 100
- 1 To 100
- >1 And <100
Explanation
The expression >=1 And <=100 uses comparison operators and the And logical operator to enforce the inclusive range. The other options use incorrect syntax or exclude the endpoints.
Question 35Understanding databases
A table contains a field for storing postal codes. Which property would best limit entry to a maximum of 10 characters?
- Field Size Correct answer.
- Format
- Caption
- Input Mask
Explanation
Field Size sets the maximum length for text fields, directly limiting characters. Format controls display, Input Mask guides entry patterns, and Caption changes the label.
Question 36Understanding databases
Which relationship type is created when one record in Table A can relate to many records in Table B, but each record in Table B relates to only one record in Table A?
- One-to-one
- Self-referencing
- Many-to-many
- One-to-many Correct answer.
Explanation
A one-to-many relationship links a single record in one table to multiple records in another. One-to-one links single records, many-to-many requires a junction table, and self-referencing links a table to itself.
Question 37Understanding databases
What is the purpose of an input mask on a field?
- To calculate a value automatically from other fields
- To control the pattern of data entered, such as a phone number format Correct answer.
- To restrict data to a list of predefined values
- To hide the field from users
Explanation
An input mask provides a template that guides users to enter data in a consistent format. Restricting to a list is done by a lookup field, calculations by expressions, and hiding by form design.
Question 38Understanding databases
Which statement about a query is correct?
- It can select, filter, and sort data from one or more tables Correct answer.
- It can only be based on a single table
- It is used only for printing formatted output
- It permanently stores data in a new table by default
Explanation
A query retrieves data according to criteria and can combine multiple tables, filter rows, and sort results. It does not by default store data permanently and is not limited to one table or to printing.
Question 39Understanding databases
What does the term 'normalization' refer to in database design?
- Converting all text fields to numeric fields
- Organizing data to reduce redundancy and improve integrity Correct answer.
- Encrypting sensitive data in tables
- Creating a backup copy of the database
Explanation
Normalization structures tables and relationships to minimize duplicate data and avoid update anomalies. It is not about changing data types, backups, or encryption.
Question 40Understanding databases
A database contains a Customers table and an Orders table. Which field in the Orders table would typically be the foreign key?
- CustomerID Correct answer.
- OrderDate
- OrderTotal
- OrderID
Explanation
CustomerID in Orders references the primary key CustomerID in Customers, creating the relationship. OrderID is the primary key of Orders, while OrderDate and OrderTotal are descriptive fields.
Question 41Understanding databases
Which of these best describes the role of a database schema?
- It provides a user interface for data entry
- It defines the structure of tables, fields, and relationships Correct answer.
- It automatically backs up the database
- It stores the actual data records
Explanation
A schema is the blueprint of the database, specifying tables, fields, data types, and relationships. It does not hold the data itself, serve as an interface, or perform backups.
Question 42Understanding databases
What is the main purpose of a report in a database?
- To present data in a formatted, printable layout Correct answer.
- To establish relationships between tables
- To enter new records into a table
- To define validation rules for fields
Explanation
Reports organize and format data for output, often for printing or sharing. Data entry is done through forms, validation rules are field properties, and relationships are defined in the schema.
Question 43Understanding databases
Which statement correctly describes a many-to-many relationship?
- It is the same as a one-to-one relationship
- It can be created directly between two tables without an intermediary
- It requires a junction table to link the two tables Correct answer.
- It allows only one record on each side
Explanation
Many-to-many relationships are implemented using a junction table that contains foreign keys referencing both tables. They cannot be represented directly between two tables in a relational database.
Question 44Understanding databases
A table stores both a customer's city and the city's postal code in every order record. This leads to update anomalies. Which design change best addresses this?
- Split the table into two identical tables
- Create an index on the city field
- Add a validation rule to the postal code field
- Move city and postal code to a separate Cities table and reference it with a foreign key Correct answer.
Explanation
Storing city and postal code in a separate table removes redundancy and prevents update anomalies, with a foreign key linking orders to cities. Validation, indexing, or duplicating tables do not resolve the redundancy.
Question 45Understanding databases
In a relational database, what is the effect of enforcing referential integrity between Orders and Customers?
- A customer can be deleted even if orders exist for that customer
- An order cannot reference a customer that does not exist Correct answer.
- The CustomerID field in Orders can contain duplicate values
- The Orders table can have multiple primary keys
Explanation
Referential integrity ensures that foreign key values match an existing primary key, preventing orphan records. It restricts deletion of referenced customers and does not allow multiple primary keys.
Question 46Understanding databases
Which field property would you use to ensure that a date field cannot be set to a future date?
- Validation Rule Correct answer.
- Default Value
- Input Mask
- Format
Explanation
A validation rule can include a condition such as <=Date() to reject future dates. Input masks control format, default values prefill data, and format controls display.
Question 47Understanding databases
A database has a Books table and an Authors table. A book can have multiple authors, and an author can write multiple books. Which implementation correctly models this?
- Merge the Books and Authors tables into one table
- Add an AuthorID foreign key to the Books table
- Add a BookID foreign key to the Authors table
- Create a BookAuthors junction table with foreign keys to both Books and Authors Correct answer.
Explanation
A many-to-many relationship requires a junction table containing foreign keys to both related tables. Adding a foreign key to either side only supports one-to-many, and merging tables introduces redundancy.
Question 48Understanding databases
Which statement about a primary key is always true?
- It can contain duplicate values if indexed
- It must be the first field in the table
- It must be a numeric field
- It cannot contain null values Correct answer.
Explanation
A primary key must uniquely identify each record and therefore cannot be null. It can be text or numeric, does not have to be the first field, and cannot contain duplicates.
Question 49Understanding databases
In a database table, what is a record best described as?
- A rule that restricts the values typed into a field
- A complete set of related field values about one entity Correct answer.
- A single column that stores one type of data
- A saved instruction that filters rows
Explanation
A table is made of rows and columns; each row is a record holding all the field values that describe one entity, such as one customer. A column, by contrast, holds one attribute for every record.
Question 50Understanding databases
A library database has a Loans table. Each loan must always be linked to a borrower who already exists in the Members table. Which feature enforces this requirement?
- An input mask on the loan date
- A calculated field that totals overdue days
- Referential integrity on the borrower key Correct answer.
- A sort order applied to the Members table
Explanation
Referential integrity checks that a foreign key value in the child table matches an existing primary key value in the parent table. This prevents loans from being saved for borrowers who are not in the Members table.