100% found this document useful (1 vote)
9K views9 pages

Oracle Ilearning

This document contains multiple choice questions about data modeling concepts in Oracle SQL Developer Data Modeler. It covers topics like logical and relational modeling, mapping attributes to columns in tables, defining primary and foreign keys, and transforming models between logical and relational forms using forward and reverse engineering.

Uploaded by

riskis
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
9K views9 pages

Oracle Ilearning

This document contains multiple choice questions about data modeling concepts in Oracle SQL Developer Data Modeler. It covers topics like logical and relational modeling, mapping attributes to columns in tables, defining primary and foreign keys, and transforming models between logical and relational forms using forward and reverse engineering.

Uploaded by

riskis
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 9

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 (*)
16. Converting a Relational model to a Logical model is called reverse engineering.
True (*)
17. Top-Down Modeling is the approach taken for designing a new database.
True (*)
18. _______ Engineering is the process of creating a conceptual or logical model by
extracting the information from an existing data source.
Reverse (*)
19. We can apply naming abbreviations using the .csv file containing the abbreviations
True (*)
20. To use the Oracle SQL Developer Data Modeler to apply naming standards :
Use a .csv file constaining table names and abbreviations (*)
21. When mapping subtypes to tables we can ________
Either one or multiple tables are valid options. (*)
22. The steps to create a glossary from an existing Logical model are :
Right click Logical model, select Create Glossary from Logical Model (*)
23. Each attribute in an entity maps to a _________ in a table.
column (*)
24. You can define naming standards in Oracle SQL Developer Data Modeler using
_______________.
All of the above can be used to define naming standards in Oracle SQL Data Modeler.
(*)
25. When building a model in Oracle SQL Data Modeler you begin in the ________ tab.
Logical (*)
26. The steps to convert a Relational model to a Logical model using the Oracle SQL
Developer Data Modeler are :
Select the Relational model, Click the Engineer to Logical Model icon, Accept defaults,
Click Engineer (*)
27. In Oracle SQL Developer Data Modeler you can select select how you want to map your
subtypes.
True (*)
28. Which of the following cannot be modeled using the Oracle SQL Data Modeler?
-Entities, attributes, UIDs
-Supertype and subtype entities
-Recursive Relationships
-Arc relationships
-All can be modeled.(*)
29. You must first select the Logical model you want to work with to Engineer it to a
Relational model.
True(*)
30. A Relational model is closer to the implementation solution, facilitates discussion and
forms the basis for the physical database design.
True(*)
31. Converting a Relational model to a Logical model is called reverse engineering.
True(*)
32. Primary key constraints should have a suffix of PKEY.
False(*)
33. To define naming templates in Oracle SQL Data Modeler:
-Right click the name of the design in object browser
-Select properties, select template
-Edit the template to use abbreviations
-Do all of these steps.(*)
34. A ______________ in Oracle SQL Developer Data Modeler is a set of accepted terms
that can be used in the design
glossary
35.
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 (*)
29. The type of SQL Command used to modify data is :
DML (*)
30. All of the following are stages of SQL Processing except:
All of the above options are stages of SQL processing. (*)
31. The stages of SQL processing are Parsing, Optimization, Row Source Generation and
_____________ .
Execution (*)
32. A table is the basic storage structure of an RDBMS.
True (*)
33. What does the following statement do: ALTER TABLE DEPT_TEST ADD CONSTRAINT
unq_dept_det UNIQUE (DEPT_ID, DEPARTMENT_NAME) ;
It alters the DEPT_TEST table to add a composite unique key comprising of the
DEPT_ID and DEPARTMENT_NAME. (*)
34. When you _______ a table, the database loses all the data in the table.
DROP (*)
35. ___________ constraints can only be created at the column level.
Not Null (*)
36. It is not mandatory to specify the column list in the INSERT statement. True or
False?
True (*)
37. You can delete a row that contains a primary key that is used as a foreign key in
another table.
False (*)
38.
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 (*)
16. Which of the following is the wildcard used for any number of characters in SQL?
% (*)
17. The following statement will execute successfully (true or false): SELECT
employee_id, last_name, salary*12 annsal FROM employees ORDER BY annsal
True (*)
18. _______ consistency guarantees a consistent view of the data at all times.
Read (*)
19. The Oracle server ensures data consistency based on transactions.
True (*)
20. What type of join is the following statement? SELECT e.EMPLOYEE_ID,
e.LAST_NAME, d.DEPARTMENT_ID, d.DEPARTMENT_NAME, d.LOCATION_ID
FROM EMPLOYEES e, DEPARTMENTS d;
CROSS JOIN (*)
21. The CARTESIAN or CROSS join gets created when a join condition is omitted.
True (*)
22. Which of the following statements is syntactically correct?
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) WHERE e.manager_id = 149 ;
Both statements are syntactically correct. (*)
23. An _______ clause creates an equijoin between two tables using one column
from each table regardless of the name or data type.
ON (*)
24. A literal can be all of the following except :
a calculation (*)
25. The DESCRIBE command shows the following about a table except :
Data values (*)
26. A _______ clause creates an equijoin between two tables using one column with
the same name, regardless of the data type.
USING (*)
27. The ___________ JOIN clause produces the cross-product of two tables.
CROSS (*)
28. A self-join can be used when there are two fields with the same data on a table
that have different meanings.
True(*)
29. The ________ join clause is based on all the columns in the two tables that have
the same name and the same datatype.
NATURAL JOIN (*)
30. To eliminate duplicate rows in the result, include the _________ keyword in the
SELECT clause.
DISTINCT (*)
31. Arithmetic expressions containing a null value evaluate to _________.
Null(*)
32. Which column alias is invalid?
First Name (*)
33. A logical condition combines the result of two component conditions to produce a
single result based on those conditions or it inverts the result of a single
condition.
True(*)
34. Which operator is used to display rows based on an ordered range of values?
BETWEEN (*)
35.

You might also like