Devry CIS 336 All Week Quiz Latest

$45

Description

Devry CIS 336 All Week Quiz Latest

Devry CIS 336 Week 2 Quiz Latest 

Devry CIS336 Week 2 Quiz Latest

Question 1. Question : (TCO 2) Which statement is FALSE regarding a primary key?

Only parent tables must have a primary key.

The values must be unique.

It can be made up of multiple attributes.

The value cannot be NULL.

Question 2. Question : (TCO 2) _____ integrity insures that the value of a foreign key must match a primary key value in the table to which it is related, or be null.

Referential

Entity

Data

Logical

Question 3. Question : (TCO 2) A verb associating two nouns in a business rule usually translates to a(n) ____ in the data model.

entity

attribute

relationship

constraint

Question 4. Question : (TCO 4) A(n) _____ provides a graphical description of a data model.

entity relationship diagram

data dictionary

business rule

pseudocode

Question 5. Question : (TCO 2) A _____ primary key is made up of more than one attribute.

composite

foreign

bridge

linking

Question 6. Question : (TCO 4) In the figure below, the OrderLineItems entity is there to implement what type of relationship between Orders and Products?

One to one

One to many

Many to many

No relationship

Question 7. Question : (TCO 2) When designing a database, you should _____.

make sure entities are in normal form before table structures are created

create table structures then normalize the database

only normalize the database when performance problems occur

consider more important issues, such as performance, before normalizing

Question 8. Question : (TCO 2) A table that is in 1NF and includes no partial dependencies only is said to be in _____.

1NF

2NF

3NF

BCNF

Question 9. Question : (TCO 2) A table is not in 1NF if _____.

it has a primary key defined

all of the key attributes are defined

there are repeating groups in the table

all attributes are dependent on the primary key

Question 10. Question : (TCO 2) Entity attributes and primary keys are not present in the _____ data model.

logical

physical

conceptual

network

Devry CIS 336 Week 3 Quiz Latest 

Devry CIS336 Week 3 Quiz Latest

  1. 1.Question : (TCO 3) The _____ column attribute will automatically generate unique numbers in sequence.

DEFAULT

AUTO_INCREMENT

AUTO_SEQUENCE

NOT NULL

Question 2. Question : (TCO 5) The _____ keyword is used in an ALTER statement to remove a column from an existing table.

MODIFY COLUMN

ADD COLUMN

DELETE COLUMN

DROP COLUMN

Question 3. Question : (TCO 3) Which uses the least amount of storage?

“Example” stored in a column of type CHAR(20)

“Exam” stored in a column of type CHAR(20)

“Ex” stored in a column of type CHAR(20)

They all use the same amount of storage.

Question 4. Question : (TCO 3) The TIME data type in MySQL can store _____.

dates only

times only

dates and times

None of the above

Question 5. Question : (TCO 3) Which statement is false regarding the creation of a foreign key constraint at table level or with an ALTER statement?

The parent table must already exist.

The field must already be defined in the table.

The PK and FK fields must have the same name.

The PK and FK fields may have different names.

Question 6. Question : (TCO 3) A foreign key constraint can only reference a column in another table that has been assigned a(n) _____ constraint.

NOT NULL

UNIQUE

PRIMARY KEY

DEFAULT

Question 7. Question : (TCO 3) You are creating a table called Department, with fields for the primary key DeptID (Integer) and department name (VARCHAR). What (if anything) is wrong with the following code?

CREATE TABLE Department

(

deptID Primary Key INTEGER ,

deptName NOT NULL VARCHAR(10)

);

You must use curly braces, not parentheses.

The data type must immediately follow the field name.

The keywords cannot be in upper case.

Nothing is wrong.

Question 8. Question : (TCO 3) What datatype is best to store a person’s age?

INTEGER

VARCHAR

DECIMAL

FLOAT

Question 9. Question : (TCO 5) Which statement will remove the field STATUS from the CUSTOMERS table?

ALTER TABLE customers REMOVE status;

ALTER TABLE customers DROP status;

ALTER TABLE customers DROP COLUMN status;

ALTER TABLE customers DELETE status;

Question 10. Question : (TCO 8) When you write an INSERT statement with a column list, which columns can be omitted from the column list?

AUTO_INCREMENT only

DEFAULT only

NOT NULL only

AUTO_INCREMENT, DEFAULT, and fields that allow NULL

Devry CIS 336 Week 4 Quiz Latest 

Devry CIS336 Week 4 Quiz Latest

Question 1. Question : (TCO 6) To retrieve all fields from a table, use

SELECT ALL.

SELECT ANY.

SELECT ().

SELECT *.

Question 2. Question : (TCO 6) Which operator would be most appropriate to determine books with a retail price in the range of $50 to $100?

LIKE

IN

BETWEEN

>

Question 3. Question : (TCO 6) Which code returns the date field HIREDATE in the format: Friday, April 5th, 2015?

DATE_FORMAT(HIREDATE, ‘%W, %m %d, %Y’)

DATE_FORMAT(HIREDATE, ‘%a, %M %D, %Y’)

DATE_FORMAT(HIREDATE, ‘%W, %M %D, %Y’)

DATE_FORMAT(HIREDATE, ‘%a, %m %d, %y’)

Question 4. Question : (TCO 6) Given a customer table with fields for firstname and lastname, which of the following will display the customer name as a single field in the format “Jones, Tom” with a heading?

SELECT CONCAT(lastname, firstname) as “Name” FROM customer;

SELECT CONCAT(firstname, lastname) as “Name” FROM customer;

SELECT CONCAT(lastname, ‘, ‘, firstname) as “Name” FROM customer;

SELECT CONCAT lastname ‘, ‘ firstname as “Name” FROM customer;

Question 5. Question : (TCO 8) The column to be updated by the UPDATE command is specified in the _____ clause.

WHERE

MODIFY

ALTER

SET

Question 6. Question : (TCO 6) Given a table orders with fields for orderid, orderdate, and shipdate, which query will display the ordered for only those orders that have not shipped?

SELECT orderid FROM orders WHERE shipdate = orderdate;

SELECT orderid FROM orders WHERE shipdate IS NOT NULL;

SELECT orderid FROM orders WHERE shipdate IS NULL;

SELECT orderid FROM orders;

Question 7. Question : (TCO 6) Which WHERE clause will return data on all employees with a last name beginning with ‘S’?

WHERE lastname = ‘S’

WHERE lastname = ‘S%’

WHERE lastname LIKE ‘S’

WHERE lastname LIKE ‘S%’

Question 8. Question : (TCO 6) Given a books table with fields of title, cost, and retail, what if anything is wrong with the following query (assuming all fields exist)?

SELECT * FROM books WHERE cost > 20 ORDER BY retail;

You must sort and filter on the same field.

You cannot use ORDER BY and WHERE in the same query.

The WHERE clause must always be last.

Nothing is wrong.

Question 9. Question : (TCO 8) You can delete one or more rows in a table by using the _____ command.

UPDATE

DROP

DELETE

ALTER

Question 10. Question : (TCO 6) Given a books table with fields: title, category (such as ‘SPORTS’), cost, retail; what condition will return ‘COMPUTER’ books with a retail price between $50 and $100 ?

WHERE retail > 50 AND < 100 AND category = ‘COMPUTER’

WHERE category = ‘COMPUTER’ AND (retail BETWEEN 100 and 50)

WHERE category = ‘COMPUTER’ AND retail < 50 AND retail > 100

WHERE category = ‘COMPUTER’ AND ( retail BETWEEN 50 AND 100)

Devry CIS 336 Week 5 Quiz Latest 

Devry CIS336 Week 5 Quiz Latest

  1. 1.Question : (TCO 7) The implicit inner join syntax is defined as _____.

NATURAL JOIN

JOIN ON

JOIN USING

WHERE clause

Question 2. Question : (TCO 7) To join four tables would require _____ join conditions.

4

3

2

Cannot tell without an ERD.

Question 3. Question : (TCO 7) Given the two tables described below, which of the following JOIN queries (if any) is not correct?

customer: with the fields customerid(PK), lastname, firstname

order: with the fields orderid(PK), orderdate, customerid(FK)

SELECT lastname, orderdate from customer JOIN order ON customer.customerid = order.customerid;

SELECT lastname, orderdate from customer JOIN order USING (customerid);

SELECT lastname, orderdate from customer, orders;

All of the above

Question 4. Question : (TCO 7) In a join, column names need to be qualified only

in inner joins.

in outer joins.

when the code is confusing.

when the same column names exist in both tables.

Question 5. Question : (TCO 7) A left join returns

rows in the left table that don’t satisfy the join condition.

unmatched rows from both the left and right tables.

rows in the right table that don’t satisfy the join condition.

the Cartesian product of the two tables.

Question 6. Question : (TCO 7) When you use the USING keyword for a join

the join cannot be an outer join.

the join cannot be based on more than one column.

the join must be based on a column or columns that have the same name in both tables.

the join must be an inner join.

Question 7. Question : (TCO 7) Consider the ERD below. How many tables would be required to create a query to display the customer first and last name along with orderdate of each order they placed?

One

Two

Three

Four

Question 8. Question : (TCO 7) Consider the ERD below. What tables will be needed to create a report showing the firstname and lastname of customers who have placed an order for any product with keyboard in the description?

customer, product only

customer, order, product only

customer, orderline only

customer, order, orderline, product

Question 9. Question : (TCO 7) Consider the ERD below. What tables will be needed to create a report showing customer first and last name along with order date? The report should show all customers even if they have never placed an order.

SELECT firstname, lastname, orderdate from customer LEFT JOIN order;

SELECT firstname, lastname, orderdate FROM customer RIGHT JOIN order ON customer.customerid = order.customerid;

SELECT firstname, lastname, orderdate FROM customer JOIN order USING (customerID);

SELECT firstname, lastname, orderdate FROM customer LEFT JOIN order ON customer.customerid = order.customerid;

Question 10. Question : (TCO 7) Consider the ERD below. Note that there are some products produced in-house that do not require a vendor, thus their vendorID is NULL. Also note that not all vendors currently supply products. Which query would be used to generate a report showing vendorname and productname, and will include ALL vendors even if they do not currently supply any products?

SELECT vendorname, productname FROM vendor LEFT JOIN product;

SELECT vendorname, productname FROM vendor RIGHT JOIN product;

SELECT vendorname, productname FROM vendor LEFT JOIN product ON vendor.vendorID = product.vendorID;

SELECT vendorname, productname FROM vendor RIGHT JOIN product ON vendor.vendorID = product.vendorID;

Devry CIS 336 Week 6 Quiz Latest 

Devry CIS336 Week 6 Quiz Latest

  1. 1.Question : (TCO 7) Which is NOT an aggregate function?

SUM

COUNT

ROUND

MAX

Question 2. Question : (TCO 7) Which of the following statements is correct?

WHERE operates on groups formed by aggregate functions and HAVING operates on individual rows.

WHERE can only be used along with HAVING.

HAVING can only be used along with WHERE.

WHERE operates on individual rows and HAVING operates on groups formed by aggregate functions.

Question 3. Question : (TCO 7) Given the books table described below, which of the following will display the date of the book with the earliest publication date?

books: bookid(PK), ISBN, title, pubdate, cost, retail, category, pubid(FK)

SELECT MIN(pubdate) FROM books;

SELECT title FROM books WHERE pubdate = MIN(pubdate);

SELECT title FROM books WHERE pubdate < MIN(pubdate);

SELECT pubdate from books WHERE MIN(pubdate) IS NOT NULL;

Question 4. Question : (TCO 7) Given the books table described below, which of the following will display the title and retail price of books that are priced higher than the average retail price of all books?

books: bookid(PK), ISBN, title, pubdate, cost, retail, category, pubid(FK)

SELECT title, retail FROm books WHERE retail IN (SELECT AVG(retail) FROM books);

SELECT title, retail FROM books WHERE retail > (SELECT AVG(retail) FROM books);

SELECT title, retail FROM books WHERE retail > AVG(retail);

SELECT title, AVG(retail) FROM books;

Question 5. Question : (TCO 7) Which of the values listed below can be returned by a subquery referenced as follows?

WHERE vendorid = (subquery)

A single value

A column of one or more rows

A table

A subquery can’t be used in this way.

Question 6. Question : (TCO 7) What type of subquery is executed once for each row processed by the main query?

Correlated

Uncorrelated

Inner

Outer

Question 7. Question : (TCO 7) Given the two tables described below, which of the following queries will display the names of the customers with orders shipped after December 1, 2014?

customer: with the fields customerid(PK), lastname, firstname

order: with the fields orderid(PK), orderdate, shipdate, customerid(FK)

SELECT lastname, firstname FROM customer WHERE customerid = (SELECT customerID FROM order WHERE shipdate > ‘2014-01-12’);

SELECT lastname, firstname FROM customer WHERE customerid = (SELECT customerID FROM order WHERE shipdate < ‘2014-01-12’);

SELECT lastname, firstname FROM customer WHERE customerid = (SELECT customerID FROM order WHERE shipdate > ‘2014-12-01’);

SELECT lastname, firstname FROM customer WHERE customerid = (SELECT customerID FROM order WHERE shipdate < ‘2014-12-01’);

Question 8. Question : (TCO 7) Given the two tables described below, which of the following queries will display each customerid along with the number of orders placed by that customer?

customer: with the fields customerid(PK), lastname, firstname

order: with the fields orderid(PK), orderdate, shipdate, customerid(FK)

SELECT customerid, COUNT(customerid) FROM order;

SELECT customerid, COUNT(ordered) FROM order;

SELECT customerid, COUNT(orderid) FROM order GROUP BY customerid;

SELECT customerid, COUNT(orderid) FROM order GROUP BY orderid;

Question 9. Question : (TCO 7) Given the books table described below, which of the following will display each category along with the average retail price of books in that category?

books: bookid(PK), ISBN, title, pubdate, cost, retail, category, pubid(FK)

SELECT AVG(retail) FROM books;

SELECT category, AVG(retail) FROM books GROUP BY category:

SELECT category, AVG(retail) FROM books HAVING category;

SELECT category, SUM(retail) FROM books GROUP BY category;

Question 10. Question : (TCO 7) The expression below will be TRUE for what values of x?

x > ALL(5, 9)

5 and below

5 to 9

5 and above

9 and above

DeVry Courses helps in providing the best essay writing service. If you need 100% original papers for Devry CIS 336 All Week Quiz Latest, then contact us through call or live chat.

Devry CIS 336 All Week Quiz Latest

Best Devry CIS 336 All Week Quiz Latest
Devry CIS 336 All Week Quiz Latest

 

 

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Add to cart