CIS336 Week 3 Quiz – Study Guide – Perfect Solution

Lab Price = $10
Please feel free to send us your queries at: support@iqrajavaid.com

P.S: This is just a study guide. The questions may not appear exactly like this.
Payment methods

Add to Cart

Buy Now

View Cart


Problem Statement

Week 3 : Creating the Physical Model – Quiz

Question 1. (TCO 3) The _____ column attribute is used to indicate that a value is required for this field. (Points : 3)
DEFAULT
AUTO_INCREMENT
REQUIRED
NOT NULL

Question 2. (TCO 5) The _____ keyword is used in an ALTER statement to add a new column to an existing table. (Points : 3)
MODIFY
ADD
INSERT
DROP

Question 3. (TCO 3) All of the following values can be stored in a column that’s defined as DECIMAL(6,2) except _____. (Points : 3)
-245.88
0
4532.99
24568.02

Question 4. (TCO 3) The DATETIME data type in MySQL can store _____. (Points : 3)
dates only
times only
dates and times
None of the above

Question 5. (TCO 3) What constraint can only be applied at table level or with an ALTER statement? (Points : 3)
Foreign key
Not null
Single field primary key
Composite primary key

Question 6. (TCO 3) When you build a script for creating tables in a database, _____. (Points : 3)
the order that you create the tables does not matter
you must create child tables before parent tables
you must create parent tables before child tables
the primary key column must be created first in each table

Question 7. (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 INTEGER Primary Key,
deptName VARCHAR(10) NOT NULL,
); (Points : 3)
You must use curly braces, not parentheses.
The comma after NOT NULL must be removed.
The keywords cannot be in upper case.
Nothing is wrong.

Question 8. (TCO 3) What data type is best to store the state abbreviations such as CA? (Points : 3)
INTEGER
VARCHAR
DECIMAL
CHAR

Question 9. (TCO 5) Which statement will add a new column named ORDERDATE to the CUSTOMERS table? (Points : 3)
CREATE COLUMN orderdate, DATE ADD to customers;
ALTER TABLE customers ADD COLUMN orderdate DATE;
ALTER TABLE customers ADD orderdate DATE;
MODIFY TABLE customers ADD orderdate DATE;

Question 10. (TCO 8) When you write an INSERT statement with a column list, which columns can be omitted from the column list? (Points : 3)
AUTO_INCREMENT only
DEFAULT only
NOT NULL only
AUTO_INCREMENT, DEFAULT, and fields that allow NULL

Relevant Material
Instructions
* If you want to purchase multiple products then click on “Buy Now” button which will give you ADD TO CART option.Please note that the payment is done through PayPal.
* You can also use 2CO option if you want to purchase through Credit Cards/Paypal but make sure you put the correct billing information otherwise you wont be able to receive any download link.
* Your paypal has to be pre-loaded in order to complete the purchase or otherwise please discuss it with us at support@iqrajavaid.com.
* As soon as the payment is received, download link of the solution will automatically be sent to the address used in selected payment method.
* Please check your junk mails as the download link email might go there and please be patient for the download link email. Sometimes, due to server congestion, you may receive download link with a delay.
* All the contents are compressed in one zip folder.
* In case if you get stuck at any point during the payment process, please immediately contact us at support@iqrajavaid.com and we will fix it with you.
* We try our best to reach back to you on immediate basis. However, please wait for atleast 8 hours for a response from our side. Afterall, we are humans.
* Comments/Feedbacks are truely welcomed and there might be some incentives for you for the next lab/quiz/assignment.
* In case of any query, please donot hesitate to contact us at support@iqrajavaid.com.
* MOST IMPORTANT Please use the tutorials as a guide and they need NOT to be used for any submission. Just take help from the material.
******************************************** Good Luck ***************************************************
Privacy Policy
We take your privacy seriously and will take all measures to protect your personal information.
Any personal information received will only be used to fill your order. We will not sell or redistribute your information to anyone.
Refund Policy
Incase you face any issues with the tutorial, please free to contact us on support@iqrajavaid.com
We will try our best to resolve the issue and if still persists we can discuss for a refund in case its required.
Lab Price = $10
Please feel free to send us your queries at: support@iqrajavaid.com

Payment methods

Add to Cart

Buy Now

View Cart