You are on page 1of 5

Section 4 dan 5

1. Primary key constraints are named using the __________________.


table short name (*)
2. Constraints should be given meaningful names to make them easier to reference.
True (*)
3. When mapping subtypes to tables we can ________
short table name (*)
4. Foreign key constraints are named using the ______________ of both tables.
short table name (*)
5. Which of the following cannot be modeled using the Oracle SQL Data Modeler ?
All can be modeled. (*)
6. In Oracle SQL Data Modeler, the attribute that you assign as primary UID is automatically set to
a mandatory attribute and will be engineered to a primary key in the relational model.
True (*)
7. The Oracle SQL Data Modeler enables you to do all of the following except:
Store application data (*)
8. The glossary can be used as the naming standard for your Logical Model.
True (*)
9. A ___________ model is the blue print to the actual database implementation and can be used as
the basis for implementing any type of Database Management System (DBMS).
Relational (*)
10. An Entity Relationship model does not highlight the physical and database constraints. It is
essential to transform the ER model into a relational model which can serve as the basis for
defining the physical implementation of the database.
True (*)
11. A column or combination of columns in one table that refers to a primary key in the same or
another table.
Foreign Key (*)
12. You must first select the Logical model you want to work with to Engineer it to a Relational
model.
True (*)
13. When creating a database based on extracting metadata from an existing database or using the
DDL code obtained from an implementation of an existing database, which data modeling
approach would you choose?
Bottom-Up Modeling (*)
14. A Relational model is closer to the implementation solution, facilitates discussion and forms the
basis for the physical database design.
True (*)
15. ________ Engineering is the process of transforming a Logical Data Model to a Relational
Model.
Forward (*)
Section 6 Quiz 1 – L1-L4
1. Relational Databases store data in a two-dimensional matrix known as a _________.
table (*)
2. A __________ can be found at the intersection of a row and column and contains one value.
field (*)
3. You can logically relate data from multiple tables using ___________.
foreign keys (*)
4. All of the following are tools to access a relational database except :
Oracle SQL Data Modeler (*)
5. In the SQL Workshop/SQL Commands ___________ tab you can view and retrieve
previously run queries.
History (*)
6. In the APEX application a ______ is a collection of logical structures of data. A _______ is
owned by a database user and has the same name as that user.
schema (*)
7. In APEX SQL Workshop and Object Browser options you can view table layouts.
True (*)
8. You can use Application Express (APEX) for ...
APEX can be used for both of the above functions (*)
9. Constraints ensure the consistency and integrity of the database.
True (*)
10. To create a table you must identify all of the following except :
Field values (*)
11. DDL means :
Data Definition Language (*)
12. Columns without the NOT NULL constraint can contain null values by default.
True (*)
13. When you have constraints in place on columns, an error is returned if you try to violate the
constraint rule.
True (*)
14. Any column that is not listed explicitly obtains a null value in the new row unless we have
_________ values for the missing columns that are used.
DEFAULT (*)
15. When issuing a SQL DELETE command all rows in the table are deleted if you omit the
__________ clause.
WHERE (*)
16. The Data Definition Language performs all of the following except :
Insert data into tables (*)
17. You use the __________ option to mark one or more columns as unused.
SET UNUSED (*)
18. Constraints cannot be added to a table after its creation.
False (*)
19. A primary key must contain a value and the value must be _______.
unique (*)
20. To connect to an Oracle database you need to use a client program. True or False?
True (*)
21. A foreign key value must match an existing primary key value otherwise, it must be null.
True (*)
22. The command that removes all rows from a table, leaving the table empty and the table
structure intact is ...
TRUNCATE (*)
23. ___________________ is used to add, modify and delete data.
Data Manipulation Language (*)
24. Data Manipulation Language includes all of the following except :
COMMIT (*)
25. To see all the fields and records in the employees table you can run the following query :
SELECT * FROM employees; (*)
26. Oracle Application Express is an application platform used to share and learn _____ and
__________.
SQL, PL/SQL (*)
27. You can upload and save a SQL Script from the _____________ option.
SQL Scripts (*)
28. To see selected records from a table we will need to add a ___________ clause to the query.
WHERE (*)
Section 6 Quiz 2 - L5-L9
1. Joining tables with the NATURAL JOIN, USING, or ON clauses results in an
__________ join. (Choose 2)
INNER (*)
Equi-join (*)
2. The ________ join clause is based on all the columns in the two tables that have the same
name and the
NATURAL JOIN (*)
3. Will the following statement execute successfully (True or False)? SELECT
e.employee_id, e.last_name, e.department_id, d.department_id, d.location_id FROM
employees e JOIN departments d ON (e.department_id = d.department_id);
True (*)
4. Which of the following statements is an example of a SELF JOIN?
SELECT worker.last_name emp, manager.last_name mgr FROM employees worker
JOIN employees manager ON (worker.manager_id = manager.employee_id); (*)
5. With the __________ and ROLLBACK statements, you have control over making
changes to the data permanent
COMMIT (*)
6. Users may view data that is in the process of being changed by another user.
False (*)
7. Top-n-analysis is used when you want to retrieve only the top number of records from a
result set.
True (*)
8. Which statements are not true? (Choose 2)
You cannot use a column alias in the ORDER BY clause. (*)
You cannot sort query results by more than one column. (*)
9. You can specify multiple columns after the DISTINCT qualifier.
True (*)
10. The following statement will result in an error (True or False): SELECT last_name
"Name" , salary*12 "Annual Salary", salary +100 FROM employees;
False (*)
11. Which statement displays the last name, salary, and annual compensation of employees
where the annual compensation is calculated by multiplying the monthly salary with 15,
plus a one-time bonus of $200.
SELECT last_name, salary, 15*salary+200 FROM employees; (*)
12. The DESCRIBE command describes the results of a query.
False (*)
13. You can link columns to other columns, arithmetic expressions, or constant values to
create a character expression by using the ____________ operator (||).
concatenation (*)
14. What is the result of executing the following statement: SELECT EMPLOYEE_ID,
LAST_NAME, JOB_ID, DEPARTMENT_ID AS "DEPTID" FROM EMPLOYEES
WHERE DEPARTMENT_ID = 90 ;
Displays the EMPLOYEE_ID, LAST_NAME, JOB_ID, DEPARTMENT_ID from the
EMPLOYEES table where the department id is 90. (*)
15. You can override the default order by using parentheses around the expressions that you
want to calculate first.
True (*)

You might also like