Craig Willey
Quiz por , criado more than 1 year ago

College C192 Databases Quiz sobre C192 Practice Test, criado por Craig Willey em 27-06-2020.

13
0
0
Craig Willey
Criado por Craig Willey mais de 4 anos atrás
Fechar

C192 Practice Test

Questão 1 de 52

1

Which of the following is a benefit of using a DBMS?

Selecione uma das seguintes:

  • They provide full security to data using private/public key encryption

  • They create automatic backups

  • They help create an environment for end users to have access to more data

  • They provide seamless Internet access to database data

Explicação

Questão 2 de 52

1

The hierarchical database model is based on a ____.

Selecione uma das seguintes:

  • tree structure

  • lack of a parent segment

  • lack of a child segment

  • matrix

Explicação

Questão 3 de 52

1

Because an RDBMS hides the system's complexity from the user/designer, ____.

Selecione uma das seguintes:

  • it does not exhibit data independence

  • it does not exhibit structural independence

  • data management is easier

  • data management is very difficult

Explicação

Questão 4 de 52

1

The ERD is used to graphically represent the ____ database model.

Selecione uma das seguintes:

  • condensed

  • physical

  • logical

  • conceptual

Explicação

Questão 5 de 52

1

The property of ____ enables an entity subtype to inherit the attributes and relationships of the supertype.

Selecione uma das seguintes:

  • subtype discriminator

  • inheritance

  • specialization hierarchy

  • entity supertype

Explicação

Questão 6 de 52

1

At the implementation level, the supertype and its subtype(s) depicted in the specialization hierarchy maintain a ____ relationship.

Selecione uma das seguintes:

  • none

  • 1:1

  • 1:M

  • M:N

Explicação

Questão 7 de 52

1

Which command would be used to delete the table row where the P_Code = '2238/QPD'?

Selecione uma das seguintes:

  • DELETE FROM PRODUCT
    WHERE P_CODE = '2238/QPD';

  • REMOVE FROM PRODUCT
    WHERE P_CODE = '2238/QPD';

  • ERASE FROM PRODUCT
    WHERE P_CODE = '2238/QPD';

  • ROLLBACK FROM PRODUCT
    WHERE P_CODE = '2238/QPD';

Explicação

Questão 8 de 52

1

Which command is used to select partial table contents?

Selecione uma das seguintes:

  • SELECT <column(s)>
    FROM <Table name>
    WHERE <Item>;

  • LIST <column(s)>
    FROM <Table name>
    WHERE <Conditions>;

  • SELECT <column(s)>
    FROM <Table name>
    WHERE <Conditions>;

  • LIST<column(s)>
    FROM <Table name>
    WHERE <Item>;

Explicação

Questão 9 de 52

1

Which query will output the table contents when the value of V_CODE is equal to 21344?

Selecione uma das seguintes:

  • SELECT P_DESCRIPT, P_INDATE, P_PRICE, V_CODE
    FROM PRODUCT
    WHERE V_CODE <> 21344;

  • SELECT P_DESCRIPT, P_INDATE, P_PRICE, V_CODE
    FROM PRODUCT
    WHERE V_CODE <= 21344;

  • SELECT P_DESCRIPT, P_INDATE, P_PRICE, V_CODE
    FROM PRODUCT
    WHERE V_CODE = 21344;

  • SELECT P_DESCRIPT, P_INDATE, P_PRICE, V_CODE
    FROM PRODUCT
    WHERE V_CODE => 21344;

Explicação

Questão 10 de 52

1

What is the command used to list the P_CODE, P_DESCRIPT, P_INDATE, and P_PRICE fields from the Product table in ascending order by P_PRICE?

Selecione uma das seguintes:

  • SELECT P_CODE, P_DESCRIPT, P_INDATE, P_PRICE
    FROM PRODUCT
    SEQUENCE BY P_PRICE;

  • SELECT P_CODE, P_DESCRIPT, P_INDATE, P_PRICE
    FROM PRODUCT
    LIST BY P_PRICE;

  • SELECT P_CODE, P_DESCRIPT, P_INDATE, P_PRICE
    FROM PRODUCT
    ORDER BY P_PRICE;

  • SELECT P_CODE, P_DESCRIPT, P_INDATE, P_PRICE
    FROM PRODUCT
    ASCENDING BY P_PRICE;

Explicação

Questão 11 de 52

1

The basic SQL aggregate function that gives the total of all values for a selected attribute in a given column is ____.

Selecione uma das seguintes:

  • COUNT

  • MIN

  • MAX

  • SUM

Explicação

Questão 12 de 52

1

____ is used to tally the number of specific "values" of an attribute.

Selecione uma das seguintes:

  • SUM

  • TOTAL

  • COUNT

  • ADD

Explicação

Questão 13 de 52

1

UPDATE tablename
*****
[WHERE conditionlist];
What command replaces the ***** in the above statement?

Selecione uma das seguintes:

  • SET columnname = expression

  • columnname = expression

  • expression = columnname

  • LET columnname = expression

Explicação

Questão 14 de 52

1

When using a(n) ____ join, only rows that meet the given criteria are returned.

Selecione uma das seguintes:

  • full

  • inner

  • outer

  • set

Explicação

Questão 15 de 52

1

What is the syntax for a left outer join?

Selecione uma das seguintes:

  • SELECT column-list
    FROM table1 OUTER JOIN table2 LEFT
    WHERE join-condition

  • SELECT column-list
    FROM table1 LEFT [OUTER] JOIN table2
    ON join-condition

  • SELECT column-list
    WHERE LEFT table1 = table 2

  • SELECT column-list
    FROM table1 LEFT table2 [JOIN]
    WHERE join-condition

Explicação

Questão 16 de 52

1

In subquery terminology, the first query in the SQL statement is known as the ____ query.

Selecione uma das seguintes:

  • outer

  • left

  • inner

  • base

Explicação

Questão 17 de 52

1

In a subquery, which query is executed first?

Selecione uma das seguintes:

  • Leftmost

  • Rightmost

  • Innermost

  • Outermost

Explicação

Questão 18 de 52

1

Creating the conceptual design, selecting DBMS software, creating the logical design, and creating the physical design are part of the ____ phase.

Selecione uma das seguintes:

  • database initial study

  • database design

  • implementation and loading

  • testing and evaluation

Explicação

Questão 19 de 52

1

Which of the conceptual design steps defines entities, attributes, and relationships?

Selecione uma das seguintes:

  • Database analysis and requirements

  • Entity relationship modeling and normalization

  • Data model verification

  • Distributed database design

Explicação

Questão 20 de 52

1

What is the primary objective of database design?

Selecione uma das seguintes:

  • To create the most efficient database possible

  • To create complete, normalized, non-redundant, and fully integrated conceptual, logical, and physical database models

  • To create the fastest queries

  • To be able to add data quickly

Explicação

Questão 21 de 52

1

The most common algorithms for concurrency control are locks, ____ stamping, and optimistic methods.

Selecione uma das seguintes:

  • date

  • time

  • hour

  • minute

Explicação

Questão 22 de 52

1

____ requires that all operations of a transaction be completed.

Selecione uma das seguintes:

  • Specificity

  • Atomicity

  • Durability

  • Time stamping

Explicação

Questão 23 de 52

1

The ____ establishes the order in which the operations within concurrent transactions are executed.

Selecione uma das seguintes:

  • transaction log

  • timer

  • lock manager

  • scheduler

Explicação

Questão 24 de 52

1

When is the implicit beginning of a transaction?

Selecione uma das seguintes:

  • When the database is started

  • When a table is accessed for the first time

  • When the first SQL statement is encountered

  • When the COMMIT command is issued

Explicação

Questão 25 de 52

1

A(n) ____ phase in a two-phase lock is when a transaction releases all locks and cannot obtain any new lock.

Selecione uma das seguintes:

  • growing

  • shrinking

  • locking

  • unlocking

Explicação

Questão 26 de 52

1

What is a consistent database?

Selecione uma das seguintes:

  • One in which all tables have foreign keys

  • One in which all data integrity constraints are satisfied

  • One in which all tables are normalized

  • One in which all SQL statements only update one table at a time

Explicação

Questão 27 de 52

1

A transaction acquires a ____ prior to data access.

Selecione uma das seguintes:

  • grain

  • timestamp

  • lock

  • key

Explicação

Questão 28 de 52

1

Changes are permanently applied to the database during the ____ phase of a transaction.

Selecione uma das seguintes:

  • commit

  • write

  • input

  • output

Explicação

Questão 29 de 52

1

The phenomenon of ____ occurs when two transactions, T1 and T2, are executed concurrently and the first transaction (T1) is rolled back after the second transaction (T2) has already accessed the uncommitted data—thus violating the isolation property of transactions.

Selecione uma das seguintes:

  • lost updates

  • uncommitted data

  • transaction failure

  • inconsistent retrieval

Explicação

Questão 30 de 52

1

____ occur when a transaction calculates some summary (aggregate) functions over a set of data while other transactions are updating the data.

Selecione uma das seguintes:

  • Lost updates

  • Uncommitted data

  • Transaction failures

  • Inconsistent retrievals

Explicação

Questão 31 de 52

1

The scheduler facilitates data ____ to ensure that two transactions do not update the same data element at the same time.

Selecione uma das seguintes:

  • durability

  • isolation

  • atomicity

  • serializability

Explicação

Questão 32 de 52

1

Which is not a DML statement?

Selecione uma das seguintes:

  • CREATE TABLE

  • SELECT

  • INSERT

  • DELETE

Explicação

Questão 33 de 52

1

What feature is a DDBMS disadvantage?

Selecione uma das seguintes:

  • Data is located near the “greatest demand” site

  • Growth facilitation

  • Reduced operating cost

  • Lack of standards

Explicação

Questão 34 de 52

1

What feature is a DDBMS advantage?

Selecione uma das seguintes:

  • Greater difficulty in managing the data environment

  • Less danger of a single-point failure

  • Increased training cost

  • Complexity of management and control

Explicação

Questão 35 de 52

1

____ distributed database systems integrate different types of centralized DBMSs over a network.

Selecione uma das seguintes:

  • Homogeneous

  • Heterogeneous

  • Fully homogeneous

  • Fully heterogeneous

Explicação

Questão 36 de 52

1

____ transparency allows a transaction to update data at several network sites.

Selecione uma das seguintes:

  • Transaction

  • Distribution

  • Failure

  • Performance

Explicação

Questão 37 de 52

1

____ transparency ensures that the system will continue to operate in the event of a node failure.

Selecione uma das seguintes:

  • Transaction

  • Distribution

  • Failure

  • Performance

Explicação

Questão 38 de 52

1

The ____ contains the description of the entire database as seen by the database administrator.

Selecione uma das seguintes:

  • distributed global dictionary

  • distributed data dictionary

  • distributed global schema

  • distributed data schema

Explicação

Questão 39 de 52

1

____ query optimization means that the DDBMS finds the most cost-effective access path without user intervention.

Selecione uma das seguintes:

  • Static

  • Dynamic

  • Automatic

  • Commit

Explicação

Questão 40 de 52

1

____ query optimization takes place at execution time.

Selecione uma das seguintes:

  • Automatic

  • Static

  • Manual

  • Dynamic

Explicação

Questão 41 de 52

1

A ____ based query optimization algorithm uses statistical information about the database.

Selecione uma das seguintes:

  • statistically

  • dynamic

  • rule

  • manual

Explicação

Questão 42 de 52

1

Data ____ refers to the storage of data copies at multiple sites served by a computer network.

Selecione uma das seguintes:

  • replication

  • fragmentation

  • persistence

  • optimization

Explicação

Questão 43 de 52

1

To provide better performance, some OLAP systems merge the data warehouse and data mart approaches by storing small extracts of the data warehouse at end user ____.

Selecione uma das seguintes:

  • workstations

  • queries

  • schemas

  • servers

Explicação

Questão 44 de 52

1

____ makes a copy of a table and places it in a different location, to improve access time.

Selecione uma das seguintes:

  • Periodicity

  • Aggregation

  • Partitioning

  • Replication

Explicação

Questão 45 de 52

1

The ____ schema creates the near equivalent of a multidimensional database schema from the existing relational database.

Selecione uma das seguintes:

  • star

  • square

  • OLAP

  • ROLAP

Explicação

Questão 46 de 52

1

Using multidimensional jargon, the ability to focus on slices of the cube to perform a more detailed analysis is known as ____.

Selecione uma das seguintes:

  • star cuts

  • slice and dice

  • microscoping

  • TPL processing

Explicação

Questão 47 de 52

1

A ____ is a uniquely identifiable object that allows a given person to log on to the database.

Selecione uma das seguintes:

  • user

  • role

  • profile

  • manager

Explicação

Questão 48 de 52

1

Which DDL statement should be used to enforce referential integrity?

Selecione uma das seguintes:

  • CREATE TRIGGER AFTER GRANT

  • CREATE TRIGGER BEFORE UPDATE

  • CREATE TRIGGER BEFORE DROP

  • CREATE TRIGGER AFTER SELECT

Explicação

Questão 49 de 52

1

Use the given code to answer the following question:

SELECT branchNo, COUNT(staffNo) AS myCount, SUM (salary) AS mySum
FROM staff,
GROUP BY branchNo
ORDER By branchNo;

What does this code do?

Selecione uma das seguintes:

  • Orders the staff table by the ascending order of branchNo

  • Orders the staff by ascending order of salary

  • Finds the number of staff and the sum of their salaries in each branch

  • Finds the total number of branches

Explicação

Questão 50 de 52

1

Use the give DDL statement to answer the following question:
CREATE ASSERTION PhysicianNotOverbooked
CHECK (NOT EXISTS (SELECT physician_number
FROM scheduled_exams
GROUP By physician_number
HAVING COUNT (*) > 20));

Which action is this statement performing?

Selecione uma das seguintes:

  • Creating a trigger

  • Creating a stored procedure

  • Creating an index

  • Creating a constraint

Explicação

Questão 51 de 52

1

Which DCL Command gives Manager the privilege to SELECT on column AccountBalance of the table Customer?

Selecione uma das seguintes:

  • GRANT SELECT (Customer) ON AccountBalance TO Manager;

  • GRANT SELECT (AccountBalance) ON Customer TO Manager;

  • PERMIT Manager SELECT ON Customer (AccountBalance);

  • ALLOW Manager SELECT AccountBalance FROM Customer;

Explicação

Questão 52 de 52

1

Which statement produces a PL/SQL stored procedure?

Selecione uma das seguintes:

  • INSERT OR SET PROCEDURE ProcessReport AS
    BEGIN SELECT * FROM sales END

  • CREATE OR REPLACE PROCEDURE ProcessReport AS
    BEGIN SELECT * FROM sales END

  • ADD OR UPDATE PROCEDURE ProcessReport AS
    BEGIN SELECT * FROM sales END

  • INSERT OR UPDATE PROCEDURE ProcessReport AS
    BEGIN SELECT * FROM sales END

Explicação