Escolar Documentos
Profissional Documentos
Cultura Documentos
Formun Üstü
Semester 1 Final Exam covers Sections 11-17 of Database Design.
Section 11
True
False (*)
Correct
Correct
True
False (*)
Correct
Entity integrity
Column integrity
Referential integrity
Correct
True
False (*)
Correct
Too long
Table
Foreign Key
Constraint
Column (*)
Correct
Columns
Tables
True
False (*)
Correct
10 One-to-One relationships are transformed into Check Constraints
. in the tables created at either end of that relationship. True or Mark for Review
False?
(1) Points
True
False (*)
Correct
Section 11 11. When translating an arc relationship to a physical design, you must
turn the arc relationships into foreign keys. Assuming you are implementing an Exclusive
Design, you must also create two Unique Key Constraints to ensure the Arc is implemented
False (*)
Correct
NEW
ADD
INSERT (*)
Correct.
13. What command will return data from the database to you? Mark for Review
(1) Points
FETCH
GET
SELECT (*)
RETURN
Correct.
14. The _______ clause can be added to a SELECT statement to return a subset of
WHICH
WHERE (*)
EVERY
Correct.
False (*)
16. Once you have created a table, it is not possible to alter the definition of it. If you
need to add a new column you must delete the table definition and create a new, correct table.
likely to get it correct that way. True or False? Mark for Review
(1) Points
True
False (*)
18. Systems are always just rolled out as soon as the programming phase is finished.
No further work is required once the development is finished. True or False? Mark for
Review
(1) Points
True
False (*)
Correct.
8 (*)
10
13
Correct.
Correct.
Section 15 21. In which clause of a SELECT statement would you specify the name
Correct.
22. Which SQL statement will return an error? Mark for Review
(1) Points
SEL * FR sky; (*)
Correct.
23. When listing columns in the SELECT list, what should you use to separate the
Semicolons
Dashes
Underscores
Correct.
24. In the default order of precedence, which operator would be evaluated first?
Mark for Review
(1) Points
Subtractions and Addition are at the same level and would be evaluated first based on left
to right order
Multiplications and Division are at the same level and would be evaluated first based on
left to right order (*)
Additions and Multiplications are at the same level and would be evaluated first based on
left to right order
Divisions and Subtractions are at the same level and would be evaluated first based on
left to right order
Correct.
statement to restrict the data returned to only the employees in department 10? Mark for
Review
(1) Points
WHERE (*)
FROM
SELECT
IS
Correct.
26. Which symbol represents the not equal to condition? Mark for Review
(1) Points
#
+'
!= (*)
Correct.
27. Which comparison condition would you use to select rows that match a character
LIKE (*)
ALMOST
SIMILAR
Correct.
|| (*)
Correct.
29. Where in a SQL statement can you not use arithmetic operators? Mark for
Review
(1) Points
SELECT
FROM (*)
WHERE
NONE
Correct.
30. The Concatenation Operator does which of the following? Mark for Review
(1) Points
Links rows of data together inside the database.
Links two or more columns or literals to form a single output column (*)
Separates columns.
Correct.
The heading will display with the first character capitalized and left justified.
Correct.
32. You need write a SELECT statement that should only return rows that contain
34, 46, or 48 for the DEPARTMENT_ID column. Which operator should you use in the
WHERE clause to compare the DEPARTMENT_ID column to this specific list of values?
IN (*)
BETWEEN..AND..
Correct.
33. Which of the following commands will display the last name concatenated with
the job ID from the employees table, separated by a comma and space, and label the resulting
SELECT last_name||', '|| job_id "Employee and Title" FROM employees; (*)
SELECT " last name" ||', '|| "job_id" + "Employee and Title" FROM emp;
Correct.
34. What will be the result of the SELECT statement and what will display?
SELECT last_name, salary, salary + 300
FROM employees;
Modify the salary column by adding 300 and displaying the last name, salary and the new
salary.
Modify the salary column by adding 300 and only display the last name and the new
salary.
Display the last name, salary and the results of adding 300 to the salary of the first
employee row
False
Correct
Maybe it could stop us having to calculate someone's age every time we need it
Sometimes
Correct
"+<"
">="
"<=" (*)
Correct.
38. Which statement about the logical operators is true? Mark for Review
(1) Points
The order of operator precedence is AND, OR, and NOT.
Correct.
39. Which logical operator returns TRUE if either condition is true? Mark for
Review
(1) Points
OR (*)
AND
NOT
BOTH
Correct.
40. The ORDER BY clause always comes last. True or False? Mark for Review
(1) Points
True (*)
False
Correct.
Section 17 41. You need to change the default sort order of the ORDER BY clause so
that the data is displayed in reverse alphabetical order. Which keyword should you include in
the ORDER BY clause? Mark for Review
(1) Points
DESC (*)
ASC
SORT
CHANGE
Correct.
42. Which statement about the default sort order is true? Mark for Review
(1) Points
The lowest numeric values are displayed last.
Correct.
FROM employees
WHERE salary IS NOT NULL
ORDER BY last_name, 3;
Correct.
44. You need to create a report to display all employees that were hired on or after
January 1, 1996. The data should display in this format:
Employee Start Date and Salary
14837 - Smith 10-MAY-92 / 5000
Which SELECT statement could you use?
Correct.
45. Which SELECT statement should you use to limit the display of product
information to those products with a price of less than 50? Mark for Review
(1) Points
SELECT product_id, product_name
FROM products
WHERE price < 50;
(*)
Correct.
50
25 (*)
10
250 (*)
Correct.
47. Evaluate this SELECT statement:
SELECT *
FROM employees
WHERE department_id = 34
OR department_id = 45
OR department_id = 67;
Which operator is the equivalent of the OR conditions used in this SELECT statement?
AND
LIKE
Correct.
Correct.
Correct.
Correct.
Formun Altı