wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

TestOut CompTIA ITF Databases 20 Questions

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

Which of the following is a Structured Query Language (SQL) command that lets you view information stored in a database?

a)

GRANT

b)

RETRIEVE

c)

SELECT

d)

CREATE VIEW

2.

A business wants to set up a database to store customer and order information. They have decided to use a relational database. Which of the following is the main benefit of using a relational database?

a)

The data can be stored as unstructured data.

b)

The data is stored as a single file for quick retrieval.

c)

The data can be organized into separate tables that are related to each other.

d)

The data can be saved as a flat file.

3.

Which of the following is a feature that provides for the security and integrity of the data in a database?

a)

Data encryption

b)

Anti-malware protection

c)

Device passwords

d)

User privilege levels

4.

There are several processes related to database usage. Which of the following involves the information stored in a database, where the database is hosted, and how clients can access the data?

a)

Reports

b)

Queries

c)

Creation

d)

Storage

5.

Marty, a database administrator, needs to build a database query that will return the results from the start of January through the end March. Which of the following commands would be used?

a)

INSERT

b)

ALTER TABLE

c)

UPDATE

d)

SELECT

6.

A database administrator wants to export a table as a backup before changes are made to the table structure. Which of the following commands should be executed?

a)

SELECT

b)

ALTER TABLE

c)

UPDATE

d)

BACKUP

7.

A database administrator wants to create a copy of an entire database. Which of the following SQL (Structured Query Language) commands can the administrator use to create the copy?

a)

CREATE BACKUP DATABASE database_name

b)

BACKUP database_name

c)

BACKUP DATABASE database_name

d)

CREATE BACKUP database_name

8.

Marty, a database administrator, has added a foreign key to a table in a database. Which of the following describes the purpose of a foreign key?

a)

For one database to reference another database.

b)

To provide a way to distinguish records within a table.

c)

For one table to reference records in another table.

d)

To allow the storage of unstructured data.

9.

An IT administrator wants to provide a graphical interface tool for company sales representatives to quickly find product information and pricing in a relational database (without using SQL commands).

Which of the following would provide the type of access the sales representatives need?

a)

DBMS (database management system)

b)

Query builder

c)

User interface access

d)

Collaboration software

10.

Which of the following BEST describes the permissions a user has for a database object after creating the object while logged into their user account?

a)

The object's creator can deny permissions to the object for other user accounts.

b)

The object's creator is limited to permissions given by the GRANT command.

c)

The object's creator has complete control over that object.

d)

The object's creator has all permissions for the object, except those limited by the DENY command.

11.

Cindy wants to use a database to store and retrieve information for a research project. She has gathered photos, newspaper articles, interviews, and notes. The information does not appear to have a clear pattern. Which of the following types of data does Cindy want to store?

a)

Relational

b)

Structured

c)

Non-structured

d)

Semi-structured

12.

A medical supply company is using a spreadsheet to keep track of inventory. The company is rapidly expanding, and several employees now need to access the spreadsheet securely at the same time (concurrent use). However, each time one employee opens the spreadsheet, it's locked for use by any other employees.

Which of the following provides the BEST solution to resolve this issue?

a)

Purchase new spreadsheet software that allows multiple users to access the spreadsheet at the same time.

b)

Switch to a database that allows for concurrent users and can support thousands of users accessing the data at the same time.

c)

Keep the current spreadsheet, but upgrade to a version that allows for multiple users to access the spreadsheet at the same time with the proper authorization.

d)

Switch to a cloud-based spreadsheet solution that allows multiple users to access the spreadsheet at the same time.

13.

Which of the following SQL commands would change the title of a movie in a Movies relational database from "The Education of Rita" to "Educating Rita"?

a)

UPDATE movie_title = "Educating Rita" IN Movies WHERE id=124

b)

UPDATE Movies OLD movie_title = "The Education of Rita" NEW "Educating Rita" WHERE id=124

c)

UPDATE Movies SET movie_title = "Educating Rita" WHERE id=124

d)

UPDATE Movies FROM movie_title = "The Education of Rita" TO "Educating Rita" WHERE id=124

14.

In a relational database table, columns are better known as ________________.

a)

Records

b)

Categories

c)

Fields

d)

Instances

15.

Which of the following terms describes the set of SQL commands that change the structure or schema of a database, such as the DROP command?

a)

Data Manipulation Language (DML)

b)

Data Definition Language (DDL)

c)

Direct Access

d)

Data Mining

16.

Which of the following is a SQL statement?

a)

if len(sys.argv) != 2: print usage sys.exit(0)

b)

SELECT * FROM Orders WHERE OrderID=5

c)

=IF(C3>=65,"Pass","Fail")

d)

var rollDie = (Math.floor(Math.random() * 6) +1

17.

Which of the following SQL (Structured Query Language) CREATE commands only requires one parameter?

a)

CREATE INDEX

b)

CREATE VIEW

c)

CREATE DATABASE

d)

CREATE TABLE

18.

Which database object is essentially questions that we can ask the database?

a)

Reports

b)

Tables

c)

Forms

d)

Queries

19.

Which of the following is an advantage of using a database over a flat file system?

a)

Imports and exports

b)

Processing speed

c)

CSV files

d)

Software upgrades

20.

A database administrator wants to export all the data in a database to a comma separated value file (.CSV) where it can be opened by spreadsheet software. Which of the following would be the EASIEST way to create the exported file?

a)

Database form

b)

Transact SQL

c)

SQL query

d)

Database dump