Craig Willey
Test por , creado hace más de 1 año

College C192 Databases Test sobre C192 Practice Test, creado por Craig Willey el 27/06/2020.

11
0
0
Craig Willey
Creado por Craig Willey hace alrededor de 4 años
Cerrar

C192 Practice Test

Pregunta 1 de 52

1

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

Selecciona una de las siguientes respuestas posibles:

  • 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

Explicación

Pregunta 2 de 52

1

The hierarchical database model is based on a ____.

Selecciona una de las siguientes respuestas posibles:

  • tree structure

  • lack of a parent segment

  • lack of a child segment

  • matrix

Explicación

Pregunta 3 de 52

1

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

Selecciona una de las siguientes respuestas posibles:

  • it does not exhibit data independence

  • it does not exhibit structural independence

  • data management is easier

  • data management is very difficult

Explicación

Pregunta 4 de 52

1

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

Selecciona una de las siguientes respuestas posibles:

  • condensed

  • physical

  • logical

  • conceptual

Explicación

Pregunta 5 de 52

1

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

Selecciona una de las siguientes respuestas posibles:

  • subtype discriminator

  • inheritance

  • specialization hierarchy

  • entity supertype

Explicación

Pregunta 6 de 52

1

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

Selecciona una de las siguientes respuestas posibles:

  • none

  • 1:1

  • 1:M

  • M:N

Explicación

Pregunta 7 de 52

1

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

Selecciona una de las siguientes respuestas posibles:

  • 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';

Explicación

Pregunta 8 de 52

1

Which command is used to select partial table contents?

Selecciona una de las siguientes respuestas posibles:

  • 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>;

Explicación

Pregunta 9 de 52

1

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

Selecciona una de las siguientes respuestas posibles:

  • 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;

Explicación

Pregunta 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?

Selecciona una de las siguientes respuestas posibles:

  • 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;

Explicación

Pregunta 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 ____.

Selecciona una de las siguientes respuestas posibles:

  • COUNT

  • MIN

  • MAX

  • SUM

Explicación

Pregunta 12 de 52

1

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

Selecciona una de las siguientes respuestas posibles:

  • SUM

  • TOTAL

  • COUNT

  • ADD

Explicación

Pregunta 13 de 52

1

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

Selecciona una de las siguientes respuestas posibles:

  • SET columnname = expression

  • columnname = expression

  • expression = columnname

  • LET columnname = expression

Explicación

Pregunta 14 de 52

1

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

Selecciona una de las siguientes respuestas posibles:

  • full

  • inner

  • outer

  • set

Explicación

Pregunta 15 de 52

1

What is the syntax for a left outer join?

Selecciona una de las siguientes respuestas posibles:

  • 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

Explicación

Pregunta 16 de 52

1

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

Selecciona una de las siguientes respuestas posibles:

  • outer

  • left

  • inner

  • base

Explicación

Pregunta 17 de 52

1

In a subquery, which query is executed first?

Selecciona una de las siguientes respuestas posibles:

  • Leftmost

  • Rightmost

  • Innermost

  • Outermost

Explicación

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

Selecciona una de las siguientes respuestas posibles:

  • database initial study

  • database design

  • implementation and loading

  • testing and evaluation

Explicación

Pregunta 19 de 52

1

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

Selecciona una de las siguientes respuestas posibles:

  • Database analysis and requirements

  • Entity relationship modeling and normalization

  • Data model verification

  • Distributed database design

Explicación

Pregunta 20 de 52

1

What is the primary objective of database design?

Selecciona una de las siguientes respuestas posibles:

  • 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

Explicación

Pregunta 21 de 52

1

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

Selecciona una de las siguientes respuestas posibles:

  • date

  • time

  • hour

  • minute

Explicación

Pregunta 22 de 52

1

____ requires that all operations of a transaction be completed.

Selecciona una de las siguientes respuestas posibles:

  • Specificity

  • Atomicity

  • Durability

  • Time stamping

Explicación

Pregunta 23 de 52

1

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

Selecciona una de las siguientes respuestas posibles:

  • transaction log

  • timer

  • lock manager

  • scheduler

Explicación

Pregunta 24 de 52

1

When is the implicit beginning of a transaction?

Selecciona una de las siguientes respuestas posibles:

  • 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

Explicación

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

Selecciona una de las siguientes respuestas posibles:

  • growing

  • shrinking

  • locking

  • unlocking

Explicación

Pregunta 26 de 52

1

What is a consistent database?

Selecciona una de las siguientes respuestas posibles:

  • 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

Explicación

Pregunta 27 de 52

1

A transaction acquires a ____ prior to data access.

Selecciona una de las siguientes respuestas posibles:

  • grain

  • timestamp

  • lock

  • key

Explicación

Pregunta 28 de 52

1

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

Selecciona una de las siguientes respuestas posibles:

  • commit

  • write

  • input

  • output

Explicación

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

Selecciona una de las siguientes respuestas posibles:

  • lost updates

  • uncommitted data

  • transaction failure

  • inconsistent retrieval

Explicación

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

Selecciona una de las siguientes respuestas posibles:

  • Lost updates

  • Uncommitted data

  • Transaction failures

  • Inconsistent retrievals

Explicación

Pregunta 31 de 52

1

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

Selecciona una de las siguientes respuestas posibles:

  • durability

  • isolation

  • atomicity

  • serializability

Explicación

Pregunta 32 de 52

1

Which is not a DML statement?

Selecciona una de las siguientes respuestas posibles:

  • CREATE TABLE

  • SELECT

  • INSERT

  • DELETE

Explicación

Pregunta 33 de 52

1

What feature is a DDBMS disadvantage?

Selecciona una de las siguientes respuestas posibles:

  • Data is located near the “greatest demand” site

  • Growth facilitation

  • Reduced operating cost

  • Lack of standards

Explicación

Pregunta 34 de 52

1

What feature is a DDBMS advantage?

Selecciona una de las siguientes respuestas posibles:

  • Greater difficulty in managing the data environment

  • Less danger of a single-point failure

  • Increased training cost

  • Complexity of management and control

Explicación

Pregunta 35 de 52

1

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

Selecciona una de las siguientes respuestas posibles:

  • Homogeneous

  • Heterogeneous

  • Fully homogeneous

  • Fully heterogeneous

Explicación

Pregunta 36 de 52

1

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

Selecciona una de las siguientes respuestas posibles:

  • Transaction

  • Distribution

  • Failure

  • Performance

Explicación

Pregunta 37 de 52

1

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

Selecciona una de las siguientes respuestas posibles:

  • Transaction

  • Distribution

  • Failure

  • Performance

Explicación

Pregunta 38 de 52

1

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

Selecciona una de las siguientes respuestas posibles:

  • distributed global dictionary

  • distributed data dictionary

  • distributed global schema

  • distributed data schema

Explicación

Pregunta 39 de 52

1

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

Selecciona una de las siguientes respuestas posibles:

  • Static

  • Dynamic

  • Automatic

  • Commit

Explicación

Pregunta 40 de 52

1

____ query optimization takes place at execution time.

Selecciona una de las siguientes respuestas posibles:

  • Automatic

  • Static

  • Manual

  • Dynamic

Explicación

Pregunta 41 de 52

1

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

Selecciona una de las siguientes respuestas posibles:

  • statistically

  • dynamic

  • rule

  • manual

Explicación

Pregunta 42 de 52

1

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

Selecciona una de las siguientes respuestas posibles:

  • replication

  • fragmentation

  • persistence

  • optimization

Explicación

Pregunta 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 ____.

Selecciona una de las siguientes respuestas posibles:

  • workstations

  • queries

  • schemas

  • servers

Explicación

Pregunta 44 de 52

1

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

Selecciona una de las siguientes respuestas posibles:

  • Periodicity

  • Aggregation

  • Partitioning

  • Replication

Explicación

Pregunta 45 de 52

1

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

Selecciona una de las siguientes respuestas posibles:

  • star

  • square

  • OLAP

  • ROLAP

Explicación

Pregunta 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 ____.

Selecciona una de las siguientes respuestas posibles:

  • star cuts

  • slice and dice

  • microscoping

  • TPL processing

Explicación

Pregunta 47 de 52

1

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

Selecciona una de las siguientes respuestas posibles:

  • user

  • role

  • profile

  • manager

Explicación

Pregunta 48 de 52

1

Which DDL statement should be used to enforce referential integrity?

Selecciona una de las siguientes respuestas posibles:

  • CREATE TRIGGER AFTER GRANT

  • CREATE TRIGGER BEFORE UPDATE

  • CREATE TRIGGER BEFORE DROP

  • CREATE TRIGGER AFTER SELECT

Explicación

Pregunta 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?

Selecciona una de las siguientes respuestas posibles:

  • 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

Explicación

Pregunta 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?

Selecciona una de las siguientes respuestas posibles:

  • Creating a trigger

  • Creating a stored procedure

  • Creating an index

  • Creating a constraint

Explicación

Pregunta 51 de 52

1

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

Selecciona una de las siguientes respuestas posibles:

  • 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;

Explicación

Pregunta 52 de 52

1

Which statement produces a PL/SQL stored procedure?

Selecciona una de las siguientes respuestas posibles:

  • 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

Explicación