Quizzuri
Quizzuri
Quizzuri
All non-UID attributes must be dependent upon the entire UID (*)
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
CLASS ID
DURATION
SUBJECT
True (*)
False
True
False (*)
True (*)
False
True
False (*)
True
False (*)
False
Section 7
Arc (*)
UID
Subtype
Supertype
True
False (*)
True (*)
False
an attribute
an arc can be assigned (*)
a composite attribute
True
False (*)
False (*)
False
Birthdate for Baby Which Includes Hour, Minute, and Seconds (*)
course id
True
False (*)
True (*)
False
False (*)
Section 8
True
False (*)
Being enthusiastic
True
False (*)
True (*)
False
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
True (*)
False
3. When you add the concept of time to your data model, you are:
Just changing the model, but this does not change the complexity of
it.
System becomes 100% unstable; allows users to log on and log off at
will.
Yes, because you always need an end date when you have a start date
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. (*)
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
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?
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.
1. 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 (*)
True (*)
False
It does not matter which way the crows feet (many ends) point.
4. 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 (*)
False (*)
2. All data models MUST have some portions of the model modeled as a
generic component. True or False?
True
False (*)
You tend to end up with fewer entities in the generic model than you
had in the specific model. (*)
You will always have more entities in a generic model than in the
corresponding specific model.
False
True
False (*)
True
False (*)
Referential integrity.
Column integrity.
User-defined integrity.
Entity integrity.
Referential integrity.
User-defined integrity.
Entity integrity.
Column integrity.
User-defined integrity.
Entity integrity.
Referential integrity.
Column integrity.
Attribute
Table (*)
Constraint
Column
Column
Primary Key
Unique Identifier
True (*)
False
Columns, Tables
Intersection entity
True
False (*)
True
False (*)
4. One-to-Many Optional to Mandatory becomes a _______________ on the
Master table.
Nothing (There are no new columns created on the Master table) (*)
Primary Key
The Table AS
Supertype Implementation
Subtype Implementation
Cascade Implementation
True (*)
False
4. 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. (*)
ALTER
SELECT (*)
DESCRIBE
INSERT
ALTER
SELECT
DESCRIBE (*)
INSERT
3. What command can be added to a select statement to return a subset
of the data?
WHERE (*)
WHEN
ALL
EVERYONE
INSERT (*)
ADD
ADD_ROW
NEW_ROW
True (*)
False
True
False (*)
1 (*)
1. During which phases of the System Development Life Cycle would you
roll out the system to the users?
Analysis
Transition (*)
Strategy
Keyword
Statement (*)
Declaration
Strategy
/ + - *
* - + /
* / + - (*)
None of the above
4. If you want to see all columns of data in a table, you use what
symbol?
&
* (*)
5. 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. (*)
A perfect zero
A blank space
A table holds all the data necessary about something in the real
world, such as employees, invoices or customers. (*)
False (*)
4. 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 (*)
Desc
Describe
Dis
A and B (*)
FIRST_ONLY
DISTINCT (*)
SINGLES_ONLY
EXCLUSIVE
True
False (*)
Test: Quiz: Limit Rows Selected
1. To restrict the rows returned from an SQL Query, you should use the
_____ clause:
SELECT
WHERE (*)
GROUP BY
CONDITION
LAST_NAME SALARY
Rajas 3500
LAST_NAME SALARY
Davies 3100
(*)
!=
^=
<>
True
False (*)
in (..,..,.. )
like
is null
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
4. Which of the following WHERE clauses would not select the number
10?
The order in which the expressions are evaluated and calculated (*)
Concatenation operator
Logical condition
Comparison condition
3. Which symbol in the WHERE clause means "Not Equal To"? (Choose Two)
=+
<> (*)
><
AND, OR (*)
NOT (*)
LIKES
6. Find the clause that will give the same results as:
SELECT *
FROM d_cds
WHERE cd_number NOT IN(90, 91, 92);
In . Refer to 8
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. (*)
True (*)
False
4. What clause must you place in a SQL statement to have your results
sorted from highest to lowest salary?
None, the database always sorts from highest to lowest on the salary
column.
True (*)
False
True
False (*)
True
False (*)
True (*)
False
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 average salary from the employees table.
PROGRAMMING (*)
Database
DATABASE
3. Which query selects the first names of the DJ On Demand clients who
have a first name beginning with "A"?
SELECT UPPER(first_name)
FROM d_clients
WHERE first_name LIKE %a%
SELECT UPPER(first_name)
FROM d_clients v
WHERE first_name LIKE '%a%'
SELECT UPPER(first_name)
FROM d_clients
WHERE first_name LIKE 'a%'
SELECT UPPER(first_name)
FROM d_clients
WHERE LOWER(first_name) LIKE 'a%'
(*)
TRIM
LPAD
LENGTH (*)
SUBSTR
True
False (*)
Column-Row Functions
Many-to-Many Functions
******SQL
***SQL
SQL*** (*)
SQL******
True
False (*)
2. ROUND and TRUNC functions can be used with which of the following
Datatypes?
MOD (*)
TRUNC
ROUND
BINARY
46
45.9
50 (*)
Review your answers, feedback, and question scores below. An asterisk (*)
indicates a correct
2. Round and Trunc can be used on Date datatypes. True or False? Mark
for Review
True (*)
False
1/17/2004
1/11/1995
7/11/1994 (*)
7/17/1994
7/11/1995
1/11/2000
7/11/2000
5. What function would you use to return the highest date in a month?
Mark for Review
FINAL_DAY
END_DAY
HIGHEST_DAY
LAST_DAY (*)
01-JAN-04 (*)
01-JAN-03
01-JUL-03
01-AUG-03
Section 2 Single Row Functions
Review your answers, feedback, and question scores below. An asterisk (*)
indicates a correct
True
False (*)
3. Sysdate is 12-MAY-2004.
You need to store the following date: 7-DEC-89
Which statement about the date format for this value is true?
Mark for Review
Both the YY and RR date formats will interpret the year as 1989.
Both the YY and RR date formats will interpret the year as 2089.
The RR date format will interpret the year as 1989, and the YY date
format will interpret the year as 2089. (*)
The RR date format will interpret the year as 2089, and the YY date
format will interpret the year as 1989.
No, because the WHERE-clause will not find any matching data.
No. You will have to re-write the statement and perform explicit
datatype conversion.
6. Which statement will return the salary of e.g. 6000 from the
Employees table in the following format $6000.00? Mark for Review
Review your answers, feedback, and question scores below. An asterisk (*)
indicates a correct
True
False (*)
zero
ZERO
Null
NVL
NULLIF (*)
NVL2
NULL
King, -1
Kochhar, 100
Vargas, 124
Zlotkey, .2
(*)
King, -1
Kochhar, 100
Vargas, 124
Zlotkey, 100
King, null
Kochhar, 100
Vargas, 124
Zlotkey, .2
King, -1
Kochhar, -1
Vargas, -1
Zlotkey, .2
King, -1
Kochhar, -1
Vargas, -1
Zlotkey, 100
(*)
Review your answers, feedback, and question scores below. An asterisk (*)
indicates a correct
True (*)
False
CASE (*)
DESCRIBE
WHERE
NULLIF
SELECT last_name,salary,
(CASE WHEN salary < 5000 THEN 'Low'
WHEN salary < 10000 THEN 'Medium'
WHEN salary < 20000 THEN 'Good'
ELSE 'Excellent'
END) qualified_salary
FROM employees;
(*)
SELECT last_name,salary,
(CASE WHEN sal < 5000 THEN 'Low'
WHEN sal < 10000 THEN 'Medium'
WHEN sal < 20000 THEN 'Good'
ELSE 'Excellent'
END) qualified_salary
FROM employees;
SELECT last_name,sal,
(CASE WHEN sal < 5000 THEN 'Low'
WHEN sal < 10000 THEN 'Medium'
WHEN sal < 20000 THEN 'Good'
ELSE 'Excellent'
END) qualified_salary
FROM employees;
SELECT last_name,salary,
(RATING WHEN salary < 5000 THEN 'Low'
WHEN salary < 10000 THEN 'Medium'
WHEN salary < 20000 THEN 'Good'
ELSE 'Excellent'
END) qualified_salary
FROM employees;
4. For the given data from Employees (last_name, manager_id) what is the
result of the following statement:
DATA:
( King, null
Kochhar, 100
De Haan, 100
Hunold, 102
Ernst, 103)
SELECT last_name,
DECODE(manager_id, 100, 'King', 'A N Other') "Works For?"
FROM employees
King, Null
Kochhar, King
De Haan, King
Hunold, A N Other
Ernst, A N Other
King, A N Other
Kochhar, King
De Haan, King
Hunold, A N Other
Ernst, A N Other
(*)
Invalid statement.
King, A N Other
Kochhar, King
De Haan, King
Hunold, Kochhar
Ernst, De Haan
Review your answers, feedback, and question scores below. An asterisk (*)
indicates a correct
1. What is the result of a query that selects from two tables but
includes no join condition? Mark for Review
A Syntax error.
When the same column name appears in more than one table of the
query. (*)
Never.
3. If table A have 10 rows and table B have 5 rows, how many rows will
be returned if you perform a cartesian join on those two tables? Mark
for Review
50 (*)
10
15
4. If table A have 10 rows and table B have 5 rows, how many rows will
be returned if you perform a equi-join on those two tables? Mark for
Review
50
10
Yes, Oracle will resolve which department_id colum comes from which
table.
6. Oracle proprietary JOINS can use the WHERE clause for conditions
other than the join-condition. True or False? Mark for Review
True (*)
False
Review your answers, feedback, and question scores below. An asterisk (*)
indicates a correct
NOT
OR
IN
The number of join conditions required is always one less than the
number of tables being joined
True (*)
False
Review your answers, feedback, and question scores below. An asterisk (*)
indicates a correct
||
(+) (*)
Equijoin
Self join
Nonequi-Join
e.department_id(+) = d.department_id(+)
e.department_id = d.department_id(+)
e.department_id = d.department_id
True or False?
Mark for Review
True
False (*)
Review your answers, feedback, and question scores below. An asterisk (*)
indicates a correct
Non-Transferability
Supertype
Arc
3. Which select statement will return the last name and hire data of an
employee and his/ her manager for employees that started in the company
before their managers? Mark for Review
Non-Transferability
Supertype
Arc
5. Hierarchical queries MUST use the LEVEL pseudo column. True or False?
Mark for Review
True
False (*)
True (*)
False
Review your answers, feedback, and question scores below. An asterisk (*)
indicates a correct
NATURAL
ALL
FULL
CROSS (*)
3. What happens when you create a Cartesian product? Mark for Review
All rows from one table are joined to all rows of another table (*)
All rows that do not match in the WHERE clause are displayed
4. The join column must be included in the select statement when you use
the NATURAL JOIN clause. True or False? Mark for Review
True
False (*)
Review your answers, feedback, and question scores below. An asterisk (*)
indicates a correct
NATURAL ON
ON
WHEN
USING (*)
2. Table aliases MUST be used with columns referenced in the JOIN USING
clause. True or False? Mark for Review
True
False (*)
True (*)
False
True or False?
Mark for Review
True (*)
False
Review your answers, feedback, and question scores below. An asterisk (*)
indicates a correct
2. What is another name for a simple join or an inner join? Mark for
Review
Nonequijoin
Equijoin (*)
Self Join
Outer Join
Inner Join
Equijoin
Optimal Join
4. EMPLOYEES Table:
Name Null? Type
EMPLOYEE_ID NOT NULL NUMBER(6)
FIRST_NAME VARCHAR2(20)
LAST_NAME NOT NULL VARCHAR2(25)
DEPARTMENT_ID NUMBER (4)
DEPARTMENTS Table:
Name Null? Type
DEPARTMENT_ID NOT NULL NUMBER 4
DEPARTMENT_NAME NOT NULL VARCHAR2(30)
MANAGER_ID NUMBER (6)
A query is needed to display each department and its manager name from
the above tables. However, not all departments have a manager but we want
departments returned in all cases. Which of the following SQL: 1999
syntax scripts will accomplish the task?
employees (*)
department
both
Neither. the LEFT OUTER JOIN limits the value to the matching
department id's.
6. If you select rows from two tables (employees and departments) using
an outer join, what will you get? Use the code below to arrive at your
answer:
SELECT e.last_name, e.department_id, d.department_name
FROM employees e
LEFT OUTER JOIN departments d
ON (e.department_id = d.department_id);
Review your answers, feedback, and question scores below. An asterisk (*)
indicates a correct
1. What two group functions can be used with any datatype? Mark for
Review
STDDEV, VARIANCE
SUM, AVG
COUNT, SUM
True
False (*)
4. The following statement will work even though it uses the same column
with different GROUP functions:
SELECT AVG(salary), MAX(salary), MIN(salary), SUM(salary)
FROM employees;
True or False?
True (*)
False
SELECT AVG(commission_pct)
FROM employees
WHERE employee_id IN( 143,144,149,174,176,178)
0.2125 (*)
0.0425
Review your answers, feedback, and question scores below. An asterisk (*)
indicates a correct
The total number of non-null first names in the employees table (*)
SELECT COUNT(commission_pct)
FROM employees;
Yes
No (*)
last_name
last_name, grade
last_name, gender
No, because the SELECT clause cannot contain both individual columns
and group functions
No, because the AVG function cannot be used on the salary column
Yes
4. How would you alter the following query to list only employees
where more than one employee exists with the same last_name:
SELECT last_name, COUNT(employee_id)
FROM EMPLOYEES
GROUP BY last_name;
Yes
No, beause you cannot have a WHERE-clause when you use group
functions.
No, because the statement is missing salary in the GROUP BY clause
(*)
True or False?
True (*)
False
True (*)
False
Select the GROUP BY GROUPING SETS clause from the following list:
9. If you want to include subtotals and grant totals for all columns
mentioned in a GROUP BY clause you should use which of the following
extensions to the GROUP BY clause?
ROLLUP
CUBE (*)
GROUP BY ALL COLUMNS
HAVING
The outer and inner queries can reference more than one table. They
can get data from different tables. (*)
Only one WHERE clause can be used for a SELECT statement, and if
specified, it must be the outer query.
True
False (*)
True
False (*)
An error since you can?t get data from two tables in the same
subquery
Only the employees whose job id matches employee 141 and who work in
location 1500 (*)
True
False (*)
ALL (*)
<>
>
5. If the subquery returns no rows will the outer query return any
values?
No, because you are not allowed to not return any rows from a
subquery
No, because the subquery will be treated like a null value. (*)
Yes, Oracle will find the nearest value and rewrite your statement
implicitly when you run it
True (*)
False
2. Group functions can be used in subqueries even though they may return
many rows. True or False?
True (*)
False
True
False (*)
True (*)
False
A list of Nulls
All rows that were selected by the inner query including the null
value(s)
All rows, minus the null value(s), that were selected by the inner
query
True (*)
False
True (*)
False
True
False (*)
3. Correlated Subqueries must work on the same tables in both the inner
and outer query? (True or False)
True
False (*)
True (*)
False
MINUS, PLUS
UNION will remove duplicates, UNION ALL returns all rows from all
queries (*)
3. MINUS will give you rows from the first query not present in the
second query? (True or False)
True (*)
False
4. INTERSECT will give you rows found in both queries? (True or False)
True (*)
False
4. When inserting a new row the null keyword can be included in the
values list for any null column. True or False?
True (*)
False
5. When inserting rows into a table all columns must be given values.
True or False?
True
False (*)
No, you can only create one row at a time when using the VALUES
clause. (*)
Yes, you can just list as many rows as you want, just remember to
separate the rows with commas.
True (*)
False
8. If the employees table have 7 rows how many rows are inserted into
the copy_emps table with the following statement:
INSERT INTO copy_emps (employee_id, first_name, last_name, salary,
department_id)
SELECT employee_id, first_name, last_name, salary, department_id
FROM employees
9. What is the quickest way to use today's date when you are creating a
new row?
True
False (*)
3. Using your knowledge of the employees table, what would be the result
of the following statement:
DELETE FROM employees;
The statement will fail, because the subqueries are returning data
from different rows
One row will be deleted, as the subquery only returns one row.
All the rows in the EMPLOYEES table with department_ids matching the
department_id returned by the subquery. (*)
6. How many rows will be deleted from the employees table with the
following statement?
DELETE FROM employees
WHERE last_name = 'king';
7. If the subquery returns one row, how many rows will be deleted from
the employees table?
DELETE FROM employees
WHERE department_id =
(SELECT department_id
FROM departments
WHERE department_name LIKE '%Public%');
One row will be deleted, as the subquery only returns one row.
All rows in the employees table which work in the given department
will be deleted. (*)
True
False (*)
True (*)
False
A great idea. When new employee records are entered, they can be
added faster by allowing the 0's (zeroes) to be automatically specified.
A bad idea. The default value must match the DATE datatype of the
column. (*)
4. If a default value was set for a null column, Oracle sets the column
to the default value. However, if no default value was set when the
column was created, Oracle inserts an empty space. True or False?
True
False (*)
5. The MERGE statement can be used to update rows in one table based on
values in another table and if the update fails, then the rows will
automatically be inserted instead. True or False?
True (*)
False
True (*)
False
8. A multi-table insert statement can insert into more than one table?
(True or False)
True (*)
False
impossible; no matter what, there can never be two tables with the
same name, even if they are in separate schemas.
2. DCL, which is the acronym for Data Control Language, allows: Mark
for Review
True (*)
False
4. CREATE TABLE bioclass
(hire_date DATE DEFAULT SYSDATE,
first_name varchar2(15),
last_name varchar2(15));
The above CREATE TABLE statement is acceptable, and will create a Table
named bioclass that contains a hire_date, first_name and last_name
column. True or False?
True (*)
False
5. When creating a new table, which of the following naming rules
apply: (Choose three) Mark for Review
Can have the same name as another object owned by the same user
Which of the following statements best describes the above SQL statement:
creates a table named student with four columns: id, lname, fname,
lunch_num
What will be the result in the hire_date column following this insert
statement:
INSERT INTO employees VALUES (10, 'Natacha', 'Hansen', DEFAULT);
Mark for Review
Statement will fail, as you must list the columns into which you
are inserting.
Statement will work and the hire_date column will have the value of
the date when the statement was run. (*)
A View.
True (*)
False
True (*)
False
True
False (*)
3. The BLOB datatype can hold a maximum of 128 Terabytes of data. True
or False? Mark for Review
True (*)
False
Will not be created because you cannot add a column after the table
is created
DROP (*)
DELETE
TRUNCATE
KILL
Parentheses ( )
Brackets { }
4. A column?s data type can always be changed from NUMBER to VARCHAR2
but not from VARCHAR2 to NUMBER, provided the table is empty. True or
False? Mark for Review
True
False (*)
5. You can use DROP COLUMN to drop all columns in a table, leaving a
table structure with no columns. True or False? Mark for Review
True
False (*)
6. After issuing a SET UNUSED command on a column, another column with
the same name can be added using an ALTER TABLE statement. True or False?
Mark for Review
True (*)
False
7. When should you use the SET UNUSED command? Mark for Review
You should use it if you think the column may be needed again later
You should use it when the system is being heavily used (*)
You should only use this command if you want the column to still be
visible when you DESCRIBE the table
DROP column
9. You can use the ALTER TABLE statement to: Mark for Review
Drop a column
10. Which of the following will correctly change the name of the
LOCATIONS table to NEW_LOCATIONS? Mark for Review
None of the above; you cannot rename a table, you can only CREATE,
ALTER and DROP a table.
11. The data type of a column can never be changed once it has been
created. True or False? Mark for Review
True
False (*)
12. ALTER TABLE table_name RENAME can be used to: Mark for Review
Rename a row.
Rename a column.
13. The FLASHBACK QUERY statement can restore data back to a point in
time before the last COMMIT. True or False? Mark for Review
True
False (*)
14.
The FLASHBACK TABLE to BEFORE DROP can restore only the table structure,
but not its data back to before the table was dropped. True or False?
True
False (*)
True
False (*)
2. A table can have more than one UNIQUE key constraint. True or
False? Mark for Review
True (*)
False
3. A column defined as NOT NULL can have a DEFAULT value of NULL. True
or False? Mark for Review
True
False (*)
True (*)
False
5. A table must have at least one not null constraint and one unique
constraint. True or False? Mark for Review
True
False (*)
UNIQUE KEY
NOT NULL
PRIMARY KEY
Test: Quiz: Creating Views
Review your answers, feedback, and question scores below. An asterisk (*)
indicates a correct
True (*)
False
2. What is one advantage of using views? Mark for Review
True (*)
False
4. Given the following CREATE VIEW statement, what data will be
returned?
True (*)
False
True (*)
False
Double Key
Primary Multi-Key
3. Foreign Key Constraints are also known as: Mark for Review
Multi-Table Constraints
4. The table that contains the Primary Key in a Foreign Key Constraint
is known as: Mark for Review
Child Table
Detail Table
ON DELETE ORPHAN
10
100
True
False (*)
9. The employees table contains a foreign key column department_id
that references the id column in the departments table. Which of the
following constraint modifiers will NOT allow the deletion of id values
in the department table? Mark for Review
ON DELETE CASCADE
Both A and B
10. Which of the following pieces of code will NOT successfully create
a foreign key in the CDS table that references the SONGS table Mark
for Review
11. A composite primary key may only be defined at the table level.
True or False? Mark for Review
True (*)
False
False (*)
USER_TABLES
USER_CONSTRAINTS (*)
CONSTRAINTS
TABLE_CONSTRAINTS
4. You can drop a column in a table with a simple ALTER TABLE DROP
COLUMN statement, even if the column is referenced in a constraint. True
or False? Mark for Review
True
False (*)
Ordered Lists
Internal Pointers
Nothing extra is created when Primary Keys and Unique Keys are
created
True (*)
False
True (*)
False
True (*)
False
6. A view can contain a select statement with a subquery. True or
False? Mark for Review
True (*)
False
INSERT
UPDATE
DELETE
2. Examine the view below and choose the operation that CANNOT be
performed on it.
FORCE
SELECT, DELETE
SELECT, INSERT
True
False (*)
6. There is only one kind view? True or False? Mark for Review
True
False (*)
Test: Quiz: Managing Views
Review your answers, feedback, and question scores below. An asterisk (*)
indicates a correct
True (*)
False
INLINE
ONLINE (*)
SIMPLE
COMPLEX
3. Which of these Keywords is typically used with a Top-N Analysis?
Mark for Review
Rowid
Rownum (*)
Sequence
Number
False (*)
7. When you drop a view, the data it contains is also deleted. True or
False? Mark for Review
True
False (*)
Sectiunea 11
Test: Quiz: In Class Interview
Review your answers, feedback, and question scores below. An asterisk (*)
indicates a correct
True
False (*)
3. Since you are not planning to get a job until after completing
college/university, you don't need to learn interview skills at this
point? True or False? Mark for Review
True
False (*)
4. When applying for a job at a discount department store, wearing
casual clothing would demonstrate an applicant's appropriateness for a
position as a check out clerk. True or False? Mark for Review
True
False (*)
Personality traits.
Job history.
Personality traits.
True (*)
False
2. NEXTVAL and CURRVAL are known as column aliases. True or False?
Mark for Review
True
False (*)
Change.
Update.
Alter. (*)
Create.
Drop. (*)
Delete.
Remove.
Revoke.
Maxval.
Max_value.
Maximumvalue.
Maxvalue. (*)
False (*)
True (*)
False
True (*)
False
True
False (*)
A rollback is executed.
What are the first three values that would be generated by the sequence?
100010011002.
0, 1, 2.
12. In order to be able to generate primary key values that are not
likely to contain gaps, which phrase should be included in the sequence
creation statement? Mark for Review
NOCACHE. (*)
CACHE.
MAXVALUE.
True
False (*)
True
False (*)
NONUNIQUE INDEX.
INDEX.
False (*)
They contain the column value and pointers to the data in the
table, but the data is sorted. (*)
They contain all the rows and columns from the table.
True (*)
False
Sectiunea 12
Test: Quiz: Controlling User Access
Review your answers, feedback, and question scores below. An asterisk (*)
indicates a correct
View
Subquery (*)
Table
Sequence
Create Procedure
Create Session
SELECT (*)
UPDATE
INSERT
DELETE
True (*)
False
True (*)
False
6. The following table shows some of the output from one of the data
dictionary views. Which view is being queried?
CREATE LOGIN
CREATE LOGON
Update (*)
References (*)
Insert
Delete
Role (*)
Object
Data dictionary
Schema
2. Scott King owns a table called employees. He issues the following
statement:
GRANT select ON employees TO PUBLIC;
Allison Plumb has been granted CREATE SESSION by the DBA. She logs into
the database and issues the following statement: GRANT select ON
scott_king.employees TO jennifer_cho;
True (*)
False
Yes
No (*)
An object owner can grant any object privilege on the object to any
other user or role of the database.
False (*)
True (*)
False
8. To take away a privilege from a user you use which command? Mark
for Review
DELETE
REMOVE
REVOKE (*)
ALTER
True
False (*)
10. Database Links are always accessible to all users of a database?
True or False? Mark for Review
True
False (*)
True
False (*)
True (*)
False
REGEXP_LIKE, REGEXP_NEAR
True (*)
False
Sectiunea 14
Test: Quiz: Database Transactions
Review your answers, feedback, and question scores below. An asterisk (*)
indicates a correct answer.
Section 1
True
False (*)
2. As soon as UserA has entered data into a table UserB has privileges
to see, UserB can see that data. True or False? Mark for Review
(1) Points
True
False (*)
3. When you log out of Oracle, your data changes are automatically
rolled back. True or False? Mark for Review
(1) Points
True
False (*)
False
Rollback update;
Nothing happens.
7. COMMIT saves all outstanding data changes? True or False? Mark
for Review
(1) Points
True (*)
False