CIS 336 AID teaching effectively/ cis336aiddotcom

FOR MORE CLASSES VISIT
www.cis336aid.com

CIS 336 Entire Course: Devry University

Chapter 1

CIS 336 AID teaching effectively/ cis336aiddotcom

CIS 336: All iLabs Week 1 to Week 7: Devry University (Devry)
FOR MORE CLASSES VISIT
www.cis336aid.com
--------------------------------------------------------------------------------------------------------------------------

CIS 336: All iLabs Week 1 to Week 7: Devry University
CIS 336 Entire Course: Devry University (Devry)
FOR MORE CLASSES VISIT
www.cis336aid.com

CIS 336 Entire Course: Devry University
--------------------------------------------------------------------------------------------------------------------------
CIS 336 Final Exam 1 (Devry)
FOR MORE CLASSES VISIT
www.cis336aid.com

1. (TCO 1) Most DBMS are referred to as ____________database management systems. (Points : 4)
elemental
linked
hierarchical
relational
2. (TCO 1) Data constitutes the building blocks of ____________
. (Points : 4)
information
processing
applications
programming
3. (TCO 2) If a foreign key contains either matching values or nulls, the table(s) that make use of such a foreign key is/are said to exhibit ________ integrity. (Points : 4)
referential
restrictive
secondary
redundant
4. (TCO 2) In a "one-to-many" relationship, which constraint is usually added to the "many" table?
(Points : 4)
UNIQUE
PRIMARY KEY
FOREIGN KEY
NOT NULL
5. (TCO 3) A __ occurs when a relationship is improperly or incompletely identified and, therefore, is represented in a way that is not consistent with the real world. (Points : 4)
surrogate primary keys
time-variant data
design trap
fan trap
6. (TCO 3) All of the following are true about a prime attribute except_____________. (Points : 4)
it is a key attribute
it is at least part of a key
it is not a key attribute
it may be part of a composite key
7. (TCO 3) The conflicts between design efficiency, information requirements, and processing speed are often resolved through_____________. (Points : 4)
conversion from 1NF to 2NF
conversion from 2NF to 3NF
compromises that include denormalization
conversion from 3NF to 4NF
8. (TCO 4) When a constraint is created at the ____ level with the CREATE TABLE command, the constraint definition is simply included as part of the column definition.(Points : 4)
table
column
database
row
Page 2 - Multiple Choice
1. (TCO 4) In Oracle, the CONSTRAINT clause is used to _________________. (Points : 4)
create only referential constraints
define and name any constraint
create a short cut so the constraint does not have to be named
create only entity entegrity constraints
2. (TCO 4) The SQL command that lets you list the table contents is (Points : 4)
insert.
select.
commit.
update.
rollback.
3. (TCO 5) The Crow's Foot model is more _________-oriented than the Chen model. (Points : 4)
object
user
implementation
processor
4. (TCO 5) The _________ model is both software and hardware dependent. (Points : 4)
conceptual
logical
condensed
physical
5. (TCO 6) Which of the following commands will add a new column named FIRSTORDERDATE to the CUSTOMERS table to store the date that the customer first placed an order with the company? (Points : 4)
CREATE COLUMN firstorderdate, DATE TO customers;
ALTER TABLE customers ADD COLUMN firstorderdate DATE;
ALTER TABLE customers ADD firstorderdate DATE;
ALTER TABLE customers ADD (firstorderdate DATE);
6. (TCO 6) When modifying the data characteristics of a column in Oracle, which of the following is correct? (Points : 4)
The column size can be increased.
The size of the column can be decreased.
Changing the default value of a column will change the values of data already in a table.
If a NUMBER column is empty, its precision and scale cannot be changed.
7. (TCO 6) Which of the followig SQL commands would alter the table DEVRY and add a foreign key that references the CITY table? (Points : 4)
ALTER table DEVRY
ADD CONSTRAINT devry_studentcity_fk references city;
ALTER table DEVRY
ADD CONSTRAINT devry_studentcity_fk FOREIGN KEY references city;
ALTER table DEVRY
ADD CONSTRAINT devry_studentcity_fk FOREIGN KEY (student_city) references city;
ALTER table DEVRY
ADD CONSTRAINT FOREIGN KEY (student_city) references city;
8. (TCO 7) Given a table named EMPLOYEE, the SQL command to sort records in a specific order would be: (Points : 4)
SELECT EMP_LNAME, EMP_FNAME, EMP_INITIAL, EMP_AREACODE, EMP_PHONE
FROM EMPLOYEE
LIST BY EMP_LNAME, EMP_FNAME, EMP_INITIAL;
SELECT EMP_LNAME, EMP_FNAME, EMP_INITIAL, EMP_AREACODE, EMP_PHONE
FROM EMPLOYEE
ORDER BY EMP_LNAME, EMP_FNAME, EMP_INITIAL;
SELECT EMP_LNAME, EMP_FNAME, EMP_INITIAL, EMP_AREACODE, EMP_PHONE
FROM EMPLOYEE
DISPLAY BY EMP_LNAME, EMP_FNAME, EMP_INITIAL;
SELECT EMP_LNAME, EMP_FNAME, EMP_INITIAL, EMP_AREACODE, EMP_PHONE
FROM EMPLOYEE
SEQUENCE BY EMP_LNAME, EMP_FNAME, EMP_INITIAL;
Page 3 - Multiple Choice
1. (TCO 7) Which of the following subqueries returns more than one row of results to the outer query? (Points : 4)
multiple-column subquery
single-row subquery
multiple-row subquery
correlated subquery
2. (TCO 7) Which of the following keywords can be used to join two tables that do not contain a commonly named and defined column? (Points : 4)
NATURAL JOIN
JOIN...ON
JOIN...USING
JOIN...WHERE
3. (TCO 8) Based upon the contents of the BOOKS table shown below, which of the following SQL statements will return the number of categories contained in the table?
(Points : 4)
SELECT COUNT(DISTINCT category) FROM books;
SELECT DISTINCT COUNT(category) FROM books;
SELECT DISTINCT (COUNT(category)) FROM books;
SELECT DISTINCT COUNT(category) FROM books;
4. (TCO 8) The ___________ function can be used to display upper-case characters in lower-case. (Points : 4)
CONVERT
MIN
LESS
LOWER
5. (TCO 8) Which of the following statements will produce the value 21.1? (Points : 4)
SELECT ROUND(21.12, 1) FROM dual;
SELECT ROUND(21.12, -1) FROM dual;
SELECT ROUND(21.12, 0) FROM dual;
SELECT ROUND(21.12, 0+) FROM dual;
6. (TCO 9) The column to be updated by the UPDATE command is specified in the ____ clause. (Points : 4)
UPDATE
SET
WHERE
COL
7. (TCO 9) If the INSERT INTO command is used to insert data values that violate an existing constraint in a table, which of the following will happen. (Points : 4)
Oracle will raise an error and you will have to go update the incorrect data.
Oracle will raise an error and the entire row will be rejected.
Oracle will raise an error and the invalid piece of data will be rejected.
Oracle will raise and error and all current transactions will be rolled back.
8. (TCO 10) Which of the following commands is used to establish a user account? (Points : 4)
CREATE NEW USER username
IDENTIFIED BY password;
CREATE USERNAME username
IDENTITY password;
CREATE USER username PASSWORD password;
CREATE USER username IDENTIFIED BY password;
9. (TCO 10) Which command will grant a system privilege to a user? (Points : 4)
GRANT systemprivilegeUSERNAME username
GRANT PRIVILEGE systemprivilegeTO username
GRANT systemprivilegeTO
username
GRANT systemprivilege ON
username
--------------------------------------------------------------------------------------------------------------------------
CIS 336 Final Exam 2 (Devry)
FOR MORE CLASSES VISIT
www.cis336aid.com

1. (TCO 1) Most DBMS are referred to as ____________database management systems. (Points : 4)
elemental
linked
hierarchical
relational
2. (TCO 1) A relational DBMS provides protection of the ______________________
through security, control, and recovery facilities. (Points : 4)
user
network
system
database
3. (TCO 2) If a foreign key contains either matching values or nulls, the table(s) that make use of such a foreign key is/are said to exhibit ________ integrity. (Points : 4)
referential
restrictive
secondary
redundant
4. (TCO 2) A field that consists of integer values is a _______ type field. (Points : 4)
Date/Time
Yes/No
Memo
Numeric
5. (TCO 3) The PK must uniquely identify each entity instance. A primary key must be able to guarantee unique values. It cannot contain nulls. This rationale belongs to __. (Points : 4)
Unique values
Nonintelligent
Preferably single-attribute
Security complaint
6. (TCO 3) A table that is in 1NF and includes no partial dependencies only is said to be in_____________. (Points : 4)
1NF.
2NF.
3NF.
4NF.
BCNF.
7. (TCO 3) A table that has all key attributes defined, has no repeating groups, and all its attributes are dependent on the primary key, is said to be in_____________.(Points : 4)
1NF.
2NF.
3NF.
4NF.
BCNF.
8. (TCO 4) In Oracle, the DEFAULT constraint is used to __________________. (Points : 4)
define which column is the default primary key if one is not explicitly named
define which column is the default foreign key if on is not explicitly named
assign a value to an attribute when a new row is added and a value is not defined
validate data when a value is added to an attribute
Page 2 - Multiple Choice
1. (TCO 4) Which of the following is not considered a database object? (Points : 4)
a table
a view
a constraint
a sequence
an index
2. (TCO 4) Which of the following SQL statements would you use to create a table named DEVRY? (Points : 4)
CREATE Devry
(
Student_id NUMBER (12),
Student_name VARCHAR2 (15),
Student_city VARCHAR2 (12)
);
CREATE TABLE Devry
(
Student_id NUMBER (12)
Student_name VARCHAR2 (15)
Student_city VARCHAR2 (12)
);
CREATE TABLE Devry
(
Student_id NUMBER (12),
Student_name VARCHAR2 (15),
Student_city VARCHAR2 (12)
);
CREATE TABLE Devry
Student_id NUMBER (12),
Student_name VARCHAR2 (15),
Student_city VARCHAR2 (12);
3. (TCO 5) The __ constraint requires that a specific condition be met before a record can be added to a table. (Points : 4)
UNIQUE
REFERENCE
CONDITION
CHECK
4. (TCO 5) The _________ model is both software and hardware dependent. (Points : 4)
conceptual
logical
condensed
physical
5. (TCO 6) The _______________________ statement can be used to enable or disable a constraint. (Points : 4)
alter table
modify table
create table
update table
6. (TCO 6) When using the ALTER TABLE...DROP COLUMN command, which of the following is not correct? (Points : 4)
The command's effect on the table is permanent.
You cannot delete the last remaining column in a table.
The command deletes both the column and its contents.
The command can be used to delete multiple columns from a table.
7. (TCO 6) Which of the following keywords can be used to change the size, datatype, and/or default value of an existing column? (Points : 4)
ADD
MODIFY
CHANGE
RESET
8. (TCO 7) Any type of subquery can be used in the _______ clause of a SELECT statement. (Points : 4)
WHERE
HAVING
FROM
ORDER BY
GROUP
Page 3 - Multiple Choice
1. (TCO 7) Using the BOOK_CUSTOMER and BOOK_ORDER tables shown below for references, which SQL statement will return the same results as the following SQL statement?

SELECT * FROM book_customer, book_order;
(Points : 4)
SELECT * FROM book_order CROSS JOIN book_customer;
SELECT * FROM book_order, book_customer
WHERE book_order.customer# = book_customer.customer#;
SELECT * FROM book_order, book_customer
WHERE book_order.customer# >book_customer.customer#;
SELECT * FROM o book_order , c book_customer
WHERE o.customer# = c.customer#;
2. (TCO 7) If a Cartesian join is used to link table A which contains five rows to table B which contains eight rows, there will be _____ rows in the results. (Points : 4)
8
13
5
40
3. (TCO 8) Based upon the contents of the BOOK_ORDER table shown below, which of the following SQL statements will display the ship date for order 1006 as April 2, 2002?
(Points : 4)
SELECT order#, TO_CHAR(shipdate, 'fmMonth DD, YYYY')
FROM book_order;
SELECT order#, TO_DATE(shipdate, 'fmMonth DD, YYYY')
FROM book_order;
SELECT order#, TO_CHAR(shipdate, 'Month DD, YYYY')
FROM book_order;
SELECT order#, TO_DATE(shipdate, 'Month DD, YYYY')
FROM book_order;
4. (TCO 8) Based upon the contents of the BOOK_ORDER table shown below, which of the following SQL statements will display only those orders shipped to the zip code zone that begins with 323?
(Points : 4)
SELECT order#, SUBSTR(shipzip, 1, 323)
FROM book_order;
SELECT order#, SUBSTR(shipzip, 1, 323)
FROM book_order
WHERE ;
SELECT order#
FROM book_order
WHERE (shipzip, 1, 323);
SELECT order#
FROM book_order
WHERE SUBSTR(shipzip, 1, 3) = 323;
5. (TCO 8) Which of the following functions determines the number of characters in a character string? (Points : 4)
COUNT
NUMBER
LENGTH
DECODE
6. (TCO 9) Which of the following is not a valid SQL command? (Points : 4)
UPDATE acctmanager SET WHERE ;
UPDATE acctmanager SET (amname);
UPDATE acctmanager SET (amname) WHERE ;
UPDATE acctmanager WHERE ;
7. (TCO 9) Using the promotion table shown below, which of the following SQL statements will insert a new row into the PROMOTION table?



(Points : 4)
INSERT INTO promotion (gift, minretail, maxretail)
VALUES (FREE BOOK, 75.01, 89.99);
INSERT INTO promotion (gift, minretail, maxretail)
VALUES ('FREE BOOK', 75.01, 89.99);
INSERT INTO promotion VALUES (FREE BOOK, 75.01, 89.99);
INSERT INTO promotion (gift, minretail)
VALUES (FREE BOOK, 75.01, 89.99);
8. (TCO 10) A __ is a uniquely identifiable object that allows a given person to log on to the database. (Points : 4)
user
role
profile
manager
9. (TCO 10) Which command will delete a user account from Oracle9i? (Points : 4)
DELETE USER username;
DELETE USER username IDENTIFIED BY password;
DROP USER username IDENTIFIED BY password;
DROP USER username;
Page 4 - Essays
1. (TCO 2) What is Character data? (Points : 15)
2. (TCO 3) Explain the term "second normal form". (Points : 15)
3. (TCO 7) Sally needs to find all employees who have a date-of-hire between 01-JAN-2003 and 01-JAN-2005. She writes and executes the following query:
4. (TCO 8) In using group functions we cannot place a group function in a WHERE clause. Explain how the WHERE clause and HAVING clause are similar and why you can use the HAVING with a group function but not a WHERE clause. (Points : 15)
5. (TCO 6) Write the SQL statement that will remove the database table EMPLOYEE. (Points : 15)
1. (TCO 7) Write a join query using NATURAL JOIN that for every order in the ORDERS table will list the order number and order date along with the cusnumber, last name, and first name of the customer who placed the order.
2. (TCO 8) Write a query that will list the part number, part description, and on-hand value (units on hand * unit price) for each part in item class AP. Give the expression an alias of "On Hand Value".
3. (TCO 8) Write a sub query that will list the part number, part description, and units on hand of all parts where the number of units on hand is greater than the average of units on hand for all parts.
4. (TCO 7) Using the BETWEEN operator, write a query that will list all details about all orders that were placed during the period of September 3rd thru September 5th of 1998.
5. (TCO 7) Write a query that will list the part number and part description for all parts in the PART table.
(Points : 15)
--------------------------------------------------------------------------------------------------------------------------
CIS 336 Final Exam 3 (Devry)
FOR MORE CLASSES VISIT
www.cis336aid.com

1. (TCO 2) Explain what physical independence means. (Points : 15)
2. (TCO 8) Sally wants to query the EMP table and determine how many of the employees live in each of the cities the company has factories in. She writes the following query but it does not work. What is wrong with the way the query is constructed?
3. (TCO 3) Explain in what two specific cases presented in the text composite primary keys are particularly useful. (Points : 15)
4. (TCO 7) How are comparisons done on character string data in a queries WHERE clause, and why would this be especially useful in comparing certain attributes? (Points : 15)
5. (TCO 6) Oracle will not allow the changing of a column's data type unless the column is empty, and even then it may still be prohibited. Discuss why? (Points : 15)
6. (TCO 7) Write a join query using NATURAL JOIN that for every order in the ORDERS table will list the order number and order date along with the cusnumber, last name, and first name of the customer who placed the order.
7. (TCO 8) Write a query that will list the part number, part description, and on-hand value (units on hand * unit price) for each part in item class AP. Give the expression an alias of "On Hand Value".
8. (TCO 8) Write a query that will display the customer number, first name, and last name for every customer with a balance greater than $50. Display the first and last name as a single column and provide an alias for the column.
9. (TCO 7) Write a query that will list the customer number, last name, and first name for every customer represented by sales rep 03 or sales rep 12.
10. (TCO 7) Write a query that will list the customer first and last name and the sales rep commission rate using JOIN ON.
--------------------------------------------------------------------------------------------------------------------------
CIS 336 Final Exam 4 Sets of Answers (Devry)
FOR MORE CLASSES VISIT
www.cis336aid.com

CIS 336 Final Exam 4 Sets of Answers
--------------------------------------------------------------------------------------------------------------------------
CIS 336 Final Exam 4 (Devry)
FOR MORE CLASSES VISIT
www.cis336aid.com

1. (TCO 7) For every order, list the order number, order date, part number, part description, and item class for each part that makes up the order.
2. (TCO 8) Write a query that will display the customer number, last name, and first name for every customer I whose first name begins with the letter "D".
2. (TCO 8) Write a query that will display the earliest date an order was placed.
3. (TCO 7) Using the BETWEEN operator, write a query that will list all details about all orders that were placed during the period of September 3rd thru September 5th of 1998.
5. (TCO 7) Write a query that will list the customer first and last name and the sales rep commission rate using JOIN ON.
----------------------------------------------------------------------------------------------------------------
CIS 336 Quiz 1 (Devry)
FOR MORE CLASSES VISIT
www.cis336aid.com

(TCO 3) Normalization works through a series of stages called normal forms. Typically _______ stages must be completed before a table can be considered normalized.

(TCO 3) The PK must uniquely identify each entity instance. A primary key must be able to guarantee unique values. It cannot contain nulls. This rationale belongs to
(TCO 9) The SQL command that lets you insert data into a table, one row at a time, is ___________.
(TCO 4) Which command is used to restore the table's contents to their default values?
(TCO 4) Which of the following SQL commands would alter the table DEVRY and add a foreign key that references the CITY table?
(TCO 4) The SQL command that lets you save your work to disk, is _________
(TCO 9) If the INSERT INTO command is used to insert data values that violate an existing constraint in a table, which of the following will happen?
(TCO 3) Explain under what circumstances a partial dependency can exist in a database.
----------------------------------------------------------------------------------------------------------------
CIS 336 Quiz 2 (Devry)
FOR MORE CLASSES VISIT
www.cis336aid.com

(TCO 2) Explain what a composite attribute is
(TCO 1) Data constitutes the building blocks of
(TCO 1) Successful database design is first and foremost based on ___________ requirements.
(TCO 1) The lowest level in a database hierarchy is the __________ or value as it is often referred
(TCO 2) The term ___________ design is used to refer to the task of creating the conceptual data model represented by an Entity Relationship Diagram (ERD).
(TCO 2) Within a table, the primary key must be unique so that it will identify each row. When this is the case, the table is said to exhibit _________.
(TCO 2) A field that consists of data values that can be used for arithmetic procedures is a _______ type field.
(TCO 2) A relationship is an association between _________

----------------------------------------------------------------------------------------------------------------
CIS 336 Quiz 3 (Devry)
FOR MORE CLASSES VISIT
www.cis336aid.com

(TCO 7) Which of the following types of columns will automatically right-align the data when it is displayed?
(TCO 7) Which of the following SQL statements will display the profit generated by each book currently stored in the BOOKS table? (You do not need to see the table structure for this question)
(TCO 7) Which of the following will display the new retail price of each book as 20 percent more than it originally cost?
(TCO 7) Which of the following operators would be most appropriate to determine whether or not the retail price of a book is at least $24.00?
(TCO 7) The ____________________ comparison operator is used to indicate that a data value must fall within a range of values to be included in the query results.
(TCO 7) Based upon the contents of the BOOK_ORDER table shown below, which of the following queries will display all orders that were not shipped for at least three days after the order was received?
(TCO 7) ANSI-standard SQL allows the use of a special operator in conjunction with WHERE clause. A special operator used to check whether an attribute matches one from a subquery is_______.
(TCO 7) A __ occurs when a relationship is improperly or incompletely identified and, therefore, is represented in a way that is not consistent with the real world.
(TCO 7) The ____________________ comparison operator is used to search for values which are not NULL.
TCO 7) You want to write a query that will return the customer number, first and last name from the book_order table (shown below) for all customers who have a P.O.
----------------------------------------------------------------------------------------------------------------
CIS 336 Quiz 4 (Devry)
FOR MORE CLASSES VISIT
www.cis336aid.com
(TCO 8) If a Cartesian join is used to link table A which contains five rows to table B which contains eight rows, there will be _____ rows in the results.
(TCO 8) Which of the following statements will produce the value 21.1?
(TCO 8) Which of the following format elements will display insignificant leading zeros?
(TCO 8) Oracle’s pseudo table used only for cases where a table is not really needed is _______?
(TCO 7) Using the BOOK_CUSTOMER and BOOK_ORDER tables shown below for reference which SQL statement will return the same results as the following SQL statement?
(TCO 7) A table alias or qualifier cannot be assigned in the FROM clause of which type of join?
(TCO 7) The _____ query joins a table to itself using aliases to distinctly identify each instance of the table.
(TCO 7) Explain the difference between an inner join and an outer join.
--------------------------------------------------------------------------------------------------------------------------
CIS 336 Quiz 5 (Devry)
FOR MORE CLASSES VISIT
www.cis336aid.com

(TCO 6) Which of the following keywords is used to remove a row in a table?
(TCO 6) When using the ALTER TABLE...DROP COLUMN command, which of the following is NOT correct?
(TCO 6) Which of the following commands will add a new column named FIRSTORDERDATE to the CUSTOMERS table to store the date that the customer first placed an order with the company?
(TCO 8) Which of the following is NOT a valid statement?
(TCO 8) Based on the contents of the BOOKS table shown below, which of the following SQL statements will return the total profit generated by books in the COOKING category?
(TCO 8) Which comparison operator evaluates a subquery and if it returns false, will not execute the calling query?
(TCO 8) The following SQL statement contains which type of subquery?

(TCO 9) If the _______ clause of the UPDATE command is omitted, then all the rows in the specified table will be changed.
(TCO 9) Which of the following is not a valid SQL command?
(TCO 9) Based on the contents of the PROMOTION table, which of the following commands will delete only the row for the Free Bookmark from the table?
(TCO 8) In using group functions we cannot place a group function in a WHERE clause. Explain how the WHERE clause and HAVING clause similar and why you can use the HAVING with a group function but not a WHERE clause.
--------------------------------------------------------------------------------------------------------------------------
CIS 336 Week 1 iLab 1 Devry University (Devry)
FOR MORE CLASSES VISIT
www.cis336aid.com

0 Comments

No comments yet!

© 2019 Polarity Technologies
X
X

Invite Next Author

Write a short message (optional)

or via Email

Enter Quibblo Username

X

Report This Content