0% found this document useful (0 votes)
23 views62 pages

ITS-Database-_-MockExam_20(1)

The document is an assessment from an ITS Database course on Schoology, detailing multiple-choice questions related to database concepts and SQL. The user, Asnida Pangcatan, scored 199 out of 200 on the assessment. The questions cover topics such as transaction isolation levels, index rebuilding, SQL syntax, and database normalization.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views62 pages

ITS-Database-_-MockExam_20(1)

The document is an assessment from an ITS Database course on Schoology, detailing multiple-choice questions related to database concepts and SQL. The user, Asnida Pangcatan, scored 199 out of 200 on the assessment. The questions cover topics such as transaction isolation levels, index rebuilding, SQL syntax, and database normalization.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 62

11/21/22, 11:39 PM ITS Database | Schoology

COURSES GROUPS RESOURCES GRADES Asnida Pangcatan

Home > ITS Database : Section 1 > ITS Database > Attempt 1

ITS Database

ATTEMPT SCORE

199 / 200

01 Multiple Choice 1/1

JDBC API 2.0 defines five levels of transaction isolation for database concurrency control.
Which of the following is the lowest level of transaction isolation?

TRANSACTION_READ_COMMITTED

TRANSACTION_NONE 

TRANSACTION_SERIALIZABLE

TRANSACTION_READ_UNCOMMITTED

TRANSACTION_REPEATABLE_READ

02 Multiple Choice 1/1

Which of the following statements about rebuilding an index is true?

The NOLOGGING and ONLINE keywords can never be used together.

The NOLOGGING and ONLINE keywords are always used together.

Without the ONLINE keyword the index is locked for any DML operation. 

Without the ONLINE keyword the index is locked for the SELECT operation.

03 Multiple Choice 1/1

This question requires that you evaluate the underlined text to determine if it is correct.
The UNION keyword combines the results of two queries and returns only rows that appear in both result sets.

Instructions: Review the underlined text. If it makes the statement correct, select “No change is needed.” If the statement is incorrect, select the answer choice that makes
the statement correct

INTERSECT 

JOIN

No change is needed

ALL

04 Multiple Choice 1/1

https://app.schoology.com/course/5523776747/assessments/5523776966 1/62
11/21/22, 11:40 PM ITS Database | Schoology

Which permission does a user need in order to run a stored procedure?

RUN

ALLOW

EXECUTE 

CALL

05 Multiple Choice 1/1

Which keyword must be included in a create view statement?

WHERE

UPDATE

ORDER BY

SELECT 

06 Multiple Choice 1/1

What statement is used to copy records from one table into an existing table?

SELECT

SELECT WITHIN

SELECT INTO

INSERT INTO .. SELECT 

07 Multiple Choice 1/1

You accept an IT internship at a local charity. The charity asks you to keep a record of its volunteers by using a database table named Volunteer.
When volunteers ask to be removed from mailing lists, the table must be updated.
You need to use a transaction to ensure that the database has data integrity and referential integrity.

Which statement should you use?

Option C

Option D

Option B

Option A 

https://app.schoology.com/course/5523776747/assessments/5523776966 2/62
11/21/22, 11:40 PM ITS Database | Schoology

08 Multiple Choice 1/1

Which type of index changes the order in which the data is stored in a table?

clustered 

non-clustered

non-sequential

sequential

09 Multiple Choice 1/1

This question requires that you evaluate the underlined text to determine if it is correct.
A key defines the amount of storage space that is allocated to a value in a column.

Instructions: Review the underlined text. If it makes the statement correct, select “No change is needed.” If the statement is incorrect, select the answer choice that makes
the statement correct

validator

data type 

No change is needed

format

10 Multiple Choice 1/1

Which of the following statements is true about referential integrity?

It checks that no component of a primary key can have a null value and no duplicate entries can exist.

It distinguishes between null values and zero entries.

It checks that no record in a child table can exist if its corresponding record is not available in the parent table. 

It checks that the value of a primary key must be consistent throughout the life of an instance.

11 Multiple Choice 1/1

First normal form requires that a database excludes:

Duplicate rows

Repeating groups 

Composite keys

Foreign keys

12 Multiple Choice 1/1

https://app.schoology.com/course/5523776747/assessments/5523776966 3/62
11/21/22, 11:40 PM ITS Database | Schoology

Consider the case of a distance education university.


The university has many regional centers across the country.
Each regional center has a head known as regional manager.
Each regional center has allotted more than one study center in its region.
Each regional center has a region code, which is unique and specifies a region.
Each study center also has a study center code, which is also unique.

What is the relationship between regional center and study center?

There is no relationship.

One-to-one

One-to-many 

Many-to-many

13 Multiple Choice 1/1

You are the database administrator of a MySQL server that runs on a Windows server.
All clients are local clients.
For security, you want to disable connections from the remote clients.

Which of the following steps will you take to accomplish the task?

Start the server with the –shared-memory option.

Start the server with the –secure-auth option.

Start the server with the –skip-networking option. 

Start the server with the –disable-networking option.

14 Multiple Choice 1/1

You work at a restaurant and they ask you to help them with a data issue.
They provide you with the following recipe data:

You need to normalize the data to third normal form.

How many tables should you create?

3 

15 Multiple Choice 1/1

https://app.schoology.com/course/5523776747/assessments/5523776966 4/62
11/21/22, 11:40 PM ITS Database | Schoology

You are the database administrator for a MySQL database.


The database server is installed on a Unix system.
The time zone files for the system are located at /usr/share/zoneinfo.
You need to ensure that the system and MySQL time zones are based on the same information.
Which of the following statements will you use to accomplish the task?

shell> mysql_tz_to_sql /ust/share/zoneinfo | mysql -u root mysql

shell> /ust/share/zoneinfo mysql_tzinfo_to_sql | mysql -u root mysql

shell> /ust/share/zoneinfo mysql_tz_to_sql | mysql -u root mysal

shell> mysql_tzinfo_to_sql /ust/share/zoneinfo | mysql -u root mysql 

16 Multiple Choice 1/1

What is not allowed in object names in SQL?

special characters

symbols

spaces 

numbers

17 Multiple Choice 1/1

You work as a Database Designer for DataOneWorld Inc.


The company has a SQL Server database.
You are assigned the task of creating a data model of an enterprise based on a specific data model. The model to be created should be independent of a particular DBMS.

Which of the following database designs will help you accomplish the task?

Application design

Physical database design

Logical database design 

Conceptual database design

18 Multiple Choice 1/1

Which of the following are the main approaches in the database design? Each correct answer represents a complete solution. (Choose three.)

Top-down approach 

Bottom-up approach 

Middle approach

Inside-out approach 

19 Multiple Choice 1/1

This question requires that you evaluate the underlined text to determine if it is correct.
You combine data from three tables into one table. The new table includes redundancy to optimize read performance.

The data in the new table has been denormalized.

Instructions: Review the underlined text. If it makes the statement correct, select “No change is needed.” If the statement is incorrect, select the answer choice that makes
https://app.schoology.com/course/5523776747/assessments/5523776966 5/62
11/21/22, 11:40 PM ITS Database | Schoology
g
the statement correct.

No change is needed 

Indexed

Normalized

Truncated

20 Multiple Choice 1/1

You have a database table named SongInformation as defined below:

You need to create a Structured Query Language (SQL) query to retrieve only the names of songs that sold more than 1000 compact discs (CDs).
Which query should you use?

Option B

Option D

Option C

Option A 

21 Multiple Choice 1/1

You have two tables named Cars and Color as defined below. The two tables are related by ColorId.

You run the following SQL statement: select:

How many rows does the SQL statement return?

3 

https://app.schoology.com/course/5523776747/assessments/5523776966 6/62
11/21/22, 11:40 PM ITS Database | Schoology
2

22 Multiple Choice 1/1

In SQL, an insert statement is used to add a:

Table to a database.

Column to a table definition.

User to a database.

Row of data to a table. 

23 Multiple Choice 1/1

Which statement best defines a syntax error?

Causes tables to not appear correctly within a database

Prevents a table from being created

Prevents changes to a database from being completed

Causes a statement not to run 

24 Multiple Choice 1/1

This question requires that you evaluate the underlined text to determine if it is correct.
A relational database management system employs the concept of an attribute to ensure that data entered into a field in a column is valid.

Instructions: Review the underlined text. If it makes the statement correct, select “No change is needed.” If the statement is incorrect, select the answer choice that makes
the statement correct.

an index

a constraint 

a primary key

No change is needed

25 Multiple Choice 1/1

This question requires that you evaluate the underlined text to determine if it is correct.
The UNION keyword combines the results of two queries and returns only rows that appear in both result sets.

Instructions: Review the underlined text. If it makes the statement correct, select “No change is needed.” If the statement is incorrect, select the answer choice that makes
the statement correct

INTERSECT 

ALL

JOIN

No change is needed

26 Matching 1/1
https://app.schoology.com/course/5523776747/assessments/5523776966 7/62
11/21/22, 11:40 PM ITS Database | Schoology
6 atc g /

Instructions: For each of the following statements, select Yes if the statement is true. Otherwise, select No. Each correct selection is worth one
point.

A clustered index sorts and stores the data columns of a


A No 
table or view in order, based on the clustered index key

A non-clustered index is declined on a table or view by


B Yes 
using a clustered index or heap.

A unique index ensures that the index key contains no


duplicate values and that every row in the table or view C Yes 
is unique.

A filtered index is a clustered index that is optimized for


queries that select a small percentage of rows from a D No 
table.

 No  Yes

27 Multiple Choice 1/1

You have a table of products with fields for ProductID, Name, and Price.
You need to write an UPDATE statement that sets the value in the InStock field to Yes for a specific ProductID.

Which clause should you use in your update statement?

WHERE 

THAT

HAVING

GROUP BY

28 Multiple Choice 1/1

You manage a database named Customers, which includes a table named Orders.
The Orders table is frequently queried, but only orders with a sales total of more than $1000.00 are required in the query.
You want to create an index to speed up these types of queries at the same time, ensuring the index is as small as possible.

What type of index should you use?

Clustered

XML

Filtered 

Non-clustered

29 Multiple Choice 1/1


https://app.schoology.com/course/5523776747/assessments/5523776966 8/62
11/21/22, 11:40 PM ITS Database | Schoology
29 Multiple Choice 1/1

This question requires that you evaluate the underlined text to determine if it is correct.
Views are database objects that contain all of the data in a database.
Instructions: Review the underlined text. If it makes the statement correct, select “No change is needed.” If the statement is incorrect, select the
answer choice that makes the statement correct

Stored procedures

Tables 

No change is needed

Queries

30 Multiple Choice 1/1

At 3:00 P.M. (1500 hours), you create a backup of your database. At 4:00 P.M. (1600 hours), you create a table named Customer and import data into the table. At 5:00 P.M.
(1700 hours), your server fails.
You run a script to apply only the 3:00 P.M. backup to your database.

What is the result of the script?

The script fails.

The Customer data no longer exists.

The Customer table no longer exists. 

The Customer table exists but has no data.

31 Multiple Choice 1/1

This question requires that you evaluate the underlined text to determine if it is correct.
Truncate is a database term used to describe the process of applying a backup to a damaged or corrupt database.

Instructions: Review the underlined text. If it makes the statement correct, select “No change is needed.” If the statement is incorrect, select the answer choice that makes
the statement corrector.

Attach

No Change is needed

Restore 

Commit

32 Multiple Choice 1/1

You assign User1 a set of permissions that include the WITH GRANT OPTION. The WITH GRANT OPTION enables User1 to:

view other users’ permissions.

create new database users.

request a log of permission use.

delegate permissions to other users. 

https://app.schoology.com/course/5523776747/assessments/5523776966 9/62
11/21/22, 11:40 PM ITS Database | Schoology

33 Multiple Choice 1/1

You have a table named Employee that includes the following columns:
EmployeeID
EmployeeName

Which statement should you use to return the number of rows in the table?

Option D 

Option C

Option A

Option B

34 Multiple Choice 1/1

You need to list the name and price of each product, sorted by price from highest to lowest. Which statement should you use?

Option A 

Option B

https://app.schoology.com/course/5523776747/assessments/5523776966 10/62
11/21/22, 11:40 PM ITS Database | Schoology

Option D

Option C

35 Multiple Choice 1/1

You need to disable User1’s access to view the data in the Customer table.

Which statement should you use?

Option B

Option A

Option D

Option C 

36 Multiple Choice 1/1

Which of the following is a management activity that allows the stages of the database application to be realized as efficiently and effectively as
possible?

Identifying information for objects

Object identification

Database planning 

Requirements collection and analysis

37 Multiple Choice 1/1

Which statement creates a composite key?

https://app.schoology.com/course/5523776747/assessments/5523776966 11/62
11/21/22, 11:40 PM ITS Database | Schoology

Option D 

Option C

Option B

Option A

38 Multiple Choice 1/1

What keyword removes records from a table?

REMOVE

DROP

CANCEL

DELETE 

39 Multiple Choice 1/1

This question requires that you evaluate the underlined text to determine if it is correct.
Create a query that returns a set of table data by using the UPDATE statement.

Instructions: Review the underlined text. If it makes the statement correct, select “No change is needed.” If the statement is incorrect, select the answer choice that makes
the statement correct.

INSERT

SELECT 

REPLACE

No change is needed

40 Multiple Choice 1/1

You are the database administrator for a MySQL database server.


The network contains new and old (pre-4.1) clients.
You configure another database server on the network.
You allow the network clients to connect to the new server.
Some users complain that when they try to connect to the server, they receive the following error:

https://app.schoology.com/course/5523776747/assessments/5523776966 12/62
11/21/22, 11:40 PM ITS Database | Schoology

ERROR 1251: The client does not support authentication protocol requested by the server; consider upgrading MySQL client You do not want to upgrade any client or
server right now, and want to enable all clients to connect to the new server successfully.

Which of the following steps will you take to resolve the issue?

Run the server with the –secure-auth option.

Run the server with the –old-password option. 

Run the server with the –allow-old option.

Run the server with the –enable-old option.

41 Multiple Choice 1/1

John works as a Database Administrator for DataOneWorld Inc.


The company has a SQL Server database.
John wants to insert records in a table where the database is structured in a fixed format.

Which of the following data models will he use to accomplish the task?

Network data model

Entity-Relationship Model

Relational model 

Object relational data model

42 Multiple Choice 1/1

What is the difference between a DELETE statement and a TRUNCATE TABLE statement?

One can identify specific records that are being deleted with a DELETE statement, while a TRUNCATE TABLE statement allows one to
delete specific characters in a record

One can identify specific records that are being deleted with a TRUNCATE TABLE statement, while a DELETE statement allows one to
delete specific characters in a record

One can identify specific records that are being deleted with a DELETE statement, while a TRUNCATE TABLE statement deletes all

data in a table

One can identify specific records that are being deleted with a TRUNCATE TABLE statement, while a DELETE statement deletes all
data in a table

43 Multiple Choice 1/1

https://app.schoology.com/course/5523776747/assessments/5523776966 13/62
11/21/22, 11:40 PM ITS Database | Schoology

You work as the Database Administrator for www.company.com.


All servers on the www.company.com network run Windows Server 2003 and Windows Server 2000, and all client computers run Windows XP professional and Windows
Vista.

The www.company.com network area consists of a single Active Directory domain named www.company.com.
The www.company.com network contains a Microsoft SQL Server 2005 database server named COMPANY-DB111, which you administer at a regular interval of time.
COMPANY-DB111 contains and hosts three databases that support different types of business requirements.

The network uses the DBA database that supports internal operations including maintaining data, accounting, and mailing. The network’s regular users make use of stored
procedures for the data values that need insertion into the tables.

The stored procedures used in the network of the company are designed to access SQL variant type parameters and then use the values to build and execute ad hoc query
statements that are the part of the SQL statements. During a routine network check, you discover that there are several odd occurrences in the database.

The odd occurrences include data deleted from tables and other unauthorized activity.
You suspect a user is executing the unauthorized statements through the stored procedures.
You are required to stop the unauthorized changes while having least impact on the stored procedures that are in use. Your explanation must use the least administrative
effort.

What should you do?

The input parameters should be parsed to watch for and block any input including single quotes.

The stored procedure should be customized to use type-specific and length-restricted parameters. 

All data handling activity on the table should be audited and recorded.

The stored procedures used for the table should be replaced with ad hoc queries.

44 Multiple Choice 1/1

This question requires that you evaluate the underlined text to determine if it is correct.

The CREATE TABLE command removes one or more table definitions and all data, indexes, triggers, constraints, and permission specifications for those tables.

Instructions: Review the underlined text. If it makes the statement correct, select “No change is needed.” If the statement is incorrect, select the answer choice that makes
the statement correct

DROP TABLE 

TRUNCATE TABLE

No change is needed

ALTER TABLE

45 Multiple Choice 1/1

You execute the following statement:

SELECT EmployeeID, FirstName, DepartmentName


FROM Employee, Department

This type of operation is called a/an:

Intersection

Outer join

Cartesian product 

Equi-join

46 Multiple Choice 1/1

Which command should you use to give a user permission to read the data in a table?

GRANT SELECT 

https://app.schoology.com/course/5523776747/assessments/5523776966 14/62
11/21/22, 11:40 PM ITS Database | Schoology

ALLOW SELECT

PERMIT READ

LET READ

47 Multiple Choice 1/1

You work as a database developer for www.company.com.com.


The company has a database named www.company.com that is hosted on a SQL Server 2008 server. The database includes a table named Employees, which contains the
details of the employees.
You want to ensure that anytime any data in the Employees table is modified with an UPDATE statement, they are recorded in a table named EmployeeChanges. The
EmployeeChanges table includes columns to record what the change was, who made the change, and when they made the change.

What should you create to meet this need?

A DDL trigger that queries the inserted table

A DML trigger that queries the updated table

A DML trigger that queries the inserted table 

A DDL trigger that queries the updated table

48 Multiple Choice 1/1

Mark works as a Database Designer for Reon Inc.


He is assigned the task to create a database for the company.
He issues the following query to create the database:

CREATE DATABASE ‘24342’

What will be the output of the query?

A database will be created. 

An error will be generated stating that a database name should be a combination of numerals and alphabets.

An error will be generated stating that a database name must begin with an alphabet and all the alphabets should be in
uppercase.

An error will be generated stating that a database name must begin with an alphabet.

49 Multiple Choice 1/1

You have two tables named Cars and Color as defined below. The two tables are related by ColorId.

You run the following SQL statement: select:

https://app.schoology.com/course/5523776747/assessments/5523776966 15/62
11/21/22, 11:40 PM ITS Database | Schoology

How many rows does the SQL statement return?

3 

50 Multiple Choice 1/1

What must be included in parenthesis in an INSERT INTO .. VALUES statement?

number of columns

column types

required fields 

null values

51 Multiple Choice 1/1

Which of the following statements about external tables is true?

They can have indexes.

They can have constraints or triggers.

They cannot be written to with DML commands. 

They cannot be used in joins, views, and subqueries

52 Multiple Choice 1/1

You are writing a select statement to find every product whose name contains a specific character.
Which keyword should you use in your where clause?

INCLUDES

FIND

BETWEEN

LIKE 

53 Multiple Choice 1/1

While attending college, you accept an IT internship at a local charity. The charity needs to report on data that is related and exists in two tables.

You need to establish a relationship between the data that is in the two tables.

Which constraint should you define?

Link Key

Foreign Key 

Index Key

Default Key

https://app.schoology.com/course/5523776747/assessments/5523776966 16/62
11/21/22, 11:40 PM ITS Database | Schoology

54 Multiple Choice 1/1

You are a Database Administrator of MySQL database.


Few days back, your server crashed. Now, it is up and online.
You need to check the integrity of various tables used in the database.
You need to issue the CHECK TABLE command.

For which of the following tables will this command work? Each correct answer represents a complete solution. (Choose two.)

InnoDB 

FEDERATED

MyISAM 

MERGE

55 Matching 1/1

Instructions: For each of the following statements, select Yes if the statement is true. Otherwise, select No. Each correct selection is worth one
point.

You can delete data by using a stored procedure A Yes 

A function must have a return value B Yes 

A stored procedure must have a return value C No 

 Yes  No

56 Multiple Choice 1/1

You need to rename a column in a database table.

Which data definition language (DDL) statement should you use?

CREATE

ALTER 

UPDATE

INSERT

57 Matching 1/1

https://app.schoology.com/course/5523776747/assessments/5523776966 17/62
11/21/22, 11:40 PM ITS Database | Schoology

Instructions: For each of the following statements, select the appropriate answer choice.

The [answer choice] computer is the first line of


defense against SQL injections and weak input A client 
validation

The [answer choice] computer should be formatted with


NTFS to protect program, database and log files from B s01.constoso.com 
unauthorized access.

 client  www.contoso.com  s01.constoso.com

58 Multiple Choice 1/1

Remo works as a Database Designer for Tech Inc.


He wants to create a table named Product.
He issues the following query to create the Product table:

CREATE Product (
ProductID Char (10) NOT NULL,
OrderID Char (10) NULL
ProductName Varchar NOT NULL,
Primary key (OrderID, ProductID))

What are the errors in the above query? Each correct answer represents a complete solution. (Choose two.)

An attribute declared as a primary key cannot contain NULL values. 

Each attribute should be defined as a primary key separately.

A table cannot have two primary keys.

ProductName is declared as Varchar without specifying the width of the column. 

59 Multiple Choice 1/1

On which database structure does an insert statement operate?

Role

Stored procedure

User

Trigger

T bl 
https://app.schoology.com/course/5523776747/assessments/5523776966 18/62
11/21/22, 11:40 PM ITS Database | Schoology
Table 

60 Multiple Choice 1/1

While a clustered index is based on a __________, a nonclustered index can be based on any other field.

column

foreign key field

row

primary key field 

61 Multiple Choice 1/1

You are a database developer for a database named Customers hosted on a SQL Server 2008 server.
Recently, several customers were deleted from the Customers database.
To ensure this is not repeated in future, you have decided to create a DML trigger to prevent it.

What code will create the trigger to meet your goals? Each correct answer represents a complete solution. (Choose all that apply.)

CREATE TRIGGER trgDeleteCustomer
ON dbo.Customers
BEFORE DELETE
AS
RAISERROR(‘Customers cannot be deleted. An error has been logged’, 16, 10) WITH LOG ROLLBACK TRANSACTION

CREATE TRIGGER trgDeleteCustomer


ON dbo.Customers
AFTER DELETE
AS 
IF (SELECT COUNT(*) FROM DELETED) > 0
BEGIN
RAISERROR(‘Customers cannot be deleted. An error has been logged’, 16, 10) WITH LOG ROLLBACKTRANSACTION END

CREATE TRIGGER trgDeleteCustomer


ON dbo.Customers
AFTER DELETE
AS
IF(SELECT COUNT(*) FROM DELETED) > 1
BEGIN
RAISERROR(‘Customers cannot be deleted. An error has been logged’, 16, 10) WITH LOG ROLLBACK TRANSACTION END

CREATE TRIGGER trgDeleteCustomer


ON dbo.Customers
AFTER DELETE 
AS
RAISERROR(‘Customers cannot be deleted. An error has been logged’, 16, 10) WITH LOG ROLLBACK TRANSACTION

62 Multiple Choice 1/1

https://app.schoology.com/course/5523776747/assessments/5523776966 19/62
11/21/22, 11:40 PM ITS Database | Schoology

You accept an IT internship at a local charity. The charity asks you to keep a record of its volunteers by using a database table named Volunteer.
The table has the following columns and rows:

When volunteer information changes, you must update the table.


You need to change Tia’s name to Kimberly.
Which statement should you choose?

Option D 

Option A

Option B

Option C

63 Multiple Choice 1/1

Which statement best defines a view?

a location within a database that stores general information

a stored statement that leads one to specific information 

a location within a database that stores specific information

a stored statement that leads one to general information

64 Multiple Choice 1/1

One reason to add an index is to:

Decrease storage space.

Improve performance of select statements. 

Improve performance of insert statements.

Increase database security.

65 Multiple Choice 1/1

https://app.schoology.com/course/5523776747/assessments/5523776966 20/62
11/21/22, 11:40 PM ITS Database | Schoology

You execute the following statement:

This statement is an example of a/an:

Outer join

Cartesian product

Subquery 

Union

66 Multiple Choice 1/1

You need to store the contact information for each student in your school database. You should store each student’s information in a:

Row 

Stored procedure

Variable

Function

67 Multiple Choice 1/1

You have a table named Product. You create a view that includes all the products from the Product table that are in the Furniture category.

You execute a statement on the Product table that deletes all the products in the Furniture category.

After you execute the statement, the result set of the view is:

Archived

Deleted

Unchanged

Empty 

68 Multiple Choice 1/1

You work as a Database Administrator for DataOneWorld Inc.


Management instructs you to remove an object from the relational database management system.

Which of the following statements will you use to accomplish the task?
https://app.schoology.com/course/5523776747/assessments/5523776966 21/62
11/21/22, 11:40 PM ITS Database | Schoology
Which of the following statements will you use to accomplish the task?

CREATE

ALTER

SELECT

DROP 

69 Multiple Choice 1/1

You have a table named Customer. You need to add a new column named District. Which statement should you use?

Option C

Option A

Option D 

Option B

70 Matching 1/1

You have a database table that stores information about school attendance.
You have a data set that is defined as follows:

Match the CourseName to the StudentName.


Instructions: To answer, drag the appropriate CourseName from the column on the left to its StudentName on the right. Each CourseName may be used once, more than
once, or not at all. Each correct match is worth one point.

Brad A Reading 

https://app.schoology.com/course/5523776747/assessments/5523776966 22/62
11/21/22, 11:40 PM ITS Database | Schoology

Joe B Math 

Susan C Science 

 Geography  History  Math  Reading  Science

71 Multiple Choice 1/1

You have a table that contains product IDs and product names.
You need to write an UPDATE statement to change the name of a specific product to glass.

What should you include in the update statement?

LET ProduetName = ‘glass’

ASSIGN ProduetName = ‘glass’

EXEC ProduetName = ‘glass’

SET ProduetName = ‘glass’ 

72 Multiple Choice 1/1

You have a table named Student that contains 100 rows. Some of the rows have a NULL value in the FirstName column.
You execute the following statement:
DELETE FROM Student

What is the result?

All rows in the table will be deleted. 

You will receive an error message.

All rows containing a NULL value in the FirstName column will be deleted.

All rows and the table definition will be deleted.

73 Multiple Choice 1/1

You need to retrieve data from two related database tables based on a column that exists in both tables.
Which command should you use in a query?

JOIN 

INTERSECT

TRUNCATE

UNION

74 Multiple Choice 1/1

You have a Customer table and an Order table. You join the Customer table with the Order table by using the CustomerID column.

The results include:


. All customers and their orders
. Customers who have no orders

Which type of join do these results represent?

https://app.schoology.com/course/5523776747/assessments/5523776966 23/62
11/21/22, 11:40 PM ITS Database | Schoology
Complete join

Outer join 

Partial join

Inner join

75 Matching 1/1

Instructions: For each of the following statements, select the appropriate answer choice of the following:

StateID is a/an [answer choice] in the State table A primary key 

StateIS is a/an [answer choice] in the Address table B foreign key 

 index  union  foreign key  primary key

76 Matching 1/1

You have two database tables as defined below. The StateID column is unique in the State table. The AddressID column is unique in the Address
table. The two tables are related by the StateID column.

Each value in a field in a table must be unique A No 

Each row in a table must be unique B Yes 

Each column name in a table must unique C Yes 

 No  Yes

77 Multiple Choice 1/1

Which key uniquely identifies a row in a table?

local

primary 

superkey

foreign

78 Multiple Choice 1/1

Which of the following commands can be used to change the authorization type in DB2 9? Each correct answer represents a complete solution.
(Choose all that apply.)

RESET DATABASE CONFIGURATION

https://app.schoology.com/course/5523776747/assessments/5523776966 24/62
11/21/22, 11:40 PM ITS Database | Schoology

UPDATE DATABASE CONFIGURATION 

SET AUTHORIZATION

UPDATE DBM CFG 

79 Multiple Choice 1/1

You are writing an SQL statement to retrieve rows from a table.


Which data manipulation language (DML) command should you use?

OUTPUT

READ

GET

SELECT 

80 Multiple Choice 1/1

You have two tables named Salesperson and Sales.

You need to ensure that each record in the Sales table has a valid associated salesperson record in the Salesperson table.

Which database object should you add to the Sales table?

Nonclustered index

Foreign key 

Clustered index

Primary key

81 Multiple Choice 1/1

A named group of SQL statements that can be executed in a database is called a:

Subroutine

Formula

Method

Stored procedure 

82 Multiple Choice 1/1

Which constraint ensures a unique value in the ID column for each customer?

DISTINCT
https://app.schoology.com/course/5523776747/assessments/5523776966 25/62
11/21/22, 11:40 PM ITS Database | Schoology

FOREIGN KEY

PRIMARY KEY 

SEQUENTIAL

83 Multiple Choice 1/1

You need to populate a table named EmployeeCopy with data from an existing table named Employee.

Which statement should you use?

Option A

Option B

Option C

Option D 

84 Multiple Choice 1/1

This question requires that you evaluate the underlined text to determine if it is correct.

Views are database objects that contain all of the data in a database.

Instructions: Review the underlined text. If it makes the statement correct, select “No change is needed.” If the statement is incorrect, select the answer choice that makes
the statement correct

Queries

N h i d d
https://app.schoology.com/course/5523776747/assessments/5523776966 26/62
11/21/22, 11:40 PM ITS Database | Schoology
No change is needed

Stored procedures

Tables 

85 Multiple Choice 1/1

Which of the following is the process of creating a design for the database that will support the enterprise’s operations and objectives for the
required database system?

Application design

Database planning

Database design 

Identifying relationships between objects

86 Multiple Choice 1/1

Your class project requires that you help a charity to create a website that registers volunteers.
The website must store the following data about the volunteers:
. Given name
. Surname
. Telephone number
. Email address
You need to recommend a correct way to store the data.

What do you recommend?

Create a view that contains columns that are named given name surname, phone number, and email.

Create a table that contains columns that are named given name, surname, phone number, and email. 

Create a view that contains rows that are named given name surname, phone number, and email

Create a table that contains rows that are named given name, surname, phone number, and email.

87 Multiple Choice 1/1

You have a table named Product that contains one million rows.
You need to search for product information in the Product table by using the product’s unique ID.

What will make this type of search more efficient?

An index 

A subquery

A cursor

A trigger

88 Multiple Choice 1/1

You delete rows in a table named Order. The corresponding rows in the OrderItem table are automatically deleted. This process is an example of
a/an:

Inherited delete

Waterfall delete

Cascade delete 

https://app.schoology.com/course/5523776747/assessments/5523776966 27/62
11/21/22, 11:40 PM ITS Database | Schoology

Functional delete

Domino delete

89 Multiple Choice 1/1

John works as a Database Administrator for Bluewell Inc.


The company has a SQL Server database.

A table in the database has a candidate key and an attribute that is not a constituent of the candidate key. The non-key attribute depends upon the whole of the candidate
key rather than just a part of it.

Which of the following normal forms is represented in the scenario?

4 NF

1 NF

3 NF

2 NF 

90 Multiple Choice 1/1

Which category of SQL statements is used to add, remove, and modify database structures?

Data control language (DCL)

Data manipulation language (DML)

Data definition language (DDL) 

Data access language (DAL)

91 Multiple Choice 1/1

A database contains two tables named Customer and Order.

You execute the following statement:


DELETE FROM Order
WHERE CustomerID = 209

What is the result?

The first order for CustomerID 209 is deleted from the Order table.

All orders for CustomerID 209 are deleted from the Order table, and CustomerID 209 is deleted from the Customer table.

All orders for CustomerID 209 are deleted from the Order table. 

CustomerID 209 is deleted from the Customer table.

92 Multiple Choice 1/1

You are creating a table to store customer data. The AccountNumber column uses values that always consist of one letter and four digits.

Which data type should you use for the AccountNumber column?

BYTE

DOUBLE

SMALLINT

CHAR 

https://app.schoology.com/course/5523776747/assessments/5523776966 28/62
11/21/22, 11:40 PM ITS Database | Schoology

93 Multiple Choice 1/1

Which command should you use to add a column to an existing table?

ALTER 

UPDATE

INSERT

MODIFY

CHANGE

94 Multiple Choice 1/1

Fill in the blank with the appropriate word.


The _______________ model for database management is a database model based on first-order predicate logic.

Truncate

Relational 

Traditional

95 Multiple Choice 1/1

Before running a DELETE statement, it is always a good idea to run a(n) ____________ statement on the table that is about to be changed.

SELECT 

DROP

INSERT

UPDATE

96 Multiple Choice 1/1

You need to store product quantities, and you want to minimize the amount of storage space that is used. Which data type should you use?

FLOAT

COUNT

INTEGER 

DOUBLE

97 Multiple Choice 1/1

Mark works as a Database Administrator for VCEplus Inc.


The company has a SQL Server database.
Management instructs him to ensure that no inconsistent data is entered in the database.

Which of the following will help him to accomplish the task?

Native auditing
https://app.schoology.com/course/5523776747/assessments/5523776966 29/62
11/21/22, 11:40 PM ITS Database | Schoology
at e aud t g

Encryption

Abstraction

Authentication

Referential integrity 

98 Multiple Choice 1/1

Linda works as a Database Designer for Lion Inc.


She has been given an assignment to design the database of a publishing company.
The database has a table named Author, which has a composite key, AuthorID and TitleID. Royalty and LiteraryAgent are the other attributes.
The functional dependencies are such that AuthorID + TitleID-> Royalty (i.e. Royalty is functionally dependent on AuthorID and TitleID) and AuthorID-> LiteraryAgent (i.e.
LiteraryAgent is functionally dependent on AuthorID).

Which of the following is true about this table?

It violates 2 NF. 

It violates 4 NF.

There is no violation.

It violates 1 NF.

99 Multiple Choice 1/1

This question requires that you evaluate the underlined text to determine if it is correct.

In a database table, each column represents a unique record.

Instructions: Review the underlined text. If it makes the statement correct, select “No change is needed.” If the statement is incorrect, select the answer choice that makes
the statement correct

Table

No change is needed

Index

Row 

100 Multiple Choice 1/1

Smith works as a Database Administrator for DWorlds Inc.


The management instructs him to plan a database where identifying the key objects or entities for database management is important.

Which of the following database planning steps will help him to accomplish the task?

Object modeling

Gathering information

Object identification 

Identifying the relationships between objects

101 Multiple Choice 1/1

The component that holds information for a single entry in a table is called a:

COLUMN

https://app.schoology.com/course/5523776747/assessments/5523776966 30/62
11/21/22, 11:40 PM ITS Database | Schoology

ROW 

DATA TYPE

VIEW

102 Matching 1/1

Instructions: For each of the following statements, select Yes if the statement is true. Otherwise, select No. Each correct selection is worth one
point.

The VARCHAR data type contains only numeric


A No 
characters.

The NUMERIC data type contains only numbers that


B Yes 
have decimal places.

The INT data type contains only whole numbers C Yes 

 No  Yes

103 Matching 1/1

You have a user that has server roles as defined below:

Instructions: Use the drop-down menus to select the answer choice that completes each statement. Each correct selection is worth one point.

The user can perform [answer choice] actions on data


A unlimited 
that is on the server

https://app.schoology.com/course/5523776747/assessments/5523776966 31/62
11/21/22, 11:40 PM ITS Database | Schoology
The user can perform [answer choice] actions on
B unlimited 
database objects that are on the server.

 no  unlimited  configuration  read-only

104 Multiple Choice 1/1

One reason to create a stored procedure is to:

Give the user control of the query logic.

Bypass case sensitivity requirements.

Improve performance. 

Minimize storage space.

105 Multiple Choice 1/1

You have a table named Employee that includes four columns. You execute the following statement:
SELECT *
FROM Employee

Which columns are returned?

only the first and last columns

only the last column

all columns 

only the first column

106 Multiple Choice 1/1

Which of the following values cannot be stored in a character column defined as the primary key of a table?

'0'

'null'

null 

"

107 Multiple Choice 1/1

Consider the case of a fruit juice company.


The company manufactures fruit juices and supplies them to wholesalers.
The Database Designer creates a table named Production.

The code is given below:

1.CREATE Table Production


2.(Fruit_type VarChar,
3.Fruit_name Char(20),
4.Quantity Int(3))

https://app.schoology.com/course/5523776747/assessments/5523776966 32/62
11/21/22, 11:40 PM ITS Database | Schoology

Which of the above-mentioned lines has an error?

Line 4

Line 3

Line 2 

Line 1

108 Multiple Choice 1/1

You have a table that contains the following data.

You break the table into the following two tables.

This process is referred to as:

denormalization

defragmentation

normalization 

fragmentation

109 Multiple Choice 1/1

You need to establish a set of permissions that you can routinely assign to new users. What should you create?

List

Role 

Resource

Group

https://app.schoology.com/course/5523776747/assessments/5523776966 33/62
11/21/22, 11:40 PM ITS Database | Schoology
110 Multiple Choice 1/1

You have a database that contains 10 terabytes of data. You need to back up the database every two hours.
Which type of backup should you use?

incremental 

archive

partial

full

111 Multiple Choice 1/1

Which keyword would you use in a select statement to return rows that meet a specific condition?

ORDER BY

WHERE 

FROM

UNION

112 Multiple Choice 1/1

You have the following table definition:


CREATE TABLE Product (ProductID INTEGER, Name VARCHAR(20))
You need to insert a new product. The product’s name is Plate and the product’s ID is 12345.

Which statement should you use?

Option A

Option C

Option B

Option D 

113 Multiple Choice 1/1

This question requires that you evaluate the underlined text to determine if it is correct.

https://app.schoology.com/course/5523776747/assessments/5523776966 34/62
11/21/22, 11:40 PM ITS Database | Schoology

A view can be used to ensure referential integrity.

Instructions: Review the underlined text. If it makes the statement correct, select “No change is needed.” If the statement is incorrect, select the answer choice that makes
the statement correct

Limit access to specific rows or columns of data in a table. 

Save historical data before deleting it from the base table.

No change is needed.

Save an extra copy of data stored in a separate table.

114 Multiple Choice 1/1

You need to enable a new employee to authenticate to your database. Which command should you use?

INSERT USER

ADD USER

ALLOW USER

CREATE USER 

ALTER USER

115 Multiple Choice 1/1

What are three valid data manipulation language (DML) commands? (Choose three.)

INSERT 

OUTPUT

UPDATE 

DELETE 

COMMIT

116 Multiple Choice 1/1

This question requires that you evaluate the underlined text to determine if it is correct.

Use indexing to create, remove, or change database objects.

Instructions: Review the underlined text. If it makes the statement correct, select “No change is needed.” If the statement is incorrect, select the answer choice that makes
the statement correct.

Data definition language (DDL) statements 

No change is needed.

A unique constraint

Data manipulation language (DML) statements

117 Multiple Choice 1/1

https://app.schoology.com/course/5523776747/assessments/5523776966 35/62
11/21/22, 11:40 PM ITS Database | Schoology

The Product table contains the following data.

You execute the following statement:

SELECT COUNT(*)
FROM Product WHERE Quantity > 18

What is the value returned by this statement?

3 

118 Matching 1/1

You have a database table that stores information about school attendance.
You have a data set that is defined as follows:

You have the following requirements:


. StudentName must consist of a string of characters.
. GradeLevel must be only a whole number.
. DaysAbsent can have one number after the decimal.

Match the data types to the column names.

Instructions: To answer, drag the appropriate data type from the column on the left to its column name on the right Each data type may be used once, more than once, or
not at all. Each correct match is worth one point.

StudentName A VARCHAR 

GradeLevel B INT 

DaysAbsent C DECIMAL 

 BIT  DATETIME  DECIMAL  INT  VARCHAR  CHAR

119 Multiple Choice 1/1


https://app.schoology.com/course/5523776747/assessments/5523776966 36/62
11/21/22, 11:40 PM ITS Database | Schoology

You have a database table that contains the following columns:

You must insert the following record into the table:

Which two Structured Query Language (SQL) statements can you use? (Choose two.)

Option B 

Option A

Option C 

Option D

120 Multiple Choice 1/1

Which command removes a table from a database?

DROP TABLE 

ELIMINATE TABLE

CLEAR TABLE

DELETE TABLE
https://app.schoology.com/course/5523776747/assessments/5523776966 37/62
11/21/22, 11:40 PM ITS Database | Schoology

121 Multiple Choice 1/1

You execute a statement inside a transaction to delete 100 rows from a table. The transaction fails after only 40 rows are deleted.
What is the result in the database?

The transaction will restart.

The table will be corrupted.

Forty (40) rows will be deleted from the table.

No rows will be deleted from the table. 

122 Multiple Choice 1/1

You manage a large database named Sales.


The Sales database contains a table named OrderDetails, which is a heavily transacted table with frequent inserts.
Indexes in the table often become fragmented due to excessive page splitting.
You want to minimize the amount of fragmentation due to page splits.

What should you do?

Change the fillfactor for the indexes to 0.

Change the fillfactor for the indexes to 60. 

Change the fillfactor for the indexes to 100

Update the statistics on the indexes.

123 Matching 1/1

The following illustration shows the structure of a clustered index in a single partition:

Instructions: Use the drop-down menus to select the answer choice that completes each statement Each correct selection is worth one point.

Adding a [answer choice] on the FlightNumber column


A clustered index 
physically sorts rows in the table by FlightNumber

Adding a [answer choice] on the Airline column


retrieves data faster, but will not physically sort rows in B non-clustered index 
the table by Airline.

https://app.schoology.com/course/5523776747/assessments/5523776966 38/62
11/21/22, 11:40 PM ITS Database | Schoology

 foreign key  clustered index  non-clustered index

124 Multiple Choice 1/1

You need to combine the results of two queries into a single result that contains all of the rows from both queries.
Which Structured Query Language (SQL) statement should you use?

UNION 

TRUNCATE

EXCEPT

JOIN

125 Multiple Choice 1/1

What statement is used to change existing data?

MODIFY

CHANGE

NEW

UPDATE 

126 Multiple Choice 1/1

Which of the following scripts is used to convert Unix-type zone files into SQL statements, and loads the time zone tables in a mysql database?

mysql_time_to_sql

mysql_timezone_to_sql

mysql_tz_to_sql

mysql_tzinfo_to_sql 

127 Multiple Choice 1/1

This question requires that you evaluate the underlined text to determine if it is correct.

Use the FROM keyword in a SELECT statement to return rows that meet a specific condition.

Instructions: Review the underlined text. If it makes the statement correct, select “No change is needed.” If the statement is incorrect, select the answer choice that makes
the statement correct

WHERE 

ORDER BY

UNION

No change is needed
https://app.schoology.com/course/5523776747/assessments/5523776966 39/62
11/21/22, 11:40 PM ITS Database | Schoology

128 Multiple Choice 1/1

One error that may occur when manipulating data is a missing _______:

table

keyword 

column

query

129 Matching 1/1

You need to set up a database to provide a view of North American mammals. Match the Structured Query Language (SQL) statements to the SQL query.

Instructions: To answer, drag the appropriate SQL statement from the column on the left to its place in the SQL query on the right Each SQL statement may be used once,
more than once, or not at all. Each correct match is worth one point.

Select and Place:

A
First Code Segment CREATE VIEW [dbo]. 
[NorthAmericanMammals_View]

Second Code Segment B AS SELECT a.Id, a.Name 

Third Code Segment C FROM Animal a 

 CREATE VIEW [dbo].[NorthAmericanMammals_View]  GENERATE VIEW [dbo].[NorthAmericanMammals_View]

 AS JOIN a.Id, a.Name  AS SELECT a.Id, a.Name  FROM Animal a  JOIN Animal a

130 Multiple Choice 1/1

You accept an IT internship at a local charity. The charity has two tables in their data model named Chapter and Language, as defined below:

https://app.schoology.com/course/5523776747/assessments/5523776966 40/62
11/21/22, 11:40 PM ITS Database | Schoology

You create a third table named ChapterLanguage to relate the Chapter table and the Language table.
You need to select columns from the Chapter and Language tables to create a composite primary key for the ChapterLanguage table.

Which two columns should you select? (Choose two.)



City

LanguageId 

ChapterId 

Region

Country

LanguageName

131 Matching 1/1

Your class project requires that you help a charity set up a website.
The website collects information about volunteers. Each volunteer record must be uniquely identified.
The following information is stored for each volunteer:
Given name Surname
Date of birth
Phone number Photo

You have the following requirements:


StudentName must consist of a string of characters.

GradeLevel must be only a whole number.


DaysAbsent can have one number after the decimal.

Match the data types to the column names.


Instructions: To answer, drag the appropriate data type from the column on the left to its column name on the right Each data type may be used once, more than once, or
not at all. Each correct match is worth one point.

Your class project requires that you help a charity set up a website.
The website collects information about volunteers. Each volunteer record must be uniquely identified.
The following information is stored for each volunteer:
Given name Surname
Date of birth
Phone number Photo

You have the following requirements:


StudentName must consist of a string of characters.

GradeLevel must be only a whole number.


DaysAbsent can have one number after the decimal.

Match the data types to the column names.


Instructions: To answer, drag the appropriate data type from the column on the left to its column name on the right Each data type may be used once, more than once, or
not at all. Each correct match is worth one point.

CREATE TABLE [dbo].[Volunteer]

[Id] Code Segment 1

https://app.schoology.com/course/5523776747/assessments/5523776966 41/62
11/21/22, 11:40 PM ITS Database | Schoology

[GivenName] NCHAR(255) NULL.

[Surname] NCHAR(255) NULL,

[DateOfBirth] Code Segment 2

[PhoneNumber] NCHAR(10) NULL,

[Photo] Code Segment 3

Code Segment 1 A INT NOT NULL PRIMARY KEY, 

Code Segment 2 B DATE NULL, 

Code Segment 3 C IMAGE NULL, 

 TIMESTAMP NULL,  DATE NULL,  IMAGE NULL,  XML NULL,  INT NOT NULL PRIMARY KEY,

 INT NOT NULL FOREIGN KEY,

132 Multiple Choice 1/1

Your Company is designing and developing a number of databases for a stock exchange.
One of the databases will contain highly sensitive data for which high level of security will be required. Although high processing speed is one of the prime requirements of
the customer, for this database, security of the data will take priority over the processing speed. It needs to be ensured that even if unauthorized access to the database is
obtained, the rogue user is unable to read the data.

Which of the following protection techniques will you suggest for this database?

Encryption 

Authentication

Integrity controls

Native auditing

133 Multiple Choice 1/1

https://app.schoology.com/course/5523776747/assessments/5523776966 42/62
11/21/22, 11:40 PM ITS Database | Schoology

You need to insert two new products into the Product table. The first product is named Book and has an ID of 125. The second product is named
Movie and has an ID of 126.
Which statement should you use?

Option A

Option B 

Option D

Option C

134 Matching 1/1

The following graphic shows the components of a SQL Server application. You access the SQL Server application through Internet Explorer.

https://app.schoology.com/course/5523776747/assessments/5523776966 43/62
11/21/22, 11:40 PM ITS Database | Schoology

Instructions: Use the drop-down menus to select the answer choice that completes each statement. Each correct selection is worth one point.

A clustered index improves the performance of queries


A return large result sets 
that [answer choice].

A clustered index improves the performance of queries


B are accessed sequentially 
on columns that [answer choice].

 return large result sets  return a range of values by using the = operator  do not use ORDER BY or GROUP BY clauses

 are accessed randomly  are accessed sequentially  are not unique or contain many common values

135 Multiple Choice 1/1

What is the relationship between the foreign key and primary key? Each correct answer represents a complete solution. (Choose all that apply.)

There is no relationship between a primary key and a foreign key.

A foreign key and a primary key create a link between two entities.

A foreign key constraint works in conjunction with a primary key constraint to enforce referential integrity among related

entities.

A foreign key ties attribute(s) of an entity to the primary key of another entity, for the purpose of creating a dependency. 

136 Multiple Choice 1/1

Which of the following database terms is described in the statement below?

It prevents the current database operation from reading or writing a data item while the data item is being accessed by another operation.


Deadlock

Constraint

Lock 

Encryption

137 Multiple Choice 1/1

The terms “bitmap,” “b-tree,” and “hash” refer to which type of database structure?

Index 

Stored procedure

Trigger

View

Function

https://app.schoology.com/course/5523776747/assessments/5523776966 44/62
11/21/22, 11:40 PM ITS Database | Schoology

138 Multiple Choice 1/1

You have the database table named Cars as defined below:

You have the following Structured Query Language (SQL) statement:

How many rows are returned by the SQL statement?

4 

139 Multiple Choice 1/1

You want to recover one or more tablespaces to a point in time older than the rest of the database.
Which of the following are the recovery situations in which tablespace Point-in-Time Recovery (TSPITR) should be used?

Each correct answer represents a part of the solution. (Choose all that apply.)

To recover a DML statement that has affected only a subset of the database 

To recover a tablespace that contains rollback segments 

To recover a tablespace on a very large database.

To recover a table that has become logically corrupted 

140 Multiple Choice 1/1

In which situation do you need to perform a restore on a database?

when you encounter an error in your application

When you need to roll back a transaction

when data needs to be deleted from the database

when data becomes corrupted in the database 

https://app.schoology.com/course/5523776747/assessments/5523776966 45/62
11/21/22, 11:40 PM ITS Database | Schoology

141 Multiple Choice 1/1

You have the following table definition:

CREATE TABLE Product (ID INTEGER PRIMARY KEY, Name VARCHAR(20), Quantity INTEGER)

The Product table contains the following data.

You execute the following statement:

SELECT Name FROM Product WHERE Quantity IS NOT NULL

How many rows are returned?

3 

142 Multiple Choice 1/1

Which of the following can be used to populate a table? Each correct answer represents a complete solution. (Choose all that apply.)

Data Pump 

SQL*Loader 

INSERT statement 

MERGE statement 

143 Multiple Choice 1/1

What is one difference between an update statement and a delete statement?

A delete statement works only within a stored procedure.

An update statement can change only one row.

An update statement does not remove rows from a table. 

A delete statement cannot use a where clause.

144 Multiple Choice 1/1

Whi h f h f ll i h f i i ?E h l l i (Ch )
https://app.schoology.com/course/5523776747/assessments/5523776966 46/62
11/21/22, 11:40 PM ITS Database | Schoology
Which of the following are the types of prototyping strategies? Each correct answer represents a complete solution. (Choose two.)

Physical prototyping

Evolutionary prototyping 

Revolutionary prototyping

Requirements prototyping 

145 Multiple Choice 1/1

Which keyword can be used in a create table statement?

ORDER BY

UNIQUE 

GROUP BY

DISTINCT

146 Multiple Choice 1/1

Which of the following DML SQL statements support usage of correlated sub-queries? Each correct answer represents a complete solution.
(Choose all that apply.)

INSERT

SELECT 

DELETE 

UPDATE 

147 Multiple Choice 1/1

What statement is used to insert values into a table?

ADD INTO ... VALUES

ADD VALUES

INSERT VALUES ... INTO

INSERT INTO ... VALUES 

148 Multiple Choice 1/1

Which of the following steps in database planning helps to determine the requirements of the database through interviewing?

Gathering information 

Identifying the objects

Identifying the type of information for each object

Identifying the relationship between objects

Modeling the object

https://app.schoology.com/course/5523776747/assessments/5523776966 47/62
11/21/22, 11:40 PM ITS Database | Schoology

149 Multiple Choice 1/1

Denormalization is performed in order to:

Eliminate repeating groups.

Improve query performance. 

Reduce redundancy.

Create smaller tables.

150 Multiple Choice 0/1

You work as a Database Administrator for Bell Ceramics Inc.


An employee of the company has fired a query, including a DML statement, such as INSERT, against a table named Sales.
You notice that the DML statement has not executed.

What will you do to resolve the issue? Each correct answer represents a complete solution. (Choose two.)

Add more space to the tablespace and increase the users quota on the tablespace. 

Provide an appropriate privilege or create views on the Sales table, and grant privileges on the view. 

Provide redundant network paths from the client computer to the server along with additional listener connections on the

Oracle server and redundant network cards on the Oracle server.

Clean up all the uncommitted transactions on the Sales table.

151 Multiple Choice 1/1

You need to add rows to a database table.


Which Structured Query Language (SQL) keyword should you use?

JOIN

CREATE

INSERT 

UPDATE

152 Multiple Choice 1/1

What is the ideal time to back up dynamic log files?

When the server is shut down.

You can back up dynamic log files any time.

When the server is stopped. 

When the server is running.

153 Multiple Choice 1/1

You have a table that contains information about all students in your school.

Which SQL keyword should you use to change a student’s first name in the table?

SELECT
https://app.schoology.com/course/5523776747/assessments/5523776966 48/62
11/21/22, 11:40 PM ITS Database | Schoology
SELECT

UPDATE 

CHANGE

INSERT

154 Matching 1/1

You have a user that has server roles as defined below:

Instructions: Use the drop-down menus to select the answer choice that completes each statement. Each correct selection is worth one point.

Using the simple recovery model for database backups


provides [answer choice] work-loss exposure than the A more 
full recovery model

Using the simple recovery model for database backups


provides [answer choice] log file backups than the full B less 
recovery model

 less  more  the same

https://app.schoology.com/course/5523776747/assessments/5523776966 49/62
11/21/22, 11:40 PM ITS Database | Schoology

155 Multiple Choice 1/1

You work as a MySQL Database Administrator.


Your server crashed and it was recovered and made online within half an hour.
What will you do to ensure that the table structure and contents are in a proper state?

Perform a table optimization operation.

Perform a table repair operation.

Perform a table analysis operation.

Perform a table check operation. 

156 Multiple Choice 1/1

Which of the following provides reliable units of work that allow correct recovery from failures and keeps a database consistent even in cases of
system failure?

Database transaction 

Concurrency control

Database security

Two-phase commit

157 Multiple Choice 1/1

Which of the following is the process of extracting trails on a regular basis so that they can be transferred to a designated security system where
the database administrators do not have access?

Encryption

Native auditing 

Abstraction

Database security

158 Multiple Choice 1/1

Which of the following is a building working model of a database system?

Prototyping 

Bottom-up approach

Conceptual database design

Top-down approach

159 Multiple Choice 1/1

You need to delete a database table.


Which data definition language (DDL) keyword should you use?

ALTER

https://app.schoology.com/course/5523776747/assessments/5523776966 50/62
11/21/22, 11:40 PM ITS Database | Schoology

DROP 

TRUNCATE

DELETE

160 Multiple Choice 1/1

This question requires that you evaluate the underlined text to determine if it is correct.

Use the ALLOW SELECT command to give a user permission to read the data in a table.

Instructions: Review the underlined text. If it makes the statement correct, select “No change is needed.” If the statement is incorrect, select the answer choice that makes
the statement correct

LET HEAD

GRANT SELECT 

No change is needed

PERMIT READ

161 Multiple Choice 1/1

To change a view, with what keyword should CREATE in the CREATE VIEW command be replaced?

UPDATE

REPLACE

ALTER 

CHANGE

162 Multiple Choice 1/1

One error that may occur is attempting to retrieve data with a well-written query but against the wrong ________.

row

table

column

database 

163 Multiple Choice 1/1

What clause should always be included in an UPDATE statement?

GROUP BY

WHERE 

FROM

HAVING

https://app.schoology.com/course/5523776747/assessments/5523776966 51/62
11/21/22, 11:40 PM ITS Database | Schoology

164 Multiple Choice 1/1

Your database contains a table named Customer.


You need to delete the record from the Customer table that has a CustomerID of 12345.

Which statement should you use?

Option B

Option A

Option C

Option D 

165 Multiple Choice 1/1

In addition to taking backups of your databases, you should also backup up files stated below.
Which of these files store updates that have been made after the backup was made?

Binary log files 

My.ini

My.cnf

Master.info

166 Multiple Choice 1/1

Which of the following are DML commands? Each correct answer represents a complete solution. (Choose all that apply.)

SELECT

INSERT 

ALTER

DELETE 

SELECT INTO 

UPDATE 

167 Multiple Choice 1/1

https://app.schoology.com/course/5523776747/assessments/5523776966 52/62
11/21/22, 11:40 PM ITS Database | Schoology

Data in a database is stored in:

Stored procedures

Queries

Data types

Tables 

168 Matching 1/1

Instructions: For each of the following statements, select Yes if the statement is true. Otherwise, select No. Each correct selection is worth one
point.

A full database backup is a copy of all the data in the


A Yes 
entire database.

A transaction log backup backs up all the data in the


B No 
database

A differential backup copies only data that was changed


C No 
before the last full backup

A file or filegroup restore specified a portion of the


D Yes 
database to recover

 Yes  No

169 Multiple Choice 1/1

Which of the following is a design of the user interface and the application programs that use and process the database?

Database Planning

Application Design 

Object Modeling

Database Design

170 Multiple Choice 1/1

Mark works as a Database Administrator for DataOneWorld Inc.


Management instructs him to provide an additional security layer to the database to prevent unauthorized viewing of data with the help of an algorithm called cipher.

Which of the following will help him to accomplish the task?

Encryption 

Abstraction

https://app.schoology.com/course/5523776747/assessments/5523776966 53/62
11/21/22, 11:40 PM ITS Database | Schoology
Native auditing

Authentication

171 Multiple Choice 1/1

You work as a Database Administrator for InfoTech Inc.


The company has a database and they want you to create a design for a database that will support the enterprise’s operations and objectives.

Which of the following will you use to accomplish the task?

Requirements collection and analysis

Database design 

Application design

Database planning

172 Multiple Choice 1/1

This question requires that you evaluate the underlined text to determine if it is correct.

Use the ALTER statement to add a new table in a database.

Instructions: Review the underlined text. If it makes the statement correct, select “No change is needed.” If the statement is incorrect, select the answer choice that makes
the statement correct.

No change is needed

CREATE 

INSERT

UPDATE

173 Multiple Choice 1/1

What statement is used to copy records from an existing table to a new table?

SELECT WITHIN

INSERT INTO SELECT

SELECT

SELECT INTO 

174 Multiple Choice 1/1

You have a table named Product that contains the following data.

The ProductID column is the primary key. The CategoryID column is a foreign key to a separate table named Category.

https://app.schoology.com/course/5523776747/assessments/5523776966 54/62
11/21/22, 11:40 PM ITS Database | Schoology
You execute the following statement:
INSERT INTO Product
VALUES (3296, ‘Table’, 4444)

What is the result?

a foreign key constraint violation

a syntax error

a new row in the Product table

a primary key constraint violation 

a new row in the Category table

175 Multiple Choice 1/1

You manage a database named Exams accessed via a website.


The website is regularly accessed by users in different countries.
You are redesigning a table named History that records when users have purchased and taken online exams.
You need one of the columns in the History table to record what time of day that a user has taken an exam.
Additionally, you need this column to have time zone awareness.
What data type should you use

datetime

Use two different columns with one column of datetime, and the second column indicating the UTC offset.

datetime2

datetimeoffset 

176 Multiple Choice 1/1

Which of the following steps in database planning is used to record an object so that it is represented visually in the system?

Identifying the relationships between objects

Gathering information

Object identification

Object modeling 

177 Multiple Choice 1/1

Which of the following is used to give a default value to a column if the value for that column is unknown?

Concurrency

Transaction

DEFAULT constraint 

Nested transaction

178 Multiple Choice 1/1

Which statement deletes the rows where the employee’s phone number is not entered?

https://app.schoology.com/course/5523776747/assessments/5523776966 55/62
11/21/22, 11:40 PM ITS Database | Schoology

Option A 

Option B

Option C

Option D

179 Multiple Choice 1/1

Which statement should you use to remove a foreign key?

DELETE FOREIGN KEY

DELETE TABLE

ALTER FOREIGN KEY

ALTER TABLE 

180 Multiple Choice 1/1

You have a table named Product. The Product table has columns for ProductDescription and ProductCategory.
You need to change the ProductCategory value for all the spoons in the Product table to 43.

Which statement should you use?

https://app.schoology.com/course/5523776747/assessments/5523776966 56/62
11/21/22, 11:40 PM ITS Database | Schoology

option A 

option B

option D

option C

181 Matching 1/1

HOTSPOT
You are structuring a table in a relational database.
Instructions: For each of the following statement, select Yes if the statement is true. Otherwise, select No. Each correct selection is worth one point.

Parse the images : A Azure Cognitive Services 

Upload the data to the database B Azure Data Factory 

 Azure Bot Service  Azure Linguistic Analysis API  Azure API Apps  Azure Batch AI  Azure Functions

182 Multiple Choice 1/1

Suzanne works as a Database Designer for DataOneWorld Inc.


She is assigned the task of decomposing the components of a database, but she has to ensure that all the components are decomposed to only some extent.

Which of the following approaches will she use to accomplish the task?

Inside-out approach

Mixed approach 

Bottom-up approach

Top-down approach

183 Multiple Choice 1/1

James works as an Administrator for Softech Inc.


The company has a SQL Server 2005 computer named SQL1.
The company has six departments; Accounting, Sales, Marketing, Manufacturing, Production, and Research. The user accounts of each
department are located in a domain group named after the department. James wants to create a separate database on SQL1 for each department
which will store the department related information. Users in each department must be able to read and update data in the database belonging to
their respective departments.
No user must be able to access the database belonging to another department.
James wants to configure access to the database to meet these requirements.
What should James do to accomplish the task?

James should create a Windows Authentication login for each domain group and configure the logins as database users for
the appropriate database. Add each database user to the db_ddladmin database role.

James should create a Windows Authentication login for each domain user and configure the logins as database users for the
appropriate database. Add each database user to the db_ddladmin database role.

James should create a Windows Authentication login for each domain group and configure the logins as database users for

the appropriate database. Add each database user to the db_datareader and db_datawriter database roles.

James should create a Windows Authentication login for each domain user and configure the logins as database users for the
appropriate database. Add each database user to the db datareader and db datawriter database roles.
https://app.schoology.com/course/5523776747/assessments/5523776966 57/62
11/21/22, 11:40 PM ITS Database | Schoology
pp p _ _

184 Multiple Choice 1/1

What type of parameter must be specified when creating a stored procedure?

output 

input

number

boolean

185 Multiple Choice 1/1

You work as a Database Designer for Tritech Inc.


You are designing a table named Info.
The table contains the following attributes:

Login and Password


Name
ContactNumber Address

Each new employee joining the company is assigned an E-mail Login and Password.
This E-mail Login and Password is used by each employee to access his account on the company’s Web site.
The value of both the attributes should be unique and cannot be NULL.
You design an artificial key EmpID in the Info table to serve as a primary key.

Which of the following factors lead you to define an artificial key for use as a primary key in the Info table? Each correct answer represents a part of the solution. (Choose all
that apply.)

The natural key contains highly sensitive data 

The value of the primary key must be persistent. 

The value of the primary key cannot be NULL. 

The value of the primary key must be unique. 

186 Multiple Choice 1/1

You have the following table definition:

CREATE TABLE Road


(RoadID INTEGER NOT NULL,
Distance INTEGER NOT NULL)

The Road table contains the following data:


You execute the following statement:

INSERT INTO Road VALUES (1234, 36)

What is the result?

an error stating that duplicate IDs are not allowed

a syntax error

an error stating that NULL values are not allowed

a new row in the table 

187 Multiple Choice 1/1

Which two elements are required to define a column? (Choose two.)



A data type 

https://app.schoology.com/course/5523776747/assessments/5523776966 58/62
11/21/22, 11:40 PM ITS Database | Schoology

An Index

A name 

A key

188 Multiple Choice 1/1

Which command should you use to remove a table from a database?

DROP TABLE 

REMOVE TABLE

UPDATE TABLE

DELETE TABLE

189 Matching 1/1

Instructions: For each of the following statements, select Yes if the statement is true. Otherwise, select No. Each correct selection is worth one
point.

A SQL Server Login can use Windows Authentication A Yes 

A SQL Server Role provides permissions at the server


B Yes 
level.

A SQL Server Login is granted permission to database


C No 
views only.

 Yes  No

190 Multiple Choice 1/1

This question requires that you evaluate the underlined text to determine if it is correct. You have two tables. Each table has three rows.

Nine rows will be included in the Cartesian product of these two tables.

Instructions: Review the underlined text. If it makes the statement correct, select “No change is needed.” If the statement is incorrect, select the answer choice that makes
the statement corrector.

Three

No change is needed 

Six

Zero

https://app.schoology.com/course/5523776747/assessments/5523776966 59/62
11/21/22, 11:40 PM ITS Database | Schoology
191 Matching 1/1

Instructions: For each of the following statements, select the appropriate answer choice to each of the statements.

The use can perform [answer choice] actions on data


A unlimited 
that is on the server.

The use can perform [answer choice] actions on


B unlimited 
database objects that are on the server.

 unlimited  read-only  no  configuration

192 Multiple Choice 1/1

Which of the following commands cannot be rolled back? Each correct answer represents a complete solution. (Choose two.)

DELETE

UPDATE

TRUNCATE 

COMMIT 

193 Multiple Choice 1/1

You have a table that contains the following data.

Which database term is used to describe the relationship between ProductID and ProductCategory?

Compositional 

Cohort

Functionally dependent

Relationally dependent

Deterministic

194 Multiple Choice 1/1

Which statement will result in the creation of an index?

https://app.schoology.com/course/5523776747/assessments/5523776966 60/62
11/21/22, 11:40 PM ITS Database | Schoology

Option B

Option D

Option A 

Option C

195 Multiple Choice 1/1

You need to store product names that vary from three to 30 characters. You also need to minimize the amount of storage space that is used.

Which data type should you use?

CHAR (3, 30)

VARCHAR (3, 30)

VARCHAR (30) 

CHAR (30)

196 Multiple Choice 1/1

You have a Department table and an Employee table in your database.


You need to ensure that an employee can be assigned to only an existing department.

What should you apply to the Employee table?

A data type

A primary key

A unique constraint

A foreign key 

An index

197 Multiple Choice 1/1

Which of the following enables a user to use generic methods to access a database and to focus on the coding rather than the syntax for a specific
database API?

Native auditing

Database security

Authentication

Abstraction 

198 Multiple Choice 1/1

You need to remove a view named EmployeeView from your database. Which statement should you use?

DROP EmployeeView
https://app.schoology.com/course/5523776747/assessments/5523776966 61/62
11/21/22, 11:40 PM ITS Database | Schoology
DROP EmployeeView

DELETE EmployeeView

DROP VIEW EmployeeView 

DELETE VIEW EmployeeView

199 Multiple Choice 1/1

You need to create a view to filter rows of data from an underling table.
Which type of clause must be included in the CREATE VIEW statement?

WHERE 

FILTER

JOIN

CONSTRAINT

200 Multiple Choice 1/1

You need to store the first name, last name, and student ID for 100 students.
This information will be stored in a table as:

three items and 100 cells.

100 rows and three columns. 

100 items and three cells.

three rows and 100 columns.

https://app.schoology.com/course/5523776747/assessments/5523776966 62/62

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy