poze 2

Post on 08-Apr-2018

215 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 1/569

Section 1

1. Oracle Database Software provides which of the following functionality? (Choose two) Mark for

Review

(1) Points

(Choose all correct answers)

Graphical User Interface (*)

Internet Browser

Server (*)

Operating System

Incorrect. Refer to Section 1 Lesson 4.

2. The first step in system development is to document the requirements. Why? Mark for Review

(1) Points

Wrong. A blueprint for the database design is not needed. We can just start coding straight away.

It clarifies what a business wants to accomplish, and provides measures for deciding if the system

delivers all that is required. (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 2/569

It allows application development to be conducted without having to consider database design.

It keeps businesses honest.

Incorrect. Refer to Section 1 Lesson 3.

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

Incorrect. Refer to Section 1 Lesson 1.

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

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 3/569

Data

Information (*)

Both

Neither

Incorrect. Refer to Section 1 Lesson 2.

Section 2

5. Data modelling is performed for the following reasons: (Choose Two) Mark for Review

(1) Points

(Choose all correct answers)

The ERD's 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.

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 4/569

We just draw the ERD's to please the users, once they are finished we never look at them again.

They serve no purpose in the real world.

Incorrect. Refer to Section 2 Lesson 1.

6. Entity and Attribute names are always interchangable, so you need not worry about choosing the

right type. True or False? Mark for Review

(1) Points

True

False (*)

Incorrect. Refer to Section 2 Lesson 3.

7. All of the following would be instances of the entity ANIMAL SPECIES except which? Mark for

Review

(1) Points

Dog

Bird

Elephant

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 5/569

Leaf (*)

Incorrect. Refer to Section 2 Lesson 2.

8. The entity/relationship model is created before the physical database design model? True or

False? Mark for Review

(1) Points

True (*)

False

Incorrect. Refer to Section 2 Lesson 2.

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

(1) Points

Column

Row

Instance

Foreign Key (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 6/569

 

Incorrect. Refer to Section 2 Lesson 2.

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

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

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 7/569

 

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

Correct

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

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 8/569

 

Incorrect. Refer to Section 3 Lesson 2.

14. A Matrix Diagram should be developed by your users. True or False? Mark for Review

(1) Points

True

False (*)

Incorrect. Refer to Section 3 Lesson 4.

15. Relationship Degree/Cardinality is important. True or False? Mark for Review

(1) Points

True (*)

False

Incorrect. Refer to Section 3 Lesson 1.

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 9/569

16. Relationship Names are optional. True or False? Mark for Review

(1) Points

True

False (*)

Correct

Section 4

17. A new system would have a mixture of both Procedural and Structural Business Rules as part of 

the documentation of that new system. True or False? Mark for Review

(1) Points

True (*)

False

Correct

18. The "Other" subtype is mandatory. True or False? Mark for Review

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 10/569

(1) Points

True

False (*)

Correct

19. A supertype can only have two subtypes and no more. True or False? Mark for Review

(1) Points

True

False (*)

Correct

20. You can only create relationships to a Supertype, not to a Subtype. True or False? Mark for

Review

(1) Points

True

False (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 11/569

 

Section 4

21. A Supertype can have only one subtype. True or False? Mark for Review

(1) Points

True

False (*)

Correct

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

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 12/569

 

Correct

Section 5

23. If a relationship can NOT be moved between instances of the entities it connects, it is said to be:

Mark for Review

(1) Points

Mandatory

Optional

Transferrable

Non-Transferrable (*)

Correct

24. Which of the following pairs of entities is most likely to be modeled as a M:M relationship?

Mark for Review

(1) Points

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 13/569

CAR and WHEEL

TREE and BRANCH

PERSON and FINGERPRINT

TEACHER and SUBJECT AREA (*)

Incorrect. Refer to Section 5 Lesson 2.

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

Incorrect. Refer to Section 5 Lesson 2.

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 14/569

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

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

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 15/569

 

Correct

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

Incorrect. Refer to Section 5 Lesson 3.

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 16/569

30. What do you call the entity created when you resolve a M:M relationship? Mark for Review

(1) Points

Intersection entity (*)

Inclusion entity

Recursive entity

M:M entity

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

32. All entities must be given a new artificial UID. True or False? Mark for Review

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 17/569

(1) Points

True

False (*)

Correct

33. There is no limit to how may UID's an entity can have. True or False? Mark for Review

(1) Points

True (*)

False

Correct

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

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 18/569

 

Correct

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

Correct

Section 7

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

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 19/569

 

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

Incorrect. Refer to Section 7 Lesson 2.

38. No parts of an UID are mandatory. True or False? Mark for Review

(1) Points

True

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 20/569

False (*)

Correct

39. 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. Refer to Section 7 Lesson 1.

40. Arcs are Mandatory in Data modeling. All ERD's must have at least one Arc. True or False? Mark

for Review

(1) Points

True

False (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 21/569

 

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

32. All entities must be given a new artificial UID. True or False? Mark for Review

(1) Points

True

False (*)

Correct

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 22/569

33. There is no limit to how may UID's an entity can have. True or False? Mark for Review

(1) Points

True (*)

False

Correct

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

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

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 23/569

 

False (*)

Correct

Section 7

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

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)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 24/569

 

Personal Identification number for Person (*)

Vehicle Registration Number for Car (*)

ISBN Number for Book (*)

Date of birth for Baby

Incorrect. Refer to Section 7 Lesson 2.

38. No parts of an UID are mandatory. True or False? Mark for Review

(1) Points

True

False (*)

Correct

39. Primary UIDs are: Mark for Review

(1) Points

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 25/569

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. Refer to Section 7 Lesson 1.

40. Arcs are Mandatory in Data modeling. All ERD's must have at least one Arc. True or False? Mark

for Review

(1) Points

True

False (*)

Section 7

41. All relationships participating in an arc must be mandatory. True or False? Mark for Review

(1) Points

True

False (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 26/569

 

Correct

42. An arc can also be modeled as Supertype and Subtypes. True or False? Mark for Review

(1) Points

True (*)

False

Incorrect. Refer to Section 7 Lesson 1.

Section 9

43. Modeling historical data is Optional. True or False? Mark for Review

(1) Points

True (*)

False

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 27/569

 

Correct

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

45. Which of the following is a logical constraint that could result from considering how time

impacts an example of data storage? Mark for Review

(1) Points

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.

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 28/569

 

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

Correct

Section 10

47. All datamodels must be transformed from specific to generic. True or False? Mark for Review

(1) Points

True

False (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 29/569

Correct

48. A datamodel containing generic modeling techniques must not be mixed in with non-generic

models. The generic entities MUST be drawn on a diagram of their own. True or False? Mark for

Review

(1) Points

True

False (*)

Incorrect. Refer to Section 10 Lesson 2.

49. 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? Mark for Review

(1) Points

True

False (*)

Incorrect. Refer to Section 11 Lesson 1.

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 30/569

50. Which of the following statements are true for ERD's to enhance their readability. (Choose Two)

Mark for Review

(1) Points

(Choose all correct answers)

Is is OK to break a big ERD down into subsets of the overall picture. This way you end up with more

than one ERD, that together documents the entire system. (*)

Try to avoid crossing lines (*)

The crows feet (many ends) can point whichever way is the easiest to draw

You must ensure you have all the entities on one single, big diagram, even if you have hundreds

1. Entities are transformed into Tables during the Database Design process. True or False? Mark for

Review

(1) Points

True (*)

False

Correct

2. Oracle Database Software provides which of the following functionality? (Choose two) Mark for

Review

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 31/569

(1) Points

(Choose all correct answers)

Graphical User Interface (*)

Internet Browser

Server (*)

Operating System

Incorrect. Refer to Section 1 Lesson 4.

3. Consider your school library. It will have a database with transaction details of which studentborrows 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

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 32/569

 

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

. Data modelling is performed for the following reasons: (Choose Two) Mark for Review

(1) Points

(Choose all correct answers)

The ERD's becomes a blueprint for designing the actual system. (*)

It helps discussions and reviews. (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 33/569

 

We do not need datamodels, we can just start coding right away.

We just draw the ERD's to please the users, once they are finished we never look at them again.

They serve no purpose in the real world.

Correct

6. Entity Relationship modeling is dependent on the hardware or software used forimplementation, so you will need to change your ERD if you decide to change Hardware Vendor. True

or False? Mark for Review

(1) Points

True

False (*)

Correct

7. All of the following could be attributes of an ENTITY called PERSON except one. Select the

incorrect one: Mark for Review

(1) Points

Haircolor

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 34/569

Weight

Gender

Natacha Hansen (*)

Correct

8. Which of the following statements about relationships are true? (Choose Two) Mark for 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.

Correct

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 35/569

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

10. All of the following would be instances of the entity ANIMAL SPECIES except which? Mark for

Review

(1) Points

Dog

Bird

Elephant

Leaf (*)

Incorrect. Refer to Section 2 Lesson

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 36/569

 

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

(1) Points

Experience

Instance

Table (*)

None of the above

Incorrect. Refer to Section 2 Lesson 2.

Section 3

12. Relationship Degree/Cardinality is important. True or False? Mark for Review

(1) Points

True (*)

False

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 37/569

 

Incorrect. Refer to Section 3 Lesson 1.

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

O:O

Incorrect. Refer to Section 3 Lesson 1.

14. Matrix Diagrams are mandatory when doing data modelling. True or False? Mark for Review

(1) Points

True

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 38/569

False (*)

Incorrect. Refer to Section 3 Lesson 3.

15. A Matrix Diagram should be developed by your users. True or False? Mark for Review

(1) Points

True

False (*)

Correct

16. Entity names are always singular. True or False? Mark for Review

(1) Points

True (*)

False

Correct

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 39/569

 

Section 4

17. A new system would have a mixture of both Procedural and Structural Business Rules as part of 

the documentation of that new system. True or False? Mark for Review

(1) Points

True (*)

False

Correct

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

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 40/569

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 41/569

 

At least one supertype and subtype

. The "Other" subtype is mandatory. True or False? Mark for Review

(1) Points

True

False (*)

Incorrect. Refer to Section 4 Lesson 1.

22. A Supertype can have only one subtype. True or False? Mark for Review

(1) Points

True

False (*)

Incorrect. Refer to Section 4 Lesson 1.

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 42/569

 

Section 5

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

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

Incorrect. Refer to Section 5 Lesson 3.

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 43/569

 

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

Incorrect. Refer to Section 5 Lesson 3.

26. If a relationship can NOT be moved between instances of the entities it connects, it is said to be:

Mark for Review

(1) Points

Mandatory

Optional

Transferrable

Non-Transferrable (*)

Incorrect. Refer to Section 5 Lesson 1.

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 44/569

 

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

Incorrect. Refer to Section 5 Lesson 2.

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.

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 45/569

 

Incorrect. Refer to Section 5 Lesson 2.

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

documented as M-M. True or False? Mark for Review

(1) Points

True

False (*)

Incorrect. Refer to Section 5 Lesson 2.

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

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 46/569

 

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 UID's 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 UID's.

No, each Entity can only have one UID, the secondary one.

Incorrect. Refer to Section 6 Lesson 1.

32. There is no limit to how may UID's an entity can have. True or False? Mark for Review

(1) Points

True (*)

False

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 47/569

Incorrect. Refer to Section 6 Lesson 1.

33. 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? Mark for

Review

(1) Points

True

False (*)

Correct

34. 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 someone's age every time we need it

Sometimes

No - it breaks the Normalization rules (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 48/569

Incorrect. Refer to Section 6 Lesson 3.

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

Incorrect. Refer to Section 6 Lesson 2.

Section 7

36. Primary UIDs are: Mark for Review

(1) Points

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

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 49/569

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

Mandatory in data modeling

Always comprised of numbers

Incorrect. Refer to Section 7 Lesson 1.

37. Which of the following is NOT a relationship type? Mark for Review

(1) Points

Some to None (*)

One to One

One to Many

Many to Many

Incorrect. Refer to Section 7 Lesson 1.

38. No parts of an UID are mandatory. True or False? Mark for Review

(1) Points

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 50/569

 

True

False (*)

Correct

39. 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)

Incorrect. Refer to Section 7 Lesson 1.

40. Arcs are Mandatory in Data modeling. All ERD's must have at least one Arc. True or False? Mark

for Review

(1) Points

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 51/569

True

False (*)

41. Historical data must never be kept. True or False? Mark for Review

(1) Points

True

False (*)

Correct

42. A recursive relationship must Mandatory at both ends. True or False? Mark for Review

(1) Points

True

False (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 52/569

Incorrect. Refer to Section 7 Lesson 2.

Section 9

43. 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? Mark for Review

(1) Points

True

False (*)

Correct

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

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 53/569

Correct

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

models. True or False? Mark for Review

(1) Points

True

False (*)

Correct

46. Which of the following is a logical constraint that could result from considering how time

impacts an example of data storage? Mark for Review

(1) Points

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.

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 54/569

Incorrect. Refer to Section 9 Lesson 2.

Section 10

47. All datamodels must be transformed from specific to generic. True or False? Mark for Review

(1) Points

True

False (*)

Incorrect. Refer to Section 10 Lesson 2.

48. Generic models are generally far more complex than a specific model. True or False? Mark for

Review

(1) Points

True

False (*)

Correct

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 55/569

 

49. There are formal rules for how to draw ERD's, even though they are only guidelines, you should

always try to follow them. True or False? Mark for Review

(1) Points

True (*)

False

Incorrect. Refer to Section 11 Lesson 1.

50. 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? Mark for Review

(1) Points

True

False (*)

Section 1

1. Oracle Database Software provides which of the following functionality? (Choose two) Mark for

Review

(1) Points

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 56/569

(Choose all correct answers)

Graphical User Interface (*)

Internet Browser

Server (*)

Operating System

Correct

2. The market for IT professionals is still increasing and will continue to do so in the future, as the

world gets ever more dependent on computer systems. True or False? Mark for Review

(1) Points

True (*)

False

Correct

3. Information which was gained from data is the same as: (Choose Two) Mark for Review

(1) Points

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 57/569

 

(Choose all correct answers)

Knowledge (*)

Raw Materials

Intelligence (*)

There is no difference between data and information.

Incorrect. Refer to Section 1 Lesson 2.

4. Entities are transformed into Tables during the Database Design process. True or False? Mark for

Review

(1) Points

True (*)

False

Correct

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 58/569

 

Section 2

5. Entity and Attribute names are always interchangable, so you need not worry about choosing the

right type. True or False? Mark for Review

(1) Points

True

False (*)

Correct

6. An entity can have many Unique Identifiers. True or False? Mark for Review

(1) Points

True (*)

False

Incorrect. Refer to Section 2 Lesson 2.

7. All of the following could be attributes of an ENTITY called PERSON except one. Select the

incorrect one: Mark for Review

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 59/569

(1) Points

Haircolor

Weight

Gender

Natacha Hansen (*)

Correct

8. Which of the following statements about relationships are true? (Choose Two) Mark for 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.

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 60/569

 

Correct

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

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

(1) Points

Experience

Instance

Table (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 61/569

 

None of the above

Correct

Section 2

11. Documenting Business Requirements helps developers control the scope of the systems, so

users do not suddenly want the new system to contain twice as much functionality. True or False?

Mark for Review

(1) Points

True (*)

False

Correct

Section 3

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

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 62/569

(1) Points

True (*)

False

Correct

13. Relationship Names are optional. 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

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 63/569

 

Correct

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

16. A Matrix Diagram should be developed by your users. True or False? Mark for Review

(1) Points

True

False (*)

Incorrect. Refer to Section 3 Lesson 4.

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 64/569

 

Section 4

17. A Supertype can have only one subtype. True or False? Mark for Review

(1) Points

True

False (*)

Correct

18. You can only create relationships to a Supertype, not to a Subtype. True or False? Mark for

Review

(1) Points

True

False (*)

Correct

19. When creating entities you must follow these rules: (Choose Two) Mark for Review

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 65/569

(1) Points

(Choose all correct answers)

Name them in Plural

Name them in Singular (*)

Exclude Attributes

Include Attributes (*)

Correct

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

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 66/569

 

Correct

Section 4

21. A supertype can only have two subtypes and no more. True or False? Mark for Review

(1) Points

True

False (*)

Correct

22. Business rules are important to data modelers. True or False? Mark for Review

(1) Points

True (*)

False

Incorrect. Refer to Section 4 Lesson 2.

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 67/569

 

Section 5

23. Transferable relationships can only be mandatory, not optional. True or False? Mark for Review

(1) Points

True

False (*)

Correct

24. A relationship from an entity back to itself is called a ___________ relationship. Mark forReview

(1) Points

Mandatory

Recursive (*)

Many to Many Optional

Transferrable

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 68/569

 

Correct

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

documented as M-M. True or False? Mark for Review

(1) Points

True

False (*)

Correct

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

(1) Points

True (*)

False

Correct

27. How do you include a relationship as part of the UID for an entity? Mark for Review

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 69/569

(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

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

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

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 70/569

(1) Points

True

False (*)

Correct

30. What do you call the entity created when you resolve a M:M relationship? Mark for Review

(1) Points

Intersection entity (*)

Inclusion entity

Recursive entity

M:M entity

Correct

Section 6

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 71/569

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

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

Incorrect. Refer to Section 6 Lesson 4.

33. Would it be a good idea to model age as an attribute of STUDENT? Mark for Review

(1) Points

Yes

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 72/569

 

Maybe it could stop us having to calculate someone's age every time we need it

Sometimes

No - it breaks the Normalization rules (*)

Correct

34. All entities must be given a new artificial UID. True or False? Mark for Review

(1) Points

True

False (*)

Incorrect. Refer to Section 6 Lesson 1.

35. There is no limit to how may UID's an entity can have. True or False? Mark for Review

(1) Points

True (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 73/569

False

Correct

Section 7

36. A relationship can be both Recursive and Hierachal at the same time. True or False? Mark for

Review

(1) Points

True

False (*)

Correct

37. Modeling historical data can produce a unique identifier that always excludes dates. True or

False? Mark for Review

(1) Points

True

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 74/569

False (*)

Correct

38. Arcs are Mandatory in Data modeling. All ERD's must have at least one Arc. True or False? Mark

for Review

(1) Points

True

False (*)

Correct

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

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 75/569

 

Correct

40. All relationships participating in an arc must be mandatory. True or False? Mark for Review

(1) Points

True

False (*)

Incorrect. Refer to Section 7 Lesson

Section 7

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

Mark for Review

(1) Points

Sameness

Differences

Exclusivity (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 76/569

 

Inheritance

Correct

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

Section 9

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

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 77/569

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

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

models. True or False? Mark for Review

(1) Points

True

False (*)

Correct

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 78/569

 

45. Modeling historical data is Optional. True or False? Mark for Review

(1) Points

True (*)

False

Correct

46. 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? Mark for Review

(1) Points

True

False (*)

Correct

Section 10

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 79/569

 

47. There are formal rules for how to draw ERD's, even though they are only guidelines, you should

always try to follow them. True or False? Mark for Review

(1) Points

True (*)

False

Correct

48. Which of the following statements are true for ERD's to enhance their readability. (Choose Two)

Mark for Review

(1) Points

(Choose all correct answers)

Is is OK to break a big ERD down into subsets of the overall picture. This way you end up with more

than one ERD, that together documents the entire system. (*)

Try to avoid crossing lines (*)

The crows feet (many ends) can point whichever way is the easiest to draw

You must ensure you have all the entities on one single, big diagram, even if you have hundreds

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 80/569

Correct

49. A datamodel containing generic modeling techniques must not be mixed in with non-generic

models. The generic entities MUST be drawn on a diagram of their own. True or False? Mark for

Review

(1) Points

True

False (*)

Correct

50. All datamodels must be transformed from specific to generic. True or False? Mark for Review

(1) Points

True

False (*)

Correct

Section 1 Lesson 1

(Answer all questions in this section)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 81/569

 

1. The market for IT professionals is still increasing and will continue to do so in the future, as the

world gets ever more dependent on computer systems. True or False? Mark for Review

(1) Points

True (*)

False

Section 1 Lesson 2

(Answer all questions in this section)

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? Mark for

Review

(1) Points

Data (*)

Information

Both

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 82/569

Neither

3. Information which was gained from data is the same as: (Choose Two)

Mark for Review

(1) Points

(Choose all correct answers)

Knowledge (*)

Raw Materials

Intelligence (*)

There is no difference between data and information.

Section 1 Lesson 3

(Answer all questions in this section)

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

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 83/569

False

Section 1 Lesson 4

(Answer all questions in this section)

5. Oracle Database Software provides which of the following functionality? (Choose two) Mark for

Review

(1) Points

(Choose all correct answers)

Graphical User Interface (*)

Internet Browser

Server (*)

Operating Systems

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 84/569

 

6. Which of the following are types of databases? Mark for Review

(1) Points

(Choose all correct answers)

Hierarchical (*)

Relational (*)

SQL

Network (*)

Section 2 Lesson 2

(Answer all questions in this section)

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

(1) Points

Column

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 85/569

Row

Instance

Foreign Key (*)

8. All of the following are examples of ENTITY: Instance except two. Select the answers that are

ENTITY: Instance. (Choose Two) Mark for Review

(1) Points

(Choose all correct answers)

TRANSPORTATION METHOD: Car (*)

ANIMAL: Dog (*)

MEAT PRODUCT: Lettuce

BODY PART: Larry Ellison

9. Relationship names are usually verbs. True or False? Mark for Review

(1) Points

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 86/569

 

True (*)

False

10. All of the following would be instances of the entity ANIMAL SPECIES except which? Mark for

Review

(1) Points

Dog

Bird

Elephant

Leaf (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 87/569

Section 2 Lesson 2

(Answer all questions in this section)

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

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

12. The entity/relationship model is created before the physical database design model. True or

False? Mark for Review

(1) Points

True (*)

False

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 88/569

 

13. An entity can have many Unique Identifiers. True or False? Mark for Review

(1) Points

True (*)

False

Section 3 Lesson 1

(Answer all questions in this section)

14. Relationship Names are optional. True or False?

Mark for Review

(1) Points

True

False (*)

15. Which of the following are valid relationship degrees? (Choose two) Mark for Review

(1) Points

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 89/569

 

(Choose all correct answers)

1:1 (*)

1:M (*)

1:O

O:O

Section 3 Lesson 2

(Answer all questions in this section)

16. Entity Boxes are drawn with 90 degree angles, also known as Hard Boxes. True or False? Mark

for Review

(1) Points

True

False (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 90/569

 

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

Section 3 Lesson 3

(Answer all questions in this section)

18. When reading an ERD including Relationships you are said to be speaking: Mark for Review

(1) Points

Relationship-ish

Gibberish

ERDish (*)

Entity-ish

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 91/569

 

Section 4 Lesson 1

(Answer all questions in this section)

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

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 92/569

20. All instances of a subtypes may be an instance of the supertype but does not have to. True or

False? Mark for Review

(1) Points

True

False (*)

21. You can only create relationships to a Supertype, not to a Subtype. True or False? Mark for

Review

(1) Points

True

False (*)

22. The "Other" subtype is mandatory. True or False? Mark for Review

(1) Points

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 93/569

 

True

False (*)

23. Which of the following are suitable Entity names? (Choose Two) Mark for Review

(1) Points

(Choose all correct answers)

DOGS

ANIMAL (*)

ANIMALS

DOG (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 94/569

 

Section 4 Lesson 2

(Answer all questions in this section)

24. "Only teachers may supervise exams" is an example of which of the following? Mark for Review

(1) Points

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

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

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 95/569

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

26. A new system would have a mixture of both Procedural and Structural Business Rules as part of 

the documentation of that new system. True or False? Mark for Review

(1) Points

True (*)

False

27. Why is it important to identify and document structural rules? Mark for Review

(1) Points

Ensures we know what data to store and how that data works together. (*)

Ensures nothing. There is 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.

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 96/569

All of the Above.

Section 5 Lesson 1

(Answer all questions in this section)

28. A Diamond on a relationship indicates the Relationship as Non-Tranferrable. True or False?

Mark for Review

(1) Points

True (*)

False

Section 5 Lesson 2

(Answer all questions in this section)

29. How do you include a relationship as part of the UID for an entity? Mark for Review

(1) Points

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 97/569

 

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. Relationships can be Redundant. True or False? Mark for Review

(1) Points

True (*)

False

Section 5 Lesson 2

(Answer all questions in this section)

31. Which of the following pairs of entities is most likely to be modeled as a M:M relationship?

Mark for Review

(1) Points

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 98/569

 

CAR and WHEEL

TREE and BRANCH

PERSON and FINGERPRINT

TEACHER and SUBJECT AREA (*)

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

documented as M-M. True or False? Mark for Review

(1) Points

True

False (*)

Section 6 Lesson 1

(Answer all questions in this section)

33. All entities must be given a new artificial UID. True or False?

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 99/569

Mark for Review

(1) Points

True

False (*)

Section 6 Lesson 2

(Answer all questions in this section)

34. An entity without repeated values is said to be on 1st Normal Form. True or False? Mark for

Review

(1) Points

True (*)

False

Section 6 Lesson 3

(Answer all questions in this section)

35. When is an entity in 2nd Normal Form? Mark for Review

(1) Points

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 100/569

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.

Section 7 Lesson 1

(Answer all questions in this section)

36. 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?

Mark for Review

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 101/569

(1) Points

True (*)

False

37. An arc can be modelled as Supertype and Subtypes. True or False? Mark for Review

(1) Points

True (*)

False

38. No parts of a UID are mandatory. True or False? Mark for Review

(1) Points

True

False (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 102/569

 

39. Which of the following is NOT a relationship type? Mark for Review

(1) Points

Some to None (*)

One to One

One to Many

Many to Many

40. All relationships participating in an arc must be mandatory. True or False? Mark for Review

(1) Points

True

False (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 103/569

Section 7 Lesson 2

(Answer all questions in this section)

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

Section 7 Lesson 3

(Answer all questions in this section)

42. Historical data must never be kept. True or False? Mark for Review

(1) Points

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 104/569

True

False (*)

Section 8 Lesson 1

(Answer all questions in this section)

43. Database Design projects must use Consultants or they will fail. True or False? Mark for Review

(1) Points

True

False (*)

Section 8 Lesson 2

(Answer all questions in this section)

44. Which of the following are NOT valid techniques for effective public speaking? (Choose Two)

Mark for Review

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 105/569

(1) Points

(Choose all correct answers)

Whispering (*)

Using specialist language and technical abbreviations when communicating technical information

(*)

Being enthusiastic

All of the Above

Section 10 Lesson 1

(Answer all questions in this section)

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

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 106/569

 

46. Modeling historical data is Optional. True or False? Mark for Review

(1) Points

True (*)

False

47. 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? Mark for Review

(1) Points

True

False (*)

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

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 107/569

True (*)

False

Section 10 Lesson 2

(Answer all questions in this section)

49. Which of the following is a logical constraint, that could result from considering how time

impacts data storage? Mark for Review

(1) Points

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.

50. You are doing a data model for a computer sales company, where the price of postage is

dependant on what day of the week goods are shipped. So shipping is more expensive if the

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 108/569

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 delivery charge they want.

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 109/569

 

222222222222222222222222222222222222222222222222222222222222222222222222222222222

2222222222222222222222222222222222222222

Section 1 Lesson 1

(Answer all questions in this section)

1. The main subject areas taught by the Oracle Academy are: Mark for Review

(1) Points

Computer Repairs

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 110/569

Database performance tuning.

Data Modeling, SQL and PL/SQL (*)

Systems programming and computer architecture

Section 1 Lesson 2

(Answer all questions in this section)

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

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 111/569

 

3. Information which was gained from data is the same as: (Choose Two)

Mark for Review

(1) Points

(Choose all correct answers)

Knowledge (*)

Raw Materials

Intelligence (*)

There is no difference between data and information.

Section 1 Lesson 3

(Answer all questions in this section)

4. Entities are transformed into Tables during the Database Design process? True or False? Mark

for Review

(1) Points

True (*)

False

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 112/569

 

Section 1 Lesson 4

(Answer all questions in this section)

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

(1) Points

True

False (*)

6. Databases perform these functions.... Mark for Review

(1) Points

Running multiple applications on multiple client-servers

Providing integrated software on fast processing servers

Providing software running on a variety of platforms and configurations allowing companies a

structured way to access and manage their data (*)

They run purely as client-based software on personal computers

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 113/569

 

Section 2 Lesson 2

(Answer all questions in this section)

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

8. All of the following are examples of ENTITY: Instance except two. Select the answers that are

ENTITY: Instance. (Choose Two) Mark for Review

(1) Points

(Choose all correct answers)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 114/569

TRANSPORTATION METHOD: Car (*)

ANIMAL: Dog (*)

MEAT PRODUCT: Lettuce

BODY PART: Larry Ellison

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

10. A/an _________ is a picture of all the information that will form the basis for the finished

system. Mark for Review

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 115/569

(1) Points

ERD (*)

Process

Table

Attribute

Section 2 Lesson 2

(Answer all questions in this section)

11. An entity can have many Unique Identifiers. True or False? Mark for Review

(1) Points

True (*)

False

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 116/569

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

13. Which of the following statements about relationships are true? (Choose Two) Mark for 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.

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 117/569

 

Section 3 Lesson 1

(Answer all questions in this section)

14. Relationship Names are optional. True or False?

Mark for Review

(1) Points

True

False (*)

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

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 118/569

 

Section 3 Lesson 2

(Answer all questions in this section)

16. Entity names are always singular. True or False? Mark for Review

(1) Points

True (*)

False

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

Section 3 Lesson 3

(Answer all questions in this section)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 119/569

 

18. When reading an ERD including Relationships you are said to be speaking: Mark for Review

(1) Points

Relationship-ish

Gibberish

ERDish (*)

Entity-ish

Section 4 Lesson 1

(Answer all questions in this section)

19. All instances of the supertype must be an instance of one of the subtypes. True or False? Mark

for Review

(1) Points

True (*)

False

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 120/569

 

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

Section 4 Lesson 1

(Answer all questions in this section)

21. All instances of a subtypes may be an instance of the supertype but does not have to. True or

False? Mark for Review

(1) Points

True

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 121/569

 

False (*)

22. A supertype can only have two subtypes and no more. True or False? Mark for Review

(1) Points

True

False (*)

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

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 122/569

At least one supertype and subtype

Section 4 Lesson 2

(Answer all questions in this section)

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

25. A new system would have a mixture of both Procedural and Structural Business Rules as part of 

the documentation of that new system. True or False? Mark for Review

(1) Points

True (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 123/569

 

False

26. Why is it important to identify and document structural rules? Mark for Review

(1) Points

Ensures we know what data to store and how that data works together. (*)

Ensures nothing. There is 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.

27. Business rules are important to data modelers. True or False? Mark for Review

(1) Points

True (*)

False

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 124/569

 

Section 5 Lesson 1

(Answer all questions in this section)

28. A Diamond on a relationship indicates the Relationship as Non-Tranferrable. True or False?

Mark for Review

(1) Points

True (*)

False

Section 5 Lesson 2

(Answer all questions in this section)

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

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 125/569

 

TREE and BRANCH

PERSON and FINGERPRINT

TEACHER and SUBJECT AREA (*)

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

(1) Points

True (*)

False

Section 5 Lesson 2

(Answer all questions in this section)

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

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 126/569

One to Many Mandatory

One to One Optional (*)

Many to Many Mandatory

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

Section 6 Lesson 1

(Answer all questions in this section)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 127/569

 

33. All entities must be given a new artificial UID. True or False?

Mark for Review

(1) Points

True

False (*)

Section 6 Lesson 2

(Answer all questions in this section)

34. When data is stored in one place in a database, the database conforms to the rules of 

___________. Mark for Review

(1) Points

Normality

Reduction

Normalization (*)

Multiplication

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 128/569

 

Section 6 Lesson 3

(Answer all questions in this section)

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

Section 7 Lesson 1

(Answer all questions in this section)

36. Which of the following is NOT a relationship type? Mark for Review

(1) Points

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 129/569

Some to None (*)

One to One

One to Many

Many to Many

37. 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?

Mark for Review

(1) Points

True (*)

False

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 130/569

 

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)

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

Mark for Review

(1) Points

Sameness

Differencies

Exclusivity (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 131/569

An Arc is what Noah sailed on with all the animals.

40. No parts of a UID are mandatory. True or False? Mark for Review

(1) Points

True

False (*)

Section 7 Lesson 2

(Answer all questions in this section)

41. A relationship can be both Recursive and Hierarchal at the same time. True or False? Mark for

Review

(1) Points

True

False (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 132/569

 

Section 7 Lesson 3

(Answer all questions in this section)

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

Section 8 Lesson 1

(Answer all questions in this section)

43. Database Design projects must use Consultants or they will fail. True or False? Mark for Review

(1) Points

True

False (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 133/569

 

Section 8 Lesson 2

(Answer all questions in this section)

44. Your apperance at a presentation is important. You need to look smart and presentable. True or

False? Mark for Review

(1) Points

True (*)

False

Section 10 Lesson 1

(Answer all questions in this section)

45. 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? Mark for Review

(1) Points

True

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 134/569

False (*)

46. There is only one way to model time in a Data Model. True or False? Mark for Review

(1) Points

True

False (*)

47. Modeling historical data is Optional. True or False? Mark for Review

(1) Points

True (*)

False

48. Which of the following would be a logical constraint when modeling time for a City entity?

Mark for Review

(1) Points

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 135/569

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

Section 10 Lesson 2

(Answer all questions in this section)

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

models. True or False? Mark for Review

(1) Points

True

False (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 136/569

50. Why would you want to model a time component when designing a system that lets people buy

shares via the Internet? (Choose Two) Mark for Review

(1) Points

(Choose all correct answers)

This would only be required in the US to allow the New York Stock Exchange to be notified of this

information.

To allow the sales people to determine when the shared were bought and therefore at what price.

(*)

You would not want to model this, it is not important.

The price of shares fluctuates and for determining price, you need to know the time of purchase

(*)

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

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

2. Information which was gained from data is the same as: (Choose Two)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 137/569

- Knowledge (*)

- Raw Materials

- Intelligence (*)

- There is no difference between data and information

3. 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?

- Data

- Information (*)

- Both

- Neither

4. The first step in system development is to document the requirements. Why?

- Wrong. A blueprint for the database design is not needed. We can just start coding straight

away

- It clarifies what a business wants to accomplish, and provides measures for deciding if the

system delivers all that is required. (*)

- It allows application development to be conducted without having to consider database

design.

- It keeps businesses honest

5. Databases were invented in 1989. True or False?

- True

- False (*)

6. Oracle Database Software do not provide or does not comprise of which functionality?

- Graphical User Interface

- Internet Browser

- Server

- Operating System (*)

7. An entity is instantiated as a ?

- experience

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 138/569

- instance

- table (*)

- none of the above

8. Relationship names are usually verbs. True or False?

- True (*)

- False

9. The entity/relationship model is created before the physical database design model. True or

False?

- True (*)

- False

10. All of the following could be attributes of an ENTITY called PERSON except one. Select theincorrect one:

- Haircolor

- Weight

- Gender

- Natacha Hansen (*)

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

- True (*)

- False

12. Volatile entities have special requirements and need special attention when you are doing

data modelling. True or False?

- True (*)

- False

13. Which of the following entities most likely contains valid attributes?

- 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

14. Relationship Names are optional. True or False?

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 139/569

- True

- False (*)

15. Which of the following are valid relationship degrees

- 1:1 (*)

- 1:M (*)

- 1:O

- O:O

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

- * (*)

- O

- #

- &

17. The many end of a Relationship is called:

- Gulls Foot

- Pigs Ear

- Crows Ear

- Crows Foot (*)

18. When reading a relationship between 2 entities, the relationship is read both from left to

right and right to left. True or False?

- True (*)

- False

19. All ER diagrams must have one of each of the following:

- One or more Entities (*)

- Relationships between entities (*)

- Arcs

- At least one supertype and subtype

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

- DOGS

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 140/569

- ANIMAL (*)

- ANIMALS

- DOG (*)

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

22. All instances of the supertype must be an instance of one of the subtypes. True or False?

- True (*)

- False

23. All instances of the subtypes can be an instance of the supertype but do not have to. True or

False?

- True

- False (*)

24. How would you model a business rule that states that girls and boys may not attend classes

together?

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

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

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

26. Business rules are not important to data modelers. True or False?

- True

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 141/569

- False (*)

27. Why is it important to identify and document structural rules?

- Ensures we know what data to store and how that data interrelate. (*)

- Ensures nothing. There is 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 interrelate.

- All of the Above.

28. A non-transferable relationship means the detail cannot be changed to point to a new

master. True or False?

- True (*)

- False

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

_____________ or _____________ ? (Choose Two)

- Redundant or Required (In which case they would depict different relationships) (*)

- Replicated or Required (In which case they would depict different relationships)

- Resourced and Really Good

- Redundant and Replicated

30. 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"

- One to Many Optional

- One to Many Mandatory

- One to One Optional (*)

- Many to Many Mandatory

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

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 142/569

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

33. The first UID for an entity is called the Primary UID, the second is called Secondary UID and so

on.

- Yes, this is the way UID's 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 UID's.

- No, each Entity can only have one UID, the secondary one.

34. When data is stored in one place in a database, the database conforms to the rules of 

- Normality

- Reduction

- Normalization (*)

- Multiplication

35. When is an entity in 2nd Normal Form?

- 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. No parts of a UID are mandatory. True or False?

- True

- False (*)

37. Which of the following is NOT a relationship type?

- Some to None (*)

- One to One

- One to Many

- Many to Many

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 143/569

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

- True

- False (*)

39. Which of the following would best be represented by an arc?

- STUDENT (Female, Bob)

- DELIVERY ADDRESS ( Home, Office) (*)

- PARENT (Girl, Bob)

- STUDENT (Grade A student, Average Student)

40. Arcs are Mandatory in Data modelling. All ERD's must have at least one Arc. True or False?

- True

- False (*)

41. Which of the following would be good as a Unique Identifier for its Entity?

- Personal Identification number for Person (*)

- Vehicle Registration Number for Car (*)

- ISBN Number for Book (*)

- Date of birth for Baby

42. Modeling historical data can produce a unique identifier that always excludes dates. True orFalse?

- 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. Which of the following would be a logical constraint when modeling time for a City entity?

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 144/569

- 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

46. 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?

- True

- False (*)

47. Modeling historical data is Optional. True or False?

- True (*)

- False

48. What do users of a system without the concept of time loose?

- Journalling becomes much easier.

- Journalling becomes slightly harder.

- The ability to track data over time. (*)

- Nothing is lost if a system does not track time.

49. Why would you want to model a time component when designing a system that lets people

buy shares via the Internet?

- This would only be required in the US to allow the New York Stock Exchange to be notified of 

this information.

- To allow the sales people to determine when the shared were bought and therefore at what

price. (*)

- You would not want to model this, it is not important.

- The price of shares fluctuates and for determining price, you need to know the time of 

purchase (*)

50. You are doing a data model for a computer sales company, where the price of postage is

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

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 145/569

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

Section 1 Lesson 1

(Answer all questions in this section)

1.

You query the database with this SQL statement:

SELECT CONCAT(last_name, (SUBSTR(LOWER(first_name), 4))) "Default Password"

FROM employees;

Which function will be evaluated first? Mark for Review

(1) Points

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 146/569

 

CONCAT

SUBSTR

LOWER (*)

All three will be evaluated simultaneously.

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 147/569

 

Correct

2.

Evaluate this SELECT statement:

SELECT LENGTH(email)

FROM employee;

What will this SELECT statement display?

The longest e-mail address in the EMPLOYEE table.

The email address of each employee in the EMPLOYEE table.

The number of characters for each value in the EMAIL column in the employees table. (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 148/569

 

The maximum number of characters allowed in the EMAIL column.

Correct

3.

You issue this SQL statement:

SELECT INSTR ('organizational sales', 'al')

FROM dual;

Which value is returned by this command?

1

2

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 149/569

 

13 (*)

17

Correct

4.

You need to display the number of characters in each customer's last name. Which function should

you use?

LENGTH (*)

\\

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 150/569

 

LPAD

COUNT

SUBSTR

Correct

5.

The PRICE table contains this data:

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 151/569

PRODUCT_ID MANUFACTURER_ID

86950 59604

You query the database and return the value 95. Which script did you use? s

SELECT SUBSTR(product_id, 3, 2)

FROM price

WHERE manufacturer_id = 59604; (*)

SELECT LENGTH(product_id, 3, 2)

FROM price

WHERE manufacturer_id = 59604;

SELECT SUBSTR(product_id, -1, 3)

FROM price

WHERE manufacturer_id = 59604;

SELECT TRIM(product_id, -3, 2)

FROM price

WHERE manufacturer_id = 59604;

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 152/569

 

Correct

6.

Which three statements about functions are true? (Choose three.)

(Choose all correct answers)

The SYSDATE function returns the Oracle Server date and time. (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 153/569

 

The ROUND number function rounds a value to a specified decimal place or the nearest whole

number. (*)

The CONCAT function can only be used on character strings, not on numbers.

The SUBSTR character function returns a portion of a string beginning at a defined character position

to a specified length. (*)

Correct

7.

Which SQL function can be used to remove heading or trailing characters (or both) from a character

string?

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 154/569

 

LPAD

CUT

NVL2

TRIM (*)

Correct

Section 1 Lesson 2

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 155/569

(Answer all questions in this section)

8.

Which comparison operator retrieves a list of values?

IN (*)

LIKE

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 156/569

 

BETWEEN...IN...

IS NULL

Correct

9.

You issue this SQL statement:

SELECT TRUNC(751.367,-1)

FROM dual;

Which value does this statement display?

700

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 157/569

 

750 (*)

751

751.3

Correct

10.

You issue this SQL statement:

SELECT ROUND (1282.248, -2)

FROM dual;

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 158/569

What value does this statement produce?

1200

1282

1282.25

1300 (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 159/569

Correct

Section 1 Lesson 3

(Answer all questions in this section)

11.

Which of the following Date Functions will add calendar months to a date?

Months + Calendar (Month)

ADD_MONTHS (*)

MONTHS + Date

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 160/569

 

NEXT_MONTH

Correct

12.

You need to display the number of months between today's date and each employee's hiredate.

Which function should you use?

ROUND

BETWEEN

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 161/569

 

ADD_MONTHS

MONTHS_BETWEEN (*)

Correct

13.

Which of the following SQL statements will correctly display the last name and the number of weeks

employed for all employees in department 90?

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 162/569

 

SELECT last_name, (SYSDATE-hire_date)/7 AS WEEKS

FROM employees

WHERE department_id = 90; (*)

SELECT last name, (SYSDATE-hire_date)/7 DISPLAY WEEKS

FROM employees

WHERE department id = 90;

SELECT last_name, # of WEEKS

FROM employees

WHERE department_id = 90;

SELECT last_name, (SYSDATE-hire_date)AS WEEK

FROM employees

WHERE department_id = 90;

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 163/569

 

Correct

14.

Which SELECT statement will NOT return a date value?

SELECT (30 + hire_date) + 1440/24

FROM employees;

SELECT (SYSDATE - hire_date) + 10*8

FROM employees; (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 164/569

SELECT SYSDATE - TO_DATE('25-JUN-02') + hire_date

FROM employees;

SELECT (hire_date - SYSDATE) + TO_DATE('25-JUN-02')

FROM employees;

Correct

15.

The EMPLOYEE table contains these columns:

LAST_NAME VARCHAR2(20)

FIRST_NAME VARCHAR2(20)

HIRE_DATE DATE

EVAL_MONTHS NUMBER(3)

Evaluate this SELECT statement:

SELECT hire_date + eval_months

FROM employee;

The values returned by this SELECT statement will be of which data type?

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 165/569

 

DATE (*)

NUMBER

DATETIME

INTEGER

Incorrect. Refer to Section 1

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 166/569

 

Section 2 Lesson 1

(Answer all questions in this section)

16.

The EMPLOYEES table contains these columns:

EMPLOYEE_ID NUMBER(9)

LAST_NAME VARCHAR2 (25)

FIRST_NAME VARCHAR2 (25)

HIRE_DATE DATE

You need to display HIRE_DATE values in this format:

January 28, 2000

Which SELECT statement could you use? Mark for Review

(1) Points

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 167/569

 

SELECT TO_CHAR(hire_date, Month DD, YYYY)

FROM employees;

SELECT TO_CHAR(hire_date, 'Month DD, YYYY')

FROM employees;

(*)

SELECT hire_date(TO_CHAR 'Month DD', ' YYYY')

FROM employees;

SELECT TO_CHAR(hire_date, 'Month DD', ' YYYY')

FROM employees;

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 168/569

 

Correct

17.

Which statement concerning single row functions is true?

Single row functions can accept only one argument, but can return multiple values.

Single row functions cannot modify a data type.

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 169/569

 

Single row functions can be nested. (*)

Single row functions return one or more results per row.

Incorrect. Refer to Section 2

18.

You have been asked to create a report that lists all customers who have placed orders of at least

$2,500. The report's date should be displayed in the Day, Date Month, Year format (For example,

Tuesday, 13 April, 2004 ). Which statement should you issue?

SELECT companyname, TO_CHAR (sysdate, 'fmdd, dy month, yyyy'), total

FROM customers NATURAL JOIN orders

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 170/569

WHERE total >= 2500;

SELECT companyname, TO_DATE (date, 'day, dd month, yyyy'), total

FROM customers NATURAL JOIN orders

WHERE total >= 2500;

SELECT companyname, TO_DATE (sysdate, 'dd, dy month, yyyy'), total

FROM customers NATURAL JOIN orders

WHERE total >= 2500;

SELECT companyname, TO_CHAR (sysdate, 'fmDay, dd Month, yyyy'), total

FROM customers NATURAL JOIN orders

WHERE total >= 2500; (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 171/569

 

Correct

19.

Which two statements concerning SQL functions are true? (Choose two.)

(Choose all correct answers)

Character functions can accept numeric input.

Not all date functions return date values. (*)

Number functions can return number or character values.

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 172/569

 

Conversion functions convert a value from one data type to another data type. (*)

Single-row functions manipulate groups of rows to return one result per group of rows.

Incorrect. Refer to Section 2

20.

All Human Resources data is stored in a table named EMPLOYEES. You have been asked to create a

report that displays each employee's name and salary. Each employee's salary must be displayed in

the following format: $000,000.00. Which function should you include in a SELECT statement to

achieve the desired result?

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 173/569

 

TO_CHAR (*)

TO_DATE

TO_NUMBER

CHARTOROWID

Correct

Section 2 Lesson 2

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 174/569

 

(Answer all questions in this section)

22.

The STYLES table contains this data:

STYLE_ID STYLE_NAME CATEGORY COST

895840 SANDAL 85940 12.00

968950 SANDAL 85909 10.00

869506 SANDAL 89690 15.00

809090 LOAFER 89098 10.00

890890 LOAFER 89789 14.00

857689 HEEL 85940 11.00

758960 SANDAL 86979

Evaluate this SELECT statement:

SELECT style_id, style_name, category, cost

FROM styles

WHERE style_name LIKE 'SANDAL' AND NVL(cost, 0) < 15.00

ORDER BY category, cost;

Which result will the query provide?

STYLE_ID STYLE_NAME CATEGORY COST

895840 SANDAL 85940 12.00

968950 SANDAL 85909 10.00

758960 SANDAL 86979

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 175/569

 

STYLE_ID STYLE_NAME CATEGORY COST

895840 SANDAL 85909 12.00

968950 SANDAL 85909 10.00

869506 SANDAL 89690 15.00

758960 SANDAL 86979

STYLE_ID STYLE_NAME CATEGORY COST

895840 SANDAL 85909 12.00

968950 SANDAL 85909 10.00

758960 SANDAL 86979

869506 SANDAL 89690 15.00

STYLE_ID STYLE_NAME CATEGORY COST

968950 SANDAL 85909 10.00

895840 SANDAL 85940 12.00

758960 SANDAL 86979

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 176/569

Correct

23.

When executed, which statement displays a zero if the TUITION_BALANCE value is zero and the

HOUSING_BALANCE value is null?

SELECT NVL (tuition_balance + housing_balance, 0) "Balance Due"

FROM student_accounts; (*)

SELECT NVL(tuition_balance, 0), NVL (housing_balance), tuition_balance + housing_balance "Balance

Due"

FROM student_accounts;

SELECT tuition_balance + housing_balance

FROM student_accounts;

SELECT TO_NUMBER(tuition_balance, 0), TO_NUMBER (housing_balance, 0), tutition_balance +

housing_balance "Balance Due"

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 177/569

FROM student_accounts;

Correct

24.

You need to replace null values in the DEPT_ID column with the text "N/A". Which functions should

you use?

TO_CHAR and NVL (*)

TO_CHAR and NULL

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 178/569

TO_CHAR and NULLIF

TO_NUMBER and NULLIF

Correct

Section 3 Lesson 2

(Answer all questions in this section)

25.

You have been asked to create a report that lists all corporate customers and all orders that they

have placed. The customers should be listed alphabetically beginning with the letter 'A', and their

corresponding order totals should be sorted from the highest amount to the lowest amount.

Which of the following statements should you issue? Mark for Review

(1) Points

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 179/569

 

SELECT c.custid, c.companyname, o.orderdate, o. custid, o.amount

FROM customers c, orders o

WHERE c.custid = o.custid

ORDER BY amount DESC, companyname;

SELECT c.custid, c.companyname, o.orderdate, o. custid, o.amount

FROM customers c, orders o

WHERE c.custid = o.custid

ORDER BY companyname, amount DESC;

(*)

SELECT c.custid, c.companyname, o.orderdate, o. custid, o.amount

FROM customers c, orders o

WHERE c.custid = o.custid

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 180/569

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 181/569

EMP_ID NUMBER(5) NOT NULL PRIMARY KEY

FNAME VARCHAR2(25)

LNAME VARCHAR2(25)

ADDRESS VARCHAR2(35)

CITY VARCHAR2(25)

STATE VARCHAR2(2)

ZIP NUMBER(9)

TELEPHONE NUMBER(10)

DEPT_ID NUMBER(5) NOT NULL FOREIGN KEY

The BONUS table includes the following columns:

BONUS_ID NUMBER(5) NOT NULL PRIMARY KEY

ANNUAL_SALARY NUMBER(10)

BONUS_PCT NUMBER(3, 2)

EMP_ID VARCHAR2(5) NOT NULL FOREIGN KEY

You want to determine the amount of each employee's bonus. Which of the following queries should

you issue?

SELECT e.fname, e.lname, b.annual_salary * b. bonus_pct

FROM employees e, bonus b

WHERE e.emp_id = b.emp_id; (*)

SELECT e.fname, e.lname, b.annual_salary, b. bonus_pct

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 182/569

FROM employees e, bonus b

WHERE e.emp_id = b.emp_id;

SELECT e.fname, e.lname, b.annual_salary, b. bonus_pct

FROM employees, bonus

WHERE e.emp_id = b.emp_id;

SELECT fname, lname, annual_salary * bonus_pct

FROM employees, bonus NATURAL JOIN;

Incorrect. Refer to Section 3

27.

What is produced when a join condition is not specified in a multiple-table query?

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 183/569

 

a self-join

an outer join

an equijoin

a Cartesian product (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 184/569

 

Correct

28.

The CUSTOMERS and SALES tables contain these columns:

CUSTOMERS

CUST_ID NUMBER(10) PRIMARY KEY

COMPANY VARCHAR2(30)

LOCATION VARCHAR2(20)

SALES

SALES_ID NUMBER(5) PRIMARY KEY

CUST_ID NUMBER(10) FOREIGN KEY

TOTAL_SALES NUMBER(30)

Which SELECT statement will return the customer ID, the company and the total sales?

SELECT c.cust_id, c.company, s.total_sales

FROM customers c, sales s

WHERE c.cust_id = s.cust_id (+);

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 185/569

 

SELECT cust_id, company, total_sales

FROM customers, sales

WHERE cust_id = cust_id;

SELECT c.cust_id, c.company, s.total_sales

FROM customers c, sales s

WHERE c.cust_id = s.cust_id; (*)

SELECT cust_id, company, total_sales

FROM customers c, sales s

WHERE c.cust_id = s.cust_id;

Correct

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 186/569

 

29.

Which statement about the join syntax of a SELECT statement is true?

The ON keyword must be included.

The JOIN keyword must be included.

The FROM clause represents the join criteria.

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 187/569

The WHERE clause represents the join criteria. (*)

Correct

30.

When joining 3 tables in a SELECT statement, how many join conditions are needed in the WHERE

clause? Mark for Review

(1) Points

0

1

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 188/569

 

2 (*)

3

Correct

Section 3 Lesson 4

(Answer all questions in this section)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 189/569

 

31.

Which statement about outer joins is true? Mark for Review

(1) Points

The tables must be aliased.

The FULL, RIGHT, or LEFT keyword must be included.

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 190/569

 

The OR operator cannot be used to link outer join conditions. (*)

Outer joins are always evaluated before other types of joins in the query.

Correct

32.

Which two operators can be used in an outer join condition using the outer join operator (+)? Mark

for Review

(1) Points

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 191/569

 

AND and = (*)

OR and =

BETWEEN...AND... and IN

IN and =

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 192/569

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 193/569

 

*

+

=

Correct

Section 4 Lesson 2

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 194/569

 

(Answer all questions in this section)

34.

Which of the following best describes a natural join? Mark for Review

(1) Points

A join between two tables that includes columns that share the same name, datatypes and lengths

(*)

A join that produces a Cartesian product

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 195/569

 

A join between tables where matching fields do not exist

A join that uses only one table

Correct

35.

You need to join two tables that have two columns with the same name and compatible data types.

Which type of join would you create to join the tables on both of the columns? Mark for

Review

(1) Points

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 196/569

 

Natural join (*)

Cross join

Outer join

Self-join

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 197/569

 

Correct

36.

Which of the following conditions will cause an error on a NATURAL JOIN? Mark for Review

(1) Points

When you attempt to write it as an equijoin.

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 198/569

When the NATURAL JOIN clause is based on all columns in the two tables that have the same name.

If it selects rows from the two tables that have equal values in all matched columns.

If the columns having the same names have different data types, then an error is returned. (*)

Correct

Section 4 Lesson 3

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 199/569

(Answer all questions in this section)

37.

Which SELECT clause creates an equijoin by specifying a column name common to both tables?

Mark for Review

(1) Points

A HAVING clause

The FROM clause

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 200/569

 

The SELECT clause

A USING clause (*)

Incorrect. Refer to Section 4

38.

The primary advantage of using JOIN ON is: Mark for Review

(1) Points

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 201/569

 

The join happens automatically based on matching column names and data types

It will display rows that do not meet the join condition

It permits columns with different names to be joined (*)

It permits columns that don't have matching data types to be joined

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 202/569

 

Correct

39.

Evaluate this SELECT statement:

SELECT a.lname || ', ' || a.fname as "Patient", b.lname || ', ' || b.fname as "Physician", c.admission

FROM patient a

JOIN physician b

ON (b.physician_id = c.physician_id);

JOIN admission c

ON (a.patient_id = c.patient_id);

Which clause generates an error? Mark for Review

(1) Points

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 203/569

JOIN physician b

ON (b.physician_id = c.physician_id); (*)

JOIN admission c

ON (a.patient_id = c.patient_id)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 204/569

Incorrect. Refer to Section 4

40.

Below find the structure of the CUSTOMERS and SALES_ORDER tables:

CUSTOMERS

CUSTOMER_ID NUMBER NOT NULL, Primary Key

CUSTOMER_NAME VARCHAR2 (30)

CONTACT_NAME VARCHAR2 (30)

CONTACT_TITLE VARCHAR2 (20)

ADDRESS VARCHAR2 (30)

CITY VARCHAR2 (25)

REGION VARCHAR2 (10)

POSTAL_CODE VARCHAR2 (20)

COUNTRY_ID NUMBER Foreign key to COUNTRY_ID column of the COUNTRY table

PHONE VARCHAR2 (20)

FAX VARCHAR2 (20)

CREDIT_LIMIT NUMBER(7,2)

SALES_ORDER

ORDER_ID NUMBER NOT NULL, Primary Key

CUSTOMER_ID NUMBER Foreign key to CUSTOMER_ID column of the CUSTOMER table

ORDER_DT DATE

ORDER_AMT NUMBER (7,2)

SHIP_METHOD VARCHAR2 (5)

You need to create a report that displays customers without a sales order. Which statement could

you use? Mark for Review

(1) Points

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 205/569

 

SELECT c.customer_name

FROM customers c

WHERE c.customer_id not in (SELECT s.customer_id FROM sales_order s);

(*)

SELECT c.customer_name

FROM customers c, sales_order s

WHERE c.customer_id = s.customer_id(+);

SELECT c.customer_name

FROM customers c, sales_order s

WHERE c.customer_id (+) = s.customer_id;

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 206/569

 

SELECT c.customer_name

FROM customers c

RIGHT OUTER JOIN sales_order s ON (c.customer_id = s.customer_id);

Incorrect. Refer to Section 4

Section 4 Lesson 4

(Answer all questions in this section)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 207/569

 

41.

You need to join the EMPLOYEE_HIST and EMPLOYEE tables. The EMPLOYEE_HIST table will be the

first table in the FROM clause. All the matched and unmatched rows in the EMPLOYEE table need to

be displayed. Which type of join will you use? Mark for Review

(1) Points

a cross join

an inner join

a left outer join

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 208/569

 

a right outer join (*)

Correct

42.

Which two sets of join keywords create a join that will include unmatched rows from the first table

specified in the SELECT statement? Mark for Review

(1) Points

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 209/569

 

LEFT OUTER JOIN and FULL OUTER JOIN (*)

RIGHT OUTER JOIN and LEFT OUTER JOIN

USING and HAVING

OUTER JOIN and USING

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 210/569

 

Correct

43.

Which type of join returns rows from one table that have NO direct match in the other table? Mark

for Review

(1) Points

equijoin

self join

outer join (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 211/569

 

natural join

Correct

Section 5 Lesson 1

(Answer all questions in this section)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 212/569

 

44.

Group functions can be nested to a depth of? Mark for Review

(1) Points

three

four

two (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 213/569

Group functions cannot be nested.

Incorrect. Refer to Section 5

45.

If a select list contains both a column as well as a group function then what clause is required? Markfor Review

(1) Points

having clause

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 214/569

 

join clause

order by clause

group by clause (*)

Correct

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 215/569

 

46.

Which statement about group functions is true? Mark for Review

(1) Points

Group functions ignore null values. (*)

Group functions can only be used in a SELECT list.

Group functions can be used in a WHERE clause.

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 216/569

 

A query that includes a group function in the SELECT list must include a GROUP BY clause.

Correct

Section 5 Lesson 2

(Answer all questions in this section)

48.

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 217/569

The AVG, SUM, VARIANCE, and STDDEV functions can be used with which of the following? Mark

for Review

(1) Points

Only numeric data types (*)

Integers only

Any data type

All except numeric

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 218/569

 

Correct

47.

What will the following SQL Statement do?

SELECT job_id, COUNT(*)

FROM employees

GROUP BY job_id; Mark for Review

(1) Points

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 219/569

Displays all the employees and groups them by job.

Displays each job id and the number of people assigned to that job id. (*)

Displays only the number of job_ids.

Displays all the jobs with as many people as there are jobs.

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 220/569

Correct

49.

You need to compute the total salary for all employees in department 10. Which group function will

you use? Mark for Review

(1) Points

MAX

SUM (*)

VARIANCE

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 221/569

 

COUNT

Correct

50.

Which group functions below act on character, number and date data types?

(Choose more than one answer) Mark for Review

(1) Points

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 222/569

 

(Choose all correct answers)

SUM

MAX (*)

MIN (*)

AVG

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 223/569

 

COUNT (*)

Correct

Section 5 Lesson 2

(Answer all questions in this section)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 224/569

 

51.

The EMPLOYEES table contains these columns:

EMPLOYEE_ID NUMBER(9)

LAST_NAME VARCHAR2(20)

FIRST_NAME VARCHAR2(20)

SALARY NUMBER(9,2)

HIRE_DATE DATE

BONUS NUMBER(7,2)

COMM_PCT NUMBER(4,2)

Which three functions could be used with the HIRE_DATE, LAST_NAME, or SALARY columns? (Choose

three.) Mark for Review

(1) Points

(Choose all correct answers)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 225/569

 

MAX (*)

SUM

AVG

MIN (*)

COUNT (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 226/569

 

Correct

52.

Which group function would you use to display the total of all salary values in the EMPLOYEE table?

Mark for Review

(1) Points

SUM (*)

AVG

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 227/569

 

COUNT

MAX

Correct

53.

The CUSTOMER table contains these columns:

CUSTOMER_ID NUMBER(9)

FNAME VARCHAR2(25)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 228/569

LNAME VARCHAR2(30)

CREDIT_LIMIT NUMBER (7,2)

CATEGORY VARCHAR2(20)

You need to calculate the average credit limit for all the customers in each category. The average

should be calculated based on all the rows in the table excluding any customers who have not yet

been assigned a credit limit value. Which group function should you use to calculate this value?

Mark for Review

(1) Points

AVG (*)

SUM

COUNT

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 229/569

 

STDDEV

Correct

54.

Which group function would you use to display the highest salary value in the EMPLOYEE table?

Mark for Review

(1) Points

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 230/569

 

AVG

COUNT

MAX (*)

MIN

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 231/569

 

Correct

55.

Which group function would you use to display the average price of all products in the PRODUCTS

table? Mark for Review

(1) Points

SUM

AVG (*)

COUNT

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 232/569

 

MAX

Correct

Section 5 Lesson 3

(Answer all questions in this section)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 233/569

 

56.

Evaluate this SELECT statement:

SELECT COUNT(*)

FROM employee

WHERE salary > 30000;

Which results will the query display? Mark for Review

(1) Points

The number of employees that have a salary less than 30000.

The total of the SALARY column for all employees that have a salary greater than 30000.

The number of rows in the EMPLOYEE table that have a salary greater than 30000. (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 234/569

 

The query generates an error and returns no results.

Correct

57.

Evaluate this SELECT statement:

SELECT COUNT(*)

FROM products;

Which statement is true? Mark for Review

(1) Points

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 235/569

 

The number of rows in the table is displayed. (*)

The number of unique PRODUCT_IDs in the table is displayed.

An error occurs due to an error in the SELECT clause.

An error occurs because no WHERE clause is included in the SELECT statement.

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 236/569

 

Correct

58.

Which SELECT statement will calculate the number of rows in the PRODUCTS table? Mark for

Review

(1) Points

SELECT COUNT(products);

SELECT COUNT FROM products;

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 237/569

 

SELECT COUNT (*) FROM products; (*)

SELECT ROWCOUNT FROM products;

Correct

59.

Group functions can avoid computations involving duplicate values by including which keyword?

Mark for Review

(1) Points

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 238/569

 

NULL

DISTINCT (*)

SELECT

UNLIKE

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 239/569

 

Correct

Section 6 Lesson 1

(Answer all questions in this section)

60.

Evaluate this SELECT statement:

SELECT COUNT(emp_id), dept_id

FROM employee

GROUP BY dept_id;

You only want to include employees who earn more than 15000.

Which clause should you include in the SELECT statement? Mark for Review

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 240/569

(1) Points

WHERE salary > 15000 (*)

HAVING salary > 15000

WHERE SUM(salary) > 15000

HAVING SUM(salary) > 15000

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 241/569

 

Incorrect. Refer to Section 6

Section 6 Lesson 1

(Answer all questions in this section)

61.

The EMPLOYEES table contains the following columns:

EMP_ID NUMBER(10) PRIMARY KEY

LNAME VARCHAR2(20)

FNAME VARCHAR2(20)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 242/569

DEPT VARCHAR2(20)

HIRE_DATE DATE

SALARY NUMBER(10)

You want to create a report that includes each employee's last name, employee identification

number, date of hire and salary. The report should include only those employees who have been

with the company for more than one year and whose salary exceeds $40,000.

Which of the following SELECT statements will accomplish this task? Mark for Review

(1) Points

SELECT emp_id, lname, salary

FROM employees

WHERE salary > 40000

AND hire_date = (SELECT hire_date FROM employees

WHERE (sysdate-hire_date) / 365 > 1);

SELECT emp_id, lname, hire_date, salary

FROM employees

WHERE salary > 40000

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 243/569

AND hire_date = (SELECT hire_date FROM employees

WHERE (sysdate-hire_date) / 365 > 1);

SELECT emp_id, lname, hire_date, salary

FROM employees

WHERE salary > 40000

AND (sysdate-hire_date) / 365 > 1;

(*)

SELECT emp_id, lname, salary

FROM employees

WHERE salary > 40000

AND hire_date IN (sysdate-hire_date) / 365 > 1);

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 244/569

 

Incorrect. Refer to Section 6

62.

Evaluate this statement:

SELECT department_id, AVG(salary)

FROM employees

WHERE job_id <> 69879

GROUP BY job_id, department_id

HAVING AVG(salary) > 35000

ORDER BY department_id;

Which clauses restricts the result? Choose two. Mark for Review

(1) Points

(Choose all correct answers)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 245/569

 

SELECT department_id, AVG(salary)

WHERE job_id <> 69879 (*)

GROUP BY job_id, department_id

HAVING AVG(salary) > 35000 (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 246/569

 

Correct

63.

Evaluate this SELECT statement:

SELECT SUM(salary), dept_id, mgr_id

FROM employee

GROUP BY dept_id, mgr_id;

Which SELECT statement clause allows you to restrict the rows returned, based on a group function?

Mark for Review

(1) Points

HAVING SUM(salary) > 100000 (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 247/569

 

WHERE SUM(salary) > 100000

WHERE salary > 100000

HAVING salary > 100000

Incorrect. Refer to Section 6

64.

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 248/569

Evaluate this SELECT statement:

SELECT COUNT(emp_id), mgr_id, dept_id

FROM employee

WHERE status = 'I'

GROUP BY dept_id

HAVING salary > 30000

ORDER BY 2;

Why does this statement return a syntax error? Mark for Review

(1) Points

MGR_ID must be included in the GROUP BY clause. (*)

The HAVING clause must specify an aggregate function.

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 249/569

A single query cannot contain a WHERE clause and a HAVING clause.

The ORDER BY clause must specify a column name in the EMPLOYEE table.

Correct

65.

Evaluate this SELECT statement:

SELECT SUM(salary), dept_id, department_name

FROM employee

WHERE dept_id = 1

GROUP BY department;

Which clause of the SELECT statement contains a syntax error? Mark for Review

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 250/569

(1) Points

SELECT

FROM

WHERE

GROUP BY (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 251/569

 

Correct

66.

The PLAYERS table contains these columns:

PLAYER_ID NUMBER PK

PLAYER_NAME VARCHAR2 (30)

TEAM_ID NUMBER

HIRE_DATE DATE

SALARY NUMBER (8,2)

Which two clauses represent valid uses of aggregate functions? (Choose three.) Mark for

Review

(1) Points

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 252/569

 

(Choose all correct answers)

ORDER BY AVG(salary)

GROUP BY MAX(salary) (*)

SELECT AVG(NVL(salary, 0)) (*)

HAVING MAX(salary) > 10000 (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 253/569

 

WHERE hire_date > AVG(hire_date)

Correct

67.

The PLAYERS and TEAMS tables contain these columns:

PLAYERS

PLAYER_ID NUMBER NOT NULL, Primary Key

LAST_NAME VARCHAR2 (30) NOT NULL

FIRST_NAME VARCHAR2 (25) NOT NULL

TEAM_ID NUMBER

POSITION VARCHAR2 (25)

TEAMS

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 254/569

TEAM_ID NUMBER NOT NULL, Primary Key

TEAM_NAME VARCHAR2 (25)

You need to create a report that lists the names of each team with more than five pitchers.

Which SELECT statement will produce the desired result? Mark for Review

(1) Points

SELECT t.team_name, COUNT(p.player_id)

FROM players p, teams t ON (p.team_id = t.team_id)

WHERE UPPER(p.position) = 'PITCHER'

GROUP BY t.team_name;

SELECT t.team_name, COUNT(p.player_id)

FROM players JOIN teams t ON (p.team_id = t.team_id)

WHERE UPPER(p.position) = 'PITCHER' HAVING COUNT(p.player_id) > 5;

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 255/569

 

SELECT t.team_name, COUNT(p.player_id)

FROM players p, teams t ON (p.team_id = t.team_id)

WHERE UPPER(p.position) = 'PITCHER'

GROUP BY t.team_name HAVING COUNT(p.player_id) > 5;

SELECT t.team_name, COUNT(p.player_id)

FROM players p JOIN teams t ON (p.team_id = t.team_id)

WHERE UPPER(p.position) = 'PITCHER'

GROUP BY t.team_name HAVING COUNT(p.player_id) > 5;

(*)

Correct

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 256/569

 

Section 6 Lesson 2

(Answer all questions in this section)

68.

You need to display all the players whose salaries are greater than or equal to John Brown's salary.

Which comparison operator should you use? Mark for Review

(1) Points

=

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 257/569

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 258/569

(1) Points

The outer query is executed first

The subquery executes once after the main query

The subquery executes once before the main query (*)

The result of the main query is used with the subquery

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 259/569

 

Correct

70.

Which statement about subqueries is true? Mark for Review

(1) Points

Subqueries should be enclosed in double quotation marks.

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 260/569

 

Subqueries cannot contain group functions.

Subqueries are often used in a WHERE clause to return values for an unknown conditional value. (*)

Subqueries generally execute last, after the main or outer query executes.

Incorrect. Refer to Section 6

Section 6 Lesson 2

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 261/569

 

(Answer all questions in this section)

71.

Examine the structures of the CUSTOMER and ORDER_HISTORY tables:

CUSTOMER

CUSTOMER_ID NUMBER(5)

NAME VARCHAR2(25)

CREDIT_LIMIT NUMBER(8,2)

OPEN_DATE DATE

ORDER_HISTORY

ORDER_ID NUMBER(5)

CUSTOMER_ID NUMBER(5)

ORDER_DATE DATE

TOTAL NUMBER(8,2)

Which of the following scenarios would require a subquery to return the desired results? Mark

for Review

(1) Points

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 262/569

 

You need to display the date each customer account was opened.

You need to display each date that a customer placed an order.

You need to display all the orders that were placed on a certain date.

You need to display all the orders that were placed on the same day as order number 25950. (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 263/569

 

Incorrect. Refer to Section 6

72.

Which operator can be used with a multiple-row subquery? Mark for Review

(1) Points

IN (*)

<>

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 264/569

 

=

LIKE

Correct

Section 6 Lesson 3

(Answer all questions in this section)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 265/569

 

73.

Examine the structure of the EMPLOYEE, DEPARTMENT, and ORDERS tables.

EMPLOYEE

EMPLOYEE_ID NUMBER(9)

LAST_NAME VARCHAR2(25)

FIRST_NAME VARCHAR2(25)

DEPARTMENT_ID NUMBER(9)

DEPARTMENT

DEPARTMENT_ID NUMBER(9)

DEPARTMENT_NAME VARCHAR2(25)

CREATION_DATE DATE

ORDERS

ORDER_ID NUMBER(9)

EMPLOYEE_ID NUMBER(9)

DATE DATE

CUSTOMER_ID NUMBER(9)

You want to display all employees who had an order after the Sales department was established.

Which of the following constructs would you use? Mark for Review

(1) Points

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 266/569

 

a group function

a single-row subquery (*)

the HAVING clause

a MERGE statement

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 267/569

 

Incorrect. Refer to Section 6

74.

Which best describes a single-row subquery? Mark for Review

(1) Points

a query that returns only one row from the inner SELECT statement (*)

a query that returns one or more rows from the inner SELECT statement

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 268/569

a query that returns only one column value from the inner SELECT statement

a query that returns one or more column values from the inner SELECT statement

Correct

75.

You need to produce a report that contains all employee-related information for those employees

who have Brad Carter as a supervisor. However, you are not sure which supervisor ID belongs to Brad

Carter. Which query should you issue to accomplish this task? Mark for Review

(1) Points

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 269/569

 

SELECT *

FROM employees

WHERE supervisor_id =

(SELECT supervisor_id

FROM employees

WHERE last_name = 'Carter');

SELECT *

FROM supervisors

WHERE supervisor_id =

(SELECT supervisor_id

FROM employees

WHERE last_name = 'Carter');

SELECT *

FROM supervisors

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 270/569

WHERE supervisor_id =

(SELECT employee_id

FROM supervisors

WHERE last_name = 'Carter');

SELECT *

FROM employees

WHERE supervisor_id =

(SELECT employee_id

FROM employees

WHERE last_name = 'Carter');

(*)

Incorrect. Refer to Section 6

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 271/569

 

Section 6 Lesson 4

(Answer all questions in this section)

76.

Evaluate this SELECT statement that includes a subquery:

SELECT last_name, first_name

FROM customer

WHERE area_code IN

(SELECT area_code FROM sales WHERE salesperson_id = 20);

Which statement is true about the given subquery? Mark for Review

(1) Points

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 272/569

 

The outer query executes before the nested subquery.

The results of the inner query are returned to the outer query. (*)

An error occurs if the either the inner or outer queries do not return a value.

Both the inner and outer queries must return a value, or an error occurs.

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 273/569

 

Correct

77.

Which statement about single-row and multiple-row subqueries is true? Mark for Review

(1) Points

Multiple-row subqueries cannot be used with the LIKE operator. (*)

Single-row operators can be used with both single-row and multiple-row subqueries.

Multiple-row subqueries can be used with both single-row and multiple-row operators.

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 274/569

 

Multiple-row subqueries can only be used in SELECT statements.

Incorrect. Refer to Section 6

78.

Evaluate this SELECT statement:

SELECT customer_id, name

FROM customer

WHERE customer_id IN

(SELECT customer_id

FROM customer

WHERE state_id = 'GA' AND credit_limit > 500.00);

What would happen if the inner query returned null? Mark for Review

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 275/569

(1) Points

An error would be returned.

No rows would be returned by the outer query. (*)

All the rows in the table would be selected.

Only the rows with CUSTOMER_ID values equal to null would be selected.

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 276/569

 

Incorrect. Refer to Section 6

79.

Which of the following statements contains a comparison operator that is used to restrict rows based

on a list of values returned from an inner query? Mark for Review

(1) Points

SELECT description

FROM d_types

WHERE code IN (SELECT type_code FROM d_songs);

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 277/569

 

SELECT description

FROM d_types

WHERE code = ANY (SELECT type_code FROM d_songs);

SELECT description

FROM d_types

WHERE code <> ALL (SELECT type_code FROM d_songs);

All of the above. (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 278/569

 

Incorrect. Refer to Section 6

80.

Which of the following is a valid reason why the query below will not execute successfully?

SELECT employee_id, last_name, salary

FROM employees

WHERE department_id =

(SELECT department_id FROM employees WHERE last_name like '%u%') Mark for Review

(1) Points

First subquery not enclosed in parenthesis

Single rather than multiple value operator used. (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 279/569

 

Second subquery found on the right instead of the left side of the operator.

The greater than operator is not valid.

Incorrect. Refer to Section 6

Section 6 Lesson 4

(Answer all questions in this section)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 280/569

 

81.

Evaluate this SQL statement:

SELECT employee_id, last_name, salary

FROM employees

WHERE department_id IN

(SELECT department_id

FROM employees

WHERE salary > 30000 AND salary < 50000);

Which values will be displayed? Mark for Review

(1) Points

Only employees who earn more than $30,000.

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 281/569

 

Only employees who earn less than $50,000.

All employees who work in a department with employees who earn more than $30,000 and more

than $50,000.

All employees who work in a department with employees who earn more than $30,000, but less than

$50,000. (*)

Correct

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 282/569

82.

Which operator or keyword cannot be used with a multiple-row subquery? Mark for Review

(1) Points

ALL

ANY

= (*)

>

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 283/569

 

Correct

83.

You need to create a SELECT statement that contains a multiple-row subquery, which comparison

operator(s) can you use? Mark for Review

(1) Points

IN, ANY, and ALL (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 284/569

 

LIKE

BETWEEN...AND...

=, <, and >

Correct

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 285/569

 

84.

Which best describes a multiple-row subquery? Mark for Review

(1) Points

A query that returns only one row from the inner SELECT statement

A query that returns one or more rows from the inner SELECT statement (*)

A query that returns only one column value from the inner SELECT statement

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 286/569

A query that returns one or more column values from the inner SELECT statement

Correct

85.

A multiple-row operator expects how many values? Mark for Review

(1) Points

One or more (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 287/569

 

Only one

Two or more

None

Correct

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 288/569

 

86.

You need to display all the products that cost more than the maximum cost of every product

produced in Japan. Which multiple-row comparison operator could you use? Mark for Review

(1) Points

>ANY (*)

NOT=ALL

IN

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 289/569

 

>IN

Correct

Section 7 Lesson 1

(Answer all questions in this section)

87.

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 290/569

Assume all the column names are correct. The following SQL statement will execute which of the

following?

INSERT INTO departments (department_id, department_name, manager_id, location_id)

VALUES (70, 'Public Relations', 100, 1700); Mark for Review

(1) Points

100 will be inserted into the department_id column

1700 will be inserted into the manager_id column

70 will be inserted into the department_id column (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 291/569

'Public Relations' will be inserted into the manager_name column

Correct

88.

You need to copy rows from the EMPLOYEE table to the EMPLOYEE_HIST table. What could you usein the INSERT statement to accomplish this task? Mark for Review

(1) Points

an ON clause

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 292/569

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 293/569

 

89.

The STUDENTS table contains these columns:

STU_ID NUMBER(9) NOT NULL

LAST_NAME VARCHAR2 (30) NOT NULL

FIRST_NAME VARCHAR2 (25) NOT NULL

DOB DATE

STU_TYPE_ID VARCHAR2(1) NOT NULL

ENROLL_DATE DATE

You create another table, named FT_STUDENTS, with an identical structure.You want to insert all full-

time students, who have a STU_TYPE_ID value of "F", into the new table. You execute this INSERT

statement:

INSERT INTO ft_students

(SELECT stu_id, last_name, first_name, dob, stu_type_id, enroll_date

FROM students

WHERE UPPER(stu_type_id) = 'F');

What is the result of executing this INSERT statement? Mark for Review

(1) Points

All full-time students are inserted into the FT_STUDENTS table. (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 294/569

 

An error occurs because the FT_STUDENTS table already exists.

An error occurs because you CANNOT use a subquery in an INSERT statement.

An error occurs because the INSERT statement does NOT contain a VALUES clause.

Correct

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 295/569

 

90.

You need to add a row to an existing table. Which DML statement should you use? Mark for

Review

(1) Points

UPDATE

INSERT (*)

DELETE

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 296/569

 

CREATE

Correct

Section 7 Lesson 2

(Answer all questions in this section)

91.

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 297/569

You need to remove a row from the EMPLOYEE table. Which statement would you use? Mark

for Review

(1) Points

UPDATE with a WHERE clause

INSERT with a WHERE clause

DELETE with a WHERE clause (*)

MERGE with a WHERE clause

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 298/569

 

Incorrect. Refer to Section 7

92.

You want to enter a new record into the CUSTOMERS table. Which two commands can be used to

create new rows? Mark for Review

(1) Points

INSERT, CREATE

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 299/569

 

MERGE, CREATE

INSERT, MERGE (*)

INSERT, UPDATE

Correct

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 300/569

93.

The TEACHERS and CLASS_ASSIGNMENTS tables contain these columns:

TEACHERS

TEACHER_ID NUMBER(5)

NAME VARCHAR2(25)

SUBJECT_ID NUMBER(5)

HIRE_DATE DATE

SALARY NUMBER(9,2)

CLASS_ASSIGNMENTS

CLASS_ID NUMBER(5)

TEACHER_ID NUMBER(5)

START_DATE DATE

MAX_CAPACITY NUMBER(3)

Which scenario would require a subquery to return the desired results? Mark for Review

(1) Points

You need to display the start date for each class taught by a given teacher.

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 301/569

 

You need to create a report to display the teachers who were hired more than five years ago.

You need to display the names of the teachers who teach classes that start within the next week.

You need to create a report to display the teachers who teach more classes than the average number

of classes taught by each teacher. (*)

Correct

94.

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 302/569

When the WHERE clause is missing in a DELETE statement, what is the result? Mark for Review

(1) Points

All rows are deleted from the table. (*)

The table is removed from the database.

An error message is displayed indicating incorrect syntax.

Nothing. The statement will not execute.

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 303/569

 

Correct

95.

The PLAYERS table contains these columns:

PLAYER_ID NUMBER NOT NULL

PLAYER_LNAME VARCHAR2(20) NOT NULL

PLAYER_FNAME VARCHAR2(10) NOT NULL

TEAM_ID NUMBER

SALARY NUMBER(9,2)

You need to increase the salary of each player for all players on the Tiger team by 12.5 percent. The

TEAM_ID value for the Tiger team is 5960. Which statement should you use? Mark for Review

(1) Points

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 304/569

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 305/569

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 306/569

SET (*)

HAVING

Correct

97.

One of your employees was recently married. Her employee ID is still 189, however, her last name is

now Rockefeller. Which SQL statement will allow you to reflect this change? Mark for Review

(1) Points

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 307/569

 

INSERT INTO my_employees SET last_name = 'Rockefeller' WHERE employee_ID = 189;

INSERT my_employees SET last_name = 'Rockefeller' WHERE employee_ID = 189;

UPDATE INTO my_employees SET last_name = 'Rockefeller' WHERE employee_ID = 189;

UPDATE my_employees SET last_name = 'Rockefeller' WHERE employee_ID = 189; (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 308/569

 

Correct

98.

You need to delete a record in the EMPLOYEES table for Tim Jones, whose unique employee

identification number is 348. The EMPLOYEES table contains these columns:

ID_NUM NUMBER(5) PRIMARY KEY

LNAME VARCHAR2(20)

FNAME VARCHAR2(20)

ADDRESS VARCHAR2(30)

PHONE NUMBER(10)

Which DELETE statement will delete the appropriate record without deleting any additional records?

Mark for Review

(1) Points

DELETE FROM employees WHERE id_num = 348; (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 309/569

 

DELETE FROM employees WHERE lname = jones;

DELETE * FROM employees WHERE id_num = 348;

DELETE 'jones' FROM employees;

Correct

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 310/569

 

99.

Examine the structures of the PLAYERS, MANAGERS, and TEAMS tables:

PLAYERS

PLAYER_ID NUMBER Primary Key

LAST_NAME VARCHAR2 (30)

FIRST_NAME VARCHAR2 (25)

TEAM_ID NUMBER

MGR_ID NUMBER

SIGNING_BONUS NUMBER(9,2)

SALARY NUMBER(9,2)

MANAGERS

MANAGER_ID NUMBER Primary Key

LAST_NAME VARCHAR2 (20)

FIRST_NAME VARCHAR2 (20)

TEAM_ID NUMBER

TEAMS

TEAM_ID NUMBER Primary Key

TEAM_NAME VARCHAR2 (20)

OWNER_LAST_NAME VARCHAR2 (20)

OWNER_FIRST_NAME VARCHAR2 (20)

Which situation would require a subquery to return the desired result? Mark for Review

(1) Points

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 311/569

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 312/569

 

Incorrect. Refer to Section 7

100.

You need to update the expiration date of products manufactured before June 30th . In which clause

of the UPDATE statement will you specify this condition? Mark for Review

(1) Points

the ON clause

the WHERE clause (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 313/569

 

the SET clause

the USING clause

Incorrect. Refer to Section 7

Test: Mid Term Exam Semester 1

Review your answers, feedback, and question scores below. An asterisk (*) indicates a correct

answer.

Semester 1 Mid Term Exam covers Sections 1-10 of Database Design.

Section 1

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

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 314/569

(1) Points

True

False (*)

Correct Correct

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

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 315/569

Neither

Correct Correct

3. The first step in system development is to document the requirements. Why?

Mark for Review

(1) Points

Wrong. A blueprint for the database design is not needed. We can just start coding straight

away.

It clarifies what a business wants to accomplish, and provides measures for deciding if the

system delivers all that is required. (*)

It allows application development to be conducted without having to consider database

design.

It keeps businesses honest.

Correct Correct

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 316/569

 

4. The market for IT professionals is still increasing and will continue to do so in

the future, as the world gets ever more dependent on computer systems. True or False? Mark

for Review

(1) Points

True (*)

False

Correct Correct

Section 2

5. An ERD is an example of a Physical Model. True or False? Mark for

Review

(1) Points

True

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 317/569

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 318/569

 

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 Incorrect. Refer to Section 2

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

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 319/569

 

Are not required.

Can be created multiple times for an entity.

Correct Correct

9. The entity/relationship model is created before the physical database design

model? True or False? Mark for Review

(1) Points

True (*)

False

Correct Correct

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 320/569

10. 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 Correct

Test: Mid Term Exam Semester 1

Review your answers, feedback, and question scores below. An asterisk (*) indicates a correct

answer.

Semester 1 Mid Term Exam covers Sections 1-10 of Database Design.

Section 2

11. A/an _________ is a picture of all the information that will form the basis for

the finished system. Mark for Review

(1) Points

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 321/569

 

ERD (*)

Process

Table

Attribute

Correct Correct

Section 3

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

or False? Mark for Review

(1) Points

True (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 322/569

 

False

Incorrect Incorrect. Refer to Section 3

13. Which of the following are valid relationship degrees Mark for Review

(1) Points

(Choose all correct answers)

1:1 (*)

1:M (*)

1:O

O:O

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 323/569

Correct Correct

14. Matrix Diagrams show Optionality and Degrees of the ERDs they document.

True or False? Mark for Review

(1) Points

True

False (*)

Incorrect Incorrect. Refer to Section 3

15. The single end of a Relationship is called: Mark for Review

(1) Points

Single Toe (*)

Big Toe

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 324/569

Single Foot

Crows Foot

Correct Correct

16. When reading an ERD including Relationships you are said to be speaking:

Mark for Review

(1) Points

Relationship-ish

Gibberish

ERDish (*)

Entity-ish

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 325/569

Correct Correct

Section 4

17. Business rules are important to data modelers. True or False? Mark for

Review

(1) Points

True (*)

False

Correct Correct

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

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 326/569

 

Use two subtypes with relationships from class to student gender (*)

Make the attribute Gender mandatory

You cannot model this. You need to document it

Incorrect Incorrect. Refer to Section 4

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

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 327/569

No, so you should list them on a separate document to be handled programmatically (*)

Correct Correct

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

Correct Correct

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 328/569

Test: Mid Term Exam Semester 1

Review your answers, feedback, and question scores below. An asterisk (*) indicates a correct

answer.

Semester 1 Mid Term Exam covers Sections 1-10 of Database Design.

Section 4

21. 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 Correct

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 329/569

 

22. You can only create relationships to a Supertype, not to a Subtype. True or

False? Mark for Review

(1) Points

True

False (*)

Correct Correct

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

for Review

(1) Points

(Choose all correct answers)

DOGS

ANIMAL (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 330/569

 

ANIMALS

DOG (*)

Correct Correct

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

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 331/569

 

Correct Correct

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

for Review

(1) Points

True

False (*)

Correct Correct

Section 5

26. What do you call the entity created when you resolve a M:M relationship?

Mark for Review

(1) Points

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 332/569

 

Intersection entity (*)

Inclusion entity

Recursive entity

M:M entity

Correct Correct

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

connects, it is said to be: Mark for Review

(1) Points

Mandatory

Optional

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 333/569

Transferrable

Non-Transferrable (*)

Correct Correct

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.

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 334/569

Correct 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 Correct

30. A relationship from an entity back to itself is called a ___________

relationship. Mark for Review

(1) Points

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 335/569

 

Mandatory

Recursive (*)

Many to Many Optional

Transferrable

Correct Correct

Test: Mid Term Exam Semester 1

Review your answers, feedback, and question scores below. An asterisk (*) indicates a correct

answer.

Semester 1 Mid Term Exam covers Sections 1-10 of Database Design.

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

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 336/569

CAR and WHEEL

TREE and BRANCH

PERSON and FINGERPRINT

TEACHER and SUBJECT AREA (*)

Correct Correct

Section 6

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

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 337/569

 

When no attritibutes are mutually independent and all are fully dependent on the primary

key.

None of the Above.

Correct Correct

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

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 338/569

 

Incorrect Incorrect. Refer to Section 5

34. The Rule of 3rd Normal Form states that No Non-UID attribute can be

dependant on another non-UID attribute. True or False? Mark for Review

(1) Points

True (*)

False

Correct Correct

35. All entities must be given a new artificial UID. True or False? Mark for

Review

(1) Points

True

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 339/569

 

False (*)

Correct Correct

Section 7

36. Which of the following scenarios should be modeled so that historical data is

kept? (Choose two) Mark for Review

(1) Points

(Choose all correct answers)

BABY and AGE

CUSTOMER and PAYMENTS (*)

TEACHER and AGE

CUSTOMER and ORDERS (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 340/569

 

Incorrect Incorrect. Refer to Section 7

37. Which of the following is NOT a relationship type? Mark for Review

(1) Points

Some to None (*)

One to One

One to Many

Many to Many

Correct Correct

38. Consider the entity ADDRESS with the attributes:

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 341/569

 

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? Mark for Review

(1) Points

True (*)

False

Correct Correct

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

Mark for Review

(1) Points

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 342/569

 

True

False (*)

Correct Correct

40. Arcs are Mandatory in Data modeling. All ERD's must have at least one Arc.

True or False? Mark for Review

(1) Points

True

False (*)

Correct Correct

Test: Mid Term Exam Semester 1

Review your answers, feedback, and question scores below. An asterisk (*) indicates a correct

answer.

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 343/569

Semester 1 Mid Term Exam covers Sections 1-10 of Database Design.

Section 7

41. 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 Correct

42. A recursive relationship must Mandatory at both ends. True or False? Mark

for Review

(1) Points

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 344/569

 

True

False (*)

Incorrect 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

Incorrect Incorrect. Refer to Section 8

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 345/569

 

44. Consultants often use their experience in ensuring projects stay on track and

delivers within the timescales set out for the project. True or False? Mark for Review

(1) Points

True (*)

False

Correct Correct

Section 10

45. All systems must include functionality to provide logging or journaling in

conceptual data models. True or False? Mark for Review

(1) Points

True

False (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 346/569

 

Correct Correct

46. Which of the following is a logical constraint that could result from

considering how time impacts an example of data storage? Mark for Review

(1) Points

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.

Correct Correct

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 347/569

47. 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? Mark for Review

(1) Points

True

False (*)

Correct Correct

48. 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 Correct

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 348/569

 

49. Modeling historical data is Optional. True or False? Mark for Review

(1) Points

True (*)

False

Correct Correct

50. Which of the following would be a logical constraint when modeling time fora 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. (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 349/569

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 Correct

Section 1 Lesson 1

(Answer all questions in this section)

1.

You query the database with this SQL statement:

SELECT CONCAT(last_name, (SUBSTR(LOWER(first_name), 4))) "Default Password"

FROM employees;

Which function will be evaluated first? Mark for Review

(1) Points

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 350/569

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 351/569

 

Correct

2.

Evaluate this SELECT statement:

SELECT LENGTH(email)

FROM employee;

What will this SELECT statement display?

The longest e-mail address in the EMPLOYEE table.

The email address of each employee in the EMPLOYEE table.

The number of characters for each value in the EMAIL column in the employees table. (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 352/569

 

The maximum number of characters allowed in the EMAIL column.

Correct

3.

You issue this SQL statement:

SELECT INSTR ('organizational sales', 'al')

FROM dual;

Which value is returned by this command?

1

2

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 353/569

 

13 (*)

17

Correct

4.

You need to display the number of characters in each customer's last name. Which function should

you use?

LENGTH (*)

\\

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 354/569

 

LPAD

COUNT

SUBSTR

Correct

5.

The PRICE table contains this data:

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 355/569

PRODUCT_ID MANUFACTURER_ID

86950 59604

You query the database and return the value 95. Which script did you use? s

SELECT SUBSTR(product_id, 3, 2)

FROM price

WHERE manufacturer_id = 59604; (*)

SELECT LENGTH(product_id, 3, 2)

FROM price

WHERE manufacturer_id = 59604;

SELECT SUBSTR(product_id, -1, 3)

FROM price

WHERE manufacturer_id = 59604;

SELECT TRIM(product_id, -3, 2)

FROM price

WHERE manufacturer_id = 59604;

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 356/569

 

Correct

6.

Which three statements about functions are true? (Choose three.)

(Choose all correct answers)

The SYSDATE function returns the Oracle Server date and time. (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 357/569

 

The ROUND number function rounds a value to a specified decimal place or the nearest whole

number. (*)

The CONCAT function can only be used on character strings, not on numbers.

The SUBSTR character function returns a portion of a string beginning at a defined character position

to a specified length. (*)

Correct

7.

Which SQL function can be used to remove heading or trailing characters (or both) from a character

string?

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 358/569

 

LPAD

CUT

NVL2

TRIM (*)

Correct

Section 1 Lesson 2

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 359/569

(Answer all questions in this section)

8.

Which comparison operator retrieves a list of values?

IN (*)

LIKE

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 360/569

 

BETWEEN...IN...

IS NULL

Correct

9.

You issue this SQL statement:

SELECT TRUNC(751.367,-1)

FROM dual;

Which value does this statement display?

700

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 361/569

 

750 (*)

751

751.3

Correct

10.

You issue this SQL statement:

SELECT ROUND (1282.248, -2)

FROM dual;

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 362/569

What value does this statement produce?

1200

1282

1282.25

1300 (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 363/569

Correct

Section 1 Lesson 3

(Answer all questions in this section)

11.

Which of the following Date Functions will add calendar months to a date?

Months + Calendar (Month)

ADD_MONTHS (*)

MONTHS + Date

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 364/569

 

NEXT_MONTH

Correct

12.

You need to display the number of months between today's date and each employee's hiredate.

Which function should you use?

ROUND

BETWEEN

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 365/569

 

ADD_MONTHS

MONTHS_BETWEEN (*)

Correct

13.

Which of the following SQL statements will correctly display the last name and the number of weeks

employed for all employees in department 90?

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 366/569

 

SELECT last_name, (SYSDATE-hire_date)/7 AS WEEKS

FROM employees

WHERE department_id = 90; (*)

SELECT last name, (SYSDATE-hire_date)/7 DISPLAY WEEKS

FROM employees

WHERE department id = 90;

SELECT last_name, # of WEEKS

FROM employees

WHERE department_id = 90;

SELECT last_name, (SYSDATE-hire_date)AS WEEK

FROM employees

WHERE department_id = 90;

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 367/569

 

Correct

14.

Which SELECT statement will NOT return a date value?

SELECT (30 + hire_date) + 1440/24

FROM employees;

SELECT (SYSDATE - hire_date) + 10*8

FROM employees; (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 368/569

SELECT SYSDATE - TO_DATE('25-JUN-02') + hire_date

FROM employees;

SELECT (hire_date - SYSDATE) + TO_DATE('25-JUN-02')

FROM employees;

Correct

15.

The EMPLOYEE table contains these columns:

LAST_NAME VARCHAR2(20)

FIRST_NAME VARCHAR2(20)

HIRE_DATE DATE

EVAL_MONTHS NUMBER(3)

Evaluate this SELECT statement:

SELECT hire_date + eval_months

FROM employee;

The values returned by this SELECT statement will be of which data type?

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 369/569

 

DATE (*)

NUMBER

DATETIME

INTEGER

Incorrect. Refer to Section 1

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 370/569

 

Section 2 Lesson 1

(Answer all questions in this section)

16.

The EMPLOYEES table contains these columns:

EMPLOYEE_ID NUMBER(9)

LAST_NAME VARCHAR2 (25)

FIRST_NAME VARCHAR2 (25)

HIRE_DATE DATE

You need to display HIRE_DATE values in this format:

January 28, 2000

Which SELECT statement could you use? Mark for Review

(1) Points

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 371/569

 

SELECT TO_CHAR(hire_date, Month DD, YYYY)

FROM employees;

SELECT TO_CHAR(hire_date, 'Month DD, YYYY')

FROM employees;

(*)

SELECT hire_date(TO_CHAR 'Month DD', ' YYYY')

FROM employees;

SELECT TO_CHAR(hire_date, 'Month DD', ' YYYY')

FROM employees;

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 372/569

 

Correct

17.

Which statement concerning single row functions is true?

Single row functions can accept only one argument, but can return multiple values.

Single row functions cannot modify a data type.

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 373/569

 

Single row functions can be nested. (*)

Single row functions return one or more results per row.

Incorrect. Refer to Section 2

18.

You have been asked to create a report that lists all customers who have placed orders of at least

$2,500. The report's date should be displayed in the Day, Date Month, Year format (For example,

Tuesday, 13 April, 2004 ). Which statement should you issue?

SELECT companyname, TO_CHAR (sysdate, 'fmdd, dy month, yyyy'), total

FROM customers NATURAL JOIN orders

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 374/569

WHERE total >= 2500;

SELECT companyname, TO_DATE (date, 'day, dd month, yyyy'), total

FROM customers NATURAL JOIN orders

WHERE total >= 2500;

SELECT companyname, TO_DATE (sysdate, 'dd, dy month, yyyy'), total

FROM customers NATURAL JOIN orders

WHERE total >= 2500;

SELECT companyname, TO_CHAR (sysdate, 'fmDay, dd Month, yyyy'), total

FROM customers NATURAL JOIN orders

WHERE total >= 2500; (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 375/569

 

Correct

19.

Which two statements concerning SQL functions are true? (Choose two.)

(Choose all correct answers)

Character functions can accept numeric input.

Not all date functions return date values. (*)

Number functions can return number or character values.

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 376/569

 

Conversion functions convert a value from one data type to another data type. (*)

Single-row functions manipulate groups of rows to return one result per group of rows.

Incorrect. Refer to Section 2

20.

All Human Resources data is stored in a table named EMPLOYEES. You have been asked to create a

report that displays each employee's name and salary. Each employee's salary must be displayed in

the following format: $000,000.00. Which function should you include in a SELECT statement to

achieve the desired result?

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 377/569

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 378/569

 

(Answer all questions in this section)

22.

The STYLES table contains this data:

STYLE_ID STYLE_NAME CATEGORY COST

895840 SANDAL 85940 12.00

968950 SANDAL 85909 10.00

869506 SANDAL 89690 15.00

809090 LOAFER 89098 10.00

890890 LOAFER 89789 14.00

857689 HEEL 85940 11.00

758960 SANDAL 86979

Evaluate this SELECT statement:

SELECT style_id, style_name, category, cost

FROM styles

WHERE style_name LIKE 'SANDAL' AND NVL(cost, 0) < 15.00

ORDER BY category, cost;

Which result will the query provide?

STYLE_ID STYLE_NAME CATEGORY COST

895840 SANDAL 85940 12.00

968950 SANDAL 85909 10.00

758960 SANDAL 86979

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 379/569

 

STYLE_ID STYLE_NAME CATEGORY COST

895840 SANDAL 85909 12.00

968950 SANDAL 85909 10.00

869506 SANDAL 89690 15.00

758960 SANDAL 86979

STYLE_ID STYLE_NAME CATEGORY COST

895840 SANDAL 85909 12.00

968950 SANDAL 85909 10.00

758960 SANDAL 86979

869506 SANDAL 89690 15.00

STYLE_ID STYLE_NAME CATEGORY COST

968950 SANDAL 85909 10.00

895840 SANDAL 85940 12.00

758960 SANDAL 86979

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 380/569

Correct

23.

When executed, which statement displays a zero if the TUITION_BALANCE value is zero and the

HOUSING_BALANCE value is null?

SELECT NVL (tuition_balance + housing_balance, 0) "Balance Due"

FROM student_accounts; (*)

SELECT NVL(tuition_balance, 0), NVL (housing_balance), tuition_balance + housing_balance "Balance

Due"

FROM student_accounts;

SELECT tuition_balance + housing_balance

FROM student_accounts;

SELECT TO_NUMBER(tuition_balance, 0), TO_NUMBER (housing_balance, 0), tutition_balance +

housing_balance "Balance Due"

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 381/569

FROM student_accounts;

Correct

24.

You need to replace null values in the DEPT_ID column with the text "N/A". Which functions should

you use?

TO_CHAR and NVL (*)

TO_CHAR and NULL

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 382/569

TO_CHAR and NULLIF

TO_NUMBER and NULLIF

Correct

Section 3 Lesson 2

(Answer all questions in this section)

25.

You have been asked to create a report that lists all corporate customers and all orders that they

have placed. The customers should be listed alphabetically beginning with the letter 'A', and their

corresponding order totals should be sorted from the highest amount to the lowest amount.

Which of the following statements should you issue? Mark for Review

(1) Points

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 383/569

 

SELECT c.custid, c.companyname, o.orderdate, o. custid, o.amount

FROM customers c, orders o

WHERE c.custid = o.custid

ORDER BY amount DESC, companyname;

SELECT c.custid, c.companyname, o.orderdate, o. custid, o.amount

FROM customers c, orders o

WHERE c.custid = o.custid

ORDER BY companyname, amount DESC;

(*)

SELECT c.custid, c.companyname, o.orderdate, o. custid, o.amount

FROM customers c, orders o

WHERE c.custid = o.custid

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 384/569

ORDER BY companyname, amount;

SELECT c.custid, c.companyname, o.orderdate, o. custid, o.amount

Q FROM customers c, orders o

WHERE c.custid = o.custid

ORDER BY companyname ASC, amount ASC;

Correct

26.

Your company stores its business information in an Oracle9i database. The EMPLOYEES table includes

the following columns:

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 385/569

EMP_ID NUMBER(5) NOT NULL PRIMARY KEY

FNAME VARCHAR2(25)

LNAME VARCHAR2(25)

ADDRESS VARCHAR2(35)

CITY VARCHAR2(25)

STATE VARCHAR2(2)

ZIP NUMBER(9)

TELEPHONE NUMBER(10)

DEPT_ID NUMBER(5) NOT NULL FOREIGN KEY

The BONUS table includes the following columns:

BONUS_ID NUMBER(5) NOT NULL PRIMARY KEY

ANNUAL_SALARY NUMBER(10)

BONUS_PCT NUMBER(3, 2)

EMP_ID VARCHAR2(5) NOT NULL FOREIGN KEY

You want to determine the amount of each employee's bonus. Which of the following queries should

you issue?

SELECT e.fname, e.lname, b.annual_salary * b. bonus_pct

FROM employees e, bonus b

WHERE e.emp_id = b.emp_id; (*)

SELECT e.fname, e.lname, b.annual_salary, b. bonus_pct

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 386/569

FROM employees e, bonus b

WHERE e.emp_id = b.emp_id;

SELECT e.fname, e.lname, b.annual_salary, b. bonus_pct

FROM employees, bonus

WHERE e.emp_id = b.emp_id;

SELECT fname, lname, annual_salary * bonus_pct

FROM employees, bonus NATURAL JOIN;

Incorrect. Refer to Section 3

27.

What is produced when a join condition is not specified in a multiple-table query?

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 387/569

 

a self-join

an outer join

an equijoin

a Cartesian product (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 388/569

 

Correct

28.

The CUSTOMERS and SALES tables contain these columns:

CUSTOMERS

CUST_ID NUMBER(10) PRIMARY KEY

COMPANY VARCHAR2(30)

LOCATION VARCHAR2(20)

SALES

SALES_ID NUMBER(5) PRIMARY KEY

CUST_ID NUMBER(10) FOREIGN KEY

TOTAL_SALES NUMBER(30)

Which SELECT statement will return the customer ID, the company and the total sales?

SELECT c.cust_id, c.company, s.total_sales

FROM customers c, sales s

WHERE c.cust_id = s.cust_id (+);

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 389/569

 

SELECT cust_id, company, total_sales

FROM customers, sales

WHERE cust_id = cust_id;

SELECT c.cust_id, c.company, s.total_sales

FROM customers c, sales s

WHERE c.cust_id = s.cust_id; (*)

SELECT cust_id, company, total_sales

FROM customers c, sales s

WHERE c.cust_id = s.cust_id;

Correct

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 390/569

 

29.

Which statement about the join syntax of a SELECT statement is true?

The ON keyword must be included.

The JOIN keyword must be included.

The FROM clause represents the join criteria.

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 391/569

The WHERE clause represents the join criteria. (*)

Correct

30.

When joining 3 tables in a SELECT statement, how many join conditions are needed in the WHERE

clause? Mark for Review

(1) Points

0

1

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 392/569

 

2 (*)

3

Correct

Section 3 Lesson 4

(Answer all questions in this section)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 393/569

 

31.

Which statement about outer joins is true? Mark for Review

(1) Points

The tables must be aliased.

The FULL, RIGHT, or LEFT keyword must be included.

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 394/569

 

The OR operator cannot be used to link outer join conditions. (*)

Outer joins are always evaluated before other types of joins in the query.

Correct

32.

Which two operators can be used in an outer join condition using the outer join operator (+)? Mark

for Review

(1) Points

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 395/569

 

AND and = (*)

OR and =

BETWEEN...AND... and IN

IN and =

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 396/569

 

Incorrect. Refer to Section 3

33.

Which operator would you use after one of the column names in the WHERE clause when creating an

outer join? Mark for Review

(1) Points

(+) (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 397/569

 

*

+

=

Correct

Section 4 Lesson 2

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 398/569

 

(Answer all questions in this section)

34.

Which of the following best describes a natural join? Mark for Review

(1) Points

A join between two tables that includes columns that share the same name, datatypes and lengths

(*)

A join that produces a Cartesian product

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 399/569

 

A join between tables where matching fields do not exist

A join that uses only one table

Correct

35.

You need to join two tables that have two columns with the same name and compatible data types.

Which type of join would you create to join the tables on both of the columns? Mark for

Review

(1) Points

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 400/569

 

Natural join (*)

Cross join

Outer join

Self-join

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 401/569

 

Correct

36.

Which of the following conditions will cause an error on a NATURAL JOIN? Mark for Review

(1) Points

When you attempt to write it as an equijoin.

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 402/569

When the NATURAL JOIN clause is based on all columns in the two tables that have the same name.

If it selects rows from the two tables that have equal values in all matched columns.

If the columns having the same names have different data types, then an error is returned. (*)

Correct

Section 4 Lesson 3

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 403/569

(Answer all questions in this section)

37.

Which SELECT clause creates an equijoin by specifying a column name common to both tables?

Mark for Review

(1) Points

A HAVING clause

The FROM clause

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 404/569

 

The SELECT clause

A USING clause (*)

Incorrect. Refer to Section 4

38.

The primary advantage of using JOIN ON is: Mark for Review

(1) Points

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 405/569

 

The join happens automatically based on matching column names and data types

It will display rows that do not meet the join condition

It permits columns with different names to be joined (*)

It permits columns that don't have matching data types to be joined

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 406/569

 

Correct

39.

Evaluate this SELECT statement:

SELECT a.lname || ', ' || a.fname as "Patient", b.lname || ', ' || b.fname as "Physician", c.admission

FROM patient a

JOIN physician b

ON (b.physician_id = c.physician_id);

JOIN admission c

ON (a.patient_id = c.patient_id);

Which clause generates an error? Mark for Review

(1) Points

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 407/569

JOIN physician b

ON (b.physician_id = c.physician_id); (*)

JOIN admission c

ON (a.patient_id = c.patient_id)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 408/569

Incorrect. Refer to Section 4

40.

Below find the structure of the CUSTOMERS and SALES_ORDER tables:

CUSTOMERS

CUSTOMER_ID NUMBER NOT NULL, Primary Key

CUSTOMER_NAME VARCHAR2 (30)

CONTACT_NAME VARCHAR2 (30)

CONTACT_TITLE VARCHAR2 (20)

ADDRESS VARCHAR2 (30)

CITY VARCHAR2 (25)

REGION VARCHAR2 (10)

POSTAL_CODE VARCHAR2 (20)

COUNTRY_ID NUMBER Foreign key to COUNTRY_ID column of the COUNTRY table

PHONE VARCHAR2 (20)

FAX VARCHAR2 (20)

CREDIT_LIMIT NUMBER(7,2)

SALES_ORDER

ORDER_ID NUMBER NOT NULL, Primary Key

CUSTOMER_ID NUMBER Foreign key to CUSTOMER_ID column of the CUSTOMER table

ORDER_DT DATE

ORDER_AMT NUMBER (7,2)

SHIP_METHOD VARCHAR2 (5)

You need to create a report that displays customers without a sales order. Which statement could

you use? Mark for Review

(1) Points

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 409/569

 

SELECT c.customer_name

FROM customers c

WHERE c.customer_id not in (SELECT s.customer_id FROM sales_order s);

(*)

SELECT c.customer_name

FROM customers c, sales_order s

WHERE c.customer_id = s.customer_id(+);

SELECT c.customer_name

FROM customers c, sales_order s

WHERE c.customer_id (+) = s.customer_id;

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 410/569

 

SELECT c.customer_name

FROM customers c

RIGHT OUTER JOIN sales_order s ON (c.customer_id = s.customer_id);

Incorrect. Refer to Section 4

Section 4 Lesson 4

(Answer all questions in this section)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 411/569

 

41.

You need to join the EMPLOYEE_HIST and EMPLOYEE tables. The EMPLOYEE_HIST table will be the

first table in the FROM clause. All the matched and unmatched rows in the EMPLOYEE table need to

be displayed. Which type of join will you use? Mark for Review

(1) Points

a cross join

an inner join

a left outer join

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 412/569

 

a right outer join (*)

Correct

42.

Which two sets of join keywords create a join that will include unmatched rows from the first table

specified in the SELECT statement? Mark for Review

(1) Points

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 413/569

 

LEFT OUTER JOIN and FULL OUTER JOIN (*)

RIGHT OUTER JOIN and LEFT OUTER JOIN

USING and HAVING

OUTER JOIN and USING

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 414/569

 

Correct

43.

Which type of join returns rows from one table that have NO direct match in the other table? Mark

for Review

(1) Points

equijoin

self join

outer join (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 415/569

 

natural join

Correct

Section 5 Lesson 1

(Answer all questions in this section)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 416/569

 

44.

Group functions can be nested to a depth of? Mark for Review

(1) Points

three

four

two (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 417/569

Group functions cannot be nested.

Incorrect. Refer to Section 5

45.

If a select list contains both a column as well as a group function then what clause is required? Markfor Review

(1) Points

having clause

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 418/569

 

join clause

order by clause

group by clause (*)

Correct

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 419/569

 

46.

Which statement about group functions is true? Mark for Review

(1) Points

Group functions ignore null values. (*)

Group functions can only be used in a SELECT list.

Group functions can be used in a WHERE clause.

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 420/569

 

A query that includes a group function in the SELECT list must include a GROUP BY clause.

Correct

Section 5 Lesson 2

(Answer all questions in this section)

48.

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 421/569

The AVG, SUM, VARIANCE, and STDDEV functions can be used with which of the following? Mark

for Review

(1) Points

Only numeric data types (*)

Integers only

Any data type

All except numeric

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 422/569

 

Correct

47.

What will the following SQL Statement do?

SELECT job_id, COUNT(*)

FROM employees

GROUP BY job_id; Mark for Review

(1) Points

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 423/569

Displays all the employees and groups them by job.

Displays each job id and the number of people assigned to that job id. (*)

Displays only the number of job_ids.

Displays all the jobs with as many people as there are jobs.

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 424/569

Correct

49.

You need to compute the total salary for all employees in department 10. Which group function will

you use? Mark for Review

(1) Points

MAX

SUM (*)

VARIANCE

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 425/569

 

COUNT

Correct

50.

Which group functions below act on character, number and date data types?

(Choose more than one answer) Mark for Review

(1) Points

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 426/569

 

(Choose all correct answers)

SUM

MAX (*)

MIN (*)

AVG

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 427/569

 

COUNT (*)

Correct

Section 5 Lesson 2

(Answer all questions in this section)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 428/569

 

51.

The EMPLOYEES table contains these columns:

EMPLOYEE_ID NUMBER(9)

LAST_NAME VARCHAR2(20)

FIRST_NAME VARCHAR2(20)

SALARY NUMBER(9,2)

HIRE_DATE DATE

BONUS NUMBER(7,2)

COMM_PCT NUMBER(4,2)

Which three functions could be used with the HIRE_DATE, LAST_NAME, or SALARY columns? (Choose

three.) Mark for Review

(1) Points

(Choose all correct answers)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 429/569

 

MAX (*)

SUM

AVG

MIN (*)

COUNT (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 430/569

 

Correct

52.

Which group function would you use to display the total of all salary values in the EMPLOYEE table?

Mark for Review

(1) Points

SUM (*)

AVG

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 431/569

 

COUNT

MAX

Correct

53.

The CUSTOMER table contains these columns:

CUSTOMER_ID NUMBER(9)

FNAME VARCHAR2(25)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 432/569

LNAME VARCHAR2(30)

CREDIT_LIMIT NUMBER (7,2)

CATEGORY VARCHAR2(20)

You need to calculate the average credit limit for all the customers in each category. The average

should be calculated based on all the rows in the table excluding any customers who have not yet

been assigned a credit limit value. Which group function should you use to calculate this value?

Mark for Review

(1) Points

AVG (*)

SUM

COUNT

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 433/569

 

STDDEV

Correct

54.

Which group function would you use to display the highest salary value in the EMPLOYEE table?

Mark for Review

(1) Points

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 434/569

 

AVG

COUNT

MAX (*)

MIN

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 435/569

 

Correct

55.

Which group function would you use to display the average price of all products in the PRODUCTS

table? Mark for Review

(1) Points

SUM

AVG (*)

COUNT

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 436/569

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 437/569

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 438/569

 

The query generates an error and returns no results.

Correct

57.

Evaluate this SELECT statement:

SELECT COUNT(*)

FROM products;

Which statement is true? Mark for Review

(1) Points

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 439/569

 

The number of rows in the table is displayed. (*)

The number of unique PRODUCT_IDs in the table is displayed.

An error occurs due to an error in the SELECT clause.

An error occurs because no WHERE clause is included in the SELECT statement.

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 440/569

 

Correct

58.

Which SELECT statement will calculate the number of rows in the PRODUCTS table? Mark for

Review

(1) Points

SELECT COUNT(products);

SELECT COUNT FROM products;

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 441/569

 

SELECT COUNT (*) FROM products; (*)

SELECT ROWCOUNT FROM products;

Correct

59.

Group functions can avoid computations involving duplicate values by including which keyword?

Mark for Review

(1) Points

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 442/569

 

NULL

DISTINCT (*)

SELECT

UNLIKE

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 443/569

 

Correct

Section 6 Lesson 1

(Answer all questions in this section)

60.

Evaluate this SELECT statement:

SELECT COUNT(emp_id), dept_id

FROM employee

GROUP BY dept_id;

You only want to include employees who earn more than 15000.

Which clause should you include in the SELECT statement? Mark for Review

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 444/569

(1) Points

WHERE salary > 15000 (*)

HAVING salary > 15000

WHERE SUM(salary) > 15000

HAVING SUM(salary) > 15000

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 445/569

 

Incorrect. Refer to Section 6

Section 6 Lesson 1

(Answer all questions in this section)

61.

The EMPLOYEES table contains the following columns:

EMP_ID NUMBER(10) PRIMARY KEY

LNAME VARCHAR2(20)

FNAME VARCHAR2(20)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 446/569

DEPT VARCHAR2(20)

HIRE_DATE DATE

SALARY NUMBER(10)

You want to create a report that includes each employee's last name, employee identification

number, date of hire and salary. The report should include only those employees who have been

with the company for more than one year and whose salary exceeds $40,000.

Which of the following SELECT statements will accomplish this task? Mark for Review

(1) Points

SELECT emp_id, lname, salary

FROM employees

WHERE salary > 40000

AND hire_date = (SELECT hire_date FROM employees

WHERE (sysdate-hire_date) / 365 > 1);

SELECT emp_id, lname, hire_date, salary

FROM employees

WHERE salary > 40000

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 447/569

AND hire_date = (SELECT hire_date FROM employees

WHERE (sysdate-hire_date) / 365 > 1);

SELECT emp_id, lname, hire_date, salary

FROM employees

WHERE salary > 40000

AND (sysdate-hire_date) / 365 > 1;

(*)

SELECT emp_id, lname, salary

FROM employees

WHERE salary > 40000

AND hire_date IN (sysdate-hire_date) / 365 > 1);

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 448/569

 

Incorrect. Refer to Section 6

62.

Evaluate this statement:

SELECT department_id, AVG(salary)

FROM employees

WHERE job_id <> 69879

GROUP BY job_id, department_id

HAVING AVG(salary) > 35000

ORDER BY department_id;

Which clauses restricts the result? Choose two. Mark for Review

(1) Points

(Choose all correct answers)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 449/569

 

SELECT department_id, AVG(salary)

WHERE job_id <> 69879 (*)

GROUP BY job_id, department_id

HAVING AVG(salary) > 35000 (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 450/569

 

Correct

63.

Evaluate this SELECT statement:

SELECT SUM(salary), dept_id, mgr_id

FROM employee

GROUP BY dept_id, mgr_id;

Which SELECT statement clause allows you to restrict the rows returned, based on a group function?

Mark for Review

(1) Points

HAVING SUM(salary) > 100000 (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 451/569

 

WHERE SUM(salary) > 100000

WHERE salary > 100000

HAVING salary > 100000

Incorrect. Refer to Section 6

64.

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 452/569

Evaluate this SELECT statement:

SELECT COUNT(emp_id), mgr_id, dept_id

FROM employee

WHERE status = 'I'

GROUP BY dept_id

HAVING salary > 30000

ORDER BY 2;

Why does this statement return a syntax error? Mark for Review

(1) Points

MGR_ID must be included in the GROUP BY clause. (*)

The HAVING clause must specify an aggregate function.

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 453/569

A single query cannot contain a WHERE clause and a HAVING clause.

The ORDER BY clause must specify a column name in the EMPLOYEE table.

Correct

65.

Evaluate this SELECT statement:

SELECT SUM(salary), dept_id, department_name

FROM employee

WHERE dept_id = 1

GROUP BY department;

Which clause of the SELECT statement contains a syntax error? Mark for Review

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 454/569

(1) Points

SELECT

FROM

WHERE

GROUP BY (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 455/569

 

Correct

66.

The PLAYERS table contains these columns:

PLAYER_ID NUMBER PK

PLAYER_NAME VARCHAR2 (30)

TEAM_ID NUMBER

HIRE_DATE DATE

SALARY NUMBER (8,2)

Which two clauses represent valid uses of aggregate functions? (Choose three.) Mark for

Review

(1) Points

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 456/569

 

(Choose all correct answers)

ORDER BY AVG(salary)

GROUP BY MAX(salary) (*)

SELECT AVG(NVL(salary, 0)) (*)

HAVING MAX(salary) > 10000 (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 457/569

 

WHERE hire_date > AVG(hire_date)

Correct

67.

The PLAYERS and TEAMS tables contain these columns:

PLAYERS

PLAYER_ID NUMBER NOT NULL, Primary Key

LAST_NAME VARCHAR2 (30) NOT NULL

FIRST_NAME VARCHAR2 (25) NOT NULL

TEAM_ID NUMBER

POSITION VARCHAR2 (25)

TEAMS

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 458/569

TEAM_ID NUMBER NOT NULL, Primary Key

TEAM_NAME VARCHAR2 (25)

You need to create a report that lists the names of each team with more than five pitchers.

Which SELECT statement will produce the desired result? Mark for Review

(1) Points

SELECT t.team_name, COUNT(p.player_id)

FROM players p, teams t ON (p.team_id = t.team_id)

WHERE UPPER(p.position) = 'PITCHER'

GROUP BY t.team_name;

SELECT t.team_name, COUNT(p.player_id)

FROM players JOIN teams t ON (p.team_id = t.team_id)

WHERE UPPER(p.position) = 'PITCHER' HAVING COUNT(p.player_id) > 5;

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 459/569

 

SELECT t.team_name, COUNT(p.player_id)

FROM players p, teams t ON (p.team_id = t.team_id)

WHERE UPPER(p.position) = 'PITCHER'

GROUP BY t.team_name HAVING COUNT(p.player_id) > 5;

SELECT t.team_name, COUNT(p.player_id)

FROM players p JOIN teams t ON (p.team_id = t.team_id)

WHERE UPPER(p.position) = 'PITCHER'

GROUP BY t.team_name HAVING COUNT(p.player_id) > 5;

(*)

Correct

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 460/569

 

Section 6 Lesson 2

(Answer all questions in this section)

68.

You need to display all the players whose salaries are greater than or equal to John Brown's salary.

Which comparison operator should you use? Mark for Review

(1) Points

=

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 461/569

>

<=

>= (*)

Correct

69.

Which of the following is TRUE regarding the order of subquery execution? Mark for Review

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 462/569

(1) Points

The outer query is executed first

The subquery executes once after the main query

The subquery executes once before the main query (*)

The result of the main query is used with the subquery

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 463/569

 

Correct

70.

Which statement about subqueries is true? Mark for Review

(1) Points

Subqueries should be enclosed in double quotation marks.

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 464/569

 

Subqueries cannot contain group functions.

Subqueries are often used in a WHERE clause to return values for an unknown conditional value. (*)

Subqueries generally execute last, after the main or outer query executes.

Incorrect. Refer to Section 6

Section 6 Lesson 2

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 465/569

 

(Answer all questions in this section)

71.

Examine the structures of the CUSTOMER and ORDER_HISTORY tables:

CUSTOMER

CUSTOMER_ID NUMBER(5)

NAME VARCHAR2(25)

CREDIT_LIMIT NUMBER(8,2)

OPEN_DATE DATE

ORDER_HISTORY

ORDER_ID NUMBER(5)

CUSTOMER_ID NUMBER(5)

ORDER_DATE DATE

TOTAL NUMBER(8,2)

Which of the following scenarios would require a subquery to return the desired results? Mark

for Review

(1) Points

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 466/569

 

You need to display the date each customer account was opened.

You need to display each date that a customer placed an order.

You need to display all the orders that were placed on a certain date.

You need to display all the orders that were placed on the same day as order number 25950. (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 467/569

 

Incorrect. Refer to Section 6

72.

Which operator can be used with a multiple-row subquery? Mark for Review

(1) Points

IN (*)

<>

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 468/569

 

=

LIKE

Correct

Section 6 Lesson 3

(Answer all questions in this section)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 469/569

 

73.

Examine the structure of the EMPLOYEE, DEPARTMENT, and ORDERS tables.

EMPLOYEE

EMPLOYEE_ID NUMBER(9)

LAST_NAME VARCHAR2(25)

FIRST_NAME VARCHAR2(25)

DEPARTMENT_ID NUMBER(9)

DEPARTMENT

DEPARTMENT_ID NUMBER(9)

DEPARTMENT_NAME VARCHAR2(25)

CREATION_DATE DATE

ORDERS

ORDER_ID NUMBER(9)

EMPLOYEE_ID NUMBER(9)

DATE DATE

CUSTOMER_ID NUMBER(9)

You want to display all employees who had an order after the Sales department was established.

Which of the following constructs would you use? Mark for Review

(1) Points

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 470/569

 

a group function

a single-row subquery (*)

the HAVING clause

a MERGE statement

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 471/569

 

Incorrect. Refer to Section 6

74.

Which best describes a single-row subquery? Mark for Review

(1) Points

a query that returns only one row from the inner SELECT statement (*)

a query that returns one or more rows from the inner SELECT statement

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 472/569

a query that returns only one column value from the inner SELECT statement

a query that returns one or more column values from the inner SELECT statement

Correct

75.

You need to produce a report that contains all employee-related information for those employees

who have Brad Carter as a supervisor. However, you are not sure which supervisor ID belongs to Brad

Carter. Which query should you issue to accomplish this task? Mark for Review

(1) Points

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 473/569

 

SELECT *

FROM employees

WHERE supervisor_id =

(SELECT supervisor_id

FROM employees

WHERE last_name = 'Carter');

SELECT *

FROM supervisors

WHERE supervisor_id =

(SELECT supervisor_id

FROM employees

WHERE last_name = 'Carter');

SELECT *

FROM supervisors

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 474/569

WHERE supervisor_id =

(SELECT employee_id

FROM supervisors

WHERE last_name = 'Carter');

SELECT *

FROM employees

WHERE supervisor_id =

(SELECT employee_id

FROM employees

WHERE last_name = 'Carter');

(*)

Incorrect. Refer to Section 6

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 475/569

 

Section 6 Lesson 4

(Answer all questions in this section)

76.

Evaluate this SELECT statement that includes a subquery:

SELECT last_name, first_name

FROM customer

WHERE area_code IN

(SELECT area_code FROM sales WHERE salesperson_id = 20);

Which statement is true about the given subquery? Mark for Review

(1) Points

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 476/569

 

The outer query executes before the nested subquery.

The results of the inner query are returned to the outer query. (*)

An error occurs if the either the inner or outer queries do not return a value.

Both the inner and outer queries must return a value, or an error occurs.

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 477/569

 

Correct

77.

Which statement about single-row and multiple-row subqueries is true? Mark for Review

(1) Points

Multiple-row subqueries cannot be used with the LIKE operator. (*)

Single-row operators can be used with both single-row and multiple-row subqueries.

Multiple-row subqueries can be used with both single-row and multiple-row operators.

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 478/569

 

Multiple-row subqueries can only be used in SELECT statements.

Incorrect. Refer to Section 6

78.

Evaluate this SELECT statement:

SELECT customer_id, name

FROM customer

WHERE customer_id IN

(SELECT customer_id

FROM customer

WHERE state_id = 'GA' AND credit_limit > 500.00);

What would happen if the inner query returned null? Mark for Review

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 479/569

(1) Points

An error would be returned.

No rows would be returned by the outer query. (*)

All the rows in the table would be selected.

Only the rows with CUSTOMER_ID values equal to null would be selected.

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 480/569

 

Incorrect. Refer to Section 6

79.

Which of the following statements contains a comparison operator that is used to restrict rows based

on a list of values returned from an inner query? Mark for Review

(1) Points

SELECT description

FROM d_types

WHERE code IN (SELECT type_code FROM d_songs);

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 481/569

 

SELECT description

FROM d_types

WHERE code = ANY (SELECT type_code FROM d_songs);

SELECT description

FROM d_types

WHERE code <> ALL (SELECT type_code FROM d_songs);

All of the above. (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 482/569

 

Incorrect. Refer to Section 6

80.

Which of the following is a valid reason why the query below will not execute successfully?

SELECT employee_id, last_name, salary

FROM employees

WHERE department_id =

(SELECT department_id FROM employees WHERE last_name like '%u%') Mark for Review

(1) Points

First subquery not enclosed in parenthesis

Single rather than multiple value operator used. (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 483/569

 

Second subquery found on the right instead of the left side of the operator.

The greater than operator is not valid.

Incorrect. Refer to Section 6

Section 6 Lesson 4

(Answer all questions in this section)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 484/569

 

81.

Evaluate this SQL statement:

SELECT employee_id, last_name, salary

FROM employees

WHERE department_id IN

(SELECT department_id

FROM employees

WHERE salary > 30000 AND salary < 50000);

Which values will be displayed? Mark for Review

(1) Points

Only employees who earn more than $30,000.

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 485/569

 

Only employees who earn less than $50,000.

All employees who work in a department with employees who earn more than $30,000 and more

than $50,000.

All employees who work in a department with employees who earn more than $30,000, but less than

$50,000. (*)

Correct

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 486/569

82.

Which operator or keyword cannot be used with a multiple-row subquery? Mark for Review

(1) Points

ALL

ANY

= (*)

>

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 487/569

 

Correct

83.

You need to create a SELECT statement that contains a multiple-row subquery, which comparison

operator(s) can you use? Mark for Review

(1) Points

IN, ANY, and ALL (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 488/569

 

LIKE

BETWEEN...AND...

=, <, and >

Correct

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 489/569

 

84.

Which best describes a multiple-row subquery? Mark for Review

(1) Points

A query that returns only one row from the inner SELECT statement

A query that returns one or more rows from the inner SELECT statement (*)

A query that returns only one column value from the inner SELECT statement

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 490/569

A query that returns one or more column values from the inner SELECT statement

Correct

85.

A multiple-row operator expects how many values? Mark for Review

(1) Points

One or more (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 491/569

 

Only one

Two or more

None

Correct

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 492/569

 

86.

You need to display all the products that cost more than the maximum cost of every product

produced in Japan. Which multiple-row comparison operator could you use? Mark for Review

(1) Points

>ANY (*)

NOT=ALL

IN

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 493/569

 

>IN

Correct

Section 7 Lesson 1

(Answer all questions in this section)

87.

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 494/569

Assume all the column names are correct. The following SQL statement will execute which of the

following?

INSERT INTO departments (department_id, department_name, manager_id, location_id)

VALUES (70, 'Public Relations', 100, 1700); Mark for Review

(1) Points

100 will be inserted into the department_id column

1700 will be inserted into the manager_id column

70 will be inserted into the department_id column (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 495/569

'Public Relations' will be inserted into the manager_name column

Correct

88.

You need to copy rows from the EMPLOYEE table to the EMPLOYEE_HIST table. What could you usein the INSERT statement to accomplish this task? Mark for Review

(1) Points

an ON clause

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 496/569

 

a SET clause

a subquery (*)

a function

Incorrect. Refer to Section 7

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 497/569

 

89.

The STUDENTS table contains these columns:

STU_ID NUMBER(9) NOT NULL

LAST_NAME VARCHAR2 (30) NOT NULL

FIRST_NAME VARCHAR2 (25) NOT NULL

DOB DATE

STU_TYPE_ID VARCHAR2(1) NOT NULL

ENROLL_DATE DATE

You create another table, named FT_STUDENTS, with an identical structure.You want to insert all full-

time students, who have a STU_TYPE_ID value of "F", into the new table. You execute this INSERT

statement:

INSERT INTO ft_students

(SELECT stu_id, last_name, first_name, dob, stu_type_id, enroll_date

FROM students

WHERE UPPER(stu_type_id) = 'F');

What is the result of executing this INSERT statement? Mark for Review

(1) Points

All full-time students are inserted into the FT_STUDENTS table. (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 498/569

 

An error occurs because the FT_STUDENTS table already exists.

An error occurs because you CANNOT use a subquery in an INSERT statement.

An error occurs because the INSERT statement does NOT contain a VALUES clause.

Correct

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 499/569

 

90.

You need to add a row to an existing table. Which DML statement should you use? Mark for

Review

(1) Points

UPDATE

INSERT (*)

DELETE

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 500/569

 

CREATE

Correct

Section 7 Lesson 2

(Answer all questions in this section)

91.

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 501/569

You need to remove a row from the EMPLOYEE table. Which statement would you use? Mark

for Review

(1) Points

UPDATE with a WHERE clause

INSERT with a WHERE clause

DELETE with a WHERE clause (*)

MERGE with a WHERE clause

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 502/569

 

Incorrect. Refer to Section 7

92.

You want to enter a new record into the CUSTOMERS table. Which two commands can be used to

create new rows? Mark for Review

(1) Points

INSERT, CREATE

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 503/569

 

MERGE, CREATE

INSERT, MERGE (*)

INSERT, UPDATE

Correct

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 504/569

93.

The TEACHERS and CLASS_ASSIGNMENTS tables contain these columns:

TEACHERS

TEACHER_ID NUMBER(5)

NAME VARCHAR2(25)

SUBJECT_ID NUMBER(5)

HIRE_DATE DATE

SALARY NUMBER(9,2)

CLASS_ASSIGNMENTS

CLASS_ID NUMBER(5)

TEACHER_ID NUMBER(5)

START_DATE DATE

MAX_CAPACITY NUMBER(3)

Which scenario would require a subquery to return the desired results? Mark for Review

(1) Points

You need to display the start date for each class taught by a given teacher.

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 505/569

 

You need to create a report to display the teachers who were hired more than five years ago.

You need to display the names of the teachers who teach classes that start within the next week.

You need to create a report to display the teachers who teach more classes than the average number

of classes taught by each teacher. (*)

Correct

94.

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 506/569

When the WHERE clause is missing in a DELETE statement, what is the result? Mark for Review

(1) Points

All rows are deleted from the table. (*)

The table is removed from the database.

An error message is displayed indicating incorrect syntax.

Nothing. The statement will not execute.

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 507/569

 

Correct

95.

The PLAYERS table contains these columns:

PLAYER_ID NUMBER NOT NULL

PLAYER_LNAME VARCHAR2(20) NOT NULL

PLAYER_FNAME VARCHAR2(10) NOT NULL

TEAM_ID NUMBER

SALARY NUMBER(9,2)

You need to increase the salary of each player for all players on the Tiger team by 12.5 percent. The

TEAM_ID value for the Tiger team is 5960. Which statement should you use? Mark for Review

(1) Points

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 508/569

 

UPDATE players (salary) SET salary = salary * 1.125;

UPDATE players SET salary = salary * .125 WHERE team_id = 5960;

UPDATE players SET salary = salary * 1.125 WHERE team_id = 5960; (*)

UPDATE players (salary) VALUES(salary * 1.125) WHERE team_id = 5960;

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 509/569

 

Correct

96.

What keyword in an UPDATE statement speficies the columns you want to change? Mark for

Review

(1) Points

SELECT

WHERE

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 510/569

SET (*)

HAVING

Correct

97.

One of your employees was recently married. Her employee ID is still 189, however, her last name is

now Rockefeller. Which SQL statement will allow you to reflect this change? Mark for Review

(1) Points

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 511/569

 

INSERT INTO my_employees SET last_name = 'Rockefeller' WHERE employee_ID = 189;

INSERT my_employees SET last_name = 'Rockefeller' WHERE employee_ID = 189;

UPDATE INTO my_employees SET last_name = 'Rockefeller' WHERE employee_ID = 189;

UPDATE my_employees SET last_name = 'Rockefeller' WHERE employee_ID = 189; (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 512/569

 

Correct

98.

You need to delete a record in the EMPLOYEES table for Tim Jones, whose unique employee

identification number is 348. The EMPLOYEES table contains these columns:

ID_NUM NUMBER(5) PRIMARY KEY

LNAME VARCHAR2(20)

FNAME VARCHAR2(20)

ADDRESS VARCHAR2(30)

PHONE NUMBER(10)

Which DELETE statement will delete the appropriate record without deleting any additional records?

Mark for Review

(1) Points

DELETE FROM employees WHERE id_num = 348; (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 513/569

 

DELETE FROM employees WHERE lname = jones;

DELETE * FROM employees WHERE id_num = 348;

DELETE 'jones' FROM employees;

Correct

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 514/569

 

99.

Examine the structures of the PLAYERS, MANAGERS, and TEAMS tables:

PLAYERS

PLAYER_ID NUMBER Primary Key

LAST_NAME VARCHAR2 (30)

FIRST_NAME VARCHAR2 (25)

TEAM_ID NUMBER

MGR_ID NUMBER

SIGNING_BONUS NUMBER(9,2)

SALARY NUMBER(9,2)

MANAGERS

MANAGER_ID NUMBER Primary Key

LAST_NAME VARCHAR2 (20)

FIRST_NAME VARCHAR2 (20)

TEAM_ID NUMBER

TEAMS

TEAM_ID NUMBER Primary Key

TEAM_NAME VARCHAR2 (20)

OWNER_LAST_NAME VARCHAR2 (20)

OWNER_FIRST_NAME VARCHAR2 (20)

Which situation would require a subquery to return the desired result? Mark for Review

(1) Points

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 515/569

 

To display the names each player on the Lions team

To display the maximum and minimum player salary for each team

To display the names of the managers for all the teams owned by a given owner (*)

To display each player, their manager, and their team name for all teams with a id value greater than

5000

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 516/569

 

Incorrect. Refer to Section 7

100.

You need to update the expiration date of products manufactured before June 30th . In which clause

of the UPDATE statement will you specify this condition? Mark for Review

(1) Points

the ON clause

the WHERE clause (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 517/569

 

the SET clause

the USING clause

Incorrect. Refer to Section 7

Review your answers, feedback, and question scores below. An asterisk (*) indicates a correct

answer.

Semester 1 Mid Term Exam covers Sections 1-10 of Database Design.

Section 1

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 518/569

1. Software cannot operate without Hardware. True or False? Mark for Review

(1) Points

True (*)

False

Correct

2. The market for IT professionals is still increasing and will continue to do so in the future, as the

world gets ever more dependent on computer systems. True or False? Mark for Review

(1) Points

True (*)

False

Correct

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

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 519/569

 

Information (*)

Both

Neither

Incorrect. Refer to Section 1 Lesson 2.

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

Section 2

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

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 520/569

(1) Points

Experience

Instance

Table (*)

None of the above

Correct

6. Which of the following statements about relationships are true? (Choose Two) Mark for 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.

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 521/569

 

Correct

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

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

(1) Points

Column

Row

Instance

Foreign Key (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 522/569

Correct

9. All of the following would be instances of the entity ANIMAL SPECIES except which? Mark for

Review

(1) Points

Dog

Bird

Elephant

Leaf (*)

Correct

10. Documenting Business Requirements helps developers control the scope of the systems, so

users do not suddenly want the new system to contain twice as much functionality. True or False?

Mark for Review

(1) Points

True (*)

False

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 523/569

Correct

Page 1 of 5

Semester 1 Mid Term Exam covers Sections 1-10 of Database Design.

Section 2

11. Entity and Attribute names are usually Nouns. True or False? Mark for Review

(1) Points

True (*)

False

Correct

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 524/569

 

Section 3

12. Relationships represents something of significance to the business. True or False? Mark for

Review

(1) Points

True (*)

False

Incorrect. Refer to Section 3 Lesson 1.

13. Relationship Degree/Cardinality is important. True or False? Mark for Review

(1) Points

True (*)

False

Correct

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

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 525/569

(1) Points

True

False (*)

Correct

15. Matrix Diagrams are developed BEFORE the ERD. True or False? Mark for Review

(1) Points

True

False (*)

Correct

16. Matrix Diagrams are mandatory when doing data modelling. True or False? Mark for Review

(1) Points

True

False (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 526/569

 

Correct

Section 4

17. Why is it important to identify and document structural rules? Mark for Review

(1) Points

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.

Correct

18. Which of the following are suitable Entity names? (Choose Two) Mark for Review

(1) Points

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 527/569

(Choose all correct answers)

DOGS

ANIMAL (*)

ANIMALS

DOG (*)

Correct

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

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 528/569

 

Correct

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

Page 2 of 5

Test: Mid Term Exam Semester 1

Review your answers, feedback, and question scores below. An asterisk (*) indicates a correct

answer.

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 529/569

Semester 1 Mid Term Exam covers Sections 1-10 of Database Design.

Section 4

21. A Supertype can have only one subtype. True or False? Mark for Review

(1) Points

True

False (*)

Incorrect. Refer to Section 4 Lesson 1.

22. All instances of a subtype may be an instance of the supertype but does not have to. True orFalse? Mark for Review

(1) Points

True

False (*)

Correct

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 530/569

 

Section 5

23. A Diamond on a relationship indicates the Relationship as Non-Tranferrable. True or False?

Mark for Review

(1) Points

True (*)

False

Correct

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

(1) Points

True (*)

False

Correct

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 531/569

25. A relationship from an entity back to itself is called a ___________ relationship. Mark for

Review

(1) Points

Mandatory

Recursive (*)

Many to Many Optional

Transferrable

Correct

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

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 532/569

 

Correct

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

documented as M-M. True or False? Mark for Review

(1) Points

True

False (*)

Correct

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

Incorrect. Refer to Section 5 Lesson 3.

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 533/569

29. What do you call the entity created when you resolve a M:M relationship? Mark for Review

(1) Points

Intersection entity (*)

Inclusion entity

Recursive entity

M:M entity

Correct

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

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 534/569

Page 3 of 5

Test: Mid Term Exam Semester 1

Review your answers, feedback, and question scores below. An asterisk (*) indicates a correct

answer.

Semester 1 Mid Term Exam covers Sections 1-10 of Database Design.

Section 6

31. All entities must be given a new artificial UID. True or False? Mark for Review

(1) Points

True

False (*)

Correct

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 535/569

 

32. A unique identifier must be made up of more than one attribute. True or False? Mark for

Review

(1) Points

True

False (*)

Correct

33. Any Non-UID must be dependant on the entire UID. True or False? Mark for Review

(1) Points

True (*)

False

Correct

34. The Rule of 3rd Normal Form states that No Non-UID attribute can be dependant on another

non-UID attribute. True or False? Mark for Review

(1) Points

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 536/569

 

True (*)

False

Correct

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

Section 7

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 537/569

 

36. Modeling historical data can produce a unique identifier that always excludes dates. True or

False? Mark for Review

(1) Points

True

False (*)

Correct

37. A recursive relationship must Mandatory at both ends. True or False? Mark for Review

(1) Points

True

False (*)

Correct

38. All relationships participating in an arc must be mandatory. True or False? Mark for Review

(1) Points

True

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 538/569

 

False (*)

Correct

39. An arc can also be modeled as Supertype and Subtypes. 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

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 539/569

 

Page 4 of 5

Test: Mid Term Exam Semester 1

Review your answers, feedback, and question scores below. An asterisk (*) indicates a correct

answer.

Semester 1 Mid Term Exam covers Sections 1-10 of Database Design.

Section 7

41. Arcs are Mandatory in Data modeling. All ERD's must have at least one Arc. True or False? Mark

for Review

(1) Points

True

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 540/569

False (*)

Correct

42. 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 9

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

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 541/569

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

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

models. True or False? Mark for Review

(1) Points

True

False (*)

Correct

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 542/569

 

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

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

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 543/569

 

Section 10

47. All datamodels must be transformed from specific to generic. True or False? Mark for Review

(1) Points

True

False (*)

Correct

48. A datamodel containing generic modeling techniques must not be mixed in with non-generic

models. The generic entities MUST be drawn on a diagram of their own. True or False? Mark for

Review

(1) Points

True

False (*)

Correct

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 544/569

 

49. There are formal rules for how to draw ERD's, even though they are only guidelines, you should

always try to follow them. True or False? Mark for Review

(1) Points

True (*)

False

Correct

50. 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? Mark for Review

(1) Points

True

False (*)

Correct

Page 5 of 5

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 545/569

 

1. The market for IT professionals is still increasing and will continue to do so in the future, as the

world gets ever more dependent on computer systems. True or False? Mark for Review

(1) Points

True (*)

False

Correct

2. Databases perform these functions.... Mark for Review

(1) Points

Running multiple applications on multiple client-servers

Providing integrated software on fast processing servers

Providing software running on a variety of platforms and configurations allowing companies a

structured way to access and manage their data (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 546/569

They run purely as client-based software on personal computers

Incorrect. Refer to Section 1 Lesson 4.

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

Incorrect. Refer to Section 1 Lesson 2.

4. Entities are transformed into Tables during the Database Design process. True or False? Mark for

Review

(1) Points

True (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 547/569

False

Correct

Section 2

5. The Physical Model is derived from the Conceptual Model. True or False? Mark for Review

(1) Points

True (*)

False

Correct

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

(1) Points

True

False (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 548/569

 

Incorrect. Refer to Section 2 Lesson 3.

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

8. Relationship names are usually verbs. True or False? Mark for Review

(1) Points

True (*)

False

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 549/569

 

Incorrect. Refer to Section 2 Lesson 2.

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

(1) Points

Experience

Instance

Table (*)

None of the above

Incorrect. Refer to Section 2 Lesson 2.

10. Which of the following are examples of ENTITY: Instance. (Choose Two) Mark for Review

(1) Points

(Choose all correct answers)

TRANSPORTATION METHOD: Car (*)

ANIMAL: Dog (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 550/569

 

MEAT PRODUCT: Lettuce

BODY PART: Larry Ellison

Incorrect. Refer to Section 2 Lesson 2.

Section 2

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

12. The single end of a Relationship is called: Mark for Review

(1) Points

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 551/569

 

Single Toe (*)

Big Toe

Single Foot

Crows Foot

Correct

13. Matrix Diagrams are mandatory when doing data modelling. True or False? Mark for Review

(1) Points

True

False (*)

Correct

14. A Matrix Diagram should be developed by your users. True or False? Mark for Review

(1) Points

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 552/569

True

False (*)

Incorrect. Refer to Section 3 Lesson 4.

15. Relationships represents something of significance to the business. True or False? Mark for

Review

(1) Points

True (*)

False

Correct

16. Relationship Names are optional. True or False? Mark for Review

(1) Points

True

False (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 553/569

Correct

Section 4

17. A new system would have a mixture of both Procedural and Structural Business Rules as part of 

the documentation of that new system. 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.

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 554/569

Subtype entities may not have relationships to the other subtype entities, only the supertype itself.

Incorrect. Refer to Section 4 Lesson 1.

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

20. When creating entities you must follow these rules: (Choose Two) Mark for Review

(1) Points

(Choose all correct answers)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 555/569

 

Name them in Plural

Name them in Singular (*)

Exclude Attributes

Include Attributes (*)

Correct

Section 4

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. All instances of the supertype must be an instance of one of the subtypes. True or False? Mark

for Review

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 556/569

(1) Points

True (*)

False

Correct

Section 5

23. A Diamond on a relationship indicates the Relationship as Non-Tranferrable. True or False?

Mark for Review

(1) Points

True (*)

False

Correct

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

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 557/569

(1) Points

True

False (*)

Correct

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

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

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 558/569

False

Correct

27. A relationship from an entity back to itself is called a ___________ relationship. Mark for

Review

(1) Points

Mandatory

Recursive (*)

Many to Many Optional

Transferrable

Correct

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

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 559/569

 

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

You cannot model that.

Correct

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

documented as M-M. True or False? Mark for Review

(1) Points

True

False (*)

Correct

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

(1) Points

True (*)

False

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 560/569

 

Correct

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

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? Mark for

Review

(1) Points

True

False (*)

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 561/569

Correct

33. All entities must be given a new artificial UID. True or False? Mark for Review

(1) Points

True

False (*)

Correct

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

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 562/569

Correct

35. 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 someone's age every time we need it

Sometimes

No - it breaks the Normalization rules (*)

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

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 563/569

False (*)

Correct

37. Arcs are Mandatory in Data modeling. All ERD's must have at least one Arc. True or False? Mark

for Review

(1) Points

True

False (*)

Correct

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

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 564/569

 

Correct

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

Mark for Review

(1) Points

Sameness

Differences

Exclusivity (*)

Inheritance

Correct

40. Which of the following is NOT a relationship type? Mark for Review

(1) Points

Some to None (*)

One to One

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 565/569

One to Many

Many to Many

Correct

41. No parts of an UID are mandatory. True or False? Mark for Review

(1) Points

True

False (*)

Correct

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

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 566/569

ISBN Number for Book (*)

Date of birth for Baby

Correct

Section 9

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

44. 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? Mark for Review

(1) Points

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 567/569

True

False (*)

Incorrect. Refer to Section 9 Lesson 1.

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

models. True or False? Mark for Review

(1) Points

True

False (*)

Correct

46. Which of the following is a logical constraint that could result from considering how time

impacts an example of data storage? Mark for Review

(1) Points

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.

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 568/569

End Date must be before the Start Date.

Dates must be stored with Time.

Correct

Section 10

47. All datamodels must be transformed from specific to generic. True or False? Mark for Review

(1) Points

True

False (*)

Incorrect. Refer to Section 10 Lesson 2.

48. A datamodel containing generic modeling techniques must not be mixed in with non-generic

models. The generic entities MUST be drawn on a diagram of their own. True or False? Mark for

Review

(1) Points

8/7/2019 poze 2

http://slidepdf.com/reader/full/poze-2 569/569

True

False (*)

top related