You are on page 1of 143

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? Mark for Review
(1) Points
Data (*)
Information
Both
Neither
Correct
2. 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
3. Businesses involved in any of the following typically use databases to handle their data: Finance,
Logistics, Commerce, Procurement and Distribution? True or False? Mark for Review
(1) Points
True (*)
False
Correct
4. The main subject areas taught by the Oracle Academy are: Mark for Review
(1) Points
Computer Repairs
Database performance tuning.

Data Modeling, SQL and PL/SQL (*)


Systems programming and computer architecture

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

8. In a physical data model, a relationship is represented as a? Mark for Review


(1) Points
Column
Row
Instance
Foreign Key (*)
Correct
9. Which of the following entities most likely contains valid attributes? (Choose two) Mark for Review
(1) Points
(Choose all correct answers)
Entity: Home. Attributes: Number of Bedrooms, Owner, Address, Date Built (*)
Entity: Pet. Attributes: Name, Birthdate, Owner (*)
Entity: Car. Attributes: Owner Occupation, Owner Salary, Speed
Entity: Mother. Attributes: Name, Birthdate, Occupation, Salary
Incorrect. Refer to Section 2 Lesson 2.
10. The Physical Model is derived from the Conceptual Model. True or False? Mark for Review
(1) Points
True (*)
False

11. Attributes have Instances. True or False? Mark for Review


(1) Points

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

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.
Correct
19. Which of the following are suitable Entity names? (Choose Two) Mark for Review
(1) Points
(Choose all correct answers)
DOGS
ANIMAL (*)
ANIMALS
DOG (*)
Incorrect. Refer to Section 4 Lesson 1.

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

By including the UID from the

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.

Incorrect. Refer to Section 6 Lesson 1.

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 (*)

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

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 (*)

ISBN Number for Book (*)


Date of birth for Baby
Correct

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

Postat in Uncategorized | Leave a Comment

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

(Choose all correct answers)

Hierarchical (*)

Relational (*)

SQL

Network (*)

Mark for Review

Correct

3.

Correct

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

4.

Correct

The main subject areas taught by the Oracle Academy are:

Mark for Review

(1) Points

Computer Repairs

Database performance tuning.

Data Modeling, SQL and PL/SQL (*)

Systems programming and computer architecture

Correct

Section 2

Correct

5.

The Physical Model is derived from the Conceptual Model. True or False?

Mark for Review

(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

Mark for Review

False (*)

Correct

7.

Correct

An entity can have many Unique Identifiers. True or False?

(1) Points

True (*)

False

Correct

Correct

Mark for Review

8.

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

Correct

9.

Which of the following statements about relationships are true? (Choose Two)

Review
(1) Points

(Choose all correct answers)

They become foreign keys in the database. (*)

They must be mandatory to be created in the database.

They can be either mandatory or optional. (*)

They must exist between two different Entities.

Mark for

Correct

10.

Correct

Primary Unique Identifiers: (Choose Two)

Mark for Review

(1) Points

(Choose all correct answers)

Are Required. The data model is not complete until all entities have a Primary UID. (*)

Distinguish each instance of an entity from all others (*)

Are not required

You may create more than one Primary Unique Identifier for an entity

Correct

Correct

Section 2

11.

In a physical data model, a relationship is represented as a?

(1) Points

Column

Row

Instance

Foreign Key (*)

Mark for Review

Correct

Correct

Section 3

12.

Matrix Diagrams are mandatory when doing data modelling. True or False?

(1) Points

True

False (*)

Correct

Correct

Mark for Review

13.

All the Attributes in a system are just written on the ERD, and they all go in the Top Left Hand

Corner of the paper. True or False?

Mark for Review

(1) Points

True

False (*)

Correct

14.

Correct

One Relationship can be both mandatory and optional at different ends. True or

False?
(1) Points

True (*)

Mark for Review

False

Correct

15.

Correct

Relationship Degree/Cardinality is important. True or False?

(1) Points

True (*)

False

Correct

Correct

Mark for Review

16.

Matrix Diagrams are used to verify an ERD. True or False?

Mark for Review

(1) Points

True (*)

False

Correct

Correct

Section 4

17.

The Other subtype is mandatory. True or False?

(1) Points

Mark for Review

True

False (*)

Correct

18.

Correct

A supertype can only have two subtypes and no more. True or False?

(1) Points

True

False (*)

Mark for Review

Correct

19.

Correct

Which of the following are suitable Entity names? (Choose Two)

(1) Points

(Choose all correct answers)

DOGS

ANIMAL (*)

ANIMALS

DOG (*)

Mark for Review

Correct

20.

Correct

A Supertype can have only one subtype. True or False?

(1) Points

True

False (*)

Correct

Section 4

Correct

Mark for Review

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

Only teachers may supervise exams is an example of which of the following?

for Review
(1) Points

A procedural business rule (*)

Mark

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

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

Mark for Review

True

False (*)

Correct

24.

Correct

Many to many relationships must be left in the Model. It is important to have them

documented as M-M. True or False?


(1) Points

True

False (*)

Mark for Review

Correct

25.

Correct

How do you include a relationship as part of the UID for an entity?

(1) Points

By barring the relationship in question (*)

By reporting it in an external document

By including the UID from the parent entity as an attribute in the entity

You cannot model that.

Mark for Review

Correct

26.

Correct

If two entities have two relationships between them, these relationships can be either

_____________ or _____________ ?
(1) Points

Redundant or Required (*)

Replicated or Required

Resourced and Really Good

Redundant and Replicated

Mark for Review

Correct

27.

Correct

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 (*)

Correct

28.

Correct

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 (*)

Correct

29.

Correct

Intersection Entities often have the relationships participating in the UID, so the relationships

are often barred. True or False?


(1) Points

Mark for Review

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?

Mark for Review

(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

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.

Correct

Correct

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.

Correct

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.

Correct

35.

Correct

No commercial database systems in the world will accept tables that are not on 3rd Normal

Form. True or False?


(1) Points

True

Mark for Review

False (*)

Correct

Correct

Section 7

36.

A particular problem may be solved using either a Recursive Relationship or a Hierarchy,

though not at the same time. True or False?


(1) Points

True (*)

False

Mark for Review

Correct

37.

Correct

If Audit trail attributes are added to an entity they must be in the entities they are auditing.

True or False?

Mark for Review

(1) Points

True (*)

False

Correct

Correct

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.

Correct

Arcs are used to visually represent _________ between two or more relationships in an

ERD.
(1) Points

Sameness

Mark for Review

Differences

Exclusivity (*)

Inheritance

Correct

40.

Correct

Primary UIDs are:

Mark for Review

(1) Points

Something that each Entity should have, but is not mandatory (*)

Useful as an alternative means of identifying instances of an entity, independent of their datatype

Mandatory in data modeling

Always comprised of numbers

Incorrect

Incorrect. Refer to Section 7 Lesson 1.

Section 7

41.

All relationships participating in an arc must be mandatory. True or False?

Review
(1) Points

True

Mark for

False (*)

Incorrect

42.

Incorrect. Refer to Section 7 Lesson 1.

Which of the following is NOT a relationship type?

(1) Points

Some to None (*)

One to One

One to Many

Mark for Review

Many to Many

Correct

Correct

Section 9

43.

Which of the following would be a logical constraint when modeling time for a City

entity?

Mark for Review

(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 (*)

Mark for Review

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. (*)

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.

Correct

46.

Correct

All systems must include functionality to provide logging or journaling in conceptual data

models. True or False?


(1) Points

True

False (*)

Correct

Correct

Mark for Review

Section 10

47.

All datamodels must be transformed from specific to generic. True or False?

Mark for Review

(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

should always try to follow them. True or False?


(1) Points

True (*)

Mark for Review

False

Correct

50.

Correct

There is no point in trying to group your entities together on your diagram according to

volume. Making a diagram pretty is a waste of time. True or False?


(1) Points

True

False (*)

Correct

Correct

Postat in Uncategorized | Leave a Comment

Mark for Review

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

Incorrect. Refer to Section 1

2. What is the difference between information and data? Mark for Review
(1) Points

Data is held and understood only by users.

Information is held and understood only by users.

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

True. All that perfect systems need are correct programs.

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

5. Databases were invented in 1989? True or False? Mark for Review

(1) Points

True

False (*)

Correct

6. Software cannot operate without Hardware. True or False? Mark for Review
(1) Points

True (*)

False

Correct

Section 2

7. An entity is instantiated as a ? Mark for Review


(1) Points

Experience

Instance

Table (*)

None of the above

Correct

8. Relationship names are usually verbs. True or False? Mark for Review
(1) Points

True (*)

False

Incorrect. Refer to Section 2

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

Natacha Hansen (*)

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

11. Primary Unique Identifiers: (Choose Two) Mark for Review


(1) Points

(Choose all correct answers)

Are required. The data model is not complete until all entities have a Primary UID. (*)

Distinguish each instance of an entity from all others. (*)

Are not required.

Can be created multiple times for an entity.

Correct

12. In a physical data model, a relationship is represented as a? Mark for Review


(1) Points

Column

Row

Instance

Foreign Key (*)

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

(Choose all correct answers)

Each FOOD TYPE must be suitable for one or more ANIMALs. (*)

Each ANIMAL must be the seller of one or more FOOD TYPES.

Each FOOD TYPE may be made from one or more ANIMALs.

Each FOOD TYPE may be given to 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

Incorrect. Refer to Section 3

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

(Choose all correct answers)

One or more Entities (*)

Relationships between entities (*)

Arcs

At least one supertype and subtype

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

(Choose all correct answers)

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 (*)

Make the attribute Gender mandatory

You cannot model this. You need to document it

Correct

25. Can all constraints be modeled on an ER diagram? Mark for Review


(1) Points

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

Yes, all constraints must be modeled and shown on the ER diagram

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

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. (*)

Incorrect. Refer to Section 4

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 barring the relationship in question (*)

By reporting it in an external document

By including the UID from the parent entity as an attribute in the entity

You cannot model that.

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

One to Many Optional

One to Many Mandatory

One to One Optional (*)

Many to Many Mandatory

Correct

30. Relationships can be Redundant. True or False? Mark for Review


(1) Points

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

CAR and WHEEL

TREE and BRANCH

PERSON and FINGERPRINT

TEACHER and SUBJECT AREA (*)

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

No it breaks the Normalization rules (*)

Correct

34. Until all attributes are single-valued, the database model is said to be: Mark for Review
(1) Points

Normalized

Not Normalized (*)

1st Normal Form

2nd Normal Form

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 (*)

Incorrect. Refer to Section 7

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

TEACHER (Female, Bob)

DELIVERY ADDRESS (Home, Office) (*)

PARENT (Girl, Bob)

STUDENT (Grade A student, Average Student)

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

41. Primary UIDs are: Mark for Review


(1) Points

Something that each Entity should have, but is not mandatory

Useful as an alternative means of identifying instances of an entity, independent of their datatype

Mandatory in data modeling (*)

Always comprised of numbers

Correct

42. A relationship can be both Recursive and Hierachal at the same time. True or False? Mark for
Review
(1) Points

True

False (*)

Incorrect. Refer to Section 7

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 (*)

Incorrect. Refer to Section 8

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. (*)

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.

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 (*)

Incorrect. Refer to Section 10

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

6. The transformation from an ER diagram to a physical design involves changing terminology.


Primary Unique Identifiers in the ER diagram become __________ and relationships become
____________. Mark for Review
(1) Points
Foreign keys, Primary keys
Primary keys, Foreign keys (*)
Foreign keys, mandatory business rules
Unique Keys, Primary keys
Correct
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
Projection, selection and joining
Incorrect. See Section 16
16. Evaluate this SELECT statement:
SELECT (salary * raise_percent) raise
FROM employees;
If the RAISE_PERCENT column only contains null values, what will the statement return?
Mark for Review
(1) Points
Only zeroes
Only null values (*)
A null value or a zero depending on the value of the SALARY column
A null value or a numeric value depending on the value of the SALARY column
Correct.
17. What would you use in the SELECT clause to return all the columns in the table? Mark for Review
(1) Points
An asterisk (*) (*)

A minus sign (-)


A plus sign (+)
The ALL keyword
Correct.
18. When you use the SELECT clause to list one or two columns only from a table and no WHERE
clause, which SQL capability is used? Mark for Review
(1) Points
Joining 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;
SELECT team_id, manager_id DISTINCT FROM players;
Correct.
32. You need write a SELECT statement that should only return rows that contain 34, 46, or 48 for the
DEPARTMENT_ID column. Which operator should you use in the WHERE clause to compare the
DEPARTMENT_ID column to this specific list of values? Mark for Review
(1) Points
=
!=
IN (*)
BETWEEN..AND..
Correct.
33. Which SELECT statement will display both unique and non-unique combinations of the
MANAGER_ID and DEPARTMENT_ID values from the EMPLOYEES table? Mark for Review
(1) Points
SELECT manager_id, department_id DISTINCT FROM employees;

SELECT manager_id, department_id FROM employees; (*)


SELECT DISTINCT manager_id, department_id FROM employees;
SELECT manager_id, DISTINCT department_id FROM employees;
Incorrect. See Section 17.
34. The EMPLOYEES table contains these columns:
EMPLOYEE_ID NUMBER(9) PrimaryKey
LAST_NAME VARCHAR2 (20)
FIRST_NAME VARCHAR2 (20)
DEPARTMENT_ID NUMBER(5) NOT NULL
MANAGER_ID NUMBER(9) NOT NULL
Evaluate these two SELECT statements:
1. SELECT DISTINCT employee_id, department_id, manager_id FROM employees;
2. SELECT employee_id, department_id, manager_id FROM employees;
Which of the following statements is true?
Mark for Review
(1) Points
The two statements will display the same data. (*)
The first statement will display a particular DEPARTMENT_ID only once.
The first statement will NOT display values from all of the rows in the EMPLOYEES table
The second statement could display a unique combination of the EMPLOYEE_ID, MANAGER_ID, and
DEPARTMENT_ID values more than once.
Correct. See Section 17
35. The STUDENT table contains these columns:
STUDENT_ID NUMBER(10) Primary Key
LAST_NAME VARCHAR2(25)
FIRST_NAME VARCHAR2(25)
MAIN_SUBJECT_ID NUMBER(3)
ADVISOR_ID NUMBER(5)

Evaluate this statement:


SELECT DISTINCT advisor_id, main_subject_id
FROM student;
Which statement is true?
Mark for Review
(1) Points
Each ADVISOR_ID can be displayed only once.
Each MAIN_SUBJECT_ID can be displayed more than once per ADVISOR_ID. (*)
Each combination of ADVISOR_ID and MAIN_SUBJECT_ID can be displayed more than once.
Each MAIN_SUBJECT_ID can be displayed only once per query.
Incorrect. See Section 17
36. The EMPLOYEES table includes these columns:
EMPLOYEE_ID NUMBER(4) NOT NULL
LAST_NAME VARCHAR2(15) NOT NULL
FIRST_NAME VARCHAR2(10) NOT NULL
HIRE_DATE DATE NOT NULL
You want to produce a report that provides the first names, last names and hire dates of those
employees who were hired between March 1, 2000, and August 30, 2000. Which statements can you
issue to accomplish this task?
Mark for Review
(1) Points
SELECT last_name, first_name, hire_date
FROM employees
WHERE hire_date BETWEEN 01-MAR-00 AND 30-AUG-00;
(*)
SELECT last_name, first_name, hire_date
FROM employees
WHERE hire_date BETWEEN 30-AUG-00 AND 01-MAR-00;

SELECT last_name, first_name, hire_date


FROM employees
GROUP BY hire_date >= 01-MAR-00 and hire_date <= 30- AUG-00;
SELECT last_name, first_name, hire_date
FROM employees
AND hire_date >= 01-MAR-00 and hire_date <= 30-AUG- 00;
Correct.
Section 18
37. Evaluate this SQL statement:
SELECT e.employee_id, e.last_name, e.first_name, m.manager_id
FROM employees e, employees m
ORDER BY e.last_name, e.first_name
WHERE e.employee_id = m.manager_id;
This statement fails when executed. Which change will correct the problem?
Mark for Review
(1) Points
Reorder the clauses in the query. (*)
Remove the table aliases in the WHERE clause.
Remove the table aliases in the ORDER BY clause.
Include a HAVING clause.
Correct.
38. The PLAYERS table contains these columns:
PLAYERS TABLE:
LAST_NAME VARCHAR2 (20)
FIRST_NAME VARCHAR2 (20)
SALARY NUMBER(8,2)
TEAM_ID NUMBER(4)
MANAGER_ID NUMBER(9)
POSITION_ID NUMBER(4)

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

The OR condition will be evaluated before the AND condition.


The AND condition will be evaluated before the OR condition. (*)
The OR and AND conditions have the same precedence and will be evaluated from left to right
The OR and AND conditions have the same precedence and will be evaluated from right to left
Correct.
40. Evaluate this SELECT statement:
SELECT *
FROM employees
WHERE department_id = 34
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
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?

Mark for Review


(1) Points
ORDER BY department_id, last_name
ORDER BY manager_id, last_name, first_name (*)
ORDER BY last_name, first_name, manager_id
ORDER BY manager_id, first_name, last_name
Correct.
45. Which statement about the logical operators is true? Mark for Review
(1) Points
The order of operator precedence is AND, OR, and NOT.
The order of operator precedence is AND, NOT, and OR.
The order of operator precedence is NOT, OR, and AND.
The order of operator precedence is NOT, AND, and OR. (*)
Correct.
46. Which comparison condition means Less Than or Equal To? Mark for Review
(1) Points
=)
+<
>=
<= (*)
Correct.
47. From left to right, what is the correct order of Precedence? Mark for Review
(1) Points

Arithmetic, Concatenation, Comparison, OR (*)


NOT, AND, OR, Arithmetic
Arithmetic, NOT, Logical, Comparison
Arithmetic, NOT, Concatenation, Logical
Correct.
48. Which statement about the ORDER BY clause is true? Mark for Review
(1) Points
You can use a column alias in the ORDER BY clause. (*)
The default sort order of the ORDER BY clause is descending.
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
Correct.

Postat in Uncategorized | Leave a Comment

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

3. Oracle Database Software provides which of the following functionality?


(Choose two)
-Graphical User Interface (*)

-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 (*)

6. Data modelling is performed for the


following reasons: (Choose Two)
-The ERDs becomes a blueprint for
designing the actual system. (*)
-It helps discussions and reviews. (*)
-We do not need datamodels, we can
just start coding right away.
-We just draw the ERDs to please the
users, once they are finished we never
look at them again. They serve no
purpose in the real world.

7. All of the following would be instances of the entity ANIMAL SPECIES


except which? -Dog

-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

10. An entity can have many Unique Identifiers. True


or False? -True (*)
-False

11. All of the following are examples of ENTITY:


Instance except two. Select the answers that are
ENTITY: Instance. (Choose Two)
-TRANSPORTATION METHOD: Car (*)
-ANIMAL: Dog (*)
-MEAT PRODUCT: Lettuce
-BODY PART: Larry Ellison

Sectiunea 3

12. When reading an ERD including Relationships you are said to be


speaking: -Relationship-ish
-Gibberish
-ERDish (*)
-Entity-ish

13. Relationships represents something of significance to the business.


True or False? -True (*)
-False

14. Relationship Degree/Cardinality is important. True


or False? -True (*)
-False

15. Matrix Diagrams are used to verify an ERD. True or


False? -True (*)
-False

16. Which symbol is used to show that a particular attribute is


mandatory? -* (*)
-o
-# &

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

Rules. We need to concentrate on the Procedural Business Rules only.

-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

29. How do you include a relationship as part


of the UID for an entity? -By barring the
relationship in question (*) -By reporting it in
an external document -By including the UID
from the parent entity as an attribute in the
entity -You cannot model that.

30. Many to many relationships must be left in the Model. It is important to


have them documented as M-M. True or False? -True -False (*)

31. If a relationship can NOT be moved between instances of the entities it

connects, it is said to be: -Mandatory -Optional -Transferrable -NonTransferrable (*)

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

34. Normalizing an Entity to 1st Normal Form is done by removing repeated or


redundant attributes. True or False? -True (*) -False
35. The is no limit to how may UIDs an entity can have. 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 (*)

mandatory -Useful as an alternative means of identifying instances of an entity,


independent of their datatype
-Mandatory in data modeling (*) -Always comprised of numbers

39. Consider the entity ADDRESS with the


attributes:

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

41. Which of the following is NOT a


relationship type? -Some to None (*)
-One to One -One to Many
-Many to Many

42. Modeling historical data can produce a


unique identifier that always excludes dates.
True or False?

-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 (*)

46. Which of the following would be a logical constraint when


modeling time for a City entity? -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. (*)
-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
47. Modeling historical data is Optional. 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

Oracle Academy MidTherm ~1


noiembrie 19, 2010

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
6. The transformation from an ER diagram to a physical design involves changing terminology.
Primary Unique Identifiers in the ER diagram become __________ and relationships become
____________. Mark for Review
(1) Points
Foreign keys, Primary keys
Primary keys, Foreign keys (*)
Foreign keys, mandatory business rules
Unique Keys, Primary keys
Correct

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

Projection, selection and joining


Incorrect. See Section 16
16. Evaluate this SELECT statement:
SELECT (salary * raise_percent) raise
FROM employees;
If the RAISE_PERCENT column only contains null values, what will the statement return?
Mark for Review
(1) Points
Only zeroes
Only null values (*)
A null value or a zero depending on the value of the SALARY column
A null value or a numeric value depending on the value of the SALARY column
Correct.
17. What would you use in the SELECT clause to return all the columns in the table? Mark for Review
(1) Points
An asterisk (*) (*)
A minus sign (-)
A plus sign (+)
The ALL keyword
Correct.
18. When you use the SELECT clause to list one or two columns only from a table and no WHERE
clause, which SQL capability is used? Mark for Review
(1) Points
Joining 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;

SELECT team_id, manager_id DISTINCT FROM players;


Correct.
32. You need write a SELECT statement that should only return rows that contain 34, 46, or 48 for the
DEPARTMENT_ID column. Which operator should you use in the WHERE clause to compare the
DEPARTMENT_ID column to this specific list of values? Mark for Review
(1) Points
=
!=
IN (*)
BETWEEN..AND..
Correct.
33. Which SELECT statement will display both unique and non-unique combinations of the
MANAGER_ID and DEPARTMENT_ID values from the EMPLOYEES table? Mark for Review
(1) Points
SELECT manager_id, department_id DISTINCT FROM employees;
SELECT manager_id, department_id FROM employees; (*)
SELECT DISTINCT manager_id, department_id FROM employees;
SELECT manager_id, DISTINCT department_id FROM employees;
Incorrect. See Section 17.
34. The EMPLOYEES table contains these columns:
EMPLOYEE_ID NUMBER(9) PrimaryKey
LAST_NAME VARCHAR2 (20)
FIRST_NAME VARCHAR2 (20)
DEPARTMENT_ID NUMBER(5) NOT NULL
MANAGER_ID NUMBER(9) NOT NULL

Evaluate these two SELECT statements:


1. SELECT DISTINCT employee_id, department_id, manager_id FROM employees;
2. SELECT employee_id, department_id, manager_id FROM employees;
Which of the following statements is true?
Mark for Review
(1) Points
The two statements will display the same data. (*)
The first statement will display a particular DEPARTMENT_ID only once.
The first statement will NOT display values from all of the rows in the EMPLOYEES table
The second statement could display a unique combination of the EMPLOYEE_ID, MANAGER_ID, and
DEPARTMENT_ID values more than once.
Correct. See Section 17
35. The STUDENT table contains these columns:
STUDENT_ID NUMBER(10) Primary Key
LAST_NAME VARCHAR2(25)
FIRST_NAME VARCHAR2(25)
MAIN_SUBJECT_ID NUMBER(3)
ADVISOR_ID NUMBER(5)
Evaluate this statement:
SELECT DISTINCT advisor_id, main_subject_id
FROM student;
Which statement is true?
Mark for Review
(1) Points
Each ADVISOR_ID can be displayed only once.
Each MAIN_SUBJECT_ID can be displayed more than once per ADVISOR_ID. (*)
Each combination of ADVISOR_ID and MAIN_SUBJECT_ID can be displayed more than once.

Each MAIN_SUBJECT_ID can be displayed only once per query.


Incorrect. See Section 17
36. The EMPLOYEES table includes these columns:
EMPLOYEE_ID NUMBER(4) NOT NULL
LAST_NAME VARCHAR2(15) NOT NULL
FIRST_NAME VARCHAR2(10) NOT NULL
HIRE_DATE DATE NOT NULL
You want to produce a report that provides the first names, last names and hire dates of those
employees who were hired between March 1, 2000, and August 30, 2000. Which statements can you
issue to accomplish this task?
Mark for Review
(1) Points
SELECT last_name, first_name, hire_date
FROM employees
WHERE hire_date BETWEEN 01-MAR-00 AND 30-AUG-00;
(*)
SELECT last_name, first_name, hire_date
FROM employees
WHERE hire_date BETWEEN 30-AUG-00 AND 01-MAR-00;
SELECT last_name, first_name, hire_date
FROM employees
GROUP BY hire_date >= 01-MAR-00 and hire_date <= 30- AUG-00;
SELECT last_name, first_name, hire_date
FROM employees
AND hire_date >= 01-MAR-00 and hire_date <= 30-AUG- 00;
Correct.
Section 18
37. Evaluate this SQL statement:
SELECT e.employee_id, e.last_name, e.first_name, m.manager_id
FROM employees e, employees m

ORDER BY e.last_name, e.first_name


WHERE e.employee_id = m.manager_id;
This statement fails when executed. Which change will correct the problem?
Mark for Review
(1) Points
Reorder the clauses in the query. (*)
Remove the table aliases in the WHERE clause.
Remove the table aliases in the ORDER BY clause.
Include a HAVING clause.
Correct.
38. The PLAYERS table contains these columns:
PLAYERS TABLE:
LAST_NAME VARCHAR2 (20)
FIRST_NAME VARCHAR2 (20)
SALARY NUMBER(8,2)
TEAM_ID NUMBER(4)
MANAGER_ID NUMBER(9)
POSITION_ID NUMBER(4)
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
The OR condition will be evaluated before the AND condition.
The AND condition will be evaluated before the OR condition. (*)
The OR and AND conditions have the same precedence and will be evaluated from left to right
The OR and AND conditions have the same precedence and will be evaluated from right to left
Correct.
40. Evaluate this SELECT statement:
SELECT *
FROM employees
WHERE department_id = 34

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

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?
Mark for Review
(1) Points
ORDER BY department_id, last_name
ORDER BY manager_id, last_name, first_name (*)
ORDER BY last_name, first_name, manager_id
ORDER BY manager_id, first_name, last_name
Correct.
45. Which statement about the logical operators is true? Mark for Review
(1) Points
The order of operator precedence is AND, OR, and NOT.

The order of operator precedence is AND, NOT, and OR.


The order of operator precedence is NOT, OR, and AND.
The order of operator precedence is NOT, AND, and OR. (*)
Correct.
46. Which comparison condition means Less Than or Equal To? Mark for Review
(1) Points
=)
+<
>=
<= (*)
Correct.
47. From left to right, what is the correct order of Precedence? Mark for Review
(1) Points
Arithmetic, Concatenation, Comparison, OR (*)
NOT, AND, OR, Arithmetic
Arithmetic, NOT, Logical, Comparison
Arithmetic, NOT, Concatenation, Logical
Correct.
48. Which statement about the ORDER BY clause is true? Mark for Review
(1) Points
You can use a column alias in the ORDER BY clause. (*)
The default sort order of the ORDER BY clause is descending.

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

You might also like