Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
5. Volatile entities have special requirements and need special attention when you are doing data
modelling. True or False? Mark for Review
(1) Points
True (*)
False
Correct
6. Relationship names are usually verbs. True or False? Mark for Review
(1) Points
True (*)
False
Correct
7. An entity is instantiated as a ? Mark for Review
(1) Points
Experience
Instance
Table (*)
None of the above
Correct
True
False (*)
Correct
Section 3
12. When reading an ERD including Relationships you are said to be speaking: Mark for Review
(1) Points
Relationship-ish
Gibberish
ERDish (*)
Entity-ish
Incorrect. Refer to Section 3 Lesson 3.
13. To identify an attribute as part of a unique identifier on an ER diagram, the # symbol goes in
front of it. True or False? Mark for Review
(1) Points
True (*)
False
Correct
14. Relationships represents something of significance to the business. True or False? Mark for
Review
(1) Points
True (*)
False
Correct
15. Which of the following are valid relationship degrees? (Choose two) Mark for Review
(1) Points
(Choose all correct answers)
1:1 (*)
1:M (*)
1:O
OJ
Correct
16. Matrix Diagrams are developed BEFORE the ERD. True or False? Mark for Review
(1) Points
True
False (*)
Incorrect. Refer to Section 3 Lesson 4.
Section 4
17. Business rules are important to data modelers. True or False? Mark for Review
(1) Points
True (*)
False
Correct
18. Which of the following is true about subtypes? Mark for Review
(1) Points
20.All instances of a subtype may be an instance of the supertype but does not have to. True or
False? Mark for Review
(1) Points
True
False (*)
Correct
21.When creating entities you must follow these rules: (Choose Two) Mark for Review
(1) Points
(Choose all correct answers)
Name them in Plural
Name them in Singular (*)
Exclude Attributes
Include Attributes (*)
Correct
22. You can only create relationships to a Supertype, not to a Subtype. True or False? Mark for
Review
(1) Points
True
False (*)
Correct
Section 5
23. How do you include a relationship as part of the UID for an entity? Mark for Review
(1) Points
By barring the relationship in question (*)
By reporting it in an external document
24.If two entities have two relationships between them, these relationships can be either
_____________ or _____________ ? Mark for Review
(1) Points
Redundant or Required (*)
Replicated or Required
Resourced and Really Good
Redundant and Replicated
Correct
25. What uncommon relationship is described by the statements: Each DNA SAMPLE may be taken
from one and only one PERSON and each PERSON may provide one and only one DNA SAMPLE Mark
for Review
(1) Points
One to Many Optional
One to Many Mandatory
One to One Optional (*)
Many to Many Mandatory
Correct
30. Intersection Entities often have the relationships participating in the UID, so the relationships are
often barred. True or False? Mark for Review
(1) Points
True (*)
False
26. Which of the following pairs of entities is most likely to be modeled as a M:M relationship? Mark
for Review
(1) Points
CAR and WHEEL
TREE and BRANCH
PERSON and FINGERPRINT
TEACHER and SUBJECT AREA (*)
27. A non-transferable relationship means the detail can be changed to point to a new master. True
or False? Mark for Review
(1) Points
True
False (*)
28. Intersection Entities are at the Master end in the relationships between it and the original entities.
So the original entities are details or children of the newly created intersection entity. True or
False? Mark for Review
(1) Points
True
False (*)
Correct
29. When you resolve a M-M you simply re-draw the relationships between the two original entities,
no new entities are created. True or False? Mark for Review
(1) Points
True
False (*)
31. The first UID for an entity is called the Primary UID, the second is called Secondary UID and so
on. Mark for Review
(1) Points
Yes, this is the way UIDs are named. (*)
No, it is not possible to have more than one UID for an Entity.
Yes, but then it stops. No entities can have more than two UIDs.
No, each Entity can only have one UID, the secondary one.
32. People are not born with numbers, but a lot of systems assign student numbers, customer IDs,
etc. A shoe has a color, a size, a style, but may not have a descriptive number. So, to be able to
uniquely and efficiently identify one instance of the entity SHOE, a/an ______________ UID can be
created. Mark for Review
(1) Points
Artificial (*)
Unrealistic
Structured
Identification
33. Normalizing an Entity to 1st Normal Form is done by removing repeated or redundant attributes.
True or False? Mark for Review
(1) Points
True (*)
False
Correct
34. No commercial database systems in the world will accept tables that are not on 3rd Normal Form.
True or False? Mark for Review
(1) Points
True
False (*)
36. Historical data must never be kept. True or False? Mark for Review
(1) Points
True
False (*)
Correct
37. Which of the following would be good as a Unique Identifier for its Entity? (Choose Three) Mark
for Review
(1) Points
(Choose all correct answers)
Personal Identification number for Person (*)
Vehicle Registration Number for Car (*)
38. Arcs are Mandatory in Data modeling. All ERDs must have at least one Arc. True or False? Mark
for Review
(1) Points
True
False (*)
Correct
39. All relationships participating in an arc must be mandatory. True or False? Mark for Review
(1) Points
True
False (*)
Correct
40. No parts of an UID are mandatory. True or False? Mark for Review
(1) Points
True
False (*)
Correct
OA4
noiembrie 19, 2010
Section 1
1.
Consider your school library. It will have a database with transaction details of which student
borrows which books. Is a record of one student borrowing one book Data or Information?
Review
(1) Points
Data (*)
Information
Both
Neither
Mark for
Correct
2.
Correct
Which of the following are types of databases? (Choose all that apply)
(1) Points
Hierarchical (*)
Relational (*)
SQL
Network (*)
Correct
3.
Correct
Databases are used in most countries and by most governments. Life, as we know it, would
(1) Points
True (*)
False
Correct
4.
Correct
(1) Points
Computer Repairs
Correct
Section 2
Correct
5.
The Physical Model is derived from the Conceptual Model. True or False?
(1) Points
True (*)
False
Correct
6.
Correct
The UID for an Entity is always just whatever attribute you happened to create first in that
entity. It does not matter which attribute you choose, as long as you have a UID you are done. True
or False?
(1) Points
True
False (*)
Correct
7.
Correct
(1) Points
True (*)
False
Correct
Correct
8.
A/an _________ is a picture of all the information that will form the basis for the finished
system.
(1) Points
ERD (*)
Process
Table
Attribute
Correct
Correct
9.
Which of the following statements about relationships are true? (Choose Two)
Review
(1) Points
Mark for
Correct
10.
Correct
(1) Points
Are Required. The data model is not complete until all entities have a Primary UID. (*)
You may create more than one Primary Unique Identifier for an entity
Correct
Correct
Section 2
11.
(1) Points
Column
Row
Instance
Correct
Correct
Section 3
12.
Matrix Diagrams are mandatory when doing data modelling. True or False?
(1) Points
True
False (*)
Correct
Correct
13.
All the Attributes in a system are just written on the ERD, and they all go in the Top Left Hand
(1) Points
True
False (*)
Correct
14.
Correct
One Relationship can be both mandatory and optional at different ends. True or
False?
(1) Points
True (*)
False
Correct
15.
Correct
(1) Points
True (*)
False
Correct
Correct
16.
(1) Points
True (*)
False
Correct
Correct
Section 4
17.
(1) Points
True
False (*)
Correct
18.
Correct
A supertype can only have two subtypes and no more. True or False?
(1) Points
True
False (*)
Correct
19.
Correct
(1) Points
DOGS
ANIMAL (*)
ANIMALS
DOG (*)
Correct
20.
Correct
(1) Points
True
False (*)
Correct
Section 4
Correct
21.
You can only create relationships to a Supertype, not to a Subtype. True or False?
Mark for
Review
(1) Points
True
False (*)
Correct
22.
Correct
for Review
(1) Points
Mark
An attribute that is not be inherited from the PERSON supertype and is unique to the TEACHER
subtype
Correct
Correct
Section 5
23.
A non-transferable relationship means the detail can be changed to point to a new master.
True or False?
(1) Points
True
False (*)
Correct
24.
Correct
Many to many relationships must be left in the Model. It is important to have them
True
False (*)
Correct
25.
Correct
(1) Points
By including the UID from the parent entity as an attribute in the entity
Correct
26.
Correct
If two entities have two relationships between them, these relationships can be either
_____________ or _____________ ?
(1) Points
Replicated or Required
Correct
27.
Correct
relationship?
(1) Points
Correct
28.
Correct
When you resolve a M-M you simply re-draw the relationships between the two original
(1) Points
True
False (*)
Correct
29.
Correct
Intersection Entities often have the relationships participating in the UID, so the relationships
True (*)
False
Correct
30.
Correct
Intersection Entities are at the Master end in the relationships between it and the original
entities. So the original entities are details or children of the newly created intersection entity. True or
False?
(1) Points
True
False (*)
Correct
Correct
Section 6
31.
A unique identifier must be made up of more than one attribute. True or False?
for Review
(1) Points
True
False (*)
Correct
Correct
Mark
32.
The first UID for an entity is called the Primary UID, the second is called Secondary UID and
No, it is not possible to have more than one UID for an Entity.
Yes, but then it stops. No entities can have more than two UIDs.
No, each Entity can only have one UID, the secondary one.
Correct
Correct
33.
(1) Points
True (*)
False
Correct
34.
Correct
(1) Points
When all non-UID attributes are dependent upon the entire UID. (*)
When no attritibutes are mutually independant and fully independent on the primary key.
When no attritibutes are mutually independent and all are fully dependent on the primary key.
Correct
35.
Correct
No commercial database systems in the world will accept tables that are not on 3rd Normal
True
False (*)
Correct
Correct
Section 7
36.
True (*)
False
Correct
37.
Correct
If Audit trail attributes are added to an entity they must be in the entities they are auditing.
True or False?
(1) Points
True (*)
False
Correct
Correct
38.
Arcs are Mandatory in Data modeling. All ERDs must have at least one Arc. True or False?
True
False (*)
Correct
39.
Correct
Arcs are used to visually represent _________ between two or more relationships in an
ERD.
(1) Points
Sameness
Differences
Exclusivity (*)
Inheritance
Correct
40.
Correct
(1) Points
Something that each Entity should have, but is not mandatory (*)
Incorrect
Section 7
41.
Review
(1) Points
True
Mark for
False (*)
Incorrect
42.
(1) Points
One to One
One to Many
Many to Many
Correct
Correct
Section 9
43.
Which of the following would be a logical constraint when modeling time for a City
entity?
(1) Points
People are born in the city and people die in the city.
Cites may change their name and/or which country they are placed in, if the borders of a country
change. (*)
If you are doing a system for any French City, you would need security clearance
You need a constant record of cities because they are still cities, even if leadership changes over time,
e.g. they get a new Mayor
Correct
44.
Correct
If a system includes the concept of time and it stores Start Dates, then End Dates becomes
Mandatory. For each Start Date attribute you create, you MUST create an End Date attribute and it
must be mandatory. True or False?
(1) Points
True
False (*)
Correct
45.
Correct
You are doing a data model for a computer sales company, where the price of postage is
dependent on what day of the week goods are shipped. So shipping is more expensive if the customer
wants a delivery to take place on a Saturday or Sunday. What would be the best way to model this?
Mark for Review
(1) Points
Use a Delivery Day entity, which holds prices against week days, and ensure the we also have an
attribute for the Requested Delivery Day in the Order Entity. (*)
Update the prices in the system, print out the current prices when they change and pin them on the
company noticeboard
Correct
46.
Correct
All systems must include functionality to provide logging or journaling in conceptual data
True
False (*)
Correct
Correct
Section 10
47.
(1) Points
True
False (*)
Correct
48.
Review
Correct
Generic models are generally far more complex than a specific model. True or False? Mark for
(1) Points
True
False (*)
Correct
49.
Correct
There are formal rules for how to draw ERDs, even though they are only guidelines, you
True (*)
False
Correct
50.
Correct
There is no point in trying to group your entities together on your diagram according to
True
False (*)
Correct
Correct
OA3
noiembrie 19, 2010
Section 1
1. Consider your school library. It will have a database with transaction details of which student
borrows which books. Is details of the total number of books out on loan in one given month Data or
Information? Mark for Review
(1) Points
Data
Information (*)
Both
Neither
2. What is the difference between information and data? Mark for Review
(1) Points
Information and data have no differences they are two words for the same thing.
Data turns into information when it is stored in a database and accessed by systems and users. (*)
Correct
3. Once you have learned how to write programs and build systems, you no longer need any input or
involvement from any users, as you are perfectly capable of delivering the systems the business needs
and wants. Mark for Review
(1) Points
False. Business requirements can and will change. For instance new legal requirements may arise. (*)
True. All users do is delay systems delivery with their forever changing minds and new requirements.
True. Users never know what they want anyway, so building systems are best left to the professionals.
Correct
4. Databases are used in most countries and by most governments. Life, as we know it, would
change drastically if we no longer had access to databases. True or False? Mark for Review
(1) Points
True (*)
False
Correct
(1) Points
True
False (*)
Correct
6. Software cannot operate without Hardware. True or False? Mark for Review
(1) Points
True (*)
False
Correct
Section 2
Experience
Instance
Table (*)
Correct
8. Relationship names are usually verbs. True or False? Mark for Review
(1) Points
True (*)
False
9. All of the following could be attributes of an ENTITY called PERSON except one. Select the incorrect
one: Mark for Review
(1) Points
Haircolor
Weight
Gender
Correct
10. A/an _________ is a picture of all the information that will form the basis for the finished
system. Mark for Review
(1) Points
ERD (*)
Process
Table
Attribute
Correct
Section 2
Are required. The data model is not complete until all entities have a Primary UID. (*)
Correct
Column
Row
Instance
Correct
13. Volatile entities have special requirements and need special attention when you are doing data
modelling. True or False? Mark for Review
(1) Points
True (*)
False
Correct
Section 3
14. When reading a relationship between 2 entities, the relationship is read both from left to right and
right to left. True or False? Mark for Review
(1) Points
True (*)
False
Correct
15. Entity names are always singular. True or False? Mark for Review
(1) Points
True (*)
False
Correct
16. Which symbol is used to show that a particular attribute is mandatory? Mark for Review
(1) Points
* (*)
&
Correct
17. In a business that sells pet food choose the best relationship name between FOOD TYPE and
ANIMAL (e.g. dog, horse or cat). (Choose Two) Mark for Review
(1) Points
Each FOOD TYPE must be suitable for one or more ANIMALs. (*)
Correct
18. One Relationship can be both mandatory and optional at different ends. True or False? Mark for
Review
(1) Points
True (*)
False
Section 4
19. A Supertype can have only one subtype. True or False? Mark for Review
(1) Points
True
False (*)
Correct
20. All ER diagrams must have one of each of the following: (Choose two) Mark for Review
(1) Points
Arcs
Correct
Section 4
21. All instances of a subtype may be an instance of the supertype but does not have to. True or
False? Mark for Review
(1) Points
True
False (*)
Correct
22. Which of the following are suitable Entity names? (Choose Two) Mark for Review
(1) Points
DOGS
ANIMAL (*)
ANIMALS
DOG (*)
Correct
23. All instances of the supertype must be an instance of one of the subtypes. True or False? Mark
for Review
(1) Points
True (*)
False
Correct
24. How would you model a business rule that states that girls and boys may not attend classes
together? Mark for Review
(1) Points
Use a supertype
Use two subtypes with relationships from class to student gender (*)
Correct
No, in which case you should let the database administrator handle them
No, but you just explain them to the users so they can enforce them
No, so you should list them on a separate document to be handled programmatically (*)
Correct
26. A business rule such as We only ship goods after customers have completely paid any
outstanding balances on their account is best enforced by: Mark for Review
(1) Points
We need to trust our customers, and we know they will pay some day.
Hiring a programmer to create additional programming code to verify no goods are shipped until the
account has been settled in full. (*)
27. Business rules are important to data modelers. True or False? Mark for Review
(1) Points
True (*)
False
Correct
Section 5
28. How do you include a relationship as part of the UID for an entity? Mark for Review
(1) Points
By including the UID from the parent entity as an attribute in the entity
Correct
29. What uncommon relationship is described by the statements: Each DNA SAMPLE may be taken
from one and only one PERSON and each PERSON may provide one and only one DNA SAMPLE Mark
for Review
(1) Points
Correct
True (*)
False
Correct
Section 5
31. Which of the following pairs of entities is most likely to be modeled as a M:M relationship? Mark
for Review
(1) Points
Correct
32. A non-transferable relationship means the detail can be changed to point to a new master. True
or False? Mark for Review
(1) Points
True
False (*)
Correct
Section 6
33. Would it be a good idea to model age as an attribute of STUDENT? Mark for Review
(1) Points
Yes
Maybe it could stop us having to calculate someones age every time we need it
Sometimes
Correct
34. Until all attributes are single-valued, the database model is said to be: Mark for Review
(1) Points
Normalized
Correct
35. The is no limit to how may UIDs an entity can have. True or False? Mark for Review
(1) Points
True (*)
False
Correct
Section 7
36. Modeling historical data can produce a unique identifier that always excludes dates. True or
False? Mark for Review
(1) Points
True
False (*)
37. No parts of an UID are mandatory. True or False? Mark for Review
(1) Points
True
False (*)
Correct
38. Which of the following would best be represented by an arc? Mark for Review
(1) Points
Correct
39. An arc can also be modelled as Supertype and Subtypes. True or False? Mark for Review
(1) Points
True (*)
False
Correct
40. Arcs are used to visually represent _________ between two or more relationships in an
ERD. Mark for Review
(1) Points
Sameness
Differences
Exclusivity (*)
Inheritance
Correct
Section 7
Correct
42. A relationship can be both Recursive and Hierachal at the same time. True or False? Mark for
Review
(1) Points
True
False (*)
Section 8
43. Your apperance at a presentation is important. You need to look smart and presentable. True or
False? Mark for Review
(1) Points
True (*)
False
Correct
44. Database Design projects must use Consultants or they will fail. True or False? Mark for Review
(1) Points
True
False (*)
Section 10
45. You are doing a data model for a computer sales company, where the price of postage is
dependent on what day of the week goods are shipped. So shipping is more expensive if the customer
wants a delivery to take place on a Saturday or Sunday. What would be the best way to model
this? Mark for Review
(1) Points
Use a Delivery Day entity, which holds prices against week days, and ensure the we also have an
attribute for the Requested Delivery Day in the Order Entity. (*)
Update the prices in the system, print out the current prices when they change and pin them on the
company noticeboard
Correct
46. All systems must include functionality to provide logging or journaling in conceptual data models.
True or False? Mark for Review
(1) Points
True
False (*)
47. There is only one way to model time in a Data Model. True or False? Mark for Review
(1) Points
True
False (*)
Correct
48. When you add the concept of time to your data model, your model becomes more complex. True
or False? Mark for Review
(1) Points
True (*)
False
Correct
49. Modeling historical data is Optional. True or False? Mark for Review
(1) Points
True (*)
False
Correct
50. All systems must have an entity called WEEK with a holiday attribute, so you know when to give
your employees a holiday. True or False? Mark for Review
(1) Points
True
False (*)
Correct
Section 12
1. The explanation below is a column integrity constraint:
A column must contain only values consistent with the defined data format of the column. True or
False?
Mark for Review
(1) Points
True (*)
False
Correct
2. Identify all of the incorrect statements that complete this sentence: A primary key is: (Choose
three) Mark for Review
(1) Points
(Choose all correct answers)
A single column that uniquely identifies each column in a table (*)
One or more columns in a table that uniquely identifies each row in that table
A set of columns in one table that uniquely identifies each row in another table (*)
Only one column that must be null (*)
Correct
3. The explanation below is a User Defined integrity rule and must therefore be manually coded, the
Database cannot enforce this rule automatically:
A primary key must be unique, and no part of the primary key can be null. True or False?
Mark for Review
(1) Points
True
False (*)
Correct
4. The text below is an example of what constraint type:
The value in the manager_id column of the EMPLOYEES table must match a value in the employee_id
column in the EMPLOYEES table.
Mark for Review
(1) Points
Entity integrity
User-defined integrity
Column integrity
Referential integrity (*)
Incorrect. Refer to Section 12
5. In a physical data model, an attribute becomes a _____________. Mark for Review
(1) Points
Table
Foreign Key
Constraint
Column (*)
Correct
9. Many to many relationships are implemented via a structure called a: ________________ Mark for
Review
(1) Points
Supertype
Intersection Table (*)
Intersection Entity
Subtype
Incorrect. Refer to Section 12
10. When mapping supertypes, relationships at the supertype level transform as usual. Relationships
at subtype level are implemented as foreign keys, but the foreign key columns all become mandatory.
True or False? Mark for Review
(1) Points
True
False (*)
Correct
Section 12
11. Which of the following are reasons why you should consider using a Subtype Implementation?
Mark for Review
(1) Points
The resulting table will reside in a single database and be used by just ONE user.
When the common access paths for the supertypes are different.
Business functionality and business rules, access paths and frequency of access are all very different
between subtypes. (*)
Most of the relationships are at the supertype level
Correct
Section 13
12. The _______ clause can be added to a SELECT statement to return a subset of the data. Mark for
Review
(1) Points
ANYWHERE
WHICH
WHERE (*)
EVERY
Correct.
13. The DESCRIBE command returns all rows from a table. True or False? Mark for Review
(1) Points
True
False (*)
Incorrect. Refer to Section 13
Section 16
14. Which SQL keyword specifies that an alias will be substituted for a column name in the output of a
SQL query? Mark for Review
(1) Points
AS (*)
OR
AND
SUBSTITUTE
Correct.
To insert data
To view data (*)
To display the table structure
To delete data
Correct.
Section 16
21. Any Non-UID must be dependant on the entire UID. True or False? Mark for Review
(1) Points
True (*)
False
Correct
22. When is an entity in 2nd Normal Form? Mark for Review
(1) Points
When all non-UID attributes are dependent upon the entire UID. (*)
When no attritibutes are mutually independant and fully independent on the primary key.
When no attritibutes are mutually independent and all are fully dependent on the primary key.
None of the Above.
Incorrect. Refer to Section 6
Section 17
23. What does the DISTINCT keyword do when it is used in a SELECT clause? Mark for Review
(1) Points
Hides NULL values
/
+
|| (*)
Correct. See Section 17
27. You need to display employees whose salary is in the range of 30000 and 50000. Which
comparison operator should you use? Mark for Review
(1) Points
IN
LIKE
BETWEENAND (*)
IS NULL
Correct.
28. Which clause would you include in a SELECT statement to restrict the data returned to only the
employees in department 10? Mark for Review
(1) Points
WHERE (*)
FROM
SELECT
IS
Correct.
29. Evaluate this SELECT statement:
SELECT *
FROM employees
WHERE department_id IN(10, 20, 30)
AND salary > 20000;
You want to display all players names with position 6900 or greater. You want the players names to
be displayed alphabetically by last name and then by first name. Which statement should you use to
achieve the required results?
Mark for Review
(1) Points
SELECT last_name, first_name
FROM players
WHERE position_id >= 6900
ORDER BY last_name, first_name;
(*)
SELECT last_name, first_name
FROM players
WHERE position_id > 6900
ORDER BY last_name, first_name;
SELECT last_name, first_name
FROM players
WHERE position_id <= 6900
ORDER BY last_name, first_name;
SELECT last_name, first_name
FROM players
WHERE position_id >= 6900
ORDER BY last_name DESC, first_name;
Correct.
39. Evaluate this SELECT statement:
SELECT *
FROM employees
WHERE salary > 30000
AND department_id = 10
OR email IS NOT NULL;
Which statement is true?
Mark for Review
(1) Points
This statement fails when executed. Which clause contains a syntax error?
Mark for Review
(1) Points
SELECT product_id Product Number, category_id Category, price price
ORDER BY Product Number;
FROM products
WHERE Category = 5570 (*)
Incorrect! See Section 18.
43. Evaluate this SELECT statement:
SELECT employee_id, last_name, first_name, salary Yearly Salary
FROM employees
WHERE salary IS NOT NULL
ORDER BY last_name, 3;
Which clause contains an error?
Mark for Review
(1) Points
SELECT employee_id, last_name, first_name, salary Yearly Salary (*)
FROM employees
WHERE salary IS NOT NULL
ORDER BY last_name, 3;
Correct.
44. Evaluate this SELECT statement:
SELECT last_name, first_name, department_id, manager_id
FROM employees;
You need to sort data by manager id values and then alphabetically by employee last name and first
name values. Which ORDER BY clause could you use?
DESC (*)
ASC
SORT
CHANGE
Correct.
OA2
noiembrie 19, 2010
Sectiunea 1
1. Users with detailed business knowledge can provide input to the Database
Development Process? True or False?
-True (*)
-False
2. Consider your school library. It will have a database with transaction details of
which student borrows which books. Is a record of one student borrowing one
book Data or Information?
-Data (*)
-Information
-Both
-Neither
-Internet Browser
-Server (*)
-Operating System
4. The main subject areas taught by the Oracle Academy are: -Computer
Repairs
-Database performance tuning.
-Data Modeling, SQL and PL/SQL (*)
-Systems programming and computer architecture
Sectiunea 2
5. Attributes have Instances. True or
False? -True
-False (*)
-Bird
-Elephant
-Leaf (*)
8. Volatile entities have special requirements and need special attention when
you are doing data modelling. True or False?
-True (*) -False
9. The
entity/relationship
model is created
before the
physical database
design model?
True or False?
-True (*)
-False
Sectiunea 3
Sectiunea 4
17. Why is it important to identify and document structural rules?
-Ensures we know what data to store and how that data works together. (*)
-Ensures nothing. There are no benefits to be gained from documenting your Structural
Business
-Ensures we know what Information to store and how that Information works together.
-All of the Above.
18. Only teachers may supervise exams is an example of which of the following? -A
procedural business rule (*) -An attribute that should be stored on the PERSON entity
-A structural business rule -An attribute that is not be inherited from the PERSON
supertype and is unique to the TEACHER subtype
19. Business rules are important to data modelers. True or
False? -True (*)
-False
20. A business rule such as We only ship goods after
customers have completely paid any outstanding balances
on their account is best enforced by:
-Making the payment attribute null.
-Making the payment attribute optional.
-We need to trust our customers, and we know they will
pay some day.
-Hiring a programmer to create additional programming
code to verify no goods are shipped until the account has
been settled in full. (*)
21. All instances of the supertype must be an instance of one of the subtypes. True
or False? -True (*)
-False
22. All instances of a subtype may be an instance of the supertype but does not
have to. True or False?
-True
-False (*)
23. When creating entities you must follow these rules:
(Choose Two) -Name them in Plural
-Name them in Singular (*)
-Exclude Attributes
-Include Attributes (*)
24. The Other subtype is mandatory. True or False? -True
-False (*)
25. Which of the following is true about subtypes?
-One instance may belong to two subtypes of the same supertype.
-Subtypes must be mutually exclusive. (*)
-Subtypes must not be mutually exclusive.
-Subtype entities may not have relationships to the other subtype entities, only the
supertype itself.
Sectiunea 5
26. Intersection Entities often have the relationships participating in the UID, so the
relationships are often barred. True or False?
-True (*)
-False
27. If two entities have two relationships between them, these relationships can
be either _____________ or _____________ ?
-Redundant or Required (*)
-Replicated or Required -Resourced and Really Good -Redundant and
Replicated
28. Relationships can be Redundant. True or
False? -True (*) -False
32. As a database designer you do not need to worry about where in the datamodel
you store a particular attribute, as long as you get it onto the ERD your job is done.
True or False? -True -False (*)
33. Any Non-UID must be dependant on the entire UID. True or False? -True (*) False
36. A relationship can be both Recursive and Hierachal at the same time. True
or False? -True -False (*)
37. No parts of an UID are mandatory. True or False? -True -False (*)
ADDRESS: #
House Number
Street
Town
City
Year of Build
o City Population
This entity is NOT in
3rd Normal Form (no
non-UID attribute can
be dependent on
another non-UID
attribute). True or
False?
-True (*)
-False
40. Arcs are used to visually represent _________ between two or more relationships
in an ERD. -Sameness
-Differences
-Exclusivity (*)
-Inheritance
-True
-False (*)
43. Consultants often use their experience in ensuring projects stay on track and
delivers within the timescales set out for the project. True or False?
-True (*)
-False
44. Your apperance at a presentation is important. You need to look smart and
presentable. True or False?
-True (*)
-False
45. There is only one way to model time in a Data Model. True
or False? True
-False (*)
48. When you add the concept of time to your data model, your model becomes
more complex. True or False?
-True (*)
-False
49. You are doing a data model for a computer sales company, where the price of
postage is dependent on what day of the week goods are shipped. So shipping is
more expensive if the customer wants a delivery to take place on a Saturday or
Sunday. What would be the best way to model this?
-Use a Delivery Day entity, which holds prices against week days, and ensure the we
also have an attribute for the Requested Delivery Day in the Order Entity. (*)
-Email current price to all employees whenever the prices change.
-Update the prices in the system, print out the current prices when they change and
pin them on the company noticeboard.
-Allow them to enter whatever ever delivery charge they want.
50. Which of the following is a logical constraint that could result from considering
how time impacts an example of data storage?
-An ASSIGNMENT may only refer to an EMPLOYEE with a valid employee
record at the Start Date of the ASSIGNMENT. (*)
-EMPLOYEE periods can overlap causing the database to crash.
-End Date must be before the Start Date.
-Dates must be stored with Time.
Postat in Uncategorized | Leave a Comment
7. In a physical data model, a relationship is represented as a combination of: (Choose Two) Mark for
Review
(1) Points
(Choose all correct answers)
Column
Primary Key or Unique Key (*)
Check Constraint or Unique Key
Foreign Key (*)
Correct
8. It is possible to implement non-transferability via a simple Foreign Key Relationship. True or False?
Mark for Review
(1) Points
True
False (*)
Correct
9. Many to many relationships are implemented via a structure called a: ________________ Mark for
Review
(1) Points
Supertype
Intersection Table (*)
Intersection Entity
Subtype
Incorrect. Refer to Section 12
10. When mapping supertypes, relationships at the supertype level transform as usual. Relationships
at subtype level are implemented as foreign keys, but the foreign key columns all become mandatory.
True or False? Mark for Review
(1) Points
True
False (*)
Correct
Section 12
11. Which of the following are reasons why you should consider using a Subtype Implementation?
Mark for Review
(1) Points
The resulting table will reside in a single database and be used by just ONE user.
When the common access paths for the supertypes are different.
Business functionality and business rules, access paths and frequency of access are all very different
between subtypes. (*)
Most of the relationships are at the supertype level
Correct
Section 13
12. The _______ clause can be added to a SELECT statement to return a subset of the data. Mark for
Review
(1) Points
ANYWHERE
WHICH
WHERE (*)
EVERY
Correct.
13. The DESCRIBE command returns all rows from a table. True or False? Mark for Review
(1) Points
True
False (*)
Incorrect. Refer to Section 13
Section 16
14. Which SQL keyword specifies that an alias will be substituted for a column name in the output of a
SQL query? Mark for Review
(1) Points
AS (*)
OR
AND
SUBSTITUTE
Correct.
15. You query the database with this SQL statement:
SELECT *
FROM transaction
WHERE product_id = 4569;
Which SQL SELECT statement capabilities are achieved when this statement is executed?
Mark for Review
(1) Points
Selection only (*)
Projection only
Selection and projection only
Selection only
Projection only (*)
Projection and Selection
Correct.
19. In a SELECT clause, what is the result of 2 + 3 * 2? Mark for Review
(1) Points
6
8 (*)
10
13
Correct.
20. You query the database with this SQL statement:
SELECT * FROM students;
Why would you use this statement?
Mark for Review
(1) Points
To insert data
To view data (*)
To display the table structure
To delete data
Correct.
Section 16
21. Any Non-UID must be dependant on the entire UID. True or False? Mark for Review
(1) Points
True (*)
False
Correct
22. When is an entity in 2nd Normal Form? Mark for Review
(1) Points
When all non-UID attributes are dependent upon the entire UID. (*)
When no attritibutes are mutually independant and fully independent on the primary key.
When no attritibutes are mutually independent and all are fully dependent on the primary key.
None of the Above.
Incorrect. Refer to Section 6
Section 17
23. What does the DISTINCT keyword do when it is used in a SELECT clause? Mark for Review
(1) Points
Hides NULL values
Eliminates all unique values and compares values
Eliminates duplicate rows in the result (*)
Eliminates only unique rows in the result
Correct. See Section 17
24. Which symbol represents the not equal to condition? Mark for Review
(1) Points
#
+
!= (*)
~
Correct.
25. Which statement best describes how column headings are displayed by default in Oracle
Application Express: Mark for Review
(1) Points
Column headings are displayed left-justified and in lowercase.
Column headings are displayed left-justified and in uppercase.
Column headings are displayed centered and in uppercase. (*)
Column headings are displayed centered and in mixed case.
Correct. See Section 17
26. Which operator is used to combine columns of character strings to other columns? Mark for
Review
(1) Points
*
/
+
|| (*)
Correct. See Section 17
27. You need to display employees whose salary is in the range of 30000 and 50000. Which
comparison operator should you use? Mark for Review
(1) Points
IN
LIKE
BETWEENAND (*)
IS NULL
Correct.
28. Which clause would you include in a SELECT statement to restrict the data returned to only the
employees in department 10? Mark for Review
(1) Points
WHERE (*)
FROM
SELECT
IS
Correct.
29. Evaluate this SELECT statement:
SELECT *
FROM employees
WHERE department_id IN(10, 20, 30)
AND salary > 20000;
Which values would cause the logical condition to return TRUE?
Mark for Review
(1) Points
DEPARTMENT_ID = 10 and SALARY = 20000
DEPARTMENT_ID = 20 and SALARY = 20000
DEPARTMENT_ID = null and SALARY = 20001
DEPARTMENT_ID = 10 and SALARY = 20001 (*)
Correct. See Section 17
30. What will the result of the following SELECT statement be:
SELECT last_name, salary, salary + 300
FROM employees;
How will the heading for the SALARY column appear in the display by default in Oracle Application
Express?
Mark for Review
(1) Points
Display the last name, salary and the results of adding 300 to each salary for all the employees (*)
Modify the salary column by adding 300 and displaying the last name, salary and the new salary.
Modify the salary column by adding 300 and only display the last name and the new salary.
Display the last name, salary and the results of adding 300 to the salary of the first employee row
Correct. See Section 17
Section 17
31. The PLAYERS table contains these columns:
PLAYER_ID NUMBER(9)
LAST_NAME VARCHAR2(20)
FIRST_NAME VARCHAR2 (20)
TEAM_ID NUMBER (4)
MANAGER_ID NUMBER (9)
POSITION_ID NUMBER (4)
Which SELECT statement should you use if you want to display unique combinations of the TEAM_ID
and MANAGER_ID columns?
Mark for Review
(1) Points
SELECT * FROM players;
SELECT team_id, manager_id FROM players;
SELECT DISTINCT team_id, manager_id FROM players; (*)
SELECT team_id, DISTINCT manager_id FROM players;
OR department_id = 45
OR department_id = 67;
Which operator is the equivalent of the OR conditions used in this SELECT statement?
Mark for Review
(1) Points
IN (*)
AND
LIKE
BETWEEN AND
Incorrect! See Section 18.
Section 18
41. You need to create a report to display all employees that were hired on or after January 1, 1996.
The data should display in this format:
Employee Start Date and Salary
14837 Smith 10-MAY-92 / 5000
Which SELECT statement could you use?
Mark for Review
(1) Points
SELECT employee_id || || last_name Employee,
hire_date || / || salary Start Date and Salary
FROM employees
WHERE hire_date <= 01-JAN-96;
SELECT employee_id || || last_name Employee,
hire_date || || salary Start Date and Salary
FROM employees
WHERE hire_date <= 01-JAN-96;
SELECT employee_id ||'- || last_name Employee,
hire_date || / || salary Start Date and Salary
FROM employees
WHERE hire_date <= 01-JAN-96;
SELECT employee_id || || last_name Employee,
hire_date || / || salary Start Date and Salary
FROM employees
WHERE hire_date <= 01-JAN-96;
SELECT employee_id || || last_name Employee,
hire_date || / || salary Start Date and Salary
FROM employees
WHERE hire_date <= 01-JAN-96;
(*)
Incorrect! See Section 18.
42. You attempt to query the database with this SQL statement:
SELECT product_id Product Number, category_id Category, price Price
FROM products
WHERE Category = 5570
ORDER BY Product Number;
This statement fails when executed. Which clause contains a syntax error?
Mark for Review
(1) Points
SELECT product_id Product Number, category_id Category, price price
ORDER BY Product Number;
FROM products
WHERE Category = 5570 (*)
Incorrect! See Section 18.
43. Evaluate this SELECT statement:
SELECT employee_id, last_name, first_name, salary Yearly Salary
FROM employees
The ORDER BY clause can only contain columns that are included in the SELECT list.
The ORDER BY clause should immediately precede the FROM clause in a SELECT statement
Correct.
49. Which clause would you include in a SELECT statement to sort the rows returned by the
LAST_NAME column? Mark for Review
(1) Points
ORDER BY (*)
WHERE
FROM
HAVING
Correct.
50. You need to change the default sort order of the ORDER BY clause so that the data is displayed in
reverse alphabetical order. Which keyword should you include in the ORDER BY clause? Mark for
Review
(1) Points
DESC (*)
ASC
SORT
CHANGE