marți, 24 noiembrie 2009

Quiz: Introduction to Functions

1. The following statement represents a multi-row function. True or False?
SELECT MAX(salary)
FROM employees

True (*)
False

2. The conversion function TO_CHAR is a single row function. True or False?
True (*)
False

3. Will the following statement return one row?
SELECT MAX(salary), MIN(Salary), AVG(SALARY)
FROM employees;
No, it is illegal. You cannot use more than one multi-row function in a SELECT statement
Yes, it will return the highest salary, the lowest salary and the average salary from all employees (*)
Yes, it will return the highest salary from each employee
Yes, it will return the average salary from the employees table.

4. The following statement represents a multi-row function. True or False?
SELECT UPPER(last_name)
FROM employees;
True
False (*)

5. The function COUNT is a single row function. True or False?
True
False (*)

Quiz: Comparison Operators

1. Which of the following are examples of comparison operators used in the WHERE clause?
=, >, <, <=, >=, <>
between ___ and ___
in (..,..,.. )
like
is null
All of the above (*)

2. When using the “LIKE” operator, the % and _ symbols can be used to do a pattern-matching, wild card search. True or False?
True (*)
False

3. Which of the following WHERE clauses would not select the number 10?
WHERE hours BETWEEN 10 AND 20
WHERE hours <= 10
WHERE hours <>10 (*)
WHERE hours IN (8,9,10)

4. Which statement would select salaries that are greater than or equal to 2500 and less than or equal to 3500? Choose two correct answers.
WHERE salary >= 2500 AND salary <= 3500 (*)
WHERE salary <=2500 AND salary >= 3500
WHERE salary BETWEEN 2500 AND 3500 (*)
WHERE salary BETWEEN 3500 AND 2500

Quiz: Logical Comparisons and Precedence Rules

1. Which of the following are examples of logical operators that might be used in a WHERE clause. (Choose Two)
AND, OR (*)
> <, =, <=, >=, <>
NOT IN (*)
LIKES
None of the above

2. What will be the results of the following selection?
SELECT *
FROM employees
WHERE last_name NOT LIKE ‘A%’ AND last_name NOT LIKE ‘B%’

All last names that begin with A or B
All last names that do not begin with A or B (*)
No rows will be returned. There is a syntax error
All rows will be returned

3. Which of the following would be returned by this SQL statement:
SELECT First_name, last_name, department_id
FROM employees
WHERE department_id IN(50,80)
AND first_name LIKE ‘C%’
OR last_name LIKE ‘%s%’

FIRST_NAME LAST_NAME DEPARTMENT_ID
Shelly Higgins 110

FIRST_NAME LAST_NAME DEPARTMENT_ID
Curtis Davies 50

FIRST_NAME LAST_NAME DEPARTMENT_ID
Randall Matos 50

FIRST_NAME LAST_NAME DEPARTMENT_ID
Michael Hartstein 20

All of the above (*)

4. Which of the following is earliest in the rules of precedence?
Concatenation operator
Logical condition
Comparison condition
Arithmetic operator (*)

5. Find the clause that will give the same results as:
SELECT *
FROM d_cds
WHERE cd_number NOT IN(90, 91, 92);
WHERE cd_id <=90 and cd_id >=92;
WHERE cd_id NOT LIKE (90, 91, 92);
WHERE cd_id != 90 and cd_id != 91 and cd_id != 92; (*)
WHERE cd_id != 90 or cd_id != 91 or cd_id!= 92;

6. Which logical operators in the WHERE clause means “Not Equal To”? (Choose Two)
NOT IN (…) (*)
=+
<> (*)
><

7. Which of the following statements best describes the rules of precedence when using SQL?
The order in which the columns are displayed
The order in which the expressions are sorted
The order in which the operators are returned
The order in which the expressions are evaluated and calculated (*)
All of the above

Quiz: Sorting Rows

1. What columns can be added to the following SELECT statement in its ORDER BY clause? (Choose Three)
SELECT first_name, last_name, salary, hire_date
FROM employees
WHERE department_id = 50
ORDER BY ?????;

last_name, first_name. (*)
All columns in the EMPLOYEES table. (*)
The table name, EMPLOYEES, which would then automatically sort by all columns in the table.
Any column in the EMPLOYEES table, any expression in the SELECT list or any ALIAS in the SELECT list. (*)
All the columns in the database.

2. Which of the following is true of the ORDER BY clause: (Choose Two)
Must be the last clause of the SQL statement (*)
Displays the fetched rows in no particular order
Defaults to a descending order (DESC)
Defaults to an ascending order (ASC) (*)

3. What clause must you place in a SQL statement to have your results sorted from highest to lowest salary?
ORDER BY salary ASC
ORDER BY salary DESC (*)
ORDER salary BY DESC
None, the database always sorts from highest to lowest on the salary column.

4. A column alias can be specified in an ORDER BY Clause. True or False?
True (*)
False

Quiz: Limit Rows Selected

1. Which example would limit the number of rows returned?
SELECT title FROM d_songs WHEN type_code = 88;
SELECT title FROM d_songs WHERE type_code = = 88;
SELECT title FROM d_songs WHERE type_code = 88; (*)
SELECT title FROM d_songs WHEN type_code = = 88;

2. Which of the following would be returned by this SELECT statement:
SELECT last_name, salary
FROM employees
WHERE salary <>

LAST_NAME SALARY
King 5000

LAST_NAME SALARY
Rajas 3500

LAST_NAME SALARY
Davies 3100
(*)

All of the above

3. To restrict the rows returned from an SQL Query, you should use the _____ clause:
SELECT
WHERE (*)
GROUP BY
CONDITION
All of the above

4. Which of the following statements will work?
SELECT first_name ||’ ‘||last_name NAME, department_id DEPARTMENT, salary*12 “ANNUAL SALARY”
FROM employees
WHERE name = ‘King’;

SELECT first_name ||’ ‘||last_name NAME, department_id DEPARTMENT, salary*12 “ANNUAL SALARY”
FROM employees
WHERE last_name = ‘King’;
(*)
SELECT first_name ||’ ‘||last_name NAME, department_id DEPARTMENT, salary*12 ‘ANNUAL SALARY’
FROM employees
WHERE last_name = ‘King’;

SELECT first_name ||’ ‘||last_name NAME, department_id DEPARTMENT, salary*12 ‘ANNUAL SALARY’
FROM employees
WHERE name = ‘King’;

5. Which query would give the following result?
LAST_NAME FIRST_NAME DEPARTMENT_ID
King Steven 90

SELECT last_name, first_name, department_id
FROM employees C
WHERE last_name = ‘KING’;

SELECT last_name, first_name, department_id
FROM employees
WHERE last_name = ‘King’;
(*)
SELECT last_name, first_name, department_id
FROM employees
WHERE last_name LIKE ‘k%’;

SELECT last_name, first_name, department_id
FROM employees
WHERE last_name LIKE ‘KING’;

6. Which of the following are true? (Choose Two)
Character strings are enclosed in double quotation marks
Date values are enclosed in single quotation marks (*)
Character values are not case-sensitive
Date values are format-sensitive (*)

7. How can you write not equal to in the WHERE-clause
!=
^=
<>
All of the above (*)

Quiz: Working with Columns, Characters, and Rows

1. The following is a valid SQL SELECT statement. True or False?
SELECT first_name || ‘ ‘ || last_name alias AS Employee_Name
FROM employees:
True
False (*)

2. In order to eliminate duplicate rows use the ________ keyword
FIRST_ONLY
DISTINCT (*)
SINGLES_ONLY
EXCLUSIVE

3. The structure of the table can be displayed with the _________ command:
Desc
Describe
Dis
A and B (*)

4. Which of the following is NOT BEING DONE in this SQL statement?
SELECT first_name || ‘ ‘ || last_name “Name”
FROM employees;
Concatenating first name, middle name and last name (*)
Putting a space between first name and last name
Selecting columns from the employees table
Using a column alias

5. The concatenation operator …
Brings together columns or character strings into other columns
Creates a resultant column that is a character expression
Is represented by two vertical bars ( || )
All of the above (*)

Quiz: Relational Database Technology

1. The following statements are true regarding tables in a RDBMS: (Choose Two)
A table is a logical object only. They cannot be created in a RDBMS.
A table holds all the data necessary about something in the real world, such as employees, invoices or customers. (*)
Tables contain fields, which can be found at the intersection of a row and a column. (*)
It is not possible to relate multiple tables within an RDBMS.

2. RDBMS stands for
Relational database manipulation system.
Relational database management system. (*)
Relational database mutilation system.
Relational database management style.

3. Once data has been created in a RDBMS, the ony way of getting it out again is by writing a Java or C program. No other languages can be used to access that data. True or False?
True
False (*)

4. The following table creation statement is valid. True or False?
CREATE TABLE country (
ID NUMBER(6) NOT NULL,
NAME VARCHAR2(30) NOT NULL,
LOC VARCHAR2(40),
REG_ID NUMBER,
NAME VARCHAR2(25))
True
False (*)

Quiz: Anatomy of a SQL Statement

1. The SQL SELECT statement is capable of:

Selection and protection
Selection and projection (*)
Projection and updating
None of the above

2. If you want to see just a subset of the columns in a table, you use what symbol?
&
%
*
None of the above, instead of using a symbol you name the columns you want to see the data for. (*)

3. The order of operator precedence is
/ + – *
* – + /
* / + – (*)
None of the above

4. If you want to see all columns of data in a table, you use what symbol?
&
%
$
* (*)

5. SELECT * FROM departments; is a:
Keyword
Statement (*)
Declaration
Strategy

6. What is a NULL value?
A perfect zero
A known value less than zero
A blank space
An unknown value (*)

Quiz: System Development Life Cycle

1. In which phases of the System Development Life Cycle will we need to use SQL as a language? (Choose Two)
Analysis
Transition (*)
Strategy
Build and Document (*)

2. The data model can be used to…
Communicate and group
Describe and specify
Analyze and copy
All of the Above (*)

3. During which phases of the System Development Life Cycle would you roll out the system to the users?
Build and Transition
Strategy and Analysis
Design and Production
Transition and Production (*)

Quiz: Basic Table Modifications

1. The SQL statement ALTER TABLE EMPLOYEES DROP COLUMN SALARY will delete all of the rows in the employees table. True or False?
True
False (*)

2. What will the following statement do to the employee table?
ALTER TABLE employees ADD (gender VARCHAR2(1))
Add a new row to the EMPLOYEES table
Rename a column in the EMPLOYEES table
Change the datatype of the GENDER column
Add a new column called GENDER to the EMPLOYEES table (*)

3. The f_customers table contains the following data:
ID Name Address City State Zip
1 Cole Bee 123 Main Street Orlando FL 32838
2 Zoe Twee 1009 Oliver Avenue Boston MA 02116
3 Sandra Lee 22 Main Street Tampa FL 32444
If you run the following statement,
DELETE FROM F_CUSTOMERS
WHERE STATE=’FL’;
how many rows will be left in the table?
0
1 (*)
2
3

Quiz: SQL Introduction: Querying the Database

1. What command can be added to a select statement to return a subset of the data?
WHERE (*)
WHEN
ALL
EVERYONE

2. What command retrieves data from the database?
ALTER
SELECT (*)
DESCRIBE
INSERT

3. What command do you use to add rows to a table
INSERT (*)
ADD
ADD_ROW
NEW_ROW

4. What command can be used to show information about the structure of a table?
ALTER
SELECT
DESCRIBE (*)
INSERT

5. Examine the follolowing SELECT statement.
SELECT *
FROM employees;
This statement will retrieve all the rows in the employees table. True or False?
True (*)
False

Quiz: Subtype Mapping

1. Which of the following are reasons you should consider when using a Subtype Implementation? (Choose Two)
When the common access paths for the subtypes are similar.
When the common access paths for the subtypes are different. (*)
Business functionality and business rules are similar between subtypes.
Most of the relationships are at the subtype level (*)

2. When mapping supertypes, relationships at the supertype level transform as usual. Relationships at subtype level are implemented as foreign keys, but the foreign key columns all become optional. True or False?
True (*)
False

3. When translating an arc relationship to a physical design, you must turn the arc relationships into foreign keys. What additional step must you take with the created foreign keys to ensure the exclusivity principle of arc relationships? (Assume that you are implementing an Exclusive Design) (Choose Two)
Make all relationships mandatory
Make all relationships optional (*)
Create an additional check constraint to verify that one foreign key is populated and the others are not (*)
All the above

4. The “Arc Implementation” is a synonym for what type of implementation?
Supertype Implementation
Subtype Implementation
Cascade Implementation
Supertype and Subtype Implementation (*)

Quiz: Relationship Mapping

1. Two entities A and B have an optional (A) to Mandatory (B) One-to-One relationship. When they are transformed, the Foreign Key(s) is placed on:
The table BS (*)
The Table AS
Nowhere, One-to-One are not transformed
Both tables As and Bs get a new column and a Foreign Key.

2. Relationships on an ERD can only be transformed into UIDs in the physical model? True or False?
True
False (*)

3. What do you create when you transform a many to many relationship from your ER diagram into a physical design?
Foreign key constraints
Intersection entity
Intersection table (*)
Primary key constraints

4. One-to-One relationships are transformed into Foreign Keys in the tables created at either end of that relationship? True or False?
True
False (*)

5. A barrred Relationship will result in a Foreign Key column that also is part of:
The Table Name
The Column Name
The Check Constraint
The Primary Key (*)

6. One-to-Many Optional to Mandatory becomes a _______________ on the Master table.
Mandatory Foreign Key
Nothing (There are no new columns created on the Master table) (*)
Optional Foreign Key
Primary Key

Quiz: Basic Mapping: The Transformation Process

1. In a physical data model, a relationship is represented as a:
Column
Primary Key
Unique Identifier
Foreign Key (*)

2. Why would this table name NOT work in an Oracle database?
2007_EMPLOYEES
Numbers cannot be incorporated into table names
Table names must start with an alphabetic character (*)
Underscores “_” are not allowed in table names
None of the above

3. The transformation from an ER diagram to a physical design involves changing terminology. Relationships in the ER diagram become __________ , and primary unique identifiers become ____________.
Foreign keys, primary keys (*)
Primary keys, foreign keys
Foreign keys, mandatory business rules
Foreign keys, optional business rules

4. The transformation from an ER diagram to a physical design involves changing terminology. Entities in the ER diagram become __________ , and attributes become ____________.
Columns, Tables
Tables, Columns (*)
Foreign Keys, Columns
Tables, Foreign Keys

5. In a physical data model, an entity becomes a _____________.
Attribute
Table (*)
Constraint
Column

6. Attributes become columns in a database table. True or False?
True (*)
False

7. In an Oracle database, why would the following table name not be allowed ‘EMPLOYEE JOBS’?
The database does not understand all capital letters
EMPLOYEE is a reserved word
JOBS is a reserved word
You cannot have spaces between words in a table name (*)

Quiz: Introduction to Relational Database Concepts

1. One or more columns in a primary key can be null. True or False?
True
False (*)

2. Foreign keys cannot be null when:
It is part of a primary key. (*)
It refers to another table.
It contains three or more columns.

3. A foreign key always refers to a primary key in the same table. True or False?
True
False (*)

4. The explanation below defines which constraint type:
A primary key must be unique, and no part of the primary key can be null.
Entity integrity. (*)
Referential integrity.
Column integrity.
User-defined integrity.

5. The explanation below defines which constraint type:
A column must contain only values consistent with the defined data format of the column.
Entity integrity.
Referential integrity.

Column integrity. (*)
User-defined integrity.

6. Column integrity refers to:
Columns always having values.
Columns always containing positive numbers.
Columns always containing values consistent with the defined data format. (*)
Columns always containing text data less than 255 characters.

7. The explanation below is an example of what constraint type:
The value in the dept_no column of the EMPLOYEES table must match a value in the dept_no column in the DEPARTMENTS table.
Entity integrity.
Referential integrity. (*)
Column integrity.
User-defined integrity.

8. Identify all of the correct statements that complete this sentence: A primary key is: (Choose Three)
A single column that uniquely identifies each row in a table. (*)
A set of columns that uniquely identifies each row in a table. (*)
A set of columns and keys in a single table that uniquely identifies each row in a single table. (*)
Only one column that cannot be null.

9. The explanation below is an example of what constraint type:
If the value in the balance column of the ACCOUNTS table is below 100, we must send a letter to the account owner which will require extra programming to enforce.
Entity integrity.
Referential integrity.
Column integrity.
User-defined integrity. (*)

10. A table does not have to have a primary key. True or False?
True (*)
False

Quiz: Generic Modeling

1. Generic models are generally less complex than a specific model. True or False?
True
False (*)

2. All data models MUST have some portions of the model modeled as a generic component. True or False?
True
False (*)

3. When you transform a specific model to be generic, which of the following statements are true? (Choose Two)
You tend to end up with fewer entities in the generic model than you had in the specific model. (*)
Either all or none of the original attributes make it into the generic model. (*)
You will always have more entities in a generic model than in the corresponding specific model.
None of the original specific model attributes are allowed in a generic model.

Test: Quiz: Drawing Conventions for Readability

1. You must make sure all entities of a proposed system can fit onto one diagram. It is not allowed to break up a data model into more than one diagram. True or False?
True
False (*)

2. It is a good idea to group your entities in a diagram according to the expected volumes. By grouping high volume entities together, the diagrams could become easier to read. True or False?
True (*)
False

3. Which of the following statements are true for ERD’s to enhance their readability. (Choose Two)
(Choose all correct answers)
There should be no crossing lines. (*)
All crows feet (Many-ends) of relationships should point the same way. (*)
There should be many crossing lines.
It does not matter which way the crows feet (many ends) point.

4. There are no formal rules for how to draw ERD’s. The most important thing is to make sure all entities, attributes and relationships are documented on diagram. The layout is not significant. True or False?
True
False (*)

Test: Quiz: Modeling Change: Price

Review your answers, feedback, and question scores below. An asterisk (*) indicates a correct answer.

Modeling Change: Price
(Answer all questions in this section)

1. Why would you want to model a time component when designing a system that lets people buy bars of gold? Mark for Review
(1) Points

The price of gold fluctuates and for determining price, you need to know the time of purchase (*)

To allow the sales people to determine where the gold is coming from

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

The Government of your country might want to be notified of this transaction.


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

End Date must be before the Start Date.

ASSIGNMENT periods can overlap causing the database to crash.

An ASSIGNMENT may only refer to a COUNTRY that is valid at the Start Date of the ASSIGNMENT. (*)

Dates can be valued only with Time.


3. What is the function of logging or journaling in conceptual data models? Mark for Review
(1) Points

Allows you to track the history of attribute values, relationships and/or entire entities (*)

Gives a timestamp to all entities

Represents entities as time in the data model

Creates a fixed time for all events in a data model

4. You are doing a data model for a computer sales company, where the price goes down on a regular basis. If you want to allow them to modify the price and keep track of the changes, what is the best way to model this? Mark for Review
(1) Points

A. Create a product entity and a related price entity with start and end dates, and then let the users enter the new price whenever required.

B. Create a new item and a new price every day.

C. Use a price entity with a start and end date

D. Allow them to delete the item and enter a new one.

E. Both A and C (*)

Test: Quiz: Modeling Change: Time

Review your answers, feedback, and question scores below. An asterisk (*) indicates a correct answer.

Modeling Change: Time
(Answer all questions in this section)

1. When you add the concept of time to your data model, you are: Mark for Review
(1) Points

Simplifying your model.

Adding complexity to your model. (*)

Just changing the model, but this does not change the complexity of it.

None of the above.


2. It is desirable to have an entity called DAY with a holiday attribute when you want to track special holidays in a payroll system. True or False? Mark for Review
(1) Points

True (*)

False


3. What is the benefit to the users of a system that includes "time," e.g. Start Date and End Date for Employees? Mark for Review
(1) Points

Increased usability and flexibility of a system; we can the trace e.g. the different managers an employee had over time. (*)

System becomes 100% unstable; allows users to log on and log off at will.

Users are able to create complex programs in support of this component.

Reporting becomes nearly impossible, users enjoy this.


4. How do you know when to use the different types of time in your design? Mark for Review
(1) Points

The rules are fixed and should be followed

It depends on the functional needs of the system (*)

You would first determine the existence of the concept of time and map it against the Greenwich Mean Time

Always model time, you can take it out later if it is not needed

5. Which of the following would be a logical constraint when modeling time for a country entity? Mark for Review
(1) Points

People have births and deaths in their countries that must be tracked by the system.

If you are doing a system for France or Germany, you would need security clearance.

Countries may need an end date in your system, because they can change fundamentally over time, e.g. Yugoslavia. (*)

You need a constant record of countries, because they are still countries, even if leadership changes over time, e.g. France, USA and most other countries.

6. Modeling historical data produces efficient ways for a business to operate such as: Mark for Review
(1) Points

Modeling historical data does not help a business.

Providing valuable information via reports to management . (*)

Keeping track of holiday dates.

Employees can work in two time zones.


7. If you are tracking employment dates for an employee, do you need to have an "End Date" attribute? Mark for Review
(1) Points

Yes, because you always need an end date when you have a start date

No, because an end date is usually redundant

Yes, if the company wants to track employee information, like multiple start and end dates (*)

No, not if the company likes the employee

Test: Quiz: What is a Consultant

Review your answers, feedback, and question scores below. An asterisk (*) indicates a correct answer.

What is a Consultant
(Answer all questions in this section)

1. Only Consultants can develop new data models for a company, they are mandatory, so companies must find them and hire them. True or False? Mark for Review
(1) Points

True

False (*)


2. Which of the following skills are required for Consultants. (Choose Two) Mark for Review
(1) Points

(Choose all correct answers)

Communication skills (*)

Excellent drawing skills

Must be able to speak at least two languages fluently, preferably four or more

Team-working skills (*)

3. How does the dictionary define "consultant"? Mark for Review
(1) Points

A person who knows everything

One responsible for knowing everything

One who gives expert or professional advice (*)

None of the Above

Test: Quiz: Overcoming the Fear Factor

Review your answers, feedback, and question scores below. An asterisk (*) indicates a correct answer.

Overcoming the Fear Factor
(Answer all questions in this section)

1. When you are involved in a group presentation, your group should practice before hand and agree on who presents the various parts. You should all be involved somehow. True or False? Mark for Review
(1) Points

True (*)

False

2. Your apperance at a presentation is not important, you should just show up and give the presentation in whatever clothes makes you comfortable. So feel free to wear Jeans and old T-Shirts etc. Being comfortable is more important than anything else. True or False? Mark for Review
(1) Points

True

False (*)


3. Which of the following is a valid technique for effective public speaking? Mark for Review
(1) Points

Making eye contact

Using familiar words when communicating technical information

Being enthusiastic

All of the Above (*)

Test: Quiz: Hierarchies and Recursive Relationships

Review your answers, feedback, and question scores below. An asterisk (*) indicates a correct answer.

Hierarchies and Recursive Relationships
(Answer all questions in this section)

1. Which of the following would be a good Unique Identifier for its Entity? (Choose Two) Mark for Review
(1) Points

(Choose all correct answers)

Identification Number for Person (*)

Birthdate for Baby Which Includes Hour, Minute, and Seconds (*)

Order date for Order

Vehicle Type Number for Car


2. A relationship can be both recursive and hierachal at the same time. True or False? Mark for Review
(1) Points

True

False (*)


3. A recursive rationship should not be part of a UID. True or False? Mark for Review
(1) Points

True (*)

False

4. In this simple diagram, what comprises the unique identifier for the student class entity?

Mark for Review
(1) Points

student id and class id

student id, class id and course id

course id

student id and course id (*)

Test: Quiz: Modeling Historical Data

Review your answers, feedback, and question scores below. An asterisk (*) indicates a correct answer.

Modeling Historical Data
(Answer all questions in this section)

1. Historical data should always be kept. True or False? Mark for Review
(1) Points

True

False (*)


2. Modeling historical data can produce a unique identifier that includes a date. True or False? Mark for Review
(1) Points

True (*)

False


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

LIBRARY and BOOK (*)

STUDENT and AGE

STUDENT and GRADE (*)

LIBRARY and NUMBER OF STAFF

4. Audit trail attributes cannot be placed in the entities they are auditing, they must be placed in separate, new entities, created just for that purpose. True or False? Mark for Review
(1) Points

True

False (*)

Test: Quiz: Arcs

Review your answers, feedback, and question scores below. An asterisk (*) indicates a correct answer.

Arcs
(Answer all questions in this section)

1. Which of the following can be added to a relationship? Mark for Review
(1) Points

an attribute

an arc can be assigned (*)

a composite attribute

an optional attribute can be created


2. Secondary UID's are Mark for Review
(1) Points

not permitted in data modeling

mandatory in data modeling

useful as an alternative means identifying instances of an entity (*)

always comprised of numbers


3. Which of the following would best be represented by an arc? Mark for Review
(1) Points

STUDENT (senior, junior)

STUDENT (graduating, non-graduating)

STUDENT (will-attend-university, will-not-attend-university)

STUDENT ( University, Trade School) (*)


4. If the entity CD has the attributes: #number, *title, *producer, *year, o store name, o store address, this entity is 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 (*)


5. Which of the following is the definition for Third Normal Form? Mark for Review
(1) Points

All attributes are single valued

An attribute must be dependent upon entity's entire unique identifier

No non-UID attribute can be dependent on another non-UID attribute (*)

All attributes are uniquely doubled and independent


6. To visually represent exclusivity between two or more relationships in an ERD you would most likely use an ________. Mark for Review
(1) Points

Arc (*)

UID

Subtype

Supertype


7. This diagram could also be expressed as a supertype/subtype construction. True or False?

Mark for Review
(1) Points

True

False (*)


8. All parts of a UID are mandatory. True or False? Mark for Review
(1) Points

True (*)

False

Test: Quiz: Third Normal Form

Review your answers, feedback, and question scores below. An asterisk (*) indicates a correct answer.

Third Normal Form
(Answer all questions in this section)

1. As a database designer it is your job to store data in only one place and the best place. True or False? Mark for Review
(1) Points

True (*)

False

2. Examine the following Entity and decide which sets of attributes breaks the 3rd Normal Form rule: (Choose Two)
ENTITY: TRAIN (SYNONYM: ROLLING STOCK)
ATTRIBUTES:
TRAIN ID
MAKE
MODEL
DRIVER NAME
DEPARTURE STATION
NUMBER OF CARRIAGES
NUMBER OF SEATS
DATE OF MANUFACTURE

Mark for Review
(1) Points

(Choose all correct answers)

TRAIN ID, MAKE

DEPARTURE STATION, DRIVER NAME (*)

NUMBER OF CARRIAGES, NUMBER OF SEATS (*)

MODEL, DATE OF MANUFACTURE



3. No databases in the world is ever truly on 3rd Normal Form. Everyone always stops after 2nd Normal Form. True or False? Mark for Review
(1) Points

True

False (*)

Test: Quiz: Second Normal Form

Review your answers, feedback, and question scores below. An asterisk (*) indicates a correct answer.

Second Normal Form
(Answer all questions in this section)

1. What is the rule of Second Normal Form? Mark for Review
(1) Points

All non-UID attributes must be dependent upon the entire UID (*)

Some non-UID attributes can be dependent on the entire UID

No non-UID attributes can be dependent on any part of the UID

None of the Above


2. Examine the following entity and decide which attribute breaks the 2nd Normal Form rule:
ENTITY: CLASS
ATTRIBUTES:
CLASS ID
DURATION
SUBJECT
TEACHER NAME AND ADDRESS

Mark for Review
(1) Points

CLASS ID

DURATION

SUBJECT

TEACHER NAME AND ADDRESS (*)


3. All instances of the subtypes must be an instance of the supertype. Mark for Review
(1) Points

True (*)

False


4. Not all instances of the supertype are instances of one of the subtypes. Mark for Review
(1) Points

True

False (*)

5. A supertype should have at least two subtypes. Mark for Review
(1) Points

True (*)

False


6. An entity can be on 2nd Normal Form even if it has repeated values. True or False? Mark for Review
(1) Points

True

False (*)

Test: Quiz: Normalization and First Normal Form

Review your answers, feedback, and question scores below. An asterisk (*) indicates a correct answer.

Normalization and First Normal Form
(Answer all questions in this section)

1. When data is stored in more than one place in a database, the database violates the rules of ___________. Mark for Review
(1) Points

Normalization (*)

Replication

Normalcy

Decency


2. When all attributes are single-valued, the database model is said to conform to: Mark for Review
(1) Points

1st Normal Form (*)

2nd Normal Form

3rd Normal Form

4th Normal Form

3. An entity can have repeated values and still be in 1st Normal Form. True or False? Mark for Review
(1) Points

True

False (*)


4. The following entity is on 1st normal form: True or False?
ENTITY: VEHICLE
ATTRIBUTES:
REGISTRATION
MAKE
MODEL
COLOR
DRIVER
PASSENGER 1
PASSENGER 2
PASSENGER 3

Mark for Review
(1) Points

True

False (*)

Test: Quiz: Artificial, Composite and Secondary UIDs

Section 1
1. A unique identifier can only be made up of one attribute. True or False? Mark for Review
(1) Points
True

False (*)



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



3. A UID can be made up from the following: (Choose Two) Mark for Review
(1) Points
(Choose all correct answers)
Attributes (*)

Entities

Relationships (*)

Synonyms



4. An entity can only have one UID. True or False? Mark for Review
(1) Points
True

False (*)


duminică, 15 noiembrie 2009

Test: Quiz: Resolving Many to Many Relationships

Section 1

1. If an intersection entity is formed that contains no attributes of its own, its uniqueness may be modeled by Mark for Review
(1) Points

Creating new attributes.

Barring the relationships to the original entities. (*)

Placing the UID attributes from the original entities into the intersection entity.

None of the above.





2. When you resolve a M-M by creating an intersection entity, this new entity will always inherit: Mark for Review
(1) Points

The attributes of both related entities.

A relationship to each entity from the original M-M. (*)

The UID's from the entities in the original M-M.

Nothing is inherited from the original entities and relationship.





3. Many-to-Many relationships are perfectly acceptable in a finished ERD. There is no need to do any more work on them. True or False? Mark for Review
(1) Points

True

False (*)

Test: Quiz: Relationship Types

Section 1

1. What uncommon relationship is described by the statements: "Each LINE must consist of many POINTS and each POINT must be a part of many LINES" Mark for Review
(1) Points

One to Many Optional

One to Many Mandatory

Many to Many Optional

Many to Many Mandatory (*)





2. If the same relationship is represented twice in an Entity Relationship Model, it is said to be: Mark for Review
(1) Points

Replicated

Removable

Redundant (*)

Resourceful





3. When are relationships unnecessary? Mark for Review
(1) Points

When you can derive the relationship from other relationships in the model (*)

When they have the same visual structure but different meaning

When the information does not relate to the model

When the relationships connect 2 entities and they each have distinct meanings





4. Which of the following pairs of entities is most likely to be modeled as a M:M relationship? (Choose Two) Mark for Review
(1) Points

(Choose all correct answers)

STUDENT and CLASS (*)

TREE and SEEDLING

PHONE NUMBER and SIM CARD

CAR and DRIVER (*)





5. When resolving an M:M relationship, the new relationships will always be __________ on the many side. Mark for Review
(1) Points

optional

recursive

mandatory (*)

redundant





6. Which of the following are relationship types? (Choose Two) Mark for Review
(1) Points

(Choose all correct answers)

One to Some

Many to Many (*)

One to Many (*)

One to Another





7. Many to many relationships between entities usually hide what? Mark for Review
(1) Points

Another relationship

Another entity (*)

More attributes

Uniqueness

Test: Quiz: Relationship Transferability

Section 1

1. A non-transferable relationship is represented by which of the following symbols? Mark for Review
(1) Points

Heart

Diamond (*)

Circle

Triangle





2. Non-transferable relationships can only be mandatory, not optional. True or False? Mark for Review
(1) Points

True (*)

False





3. If a relationship can be moved between instances of the entities it connects, it is said to be: Mark for Review
(1) Points

Implicit

Transferrable (*)

Committed

Recursive

Test: Quiz: Documenting Business Rules

Section 1

1. Why is it important to identify and document business rules? Mark for Review
(1) Points

It allows you to create your data model, then check for accuracy. (*)

It allows you to improve the client's business.

It ensures that the data model will automate all manual processes.

None of the above





2. A business rule such as "All accounts must be paid in full within 10 days of billing" is best enforced by: Mark for Review
(1) Points

Making the payment attribute mandatory.

Making the relationship between CUSTOMER and PAYMENT fully mandatory and 1:1 on both sides.

Creating a message to be printed on every bill that reminds the customer to pay within ten days.

Hiring a programmer to create additional programming code to identify and report accounts past due. (*)





3. How should you handle constraints that cannot be modeled on an ER diagram? Mark for Review
(1) Points

Always let the network architect handle them

List them on a separate document to be handled programmatically (*)

Explain them to the users so they can enforce them

All constraints must be modeled and shown on the ER diagram





4. Which of the following is an example of a structural business rule? Mark for Review
(1) Points

All employees must belong to at least one department. (*)

Buildings to be purchased by the business must be current with earthquake building code.

All overdue payments will have an added 10 % late fee.

All products will have a selling price no less than 30 % greater than wholesale.





5. Only managers can approve travel requests is an example of which of the following? Mark for Review
(1) Points

A structural business rule.

A mandatory business rule.

A procedural business rule. (*)

An optional business rule.





6. How would you model a business rule that states that on a studentメs birthday, they do not have to attend their classes? Mark for Review
(1) Points

Use a supertype

Use a subtype

Make the attribute Birthdate mandatory

You cannot model this. You need to document it (*)





7. Business rules are important to data modelers because: Mark for Review
(1) Points

A. They capture all of the needs, processes and required functionality of the business. (*)

B. They are easily implemented in the ERD diagram.

C. The data modeler must focus on structural rules, because they are easily represented diagrammatically and eliminate other rules that involve extra procedures or programming.

D. Both A and C are true.

Test: Quiz: Supertypes and Subtypes

Section 1

1. All instances of the subtypes must be an instance of the supertype. True or False? Mark for Review
(1) Points

True (*)

False





2. Which of the following is true about supertypes and subtypes? Mark for Review
(1) Points

Instances that belong to two subtypes of the same supertype may be modeled as a one-to-one relationship between the two subtypes

Subtypes inherit the relationships and attributes of the supertype (*)

Subtypes may have no more than 2 levels of nesting

Supertype and subtype entities must be mutually exclusive





3. When creating entities it is important to remember all of the following: (Choose Two) Mark for Review
(1) Points

(Choose all correct answers)

Create a formal description. (*)

Include attributes. (*)

Do not use synonyms.

Do use reserved words.





4. All instances of the supertype are also instances of one of the subtypes. True or False? Mark for Review
(1) Points

True (*)

False





5. Which of the following is a TRUE statement about the diagram below?

Mark for Review
(1) Points
Every Z is either an A or a B

Every B is a Z

Every A is a Z

Every A is a B (*)





6. The "Other" subtype is best used: Mark for Review
(1) Points

For instances that belong to the supertype and at least one other subtype.

For a subtype that does not have any of the same attributes as the supertype to which it belongs.

As an extra subtype to ensure that all instances of subtypes are mutually exclusive and complete. By having an "Other" subtype, all instances of the Supertype will be of one subtype type. (*)

You should never have a subtype called Other.





7. Which of the following is the best scenario for using supertype/subtype entities: Mark for Review
(1) Points

A pet store that sells small animals, because they each need different size cages and food.

An ice cream store that sells ice cream in sugar cones and regular cones.

A grocery store that gives customers a choice of plastic or paper bags.

A vehicle dealership that sells cars, trucks and boats on trailers. (*)





8. A subtype can have a relationship not shared by the supertype. True or False? Mark for Review
(1) Points

True (*)

False





9. A supertype should have at least two subtypes. True or False? Mark for Review
(1) Points

True (*)

False





10. Which of the following are valid formats for an attribute? (Choose Two) Mark for Review
(1) Points

(Choose all correct answers)

Character string (*)

Decimal

Number (*)

HEX

Test: Quiz: Matrix Diagrams

Section 1

1. A Matrix Diagram will help you with all of the following except: Mark for Review
(1) Points

Defining Relationships Between Entities

Identifying Entities

Defining Instances of Entities (*)

Naming Relationships





2. Creating a Matrix Diagram is mandatory when doing Data Modeling. True or False? Mark for Review
(1) Points

True

False (*)





3. Matrix Diagrams helps verify you have identified all possible relationships between your existing entities. True or False? Mark for Review
(1) Points

True (*)

False

Test: Quiz: Speaking ERDish and Drawing Relationships

Section 1

1. After looking at the diagram, choose the sentence below that could be "read" from the existing relationship (even though you're missing relationship labels!)

Mark for Review
(1) Points



Each Student must have one or more Activities.

Each Activity may be performed by one or more Students.

Each Student may participate in one or more Activities. (*)

Each Activity must belong to one and only one Student.

2. When reading a relationship between 2 entities, the relationship is only read from left to right. True or False? Mark for Review
(1) Points

True

False (*)





3. Two entities can have one or more relationships between them. True or False? Mark for Review
(1) Points

True (*)

False

Test: Quiz: ER Diagramming

Section 1

1. On an ER diagram which symbol identifies an attribute as part of a unique identifier. Mark for Review
(1) Points

# (*)

*

o

x





2. Entity names are always plural. True or False? Mark for Review
(1) Points

True

False (*)





3. Which symbol is used to indicate that a particular attribute is optional? Mark for Review
(1) Points

*

o (*)

#

&





4. Entity boxes are drawn as Mark for Review
(1) Points

Soft Boxes (*)

Hard Boxes

Bold Circles

Normal Circles





5. Attributes are written inside the entity to which they belong. True or False? Mark for Review
(1) Points

True (*)

False





6. Consider the recommended drawing conventions for ERD's. Indicate which of the following accurately describes diagramming conventions for entities and attributes: Mark for Review
(1) Points

The * means that an attribute is optional and entity names should be plural verbs

The 'o' means that the attribute is optional and entity names should be plural verbs

The * means that an attribute is mandatory or required and the entity name should be singular (*)

The 'o' means that the attribute is mandatory or required and the entity name should be a singular noun

Test: Quiz: Identifying Relationships

Section 1

1. Relationships always exist between Mark for Review
(1) Points

3 or more entities

2 entities (or one entity twice) (*)

2 attributes

3 or more attributes





2. Relationships can be either mandatory or optional. True or False? Mark for Review
(1) Points

True (*)

False





3. In a business that sells computers, choose the best relationship name from CUSTOMER to ITEM (computer, in this case). Mark for Review
(1) Points

Each CUSTOMER must be the buyer of one or more ITEMS. (*)

Each CUSTOMER must be the seller of one or more ITEMS.

Each CUSTOMER may be the maker of one or more ITEMS.

Each CUSTOMER may be the producer of one or more ITEMS.





4. What are the three properties that every relationship should have? Mark for Review
(1) Points

Transferability, degree, name

Name, optionality, degree (*)

A UID bar, a diamond, an arc

Name, optionality, arcs

Test: Quiz: Entity Relationship Modeling and ERDs

Section 1

1. Entity Relationship model is independent of the hardware or software used for implementation. True or False? Mark for Review
(1) Points

True (*)

False





2. The purpose of an ERD is to document the proposed system and facilitate discussion and understanding of the requirements captured by the developer. True or False? Mark for Review
(1) Points

True (*)

False





3. Which of the following statements are true about ERD's? (Choose Two) Mark for Review
(1) Points

(Choose all correct answers)

A piece of information can be shown multiple times on an ERD.

A piece of information should only be found one place on an ERD. (*)

You should not model derivable data. (*)

All data must be represented on the ERD, including derived summaries and the result of calculations.





4. A well structured ERD will show only some parts of the finished data model. You should never try to model the entire system in one diagram, no matter how small the diagram might be. True or False? Mark for Review
(1) Points

True

False (*)

Test: Quiz: Entities, Instances, Attributes and Identifiers

Section 1

1. What is the purpose of a Unique Identifier? Mark for Review
(1) Points

To uniquely determine a table and columns within that table.

To identify a specific row within a table, using one or more columns and/or foreign keys.

Create an entity that is unlike any other entity aside from itself.

To identify one unique instance of an entity, by using one or more attributes and/or relationships. (*)





2. Some of the following could be attributes of an ENTITY called PERSON. Select the incorrect attributes for PERSON. (Choose Two) Mark for Review
(1) Points

(Choose all correct answers)

Age

Freddy Wilson (*)

Name

Priya Hansenna (*)





3. Which of the following statements about attributes are true? (Choose Two) Mark for Review
(1) Points

(Choose all correct answers)

They describe, qualify, quantify, classify, or specify an entity. (*)

They are often adjectives.

They have a data type such as a number or character string. (*)

They must be single valued unless they belong to more than one entity.





4. Unique Identifiers.... Mark for Review
(1) Points

distinguish one entity from another

distinguish one instance of an entity from all other instances of that entity (*)

distinguish all entities in a database

distinguishes nothing





5. In the following statements, find two examples of ENTITY: Instance. (Choose Two) Mark for Review
(1) Points

(Choose all correct answers)

DAIRY PRODUCT: cow (*)

VEGETABLE: grows

BOOK: Biography of Mahatma Gandhi (*)

TRAIN: runs





6. An entity may have which of the following? Mark for Review
(1) Points

experiences

instances (*)

tables

none of the above





7. Entities are usually verbs. True or False? Mark for Review
(1) Points

True

False (*)





8. A/an _________ is a piece of information that in some way describes an entity. It is a property of the entity and it quantifies, qualifies, classifies or specifies the entity. Mark for Review
(1) Points

ERD

Process

Table

Attribute (*)





9. All of the following would be instances of the entity PERSON except which? Mark for Review
(1) Points

David Jones

Male (*)

Angelina Rosalie

Grace Abinajam





10. Which of the following entities most likely contains invalid attributes? Mark for Review
(1) Points

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





11. In a physical data model, an attribute is represented as a/an Mark for Review
(1) Points

Column (*)

Row

Instance

Foreign Key





12. The word "Volatile" means.... Mark for Review
(1) Points

Changing constantly; unstable (*)

Static; unlikely to change

Large quantity

Limited quantity

Test: Quiz: Conceptual and Physical Models

Section 1

1. Examples of software are: Mark for Review
(1) Points

Data entry webpages, Spreadsheets, Google and Yahoo search Engines, SQL Developer, Oracle Application Express (*)

Microsoft Word, Microsoft Powerpoint, Microsoft Excel, Mouse pad

Mouse, Cables, Microsoft Word, Microsoft Powerpoint

Monitor, Microsoft Word, Microsoft PowerPoint, SQL Developer





2. Which of the following are reasons we create conceptual models? Mark for Review
(1) Points

It facilitates discussion. A picture is worth a thousand words.

It forms important ideal system documentation.

It takes into account government regulations and laws

It forms a sound basis for physical database design

All of the above. (*)





3. Examples of hardware are: Mark for Review
(1) Points

Data entry web pages, Mouse, Hard disk

Mouse, Hard disk, Monitor (*)

Monitor, Mouse, Printer, Printed Reports

Monitor, Mouse, Mouse pad, Cables and Wires, Hard disk

Test: Quiz: Major Transformations in Computing

Section 1

1. In the grid computing model, resources are pooled together for efficiency. True or False? Mark for Review
(1) Points

True (*)

False





2. Users would use which of the following software to access essential business applications? (Choose three) Mark for Review
(1) Points

(Choose all correct answers)

GUI Interface (*)

Internet Browser (*)

Server

Operating System (*)





3. Personal computers (PCs) have been in existence since 1950. True or False? Mark for Review
(1) Points

True

False (*)





4. Databases function more efficiently as: Mark for Review
(1) Points

Multiple applications on multiple client-servers

Integrated software on fast processing servers (*)

Client-based software on client-servers

Client-based software on personal computers





5. Which of the following is NOT a type of database? Mark for Review
(1) Points

Hierarchical

Relational

SQL (*)

Network

Test: Quiz: History of the Database

Section 1

1. Which of the following is the correct order for the Database Development Process? Mark for Review
(1) Points

Strategy, Analysis, Design, Build (*)

Analysis, Strategy, Design, Build

Build, Strategy, Analysis, Design

Design, Build, Strategy, Analysis





2. Oracle was one of the first relational database systems available commercially? True or False? Mark for Review
(1) Points

True (*)

False





3. Data Modeling is the last stage in the development of a database. True or False? Mark for Review
(1) Points

True

False (*)

Test: Quiz: Data vs Information

Section 1

1. Which of the following are examples of data vs. information. Mark for Review
(1) Points

A. Student age vs. average age of all students in class

B. Bank deposit amount vs. total account balance

C. Winning time for a race vs. length of race

D. Price of computer vs. total sales of all computers for a company

E. Both A and B (*)





2. Consider an example where an Oracle database works "behind the scenes" to turn data into information. Which of the following best fits the description of data transformed into information? Mark for Review
(1) Points

A person searching an airline website to find all available flights for a destination. (*)

A business identifies what processes it uses for purchasing inventory.

A student places a link to their homepage from the school's website.





3. What are the results of having all your data in one central location? (Choose two) Mark for Review
(1) Points

(Choose all correct answers)

Improved performance (*)

Easier access to data (*)

Updates are harder to execute

Decreased performance





4. How do you turn "data" into "information" Mark for Review
(1) Points

By testing it

By querying it or accessing it (*)

By storing it on a server

By storing it in a database

Test: Quiz: Introduction to The Oracle Academy

Section 1

1. There is a big increase in demand for Information Technology professionals in today's market. True or False? Mark for Review
(1) Points

True (*)

False





2. Why is it important to identify the business requirements before beginning to program a new system? Mark for Review
(1) Points

It is not important to have a blueprint for database design and programs. You should just start coding as soon as possible, so you can meet your deadlines.

It clarifies what a business wants to accomplish, so that you can get your database design and coding started correctly. (*)

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

It keeps businesses honest.





3. What are the major content areas covered in the Oracle Academy? Mark for Review
(1) Points

Database programming and Computer repair.

Database configuration and performance tuning.

Data Modeling, SQL, and PL/SQL (*)

Data Modeling, PJava and C+

Vaccinarea împotriva AH1N1 va începe pe 26 noiembrie

Guvernul va cumpăra din străinătate 500.000 doze de vaccin pentru copii, iar Institutul Cantacuzino va trebui să producă zece milioane doze pentru adulţi.

Autorităţile doresc să înceapă vaccinarea împotriva AH1N1 pe 26 noiembrie şi în acest sens, statul va cheltui 42 milioane lei pentru a plăti cele zece milioane doze de vaccin pentru aduţi, la care se vor adăuga 2.250.000 euro pentru achiziţia din străinătate a jumătate de milion de doze de vaccin pentru copii.

„Am decis în şedinţa de astăzi pe baza hotărârii de ieri a CSAT de a dubla numărul dozelor de vaccin pe care să le achiziţionăm. Astfel, vom achiziţiona zece milioane de doze, din care cinci milioane de doze vor fi produse în 2009, iar restul anul viitor. Costul total de achiziţie va fi de 42 milioane lei”, a spus premierul interimar Emil Boc.

El a precizat că Guvernul a decis să achiziţioneze de pe piaţa externă 500.000 doze de vaccin pentru copii întrucât Institutul Cantacuzino nu va putea produce acest gen de vaccin decât în ianuarie 2010.
„Pentru a începe vaccinarea concomitent la adulţi şi copii am decis să importăm vaccin pentru copii cu vârsta între 6 luni şi 15 ani”, a spus Boc.
Institutul Cantacuzino are deja infiolate 1,3 milioane doze de vaccin pentru adulţi şi se aşteaptă rezultate testelor clinice pe oameni, a mai arătat Boc.