0% found this document useful (0 votes)
12 views177 pages

MYSQL-ITS-Actual_Exam-Copy

The document contains a series of questions and answers related to database management, SQL commands, and database design principles. It includes topics such as data types, database access control, backup strategies, and the relationships between database entities. Each question is followed by multiple-choice answers, allowing for assessment of knowledge in database administration and design.
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)
12 views177 pages

MYSQL-ITS-Actual_Exam-Copy

The document contains a series of questions and answers related to database management, SQL commands, and database design principles. It includes topics such as data types, database access control, backup strategies, and the relationships between database entities. Each question is followed by multiple-choice answers, allowing for assessment of knowledge in database administration and design.
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/ 177

Date: Instructors: charis barbosa, Reban Cliff Fajardo, Fe Yara

Total Score:
Student Name/ID#:
/ 100

USER SCHOOL - ITS DATABASE : SECTION 1

ITS Database

QUESTION 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

Use two different columns with one B datetimeoffset


A column of datetime, and the second
column indicating the UTC offset.

C datetime D datetime2

QUESTION 2
/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

A Tables B Queries

C No change is needed D Stored procedures

QUESTION 3
/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?

A 6 B 0

C 3 D 2

QUESTION 4
/1

Fill in the blank with the appropriate word.


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

A Traditional B Truncate

C Relational

QUESTION 5
/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 B Perform a table repair operation.


A
operation.

C Perform a table check operation. D Perform a table analysis operation.


QUESTION 6
/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 James should create a Windows


Authentication login for each domain Authentication login for each domain
group and configure the logins as user and configure the logins as
A database users for the appropriate B database users for the appropriate
database. Add each database user to database. Add each database user to
the db_datareader and db_datawriter the db_datareader and db_datawriter
database roles. database roles.

James should create a Windows James should create a Windows


Authentication login for each domain Authentication login for each domain
user and configure the logins as group and configure the logins as
C D
database users for the appropriate database users for the appropriate
database. Add each database user to database. Add each database user to
the db_ddladmin database role. the db_ddladmin database role.

QUESTION 7
/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?

Identifying relationships between B Database planning


A
objects

C Database design D Application design

QUESTION 8
/1
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> /ust/share/zoneinfo shell> mysql_tz_to_sql


A mysql_tzinfo_to_sql | mysql -u root B /ust/share/zoneinfo | mysql -u root
mysql mysql

shell> mysql_tzinfo_to_sql shell> /ust/share/zoneinfo


C /ust/share/zoneinfo | mysql -u root D mysql_tz_to_sql | mysql -u root
mysql mysal

QUESTION 9
/1

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

A When the server is running. B When the server is shut down.

You can back up dynamic log files D When the server is stopped.
C
any time.

QUESTION 10
/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 A database will be created. An error will be generated stating


that a database name must begin
B
with an alphabet and all the
alphabets should be in uppercase.

An error will be generated stating An error will be generated stating


that a database name should be a D that a database name must begin
C
combination of numerals and with an alphabet.
alphabets.
QUESTION 11
/1

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

A UPDATE B TRUNCATE

C COMMIT D DELETE

QUESTION 12
/1

Which of the following are the types of prototyping strategies? Each correct answer represents a complete solution.
(Choose two.)

A Physical prototyping B Evolutionary prototyping

C Requirements prototyping D Revolutionary prototyping

QUESTION 13
/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.)

A SELECT B INSERT

C UPDATE D DELETE

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

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


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

A foreign key ties attribute(s) of an A foreign key constraint works in


entity to the primary key of another conjunction with a primary key
C D
entity, for the purpose of creating a constraint to enforce referential
dependency. integrity among related entities.

QUESTION 15
/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 Each attribute should be defined as a


A B
key cannot contain NULL values. primary key separately.

A table cannot have two primary ProductName is declared as Varchar


C
keys. D without specifying the width of the
column.

QUESTION 16
/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 B Gathering information


A
objects

C Object identification D Object modeling


QUESTION 17
/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:

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 Run the server with the –old-
A B
option. password option.

Run the server with the –allow-old Run the server with the –enable-old
C D
option. option.

QUESTION 18
/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?

A Binary log files B My.ini

C My.cnf D Master.info

QUESTION 19
/1

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

A Prototyping B Bottom-up approach

C Conceptual database design D Top-down approach


QUESTION 20
/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?

A mysql_time_to_sql B mysql_tzinfo_to_sql

C mysql_tz_to_sql D mysql_timezone_to_sql

QUESTION 21
/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 value of the primary key must be The value of the primary key must be
A B
unique. persistent.

The value of the primary key cannot The natural key contains highly
C D
be NULL. sensitive data

QUESTION 22
/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?

A CREATE B SELECT

C ALTER D DROP

QUESTION 23
/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 B Database planning


A
analysis

C Database design D Application design

QUESTION 24
/1
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 The stored procedure should be


A parsed to watch for and block any B customized to use type-specific and
input including single quotes. length-restricted parameters.

The stored procedures used for the All data handling activity on the table
D
C table should be replaced with ad hoc should be audited and recorded.
queries.

QUESTION 25
/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?

A Abstraction B Database security

C Authentication D Native auditing

QUESTION 26
/1
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?

A Many-to-many B There is no relationship.

C One-to-one D One-to-many

QUESTION 27
/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?

A Inside-out approach B Mixed approach

C Top-down approach D Bottom-up approach

QUESTION 28
/1

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

A DEFAULT constraint B Transaction

C Concurrency D Nested transaction

QUESTION 29
/1

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

A Object Modeling B Database Design

C Application Design D Database Planning


QUESTION 30
/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?

A Authentication B Encryption

C Native auditing D Abstraction

QUESTION 31
/1

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

A '0' B 'null'

C null D "

QUESTION 32
/1

Which of the following statements about external tables is true?

A They can have indexes. They cannot be used in joins, views,


B
and subqueries

They cannot be written to with DML They can have constraints or


C D
commands. triggers.

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

A MERGE statement B Data Pump

C INSERT statement D SQL*Loader

QUESTION 34
/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.)

A FEDERATED B MyISAM

C InnoDB D MERGE

QUESTION 35
/1

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

A Inside-out approach B Middle approach

C Top-down approach D Bottom-up approach

QUESTION 36
/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?

A Native auditing B Authentication

C Encryption D Integrity controls

QUESTION 37
/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.

A Deadlock B Encryption

C Lock D Constraint

QUESTION 38
/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?

A Filtered B XML

C Non-clustered D Clustered

QUESTION 39
/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?

A Object relational data model B Network data model

C Entity-Relationship Model D Relational model

QUESTION 40
/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))

Which of the above-mentioned lines has an error?

A Line 3 B Line 2

C Line 4 D Line 1

QUESTION 41
/1

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

A Identifying the objects Identifying the relationship between


B
objects

Identifying the type of information D Modeling the object


C
for each object

E Gathering information
QUESTION 42
/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?

A Concurrency control B Database transaction

C Two-phase commit D Database security

QUESTION 43
/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?

A Application design B Logical database design

C Physical database design D Conceptual database design

QUESTION 44
/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_UNCOMMITT TRANSACTION_REPEATABLE_REA
A B
ED D

C TRANSACTION_READ_COMMITTED D TRANSACTION_SERIALIZABLE

E TRANSACTION_NONE

QUESTION 45
/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 CREATE TRIGGER


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

CREATE TRIGGER CREATE TRIGGER


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

QUESTION 46
/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?

Identifying the relationships between B Gathering information


A
objects

C Object identification D Object modeling

QUESTION 47
/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?

A 4 NF B 1 NF

C 2 NF D 3 NF

QUESTION 48
/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.)

A UPDATE DBM CFG B RESET DATABASE CONFIGURATION

UPDATE DATABASE D SET AUTHORIZATION


C
CONFIGURATION

QUESTION 49
/1

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

A SELECT INTO B INSERT

C UPDATE D SELECT

E DELETE F ALTER

QUESTION 50
/1
Which of the following statements is true about referential integrity?

It checks that no record in a child It distinguishes between null values


B
table can exist if its corresponding and zero entries.
A
record is not available in the parent
table.

It checks that no component of a It checks that the value of a primary


C primary key can have a null value D key must be consistent throughout
and no duplicate entries can exist. the life of an instance.

QUESTION 51
/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 –secure- Start the server with the –shared-
A B
auth option. memory option.

Start the server with the –disable- Start the server with the –skip-
C D
networking option. networking option.

QUESTION 52
/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?

A Update the statistics on the indexes. Change the fillfactor for the indexes
B
to 0.

Change the fillfactor for the indexes Change the fillfactor for the indexes
C D
to 100 to 60.

QUESTION 53
/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.)

Provide redundant network paths Clean up all the uncommitted


B
from the client computer to the transactions on the Sales table.
server along with additional listener
A
connections on the Oracle server
and redundant network cards on the
Oracle server.

Add more space to the tablespace Provide an appropriate privilege or


C and increase the users quota on the D create views on the Sales table, and
tablespace. grant privileges on the view.

QUESTION 54
/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?

A Abstraction B Database security

C Native auditing D Encryption

QUESTION 55
/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?

A It violates 1 NF. B It violates 4 NF.

C It violates 2 NF. D There is no violation.


QUESTION 56
/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?

A Identifying information for objects B Database planning

C Object identification Requirements collection and


D
analysis

QUESTION 57
/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 table that has become To recover a tablespace on a very


A B
logically corrupted large database.

To recover a tablespace that To recover a DML statement that has


C
contains rollback segments D affected only a subset of the
database

QUESTION 58
/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 A DML trigger that queries the
A B
inserted table inserted table

A DDL trigger that queries the A DML trigger that queries the
C D
updated table updated table
QUESTION 59
/1

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

The NOLOGGING and ONLINE Without the ONLINE keyword the


A
keywords are always used together. B index is locked for the SELECT
operation.

The NOLOGGING and ONLINE Without the ONLINE keyword the


C keywords can never be used D index is locked for any DML
together. operation.

QUESTION 60
/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?

A Referential integrity B Abstraction

C Native auditing D Authentication

E Encryption

QUESTION 61
/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

A No change is needed B INTERSECT

C ALL D JOIN
QUESTION 62
/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?

A full B partial

C incremental D archive

QUESTION 63
/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.

A a primary key B a constraint

C an index D No change is needed

QUESTION 64
/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.

A Parse the images :

B Upload the data to the database

1 Azure Cognitive Services 2 Azure Data Factory 3 Azure Bot Service

4 Azure Linguistic Analysis API 5 Azure API Apps 6 Azure Batch AI 7 Azure Functions
QUESTION 65
/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

A No change is needed B validator

C format D data type

QUESTION 66
/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?

A FILTER B WHERE

C JOIN D CONSTRAINT

QUESTION 67
/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


A
table

StateIS is a/an [answer choice] in the


B
Address table

1 index 2 union 3 foreign key 4 primary key


QUESTION 68
/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


A
Authentication

A SQL Server Role provides permissions at


B
the server level.

A SQL Server Login is granted permission to


C
database views only.

1 Yes 2 No

QUESTION 69
/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


A
procedure

B A function must have a return value

C A stored procedure must have a return value

1 Yes 2 No
QUESTION 70
/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]
A
work-loss exposure than the full recovery
model

Using the simple recovery model for


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

1 less 2 more 3 the same

QUESTION 71
/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


A
on data that is on the server.

The use can perform [answer choice] actions


B
on database objects that are on the server.

1 unlimited 2 read-only 3 no 4 configuration

QUESTION 72
/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


A
unique

B Each row in a table must be unique

C Each column name in a table must unique

1 No 2 Yes

QUESTION 73
/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 clustered index sorts and stores the data


A columns of a table or view in order, based on
the clustered index key

A non-clustered index is declined on a table


B
or view by using a clustered index or heap.

A unique index ensures that the index key


C contains no duplicate values and that every
row in the table or view is unique.

A filtered index is a clustered index that is


D optimized for queries that select a small
percentage of rows from a table.

1 No 2 Yes

QUESTION 74
/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


A
numeric characters.

The NUMERIC data type contains only


B
numbers that have decimal places.

The INT data type contains only whole


C
numbers

1 No 2 Yes
QUESTION 75
/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


A FlightNumber column physically sorts rows
in the table by FlightNumber

Adding a [answer choice] on the Airline


B column retrieves data faster, but will not
physically sort rows in the table by Airline.

1 foreign key 2 clustered index 3 non-clustered index

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

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


A
of queries that [answer choice].

A clustered index improves the performance


B
of queries on columns that [answer choice].

1 return large result sets 2 return a range of values by using the = operator

3 do not use ORDER BY or GROUP BY clauses 4 are accessed randomly 5 are accessed sequentially

6 are not unique or contain many common values

QUESTION 77
/1
Instructions: For each of the following statements, select the appropriate answer choice.

The [answer choice] computer is the first


A line of defense against SQL injections and
weak input validation

The [answer choice] computer should be


formatted with NTFS to protect program,
B
database and log files from unauthorized
access.

1 client 2 www.contoso.com 3 s01.constoso.com

QUESTION 78
/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


A
data in the entire database.

A transaction log backup backs up all the


B
data in the database

A differential backup copies only data that


C
was changed before the last full backup

A file or filegroup restore specified a portion


D
of the database to recover

1 Yes 2 No

QUESTION 79
/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

[GivenName] NCHAR(255) NULL.

[Surname] NCHAR(255) NULL,

[DateOfBirth] Code Segment 2

[PhoneNumber] NCHAR(10) NULL,

[Photo] Code Segment 3

A Code Segment 1
B Code Segment 2

C Code Segment 3

1 TIMESTAMP NULL, 2 DATE NULL, 3 IMAGE NULL, 4 XML NULL,

5 INT NOT NULL PRIMARY KEY, 6 INT NOT NULL FOREIGN KEY,

QUESTION 80
/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.

A Brad

B Joe

C Susan

1 Geography 2 History 3 Math 4 Reading 5 Science


QUESTION 81
/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

A Stored procedures B No change is needed

C Queries D Tables

QUESTION 82
/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?

A 0 B 2

C 6 D 3

QUESTION 83
/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?

A Option B B Option A

C Option C D Option D

QUESTION 84
/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.

A SELECT B INSERT

C No change is needed D REPLACE

QUESTION 85
/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.

A Attach B No Change is needed

C Commit D Restore

QUESTION 86
/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 Create a table that contains columns
A that are named given name surname, B that are named given name,
phone number, and email. surname, phone number, and email.

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

QUESTION 87
/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

A GRANT SELECT B LET HEAD

C PERMIT READ D No change is needed


QUESTION 88
/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]


A
actions on data that is on the server

The user can perform [answer choice]


B actions on database objects that are on the
server.

1 no 2 unlimited 3 configuration 4 read-only

QUESTION 89
/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 the statement correct.

A No change is needed B Indexed

C Normalized D Truncated

QUESTION 90
/1

You need to delete a database table.


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

A ALTER B DELETE

C DROP D TRUNCATE

QUESTION 91
/1

You need to add rows to a database table.


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

A JOIN B INSERT

C UPDATE D CREATE

QUESTION 92
/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?

A TRUNCATE B INTERSECT

C JOIN D UNION
QUESTION 93
/1

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.)

A Option B B Option A

C Option C D Option D

QUESTION 94
/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

A No change is needed B ALL

C INTERSECT D JOIN
QUESTION 95
/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?

A 2 B 1

C 3 D 4

QUESTION 96
/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:

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.)

A Country B ChapterId

C LanguageId D City

E Region F LanguageName

QUESTION 97
/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.

A UPDATE B CREATE

C No change is needed D INSERT

QUESTION 98
/1
You need to rename a column in a database table.

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

A INSERT B ALTER

C CREATE D UPDATE

QUESTION 99
/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.

A No change is needed. Data manipulation language (DML)


B
statements

C A unique constraint Data definition language (DDL)


D
statements

QUESTION 100
/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

A Row B Table

C Index D No change is needed

QUESTION 101
/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.

A Six B Zero

C No change is needed D Three

QUESTION 102
/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?

A Primary key B Nonclustered index

C Foreign key D Clustered index

QUESTION 103
/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.

A StudentName

B GradeLevel

C DaysAbsent

1 BIT 2 DATETIME 3 DECIMAL 4 INT 5 VARCHAR 6 CHAR

QUESTION 104
/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?

A Link Key B Index Key

C Foreign Key D Default Key

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

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 B No change is needed.


A
columns of data in a table.

Save historical data before deleting it Save an extra copy of data stored in
C D
from the base table. a separate table.

QUESTION 106
/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

B Second Code Segment

C Third Code Segment

1 CREATE VIEW [dbo].[NorthAmericanMammals_View]

2 GENERATE VIEW [dbo].[NorthAmericanMammals_View] 3 AS JOIN a.Id, a.Name

4 AS SELECT a.Id, a.Name 5 FROM Animal a 6 JOIN Animal a

QUESTION 107
/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?

A Option C B Option A

C Option D D Option B

QUESTION 108
/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.
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?

A Option D B Option B

C Option C D Option A

QUESTION 109
/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

A WHERE B No change is needed

C UNION D ORDER BY

QUESTION 110
/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?

A JOIN B TRUNCATE

C UNION D EXCEPT

QUESTION 111
/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

A DROP TABLE B TRUNCATE TABLE

C No change is needed D ALTER TABLE

QUESTION 112
/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?

A 4 B 6

C 7 D 5
QUESTION 113
/1

First normal form requires that a database excludes:

A Duplicate rows B Composite keys

C Repeating groups D Foreign keys

QUESTION 114
/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?

A The table will be corrupted. Forty (40) rows will be deleted from
B
the table.

C The transaction will restart. No rows will be deleted from the


D
table.

QUESTION 115
/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?

A EXEC ProduetName = ‘glass’ B LET ProduetName = ‘glass’

C ASSIGN ProduetName = ‘glass’ D SET ProduetName = ‘glass’

QUESTION 116
/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?

A Option D B Option B

C Option C D Option A

QUESTION 117
/1

On which database structure does an insert statement operate?

A Stored procedure B Trigger

C User D Table

E Role

QUESTION 118
/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?

A THAT B WHERE

C GROUP BY D HAVING
QUESTION 119
/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?

A Option D B Option B

C Option C D Option A

QUESTION 120
/1

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

A delegate permissions to other users. B view other users’ permissions.

C create new database users. D request a log of permission use.

QUESTION 121
/1
Which type of index changes the order in which the data is stored in a table?

A clustered B sequential

C non-sequential D non-clustered

QUESTION 122
/1

Which statement should you use to remove a foreign key?

A ALTER FOREIGN KEY B DELETE TABLE

C DELETE FOREIGN KEY D ALTER TABLE

QUESTION 123
/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:

A three items and 100 cells. B 100 items and three cells.

C 100 rows and three columns. D three rows and 100 columns.

QUESTION 124
/1

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

A OUTPUT B UPDATE

C DELETE D INSERT

E COMMIT

QUESTION 125
/1
What is one difference between an update statement and a delete statement?

An update statement can change An update statement does not


A B
only one row. remove rows from a table.

A delete statement cannot use a A delete statement works only within


C D
where clause. a stored procedure.

QUESTION 126
/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 A data type B A primary key

C A unique constraint D A foreign key

E An index

QUESTION 127
/1

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

A Option B B Option C

C Option D D Option A
QUESTION 128
/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:

A Cascade delete B Domino delete

C Functional delete D Inherited delete

E Waterfall delete

QUESTION 129
/1

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

A Option B B Option C

C Option A D Option D

QUESTION 130
/1
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?

A Option A B Option C

C Option D D Option B

QUESTION 131
/1

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

Which columns are returned?

A all columns B only the first and last columns

C only the last column D only the first column

QUESTION 132
/1
Which two elements are required to define a column? (Choose two.)

A A data type B A name

C A key D An Index

QUESTION 133
/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?

A SMALLINT B BYTE

C CHAR D DOUBLE

QUESTION 134
/1

Which keyword must be included in a create view statement?

A SELECT B UPDATE

C WHERE D ORDER BY

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

A Option B B Option A

C Option C D Option D

QUESTION 136
/1

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

A DROP VIEW EmployeeView B DELETE VIEW EmployeeView

C DROP EmployeeView D DELETE EmployeeView

QUESTION 137
/1

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

A Subroutine B Stored procedure

C Method D Formula

QUESTION 138
/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.
You execute the following statement:
INSERT INTO Product
VALUES (3296, ‘Table’, 4444)

What is the result?

A a foreign key constraint violation B a syntax error

C a new row in the Product table D a primary key constraint violation

E a new row in the Category table

QUESTION 139
/1

Denormalization is performed in order to:

A Improve query performance. B Create smaller tables.

C Reduce redundancy. D Eliminate repeating groups.

QUESTION 140
/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?

A An index B A subquery

C A trigger D A cursor

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

A Resource B Role

C List D Group

QUESTION 142
/1

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

Which statement should you use?

A Option B B Option C

C Option D D Option A

QUESTION 143
/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?

A You will receive an error message. B All rows in the table will be deleted.

All rows containing a NULL value in All rows and the table definition will
D
C the FirstName column will be be deleted.
deleted.
QUESTION 144
/1

Data in a database is stored in:

A Tables B Data types

C Stored procedures D Queries

QUESTION 145
/1

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

A Row B Variable

C Function D Stored procedure

QUESTION 146
/1

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

A Data manipulation language (DML) B Data definition language (DDL)

C Data control language (DCL) D Data access language (DAL)

QUESTION 147
/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?

A Outer join B Inner join

C Partial join D Complete join

QUESTION 148
/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?

A Option D B Option B

C Option A D Option C

QUESTION 149
/1
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?

A 2 B 3

C 4 D 1

QUESTION 150
/1

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

A DROP TABLE B REMOVE TABLE

C UPDATE TABLE D DELETE TABLE

QUESTION 151
/1

You execute the following statement:

This statement is an example of a/an:

A Subquery B Outer join

C Union D Cartesian product


QUESTION 152
/1

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

A WHERE B UNION

C FROM D ORDER BY

QUESTION 153
/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?

A INSERT B SELECT

C CHANGE D UPDATE

QUESTION 154
/1
You need to populate a table named EmployeeCopy with data from an existing table named Employee.

Which statement should you use?

A Option A B Option B

C Option C D Option D

QUESTION 155
/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?

A FIND B LIKE

C INCLUDES D BETWEEN

QUESTION 156
/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 All orders for CustomerID 209 are
A B
deleted from the Order table. deleted from the Order table.

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

QUESTION 157
/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?

A option B B option A

C option C D option D

QUESTION 158
/1
Which command should you use to add a column to an existing table?

A UPDATE B CHANGE

C ALTER D INSERT

E MODIFY

QUESTION 159
/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?

A 3 B 4

C 1 D 2

E 0

QUESTION 160
/1

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

A DISTINCT B PRIMARY KEY

C FOREIGN KEY D SEQUENTIAL

QUESTION 161
/1
The component that holds information for a single entry in a table is called a:

A COLUMN B ROW

C DATA TYPE D VIEW

QUESTION 162
/1

You execute the following statement:

SELECT EmployeeID, FirstName, DepartmentName


FROM Employee, Department

This type of operation is called a/an:

A Equi-join B Outer join

C Cartesian product D Intersection

QUESTION 163
/1

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

A Column to a table definition. B Row of data to a table.

C User to a database. D Table to a database.

QUESTION 164
/1

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


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

A SELECT B GET

C OUTPUT D READ

QUESTION 165
/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?

A CHAR (30) B VARCHAR (3, 30)

C VARCHAR (30) D CHAR (3, 30)

QUESTION 166
/1

One reason to create a stored procedure is to:

Bypass case sensitivity B Minimize storage space.


A
requirements.

C Improve performance. Give the user control of the query


D
logic.

QUESTION 167
/1

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

A RUN B ALLOW

C CALL D EXECUTE

QUESTION 168
/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:

A Deleted B Unchanged

C Archived D Empty
QUESTION 169
/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 an error stating that NULL values are
A B
not allowed not allowed

C a new row in the table D a syntax error

QUESTION 170
/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?

A INTEGER B FLOAT

C COUNT D DOUBLE

QUESTION 171
/1
Which statement will result in the creation of an index?

A Option B B Option D

C Option C D Option A

QUESTION 172
/1

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

A INSERT USER B ADD USER

C CREATE USER D ALLOW USER

E ALTER USER

QUESTION 173
/1

Which keyword can be used in a create table statement?

A DISTINCT B GROUP BY

C UNIQUE D ORDER BY

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

A PERMIT READ B ALLOW SELECT

C GRANT SELECT D LET READ

QUESTION 175
/1

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

when you encounter an error in your when data becomes corrupted in the
A B
application database

When you need to roll back a when data needs to be deleted from
C D
transaction the database

QUESTION 176
/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?

A The script fails. The Customer table exists but has


B
no data.

C The Customer data no longer exists. D The Customer table no longer exists.

QUESTION 177
/1
Which statement creates a composite key?

A Option B B Option A

C Option C D Option D

QUESTION 178
/1

Which key uniquely identifies a row in a table?

A local B foreign

C primary D superkey

QUESTION 179
/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:

A denormalization B defragmentation

C fragmentation D normalization

QUESTION 180
/1

You have a table that contains the following data.

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

A Cohort B Functionally dependent

C Relationally dependent D Compositional

E Deterministic

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

A View B Trigger

C Stored procedure D Index

E Function

QUESTION 182
/1

One reason to add an index is to:

Improve performance of select Improve performance of insert


A B
statements. statements.

C Decrease storage space. D Increase database security.

QUESTION 183
/1

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

A row B database

C column D table

QUESTION 184
/1

Which statement best defines a syntax error?

Prevents changes to a database from Causes tables to not appear correctly


A B
being completed within a database

C Prevents a table from being created D Causes a statement not to run

QUESTION 185
/1
One error that may occur when manipulating data is a missing _______:

A table B column

C keyword D query

QUESTION 186
/1

What clause should always be included in an UPDATE statement?

A WHERE B GROUP BY

C FROM D HAVING

QUESTION 187
/1

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

A column types B number of columns

C null values D required fields

QUESTION 188
/1

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

A SELECT WITHIN B SELECT

C SELECT INTO D INSERT INTO SELECT

QUESTION 189
/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.

A SELECT B INSERT

C UPDATE D DROP

QUESTION 190
/1

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

A INSERT INTO .. SELECT B SELECT INTO

C SELECT WITHIN D SELECT

QUESTION 191
/1

What keyword removes records from a table?

A DELETE B REMOVE

C DROP D CANCEL

QUESTION 192
/1

What statement is used to insert values into a table?

A ADD INTO ... VALUES B INSERT VALUES ... INTO

C ADD VALUES D INSERT INTO ... VALUES

QUESTION 193
/1
What statement is used to change existing data?

A CHANGE B NEW

C UPDATE D MODIFY

QUESTION 194
/1

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

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

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

QUESTION 195
/1

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

A column B primary key field

C foreign key field D row

QUESTION 196
/1

What is not allowed in object names in SQL?

A numbers B spaces

C special characters D symbols


QUESTION 197
/1

Which command removes a table from a database?

A CLEAR TABLE B DROP TABLE

C DELETE TABLE D ELIMINATE TABLE

QUESTION 198
/1

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

A number B output

C boolean D input

QUESTION 199
/1

Which statement best defines a view?

a stored statement that leads one to a location within a database that stores
A B
specific information general information

a location within a database that stores a stored statement that leads one to
C D
specific information general information

QUESTION 200
/1

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

A CHANGE B ALTER

C REPLACE D UPDATE
user school - ITS Database : Section 1 Instructors: charis barbosa, Reban Cliff Fajardo, Fe Yara

POSSIBLE POINTS: 200 FACTOR: X1 TEST VALUE: 100


ANSWER KEY

ITS Database
GRADING INSTRUCTIONS: Grade each question and tally the points to find the student's total points for the assessment. If the factor does not equal 1,
multiply the total points by the factor to obtain the student's final score.

QUESTION 1: MULTIPLE CHOICE

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

A datetime Use two different columns with one


B column of datetime, and the second
column indicating the UTC offset.

C datetime2 D  datetimeoffset

1 possible pt. / penalty score: 100%.

QUESTION 2: MULTIPLE CHOICE

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

A  Tables B Queries

C No change is needed D Stored procedures

1 possible pt. / penalty score: 100%.

QUESTION 3: MULTIPLE CHOICE


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?

A  3 B 6

C 2 D 0

1 possible pt. / penalty score: 100%.

Note: This question has alternate correct answers that may affect scoring. To view all possible scoring options, log into Schoology and
navigate to the correct answer setup of this question.

QUESTION 4: MULTIPLE CHOICE

Fill in the blank with the appropriate word.


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

A  Relational B Traditional

C Truncate

1 possible pt. / penalty score: 100%.

QUESTION 5: MULTIPLE CHOICE


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 B Perform a table repair operation.


A
operation.

C  Perform a table check operation. D Perform a table analysis operation.

1 possible pt. / penalty score: 100%.

QUESTION 6: MULTIPLE CHOICE

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 James should create a Windows


Authentication login for each domain Authentication login for each domain
group and configure the logins as user and configure the logins as
A B
database users for the appropriate database users for the appropriate
database. Add each database user to database. Add each database user to
the db_ddladmin database role. the db_ddladmin database role.

James should create a Windows James should create a Windows


Authentication login for each domain Authentication login for each domain
user and configure the logins as group and configure the logins as
C database users for the appropriate D  database users for the appropriate
database. Add each database user to database. Add each database user to
the db_datareader and db_datawriter the db_datareader and db_datawriter
database roles. database roles.

1 possible pt. / penalty score: 100%.

QUESTION 7: MULTIPLE CHOICE


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?

A  Database design
B
Identifying relationships between
objects

C Database planning D Application design

1 possible pt. / penalty score: 100%.

QUESTION 8: MULTIPLE CHOICE

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> /ust/share/zoneinfo shell> mysql_tz_to_sql


A mysql_tz_to_sql | mysql -u root B /ust/share/zoneinfo | mysql -u root
mysal mysql

shell> mysql_tzinfo_to_sql shell> /ust/share/zoneinfo


C  /ust/share/zoneinfo | mysql -u root D mysql_tzinfo_to_sql | mysql -u root
mysql mysql

1 possible pt. / penalty score: 100%.

QUESTION 9: MULTIPLE CHOICE

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

You can back up dynamic log files B When the server is shut down.
A
any time.

C  When the server is stopped. D When the server is running.

1 possible pt. / penalty score: 100%.


QUESTION 10: MULTIPLE CHOICE

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?

An error will be generated stating An error will be generated stating


that a database name should be a B that a database name must begin
A
combination of numerals and with an alphabet.
alphabets.

An error will be generated stating D  A database will be created.


that a database name must begin
C
with an alphabet and all the
alphabets should be in uppercase.

1 possible pt. / penalty score: 100%.

QUESTION 11: MULTIPLE CHOICE

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

A UPDATE B  COMMIT

C DELETE D  TRUNCATE

1 possible pt. / penalty score: 100%.

QUESTION 12: MULTIPLE CHOICE


Which of the following are the types of prototyping strategies? Each correct answer represents a complete solution.
(Choose two.)

A  Evolutionary prototyping B Physical prototyping

C  Requirements prototyping D Revolutionary prototyping

1 possible pt. / penalty score: 100%.

QUESTION 13: MULTIPLE CHOICE

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

A  UPDATE B  DELETE

C  SELECT D INSERT

1 possible pt. / penalty score: 100%.

QUESTION 14: MULTIPLE CHOICE

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

A foreign key constraint works in A foreign key and a primary key


B
conjunction with a primary key create a link between two entities.
A  constraint to enforce referential
integrity among related entities.

A foreign key ties attribute(s) of an There is no relationship between a


D
entity to the primary key of another primary key and a foreign key.
C  entity, for the purpose of creating a
dependency.

1 possible pt. / penalty score: 100%.


QUESTION 15: MULTIPLE CHOICE

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 Each attribute should be defined as a


A  key cannot contain NULL values.
B
primary key separately.

A table cannot have two primary ProductName is declared as Varchar


C
keys. D  without specifying the width of the
column.

1 possible pt. / penalty score: 100%.

QUESTION 16: MULTIPLE CHOICE

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 B Gathering information


A
objects

C Object identification D  Object modeling

1 possible pt. / penalty score: 100%.

QUESTION 17: MULTIPLE CHOICE


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:

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 Run the server with the –old-
A
option.
B  password option.

Run the server with the –allow-old Run the server with the –enable-old
C D
option. option.

1 possible pt. / penalty score: 100%.

QUESTION 18: MULTIPLE CHOICE

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?

A  Binary log files B My.ini

C My.cnf D Master.info

1 possible pt. / penalty score: 100%.

QUESTION 19: MULTIPLE CHOICE

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

A  Prototyping B Bottom-up approach

C Conceptual database design D Top-down approach

1 possible pt. / penalty score: 100%.


QUESTION 20: MULTIPLE CHOICE

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?

A mysql_tz_to_sql B mysql_timezone_to_sql

C  mysql_tzinfo_to_sql D mysql_time_to_sql

1 possible pt. / penalty score: 100%.

QUESTION 21: MULTIPLE CHOICE

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 value of the primary key cannot The natural key contains highly
A  be NULL.
B  sensitive data

The value of the primary key must be The value of the primary key must be
C  persistent.
D  unique.

1 possible pt. / penalty score: 100%.

QUESTION 22: MULTIPLE CHOICE


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?

A CREATE B  DROP

C ALTER D SELECT

1 possible pt. / penalty score: 100%.

QUESTION 23: MULTIPLE CHOICE

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?

A  Database design
B
Requirements collection and
analysis

C Application design D Database planning

1 possible pt. / penalty score: 100%.

QUESTION 24: MULTIPLE CHOICE


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 stored procedure should be The stored procedures used for the
A  customized to use type-specific and B table should be replaced with ad hoc
length-restricted parameters. queries.

All data handling activity on the table The input parameters should be
C
should be audited and recorded. D parsed to watch for and block any
input including single quotes.

1 possible pt. / penalty score: 100%.

QUESTION 25: MULTIPLE CHOICE

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?

A Database security B  Abstraction

C Native auditing D Authentication

1 possible pt. / penalty score: 100%.


QUESTION 26: MULTIPLE CHOICE

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?

A One-to-one B  One-to-many

C Many-to-many D There is no relationship.

1 possible pt. / penalty score: 100%.

QUESTION 27: MULTIPLE CHOICE

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?

A Top-down approach B  Mixed approach

C Inside-out approach D Bottom-up approach

1 possible pt. / penalty score: 100%.

QUESTION 28: MULTIPLE CHOICE


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

A Concurrency B Nested transaction

C Transaction D  DEFAULT constraint

1 possible pt. / penalty score: 100%.

QUESTION 29: MULTIPLE CHOICE

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

A  Application Design B Object Modeling

C Database Design D Database Planning

1 possible pt. / penalty score: 100%.

QUESTION 30: MULTIPLE CHOICE

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?

A Authentication B Native auditing

C  Encryption D Abstraction

1 possible pt. / penalty score: 100%.

QUESTION 31: MULTIPLE CHOICE


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

A 'null' B  null

C '0' D "

1 possible pt. / penalty score: 100%.

QUESTION 32: MULTIPLE CHOICE

Which of the following statements about external tables is true?

They can have constraints or They cannot be written to with DML


A
triggers.
B  commands.

They cannot be used in joins, views, D They can have indexes.


C
and subqueries

1 possible pt. / penalty score: 100%.

QUESTION 33: MULTIPLE CHOICE

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

A  MERGE statement B  INSERT statement

C  SQL*Loader D  Data Pump

1 possible pt. / penalty score: 100%.

QUESTION 34: MULTIPLE CHOICE


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.)

A MERGE B  InnoDB

C  MyISAM D FEDERATED

1 possible pt. / penalty score: 100%.

QUESTION 35: MULTIPLE CHOICE

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

A Middle approach B  Top-down approach

C  Inside-out approach D  Bottom-up approach

1 possible pt. / penalty score: 100%.

QUESTION 36: MULTIPLE CHOICE

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?

A Native auditing B  Encryption

C Integrity controls D Authentication

1 possible pt. / penalty score: 100%.


QUESTION 37: MULTIPLE CHOICE

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.

A Encryption B Deadlock

C Constraint D  Lock

1 possible pt. / penalty score: 100%.

QUESTION 38: MULTIPLE CHOICE

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?

A XML B  Filtered

C Non-clustered D Clustered

1 possible pt. / penalty score: 100%.

QUESTION 39: MULTIPLE CHOICE


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?

A Network data model B Object relational data model

C  Relational model D Entity-Relationship Model

1 possible pt. / penalty score: 100%.

QUESTION 40: MULTIPLE CHOICE

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))

Which of the above-mentioned lines has an error?

A  Line 2 B Line 4

C Line 1 D Line 3

1 possible pt. / penalty score: 100%.

QUESTION 41: MULTIPLE CHOICE


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

Identifying the type of information Identifying the relationship between


A B
for each object objects

C  Gathering information D Identifying the objects

E Modeling the object

1 possible pt. / penalty score: 100%.

QUESTION 42: MULTIPLE CHOICE

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?

A  Database transaction B Concurrency control

C Two-phase commit D Database security

1 possible pt. / penalty score: 100%.

QUESTION 43: MULTIPLE CHOICE

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?

A  Logical database design B Physical database design

C Application design D Conceptual database design

1 possible pt. / penalty score: 100%.


QUESTION 44: MULTIPLE CHOICE

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?

A  TRANSACTION_NONE B TRANSACTION_SERIALIZABLE

TRANSACTION_REPEATABLE_REA TRANSACTION_READ_UNCOMMITT
C D
D ED

E TRANSACTION_READ_COMMITTED

1 possible pt. / penalty score: 100%.

QUESTION 45: MULTIPLE CHOICE


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 CREATE TRIGGER


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

CREATE TRIGGER CREATE TRIGGER


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

1 possible pt. / penalty score: 100%.

QUESTION 46: MULTIPLE CHOICE


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?

A  Object identification B Object modeling

C Gathering information Identifying the relationships between


D
objects

1 possible pt. / penalty score: 100%.

QUESTION 47: MULTIPLE CHOICE

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?

A 1 NF B  2 NF

C 4 NF D 3 NF

1 possible pt. / penalty score: 100%.

QUESTION 48: MULTIPLE CHOICE

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.)

A  UPDATE DBM CFG B RESET DATABASE CONFIGURATION

C SET AUTHORIZATION UPDATE DATABASE


D  CONFIGURATION

1 possible pt. / penalty score: 100%.


QUESTION 49: MULTIPLE CHOICE

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

A  SELECT INTO B  INSERT

C SELECT D ALTER

E  UPDATE F  DELETE

1 possible pt. / penalty score: 100%.

QUESTION 50: MULTIPLE CHOICE

Which of the following statements is true about referential integrity?

It distinguishes between null values It checks that the value of a primary


A
and zero entries. B key must be consistent throughout
the life of an instance.

It checks that no component of a It checks that no record in a child


C primary key can have a null value table can exist if its corresponding
and no duplicate entries can exist.
D  record is not available in the parent
table.

1 possible pt. / penalty score: 100%.

QUESTION 51: MULTIPLE CHOICE


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 –secure- Start the server with the –skip-
A
auth option.
B  networking option.

Start the server with the –disable- Start the server with the –shared-
C D
networking option. memory option.

1 possible pt. / penalty score: 100%.

QUESTION 52: MULTIPLE CHOICE

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 Change the fillfactor for the indexes
A  to 60.
B
to 0.

Change the fillfactor for the indexes D Update the statistics on the indexes.
C
to 100

1 possible pt. / penalty score: 100%.

QUESTION 53: MULTIPLE CHOICE


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.)

Clean up all the uncommitted Provide an appropriate privilege or


A
transactions on the Sales table. B  create views on the Sales table, and
grant privileges on the view.

Add more space to the tablespace Provide redundant network paths


C  and increase the users quota on the from the client computer to the
tablespace. server along with additional listener
D
connections on the Oracle server
and redundant network cards on the
Oracle server.

1 possible pt. / penalty score: 100%.

QUESTION 54: MULTIPLE CHOICE

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?

A Encryption B  Native auditing

C Abstraction D Database security

1 possible pt. / penalty score: 100%.

QUESTION 55: MULTIPLE CHOICE


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?

A It violates 4 NF. B  It violates 2 NF.

C It violates 1 NF. D There is no violation.

1 possible pt. / penalty score: 100%.

QUESTION 56: MULTIPLE CHOICE

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?

A  Database planning B Object identification

C Identifying information for objects Requirements collection and


D
analysis

1 possible pt. / penalty score: 100%.

QUESTION 57: MULTIPLE CHOICE


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 To recover a tablespace on a very


B
A  affected only a subset of the large database.
database

To recover a table that has become To recover a tablespace that


C  logically corrupted
D  contains rollback segments

1 possible pt. / penalty score: 100%.

QUESTION 58: MULTIPLE CHOICE

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 DML trigger that queries the A DDL trigger that queries the
A B
updated table updated table

A DML trigger that queries the A DDL trigger that queries the
C  inserted table
D
inserted table

1 possible pt. / penalty score: 100%.

QUESTION 59: MULTIPLE CHOICE


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

Without the ONLINE keyword the The NOLOGGING and ONLINE


A index is locked for the SELECT B keywords can never be used
operation. together.

The NOLOGGING and ONLINE Without the ONLINE keyword the


C
keywords are always used together. D  index is locked for any DML
operation.

1 possible pt. / penalty score: 100%.

QUESTION 60: MULTIPLE CHOICE

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?

A Abstraction B Authentication

C Encryption D Native auditing

E  Referential integrity

1 possible pt. / penalty score: 100%.

QUESTION 61: MULTIPLE CHOICE

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

A  INTERSECT B ALL

C No change is needed D JOIN

1 possible pt. / penalty score: 100%.


QUESTION 62: MULTIPLE CHOICE

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?

A  incremental B archive

C partial D full

1 possible pt. / penalty score: 100%.

QUESTION 63: MULTIPLE CHOICE

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.

A No change is needed B an index

C  a constraint D a primary key

1 possible pt. / penalty score: 100%.

QUESTION 64: MATCHING


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.

A Parse the images :

B Upload the data to the database

Correct answers:

1 Azure Cognitive Services 2 Azure Data Factory

1 possible pt. / penalty score: 2%.

QUESTION 65: MULTIPLE CHOICE

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

A format B No change is needed

C validator D  data type

1 possible pt. / penalty score: 100%.

QUESTION 66: MULTIPLE CHOICE


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?

A FILTER B CONSTRAINT

C  WHERE D JOIN

1 possible pt. / penalty score: 100%.

QUESTION 67: MATCHING

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

StateID is a/an [answer choice] in the State


A
table

StateIS is a/an [answer choice] in the


B
Address table

Correct answers:

1 primary key 2 foreign key

1 possible pt. / partial credit

QUESTION 68: MATCHING


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


A
Authentication

A SQL Server Role provides permissions at


B
the server level.

A SQL Server Login is granted permission to


C
database views only.

Correct answers:

1 Yes 2 Yes 3 No

1 possible pt.

QUESTION 69: MATCHING

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


A
procedure

B A function must have a return value

C A stored procedure must have a return value

Correct answers:

1 Yes 2 Yes 3 No

1 possible pt. / partial credit


QUESTION 70: MATCHING

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]
A
work-loss exposure than the full recovery
model

Using the simple recovery model for


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

Correct answers:

1 more 2 less

1 possible pt. / partial credit

QUESTION 71: MATCHING


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

The use can perform [answer choice] actions


A
on data that is on the server.

The use can perform [answer choice] actions


B
on database objects that are on the server.

Correct answers:

1 unlimited 2 unlimited

1 possible pt.

QUESTION 72: MATCHING

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


A
unique

B Each row in a table must be unique

C Each column name in a table must unique

Correct answers:

1 No 2 Yes 3 Yes

1 possible pt. / partial credit


QUESTION 73: MATCHING

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


A columns of a table or view in order, based on
the clustered index key

A non-clustered index is declined on a table


B
or view by using a clustered index or heap.

A unique index ensures that the index key


C contains no duplicate values and that every
row in the table or view is unique.

A filtered index is a clustered index that is


D optimized for queries that select a small
percentage of rows from a table.

Correct answers:

1 No 2 Yes 3 Yes 4 No

1 possible pt. / partial credit

QUESTION 74: MATCHING


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


A
numeric characters.

The NUMERIC data type contains only


B
numbers that have decimal places.

The INT data type contains only whole


C
numbers

Correct answers:

1 No 2 Yes 3 Yes

1 possible pt. / partial credit

QUESTION 75: MATCHING


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


A FlightNumber column physically sorts rows
in the table by FlightNumber

Adding a [answer choice] on the Airline


B column retrieves data faster, but will not
physically sort rows in the table by Airline.

Correct answers:

1 clustered index 2 non-clustered index

1 possible pt. / partial credit

QUESTION 76: MATCHING


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

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


A
of queries that [answer choice].

A clustered index improves the performance


B
of queries on columns that [answer choice].

Correct answers:

1 return large result sets 2 are accessed sequentially

1 possible pt. / partial credit

QUESTION 77: MATCHING


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

The [answer choice] computer is the first


A line of defense against SQL injections and
weak input validation

The [answer choice] computer should be


formatted with NTFS to protect program,
B
database and log files from unauthorized
access.

Correct answers:

1 client 2 s01.constoso.com

1 possible pt. / partial credit

QUESTION 78: MATCHING


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


A
data in the entire database.

A transaction log backup backs up all the


B
data in the database

A differential backup copies only data that


C
was changed before the last full backup

A file or filegroup restore specified a portion


D
of the database to recover

Correct answers:

1 Yes 2 No 3 No 4 Yes

1 possible pt. / partial credit

QUESTION 79: MATCHING


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

[GivenName] NCHAR(255) NULL.

[Surname] NCHAR(255) NULL,

[DateOfBirth] Code Segment 2

[PhoneNumber] NCHAR(10) NULL,

[Photo] Code Segment 3

A Code Segment 1
B Code Segment 2

C Code Segment 3

Correct answers:

1 INT NOT NULL PRIMARY KEY, 2 DATE NULL, 3 IMAGE NULL,

1 possible pt. / partial credit

QUESTION 80: MATCHING


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.

A Brad

B Joe

C Susan

Correct answers:

1 Reading 2 Math 3 Science

1 possible pt. / partial credit

QUESTION 81: MULTIPLE CHOICE


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

A Stored procedures B  Tables

C No change is needed D Queries

1 possible pt. / penalty score: 100%.

QUESTION 82: MULTIPLE CHOICE

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?

A  3 B 2

C 6 D 0

1 possible pt. / penalty score: 100%.

QUESTION 83: MULTIPLE CHOICE


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?

A  Option A B Option C

C Option B D Option D

1 possible pt. / penalty score: 100%.

QUESTION 84: MULTIPLE CHOICE

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.

A INSERT B  SELECT

C No change is needed D REPLACE

1 possible pt. / penalty score: 100%.

QUESTION 85: MULTIPLE CHOICE


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.

A Commit B No Change is needed

C Attach D  Restore

1 possible pt. / penalty score: 100%.

QUESTION 86: MULTIPLE CHOICE

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 table that contains columns Create a view that contains columns
A  that are named given name, B that are named given name surname,
surname, phone number, and email. phone number, and email.

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

1 possible pt. / penalty score: 100%.

QUESTION 87: MULTIPLE CHOICE


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

A  GRANT SELECT B LET HEAD

C PERMIT READ D No change is needed

1 possible pt. / penalty score: 100%.

QUESTION 88: MATCHING


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]


A
actions on data that is on the server

The user can perform [answer choice]


B actions on database objects that are on the
server.

Correct answers:

1 unlimited 2 unlimited

1 possible pt. / partial credit

QUESTION 89: MULTIPLE CHOICE


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 the statement correct.

A  No change is needed B Indexed

C Truncated D Normalized

1 possible pt. / penalty score: 100%.

QUESTION 90: MULTIPLE CHOICE

You need to delete a database table.


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

A DELETE B ALTER

C  DROP D TRUNCATE

1 possible pt. / penalty score: 100%.

QUESTION 91: MULTIPLE CHOICE

You need to add rows to a database table.


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

A JOIN B CREATE

C UPDATE D  INSERT

1 possible pt. / penalty score: 100%.

QUESTION 92: MULTIPLE CHOICE


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?

A UNION B INTERSECT

C TRUNCATE D  JOIN

1 possible pt. / penalty score: 100%.

QUESTION 93: MULTIPLE CHOICE

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.)

A Option A B Option D

C  Option B D  Option C

1 possible pt. / partial credit/ penalty score: 100%.

QUESTION 94: MULTIPLE CHOICE


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

A JOIN B No change is needed

C ALL D  INTERSECT

1 possible pt. / penalty score: 100%.

QUESTION 95: MULTIPLE CHOICE

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?

A 2 B 4

C 1 D  3

1 possible pt. / penalty score: 100%.

QUESTION 96: MULTIPLE CHOICE


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:

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.)

A City B  ChapterId

C Country D Region

E LanguageName F  LanguageId

1 possible pt. / penalty score: 100%.

QUESTION 97: MULTIPLE CHOICE

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.

A No change is needed B UPDATE

C INSERT D  CREATE

1 possible pt. / penalty score: 100%.


QUESTION 98: MULTIPLE CHOICE

You need to rename a column in a database table.

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

A INSERT B UPDATE

C CREATE D  ALTER

1 possible pt. / penalty score: 100%.

QUESTION 99: MULTIPLE CHOICE

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.

A No change is needed. B A unique constraint

Data manipulation language (DML) Data definition language (DDL)


C
statements
D  statements

1 possible pt. / penalty score: 100%.

QUESTION 100: MULTIPLE CHOICE


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

A  Row B Index

C Table D No change is needed

1 possible pt. / penalty score: 100%.

QUESTION 101: MULTIPLE CHOICE

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.

A Zero B Six

C Three D  No change is needed

1 possible pt. / penalty score: 100%.

QUESTION 102: MULTIPLE CHOICE


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?

A Nonclustered index B  Foreign key

C Clustered index D Primary key

1 possible pt. / penalty score: 100%.

QUESTION 103: MATCHING


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.

A StudentName

B GradeLevel

C DaysAbsent

Correct answers:

1 VARCHAR 2 INT 3 DECIMAL

1 possible pt. / partial credit

QUESTION 104: MULTIPLE CHOICE


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?

A Link Key B  Foreign Key

C Default Key D Index Key

1 possible pt. / penalty score: 100%.

QUESTION 105: MULTIPLE CHOICE

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

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 Save an extra copy of data stored in


A  columns of data in a table.
B
a separate table.

Save historical data before deleting it D No change is needed.


C
from the base table.

1 possible pt. / penalty score: 100%.

QUESTION 106: MATCHING


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

B Second Code Segment

C Third Code Segment

Correct answers:

1 CREATE VIEW [dbo].[NorthAmericanMammals_View] 2 AS SELECT a.Id, a.Name

3 FROM Animal a

1 possible pt. / partial credit

QUESTION 107: MULTIPLE CHOICE


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?

A Option C B Option D

C  Option A D Option B

1 possible pt. / penalty score: 100%.

QUESTION 108: MULTIPLE CHOICE


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?

A Option C B Option B

C Option A D  Option D

1 possible pt. / penalty score: 100%.

QUESTION 109: MULTIPLE CHOICE

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

A ORDER BY B UNION

C No change is needed D  WHERE

1 possible pt. / penalty score: 100%.


QUESTION 110: MULTIPLE CHOICE

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?

A JOIN B TRUNCATE

C EXCEPT D  UNION

1 possible pt. / penalty score: 100%.

QUESTION 111: MULTIPLE CHOICE

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

A  DROP TABLE B ALTER TABLE

C No change is needed D TRUNCATE TABLE

1 possible pt. / penalty score: 100%.

QUESTION 112: MULTIPLE CHOICE


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?

A 5 B 6

C 7 D  4

1 possible pt. / penalty score: 100%.

QUESTION 113: MULTIPLE CHOICE

First normal form requires that a database excludes:

A Foreign keys B Duplicate rows

C Composite keys D  Repeating groups

1 possible pt. / penalty score: 100%.

QUESTION 114: MULTIPLE CHOICE


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?

A The table will be corrupted. B The transaction will restart.

Forty (40) rows will be deleted from No rows will be deleted from the
C
the table.
D  table.

1 possible pt. / penalty score: 100%.

QUESTION 115: MULTIPLE CHOICE

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?

A  SET ProduetName = ‘glass’ B LET ProduetName = ‘glass’

C EXEC ProduetName = ‘glass’ D ASSIGN ProduetName = ‘glass’

1 possible pt. / penalty score: 100%.

QUESTION 116: MULTIPLE CHOICE


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?

A Option C B  Option D

C Option A D Option B

1 possible pt. / penalty score: 100%.

QUESTION 117: MULTIPLE CHOICE

On which database structure does an insert statement operate?

A Stored procedure B Role

C User D Trigger

E  Table

1 possible pt. / penalty score: 100%.

QUESTION 118: MULTIPLE CHOICE


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?

A THAT B HAVING

C GROUP BY D  WHERE

1 possible pt. / penalty score: 100%.

QUESTION 119: MULTIPLE CHOICE

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?

A Option A B  Option D

C Option C D Option B

1 possible pt. / penalty score: 100%.

QUESTION 120: MULTIPLE CHOICE


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

A view other users’ permissions. B request a log of permission use.

C  delegate permissions to other users. D create new database users.

1 possible pt. / penalty score: 100%.

QUESTION 121: MULTIPLE CHOICE

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

A non-clustered B non-sequential

C sequential D  clustered

1 possible pt. / penalty score: 100%.

QUESTION 122: MULTIPLE CHOICE

Which statement should you use to remove a foreign key?

A DELETE FOREIGN KEY B DELETE TABLE

C ALTER FOREIGN KEY D  ALTER TABLE

1 possible pt. / penalty score: 100%.

QUESTION 123: MULTIPLE CHOICE


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

A  100 rows and three columns. B three rows and 100 columns.

C three items and 100 cells. D 100 items and three cells.

1 possible pt. / penalty score: 100%.

QUESTION 124: MULTIPLE CHOICE

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

A  INSERT B  DELETE

C  UPDATE D COMMIT

E OUTPUT

1 possible pt. / penalty score: 100%.

QUESTION 125: MULTIPLE CHOICE

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

An update statement does not A delete statement works only within


A  remove rows from a table.
B
a stored procedure.

A delete statement cannot use a An update statement can change


C D
where clause. only one row.

1 possible pt. / penalty score: 100%.

QUESTION 126: MULTIPLE CHOICE


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 A data type B A primary key

C A unique constraint D  A foreign key

E An index

1 possible pt. / penalty score: 100%.

QUESTION 127: MULTIPLE CHOICE

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

A  Option A B Option D

C Option C D Option B

1 possible pt. / penalty score: 100%.

QUESTION 128: MULTIPLE CHOICE


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:

A Functional delete B Inherited delete

C  Cascade delete D Waterfall delete

E Domino delete

1 possible pt. / penalty score: 100%.

QUESTION 129: MULTIPLE CHOICE

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

A Option D B  Option A

C Option B D Option C

1 possible pt. / penalty score: 100%.

QUESTION 130: MULTIPLE CHOICE


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?

A Option C B  Option B

C Option D D Option A

1 possible pt. / penalty score: 100%.

QUESTION 131: MULTIPLE CHOICE

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

Which columns are returned?

A only the last column B only the first column

C  all columns D only the first and last columns

1 possible pt. / penalty score: 100%.


QUESTION 132: MULTIPLE CHOICE

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

A  A name B An Index

C  A data type D A key

1 possible pt. / penalty score: 100%.

QUESTION 133: MULTIPLE CHOICE

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?

A SMALLINT B  CHAR

C DOUBLE D BYTE

1 possible pt. / penalty score: 100%.

QUESTION 134: MULTIPLE CHOICE

Which keyword must be included in a create view statement?

A UPDATE B  SELECT

C ORDER BY D WHERE

1 possible pt. / penalty score: 100%.


QUESTION 135: MULTIPLE CHOICE

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

A Option C B Option A

C Option B D  Option D

1 possible pt. / penalty score: 100%.

QUESTION 136: MULTIPLE CHOICE

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

A DROP EmployeeView B DELETE EmployeeView

C DELETE VIEW EmployeeView D  DROP VIEW EmployeeView

1 possible pt. / penalty score: 100%.

QUESTION 137: MULTIPLE CHOICE


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

A Subroutine B Method

C Formula D  Stored procedure

1 possible pt. / penalty score: 100%.

QUESTION 138: MULTIPLE CHOICE

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.
You execute the following statement:
INSERT INTO Product
VALUES (3296, ‘Table’, 4444)

What is the result?

A a foreign key constraint violation B a syntax error

C a new row in the Product table D  a primary key constraint violation

E a new row in the Category table

1 possible pt. / penalty score: 100%.

QUESTION 139: MULTIPLE CHOICE

Denormalization is performed in order to:

A  Improve query performance. B Create smaller tables.

C Eliminate repeating groups. D Reduce redundancy.

1 possible pt. / penalty score: 100%.


QUESTION 140: MULTIPLE CHOICE

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?

A A cursor B A trigger

C A subquery D  An index

1 possible pt. / penalty score: 100%.

QUESTION 141: MULTIPLE CHOICE

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

A Group B  Role

C Resource D List

1 possible pt. / penalty score: 100%.

QUESTION 142: MULTIPLE CHOICE


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

Which statement should you use?

A Option D B  Option C

C Option B D Option A

1 possible pt. / penalty score: 100%.

QUESTION 143: MULTIPLE CHOICE

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?

A  All rows in the table will be deleted. All rows containing a NULL value in
B the FirstName column will be
deleted.

C You will receive an error message. All rows and the table definition will
D
be deleted.

1 possible pt. / penalty score: 100%.

QUESTION 144: MULTIPLE CHOICE


Data in a database is stored in:

A Data types B Queries

C  Tables D Stored procedures

1 possible pt. / penalty score: 100%.

QUESTION 145: MULTIPLE CHOICE

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

A Function B Stored procedure

C  Row D Variable

1 possible pt. / penalty score: 100%.

QUESTION 146: MULTIPLE CHOICE

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

A Data access language (DAL) B  Data definition language (DDL)

C Data manipulation language (DML) D Data control language (DCL)

1 possible pt. / penalty score: 100%.

QUESTION 147: MULTIPLE CHOICE


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?

A  Outer join B Complete join

C Inner join D Partial join

1 possible pt. / penalty score: 100%.

QUESTION 148: MULTIPLE CHOICE

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?

A  Option D B Option A

C Option B D Option C

1 possible pt. / penalty score: 100%.


QUESTION 149: MULTIPLE CHOICE

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?

A 1 B 4

C  3 D 2

1 possible pt. / penalty score: 100%.

QUESTION 150: MULTIPLE CHOICE

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

A DELETE TABLE B REMOVE TABLE

C UPDATE TABLE D  DROP TABLE

1 possible pt. / penalty score: 100%.

QUESTION 151: MULTIPLE CHOICE


You execute the following statement:

This statement is an example of a/an:

A  Subquery B Union

C Cartesian product D Outer join

1 possible pt. / penalty score: 100%.

QUESTION 152: MULTIPLE CHOICE

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

A ORDER BY B UNION

C  WHERE D FROM

1 possible pt. / penalty score: 100%.

QUESTION 153: MULTIPLE CHOICE

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?

A SELECT B  UPDATE

C INSERT D CHANGE

1 possible pt. / penalty score: 100%.


QUESTION 154: MULTIPLE CHOICE

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

Which statement should you use?

A Option A B Option B

C Option C D  Option D

1 possible pt. / penalty score: 100%.

QUESTION 155: MULTIPLE CHOICE

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?

A  LIKE B FIND

C INCLUDES D BETWEEN

1 possible pt. / penalty score: 100%.


QUESTION 156: MULTIPLE CHOICE

A database contains two tables named Customer and Order.

You execute the following statement:


DELETE FROM Order
WHERE CustomerID = 209

What is the result?

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

The first order for CustomerID 209 is All orders for CustomerID 209 are
C
deleted from the Order table.
D  deleted from the Order table.

1 possible pt. / penalty score: 100%.

QUESTION 157: MULTIPLE CHOICE


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?

A  option A B option B

C option D D option C

1 possible pt. / penalty score: 100%.

QUESTION 158: MULTIPLE CHOICE

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

A MODIFY B CHANGE

C INSERT D UPDATE

E  ALTER

1 possible pt. / penalty score: 100%.

QUESTION 159: MULTIPLE CHOICE


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?

A 1 B 4

C 2 D 0

E  3

1 possible pt. / penalty score: 100%.

QUESTION 160: MULTIPLE CHOICE

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

A DISTINCT B FOREIGN KEY

C  PRIMARY KEY D SEQUENTIAL

1 possible pt. / penalty score: 100%.

QUESTION 161: MULTIPLE CHOICE


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

A DATA TYPE B COLUMN

C VIEW D  ROW

1 possible pt. / penalty score: 100%.

QUESTION 162: MULTIPLE CHOICE

You execute the following statement:

SELECT EmployeeID, FirstName, DepartmentName


FROM Employee, Department

This type of operation is called a/an:

A Equi-join B  Cartesian product

C Intersection D Outer join

1 possible pt. / penalty score: 100%.

QUESTION 163: MULTIPLE CHOICE

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

A  Row of data to a table. B Table to a database.

C Column to a table definition. D User to a database.

1 possible pt. / penalty score: 100%.

QUESTION 164: MULTIPLE CHOICE


You are writing an SQL statement to retrieve rows from a table.
Which data manipulation language (DML) command should you use?

A GET B READ

C OUTPUT D  SELECT

1 possible pt. / penalty score: 100%.

QUESTION 165: MULTIPLE CHOICE

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?

A CHAR (30) B VARCHAR (3, 30)

C  VARCHAR (30) D CHAR (3, 30)

1 possible pt. / penalty score: 100%.

QUESTION 166: MULTIPLE CHOICE

One reason to create a stored procedure is to:

A
Give the user control of the query B  Improve performance.
logic.

C Minimize storage space. Bypass case sensitivity


D
requirements.

1 possible pt. / penalty score: 100%.

QUESTION 167: MULTIPLE CHOICE


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

A RUN B  EXECUTE

C CALL D ALLOW

1 possible pt. / penalty score: 100%.

QUESTION 168: MULTIPLE CHOICE

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:

A Unchanged B  Empty

C Deleted D Archived

1 possible pt. / penalty score: 100%.

QUESTION 169: MULTIPLE CHOICE


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?

A
an error stating that NULL values are B  a new row in the table
not allowed

C a syntax error an error stating that duplicate IDs are


D
not allowed

1 possible pt. / penalty score: 100%.

QUESTION 170: MULTIPLE CHOICE

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?

A FLOAT B COUNT

C  INTEGER D DOUBLE

1 possible pt. / penalty score: 100%.

QUESTION 171: MULTIPLE CHOICE


Which statement will result in the creation of an index?

A Option D B Option C

C Option B D  Option A

1 possible pt. / penalty score: 100%.

QUESTION 172: MULTIPLE CHOICE

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

A ADD USER B  CREATE USER

C ALTER USER D INSERT USER

E ALLOW USER

1 possible pt. / penalty score: 100%.

QUESTION 173: MULTIPLE CHOICE


Which keyword can be used in a create table statement?

A ORDER BY B GROUP BY

C  UNIQUE D DISTINCT

1 possible pt. / penalty score: 100%.

QUESTION 174: MULTIPLE CHOICE

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

A  GRANT SELECT B LET READ

C ALLOW SELECT D PERMIT READ

1 possible pt. / penalty score: 100%.

QUESTION 175: MULTIPLE CHOICE

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

when data needs to be deleted from When you need to roll back a
A B
the database transaction

when you encounter an error in your when data becomes corrupted in the
C
application
D  database

1 possible pt. / penalty score: 100%.

QUESTION 176: MULTIPLE CHOICE


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?

A The Customer data no longer exists. B The script fails.

C  The Customer table no longer exists.


D
The Customer table exists but has
no data.

1 possible pt. / penalty score: 100%.

QUESTION 177: MULTIPLE CHOICE

Which statement creates a composite key?

A Option A B Option C

C  Option D D Option B

1 possible pt. / penalty score: 100%.


QUESTION 178: MULTIPLE CHOICE

Which key uniquely identifies a row in a table?

A foreign B  primary

C local D superkey

1 possible pt. / penalty score: 100%.

QUESTION 179: MULTIPLE CHOICE

You have a table that contains the following data.

You break the table into the following two tables.

This process is referred to as:

A  normalization B denormalization

C fragmentation D defragmentation

1 possible pt. / penalty score: 100%.

QUESTION 180: MULTIPLE CHOICE


You have a table that contains the following data.

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

A Relationally dependent B Deterministic

C Cohort D Functionally dependent

E  Compositional

1 possible pt. / penalty score: 100%.

QUESTION 181: MULTIPLE CHOICE

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

A  Index B Stored procedure

C View D Trigger

E Function

1 possible pt. / penalty score: 100%.

QUESTION 182: MULTIPLE CHOICE

One reason to add an index is to:

A Increase database security. B Decrease storage space.

Improve performance of insert Improve performance of select


C
statements.
D  statements.

1 possible pt. / penalty score: 100%.


QUESTION 183: MULTIPLE CHOICE

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

A  database B row

C table D column

1 possible pt. / penalty score: 100%.

QUESTION 184: MULTIPLE CHOICE

Which statement best defines a syntax error?

A
Causes tables to not appear correctly B  Causes a statement not to run
within a database

C Prevents a table from being created Prevents changes to a database from


D
being completed

1 possible pt. / penalty score: 100%.

QUESTION 185: MULTIPLE CHOICE

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

A column B  keyword

C query D table

1 possible pt. / penalty score: 100%.


QUESTION 186: MULTIPLE CHOICE

What clause should always be included in an UPDATE statement?

A GROUP BY B FROM

C  WHERE D HAVING

1 possible pt. / penalty score: 100%.

QUESTION 187: MULTIPLE CHOICE

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

A  required fields B column types

C null values D number of columns

1 possible pt. / penalty score: 100%.

QUESTION 188: MULTIPLE CHOICE

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

A INSERT INTO SELECT B SELECT

C  SELECT INTO D SELECT WITHIN

1 possible pt. / penalty score: 100%.

QUESTION 189: MULTIPLE CHOICE


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.

A UPDATE B  SELECT

C INSERT D DROP

1 possible pt. / penalty score: 100%.

QUESTION 190: MULTIPLE CHOICE

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

A SELECT B  INSERT INTO .. SELECT

C SELECT INTO D SELECT WITHIN

1 possible pt. / penalty score: 100%.

QUESTION 191: MULTIPLE CHOICE

What keyword removes records from a table?

A  DELETE B DROP

C REMOVE D CANCEL

1 possible pt. / penalty score: 100%.

QUESTION 192: MULTIPLE CHOICE


What statement is used to insert values into a table?

A ADD VALUES B ADD INTO ... VALUES

C INSERT VALUES ... INTO D  INSERT INTO ... VALUES

1 possible pt. / penalty score: 100%.

QUESTION 193: MULTIPLE CHOICE

What statement is used to change existing data?

A  UPDATE B MODIFY

C NEW D CHANGE

1 possible pt. / penalty score: 100%.

QUESTION 194: MULTIPLE CHOICE

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

One can identify specific records that One can identify specific records that
are being deleted with a DELETE are being deleted with a DELETE
A statement, while a TRUNCATE TABLE
B  statement, while a TRUNCATE TABLE
statement allows one to delete specific statement deletes all data in a table
characters in a record

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

1 possible pt. / penalty score: 100%.


QUESTION 195: MULTIPLE CHOICE

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

A  primary key field B foreign key field

C column D row

1 possible pt. / penalty score: 100%.

QUESTION 196: MULTIPLE CHOICE

What is not allowed in object names in SQL?

A special characters B  spaces

C symbols D numbers

1 possible pt. / penalty score: 100%.

QUESTION 197: MULTIPLE CHOICE

Which command removes a table from a database?

A ELIMINATE TABLE B  DROP TABLE

C DELETE TABLE D CLEAR TABLE

1 possible pt. / penalty score: 100%.

QUESTION 198: MULTIPLE CHOICE


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

A number B  output

C boolean D input

1 possible pt. / penalty score: 100%.

QUESTION 199: MULTIPLE CHOICE

Which statement best defines a view?

a location within a database that stores a location within a database that stores
A B
general information specific information

a stored statement that leads one to a stored statement that leads one to
C  specific information
D
general information

1 possible pt. / penalty score: 100%.

QUESTION 200: MULTIPLE CHOICE

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

A REPLACE B UPDATE

C  ALTER D CHANGE

1 possible pt. / penalty score: 100%.

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