SQL Quiz
SQL Quiz
One-to-many
B
One-to-one
C
Many-to-one
D
Many-to-many
None of these
B
Structure
B
Database
C
Entity
Operation
Which of the following are main benefits of the cloud oriented architecture of Oracle Database
12c? (Choose all that apply)
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
Figure A
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
Index
B
Any constraint
C
Foreign key
D
Primary key
Referential integrity
B
Consistent reads
C
Dirty reads
D
None of these
E
Hierarchical
B
Network
C
Relational
D
Flat
IPL Capabilities
B
Pluggable databases
C
Process Threads
D
Temporary Undo
Which of the following is a collection of database objects owned by a user account in the
database?
A
Instance
B
Schema
C
Structure
D
Operation
Which of the following best describes the purposes of a relational database like Oracle? (Choose
all that apply)
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
To collect data
B
To store data
C
To retrieve data
D
To organize data
In which of the following architectures do more than one instance communicate to a single
database?
A
PDB
CDB
C
RAC
D
DBMS
Which of the following RMAN commands will allow you to retrieve repair options that include
both automated and manual repair options?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
VIEW FAILURE
B
REPAIR FAILURE
C
LIST FAILURE
D
ADVISE FAILURE
Question 14 :Which of the following are main benefits of Oracle Database 12c? (Choose all that
apply)
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
Compression and storage tiering make for more efficient use of available
storage.
C
LIST
B
APPEND
C
INPUT
D
DESCRIBE
Question 16 :Which connection method to the Oracle database is known as the easy connect?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
Neither <username>@<connect_string> or <username>@<host>:<port>/<service_name>
B
<username>@<connect_string>
C
<username>@<host>:<port>/<service_name>
D
Both <username>@<connect_string> and <username>@<host>:<port>/<service_name>
Which of the following terms used in relational theory is referred to as a column data type?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
Tuple
B
Attribute value
C
Entity
D
Domain
Which statement about the object type is true?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
All of these.
E
Query Language
B
Metadata Repository
C
Kernel code
D
Which one of the following Oracle SQL*Plus command lines is not valid?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
A
sqlplus <username>
B
sqlplus
C
sqlplus <username>@<connect_string>
D
sqlplus @<connect_string>
SQL Developer is a tool primarily for whom?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
Database administrators
B
End users
C
Application developers
D
All of these
Question 23 :Which normal form states that a non-key field should NOT be partially dependent
on a multi-valued primary key?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
CHANGE
DESCRIBE
C
APPEND
D
INPUT
Which database tools are parts of Oracle Database 12c? Choose two.
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
SQL Developer
D
Database
B
Structure
C
Operation
Entity
Question 4 :Which of the following database models is based on first-order predicate logic?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
Hierarchical
B
Flat
C
Relational
D
Network
Which of the following terms used in relational theory is referred to as a column data type?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
Domain
B
Entity
C
Attribute value
D
Tuple
Question 6 :Which of the following normal forms states that all rows must have atomic values?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
Which of the following contains a set of memory structures and processes that uses the physical
components to manipulate and retrieve data?
A
Structure
B
Database
C
Instance
D
Operation
In which of the following architectures do more than one instance communicate to a single
database?
A
CDB
B
RAC
C
DBMS
PDB
Which of the following is a collection of database objects owned by a user account in the
database?
A
Instance
B
Schema
C
Structure
D
Operation
___________ is a graphical tool used to perform everyday activities in the Oracle database.
A
SQL *Plus
B
RDBMS
C
SQL Developer
SQL Developer
B
SQL *Plus
C
RDBMS
Pluggable databases
B
Process Threads
C
Temporary Undo
D
IPL Capabilities
Which of the following RMAN commands will allow you to retrieve repair options that include
both automated and manual repair options?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
ADVISE FAILURE
B
LIST FAILURE
C
REPAIR FAILURE
D
VIEW FAILURE
Question 15 :
Which of the following SQL commands obtains information about database objects?
A
DESCRIBE
B
APPEND
C
INPUT
CHANGE
DESCRIBE
B
INPUT
C
APPEND
D
LIST
Look at the diagram. What kind of relationship exists between MOVIES and CHARACTERS?
Figure A
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
Relationship
B
Attribute
C
Unique identifier
D
Entity
Any constraint
B
Index
C
Primary key
D
Foreign key
SQL Developer
D
None of these
Which connection method to the Oracle database is known as the easy connect?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
A
<username>@<connect_string>
B
<username>@<host>:<port>/<service_name>
C
Both <username>@<connect_string> and <username>@<host>:<port>/<service_name>
D
Neither <username>@<connect_string> or <username>@<host>:<port>/<service_name>
Which one of the following Oracle SQL*Plus command lines is not valid?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
A
sqlplus <username>
B
sqlplus @<connect_string>
C
sqlplus <username>@<connect_string>
D
sqlplus
Which of the following is a tool available in Oracle Database 12c that you can use to issue SQL
statements? (Choose all that apply)
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
Data Pump
C
SQL Loader
D
SQL*PLUS
E
Listener
Which connection method to the Oracle database is known as the easy connect?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
Neither <username>@<connect_string> or <username>@<host>:<port>/<service_name>
B
<username>@<connect_string>
C
<username>@<host>:<port>/<service_name>
D
Both <username>@<connect_string> and <username>@<host>:<port>/<service_name>
Figure: A
The diagram indicates that there are none, one or more rows in the
employees table that are related to one or many rows in the stores table.
C
The diagram indicates that for each row in the stores table there must be one
or more rows in the employees table.
D
The diagram indicates that for each row in the stores table there must be one,
and only one, row in the employees table.
E
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
-
B
+
C
/
D
Question 2 :Which of the following statements is used to retrieve data from a database?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
SELECT
B
UPDATE
C
DELETE
D
DROP
Question 3 :In which of the following clauses will you include all the table names separated by
commas?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
ALTER
B
WHERE
C
FROM
D
IN
Question 4 :Which of the following is used to retrieve all records from a table?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
%
B
*
C
&
D
@
Which of the following clauses is used to prevent rows from getting duplicated in the result set?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
DISTINCT
B
ORDER BY
C
UPDATE
D
GROUP BY
Question 6 :In which of the following clauses will you define the relationship between the tables
listed in the FROM clause using comparison operators?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
WHERE
B
LIKE
C
FROM
D
SELECT
Which of the following clauses specifies a search condition to restrict the rows returned?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
LIKE
B
BETWEEN
C
WHERE
D
DROP
Question 8 :Which of the following clauses is used to determine the values that will be returned
in the resultset?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
WHERE
B
HAVING
C
ORDER BY
D
GROUP BY
Question 9 :Which of the following will return the names and departments of all employees who
earn a salary of more than 100000?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
Which of the following operators tests whether or not a value exists in a list of values?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
BETWEEN
B
IN
C
LIKE
D
EXISTS
Which of the following operators evaluates to TRUE if the value does not exist in the list or the
result set from a subquery?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
NOT IN
B
IN
C
NOT EXISTS
D
EXISTS
Which of the following operators tests whether or not a value lies within a range of values?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
BETWEEN
B
IN
C
LIKE
D
EXISTS
Question 13 :Which of the following operators tests whether or not a subquery returns rows?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
NOT IN
B
BETWEEN
C
EXISTS
D
IN
Which of the following operators is a comparison operator used for pattern matching?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
EXISTS
B
BETWEEN
C
IN
D
LIKE
Which of the following clauses of the SQL statement sorts the items in the result set prior to
returning them to the user?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
WHERE
B
HAVING
C
GROUP BY
D
ORDER BY
Question 16 :Which of the following SQL statements selects all rows from a table
named Sales and orders the result set by the City column?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
BOTTOM
B
TOP
C
DESC
D
ASC
Which of the following clauses is used to sort the records in your result set?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
ORDER BY
B
GROUP BY
C
HAVING
D
WITH
In which of the following clauses will you list the columns you are interested in from all the
related tables?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
CREATE
B
SELECT
C
FROM
D
WHERE
Which of the following capabilities refers to the restriction of tuples or rows from a table?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
Projection
B
Selection
C
Joining
D
Sorting
Question 21 :Which of the following filters the SELECT statement to choose only the rows that
you want to be returned?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
Sorting
B
Joining
C
Projection
D
Selection
Which of the following terms refers to an element in a select list that is not a column?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
Expression
B
Statement
C
Literal
D
Keyword
Which of the following statements is NOT true about the HAVING clause?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
It was added to SQL because the WHERE clause could not be used with
aggregate functions.
B
EMPLOYEE SALARY
B
EMPLOYEE_SALARY
C
Employee Salary
D
employee_salary
The EMP table is defined as follows:
Figure: A
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
Figure A
What will happen to the result if all the parentheses are removed?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
10
B
ename
C
Employee Name:
D
||
The EMP table has the following data:
Figure A
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
ORDER BY
B
WHERE
C
SELECT
D
FROM
Figure: A
When you issue the following query, which value will be displayed in the first row?
SELECT empno
FROM emp
WHERE deptno = 10
ORDER BY ename DESC;
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
MILLER
B
7934
C
7876
D
Figure A
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
4
B
2
C
Figure A
When you issue the following query, which line has an error?
DescribeListen
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
1
B
5
C
4
D
A
IN
B
LIKE
D
<=
E
>=
Figure A
What will be the value in the first row of the result set when the following query is executed?
1. SELECT hire_date FROM employee ORDER BY salary, emp_name;
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
A
02-APR-91
B
17-DEC-90
C
28-SEP-91
D
The query is invalid, because you cannot have a column in the ORDER BY clause
that is not part of the SELECT clause.
SELECT clause
B
WHERE clause
C
ORDER BY clause
D
None of these
1. DEFINE V_DEPTNO = 20
2. SELECT LAST_NAME, SALARY
3. FROM EMPLOYEES
4. WHERE DEPARTMENT_ID = V_DeptNo;
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
Nothing is wrong. The query lists the employee name and salary of the
employees who belong to department 20.
B
&variable is defined by SQL*Plus, and its value will be available for the
duration of the session.
B
&&variable is defined by SQL*Plus, and its value will be available for the
duration of the session.
C
&n (where n is any integer) variables are defined by SQL*Plus when values
are passed in as arguments to the script, and their values will be available for
the duration of the session.
D
&&variable is defined by SQL*Plus, and its value will be available only for every
reference to that variable in the current SQL.
Look at the data in table PRODUCTS. Which SQL statements will list the items on the BL shelves?
(Show the result with the most available quantity at the top row.)
Figure A
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
Figure: A
Figure A
Which SQL code will retrieve the names of employees whose salary is at the fourth position
from top?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
SELECT ename, sal FROM emp ORDER BY 2 DESC OFFSET 3 ROWS FETCH NEXT 1 ROW WITH TIES;
B
SELECT ename, sal FROM emp ORDER BY 2 OFFSET 3 ROWS FETCH NEXT 1 ROW;
C
SELECT ename, sal FROM emp ORDER BY 2 DESC OFFSET 4 ROWS FETCH NEXT 1 ROW ONLY;
D
SELECT ename, sal FROM emp ORDER BY 2 FETCH FIRST 4 ROWS ONLY;
Question 1 :Which two functions could you use to strip leading characters from a character
string? (Choose two.)
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
RTRIM
B
SUBSTR
C
LTRIM
D
STRIP
E
INSTR
Review the following table description:
Which SQL insert statement will add the following data to the user_page_counts table:
Exhibit
Which of the following answers would reformat the output so that it would look as follows:
TODAY_DATE
--------------------
MON 17 JUL 2017
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
CURRENT_DATE
B
SYSDATE
C
CURRENT_TIMESTAMP
D
LOCALTIMESTAMP
Which of the following is a conditional expression that can be used in a select statement?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
compute
B
case expression
C
if-then expression
D
with clause
E
compute expression
Question 6 :Which of the following numeric functions returns the hyperbolic sine?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
NANVL
B
TANH
C
ATAN2
D
SINH
Which of the following numeric functions returns the next higher integer?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
FLOOR
B
CEIL
C
COSH
D
COS
Which of the following is NOT a conversion function?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
LOWER
B
TO_NUMBER
C
TO_CHAR
D
AVG
SUBSTR('This is a test', 6, 2)
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
'test'
B
'This is a test'
C
'This is'
D
'is'
Which expression will always return the date one year later than the current date?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
CURRENT_DATE + 1
B
NEW_TIME(CURRENT_DATE,1,'YEAR')
C
None of these
D
SYSDATE + 365
E
SYSDATE + TO_YMINTERVAL('01-00')
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
1,3
B
1
C
STR
D
0
E
Question 13 :Which of the following functions is used to convert one data type into another?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
Character
B
Number
C
Grouping
D
Conversion
HAVING clauses
B
CONNECT BY clauses
C
START clauses
D
SELECT lists
E
GROUP BY clauses
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
Oracle
B
NULL
C
Oracle Certified
D
Certified
Which of the following functions returns a specific portion of a character string?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
TRIM
B
LPAD
C
INSTR
D
SUBSTR
Which of the following conversion functions is used to convert a string to a timestamp data type?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
TO_YMINTERVAL
B
UNISTR
C
TO_TIMESTAMP
D
TO_TIMESTAMP_TZ
Consider the following expression:
4
B
15
C
4233
D
12
The data in the PRODUCT table is as described here. The bonus amount is calculated as the lesser
of 5 percent of the base price or 20 percent of the surcharge.
Which of the following functions is used to return the largest integer value that is equal to or less
than a number?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
SUBSTR
B
FLOOR
C
CEIL
D
NULLIF
Which of the following functions is used to convert a string from one character set to another?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
TO_CHAR
B
CAST
C
CONVERT
D
TO_NUMBER
'MM/DD/YYYY'
Question 23 :Which statement would change all occurrences of the string 'IBM' to the
string 'SUN' in the DESCRIPTION column of the VENDOR table?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
SUBSTR
B
RPAD
C
LPAD
D
LTRIM
Which of the following is true about schema objects? (Choose all that apply)
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
Schema objects, unlike user objects, are not assigned names when they are
created.
E
The STATE table has the following constraints (the constraint status is shown in parentheses):
pk_state (enabled)
Primary key
2
B
5
C
3
D
1
E
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
1
B
4
C
3
D
Question 4 :Which of the following database objects is useful for generating unique serial
numbers or key values?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
Synonym
B
Index
C
View
D
Sequence
Which of the following statements will create a primary key for the CITY table with the
columns STATE_CD and CITY_CD? (Choose all that apply)
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
Which of the following data types is used to store a period of time in terms of days, hours,
minutes, and seconds and is used to represent the precise difference between two date time
values?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
LONG
B
NUMBER
Which actions are allowed on a table that is marked as read-only? (Choose all that apply.)
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
Dropping a constraint
B
Dropping an index
C
Dropping a table
D
Truncating a table
E
The Vin column must contain a unique value for each row of the cars table.
B
The status column in each row of the table can contain a null value.
C
The value in the car_number column for a given row must be unique
compared to all of the other rows in the table.
D
The date_built column in the cars table can contain null values.
E
The factory_number column must contain a value in each row of the cars
table.
Constraint
B
Context
C
View
D
Operator
Question 10 :Which object would you create if you wanted to store data in the database?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
View
B
Synonym
C
Sequence
D
Table
E
Transaction
CLOB
B
BFILE
C
NLOB
D
BLOB
What special characters are allowed in a table name? (Choose all that apply.)
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
$
B
&
C
#
D
EMPNO HIREDATE
--------- ----------
1021 12-DEC-00
3400 24-JAN-01
2398 30-JUN-01
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
A
N-02
B
25-JAN-01
C
4-FEB-01
D
None of these
Which of the following modifications to a table's structure are possible by using the ALTER
TABLE statement?
Each correct answer represents a complete solution. Choose all that apply.
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
Which of the alter table commands adds a column that will store variable character data type that
is up to 500 bytes in length?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
varchar2(500 char)
B
varchar2(500)
C
varchar2
D
char(500 bytes)
E
varchar2(500 bytes)
Which of the following will allow you to specify the database you wish to work with within your
DBMS?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
SELECT INTO
B
ALTER
C
CREATE
D
USE
Which of the following is a logical table that is based on one or more tables but does not contain
any data in itself?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
Sequence
B
View
C
Index
D
Constraint
Editions
B
Restore points
C
Views
D
Directories
You have a large job that will load many thousands of rows into your ORDERS table. To speed up
the loading process, you want to temporarily stop enforcing the foreign key
constraint FK_ORDERS. Which of the following statements will satisfy your requirement?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
Which of the following commands are classified as Data Definition Language (DDL)
commands?
CREATE
B
INSERT
C
DROP
D
ALTER
Synonyms
B
Grants
C
View
D
Tables
E
Indexes
Question 23 :Which of the following constraints enforces domain integrity by limiting the
values that are accepted by a column?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
CHECK
B
UNIQUE
C
FOREIGN KEY
D
PRIMARY KEY
Consider the following table named Customer.
You want to keep records of phone numbers of customers. For this, you have to add a column
named PhoneNo in the Customer table. Which of the following commands will allow you to
accomplish the task?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
REVOKE
B
DENY
C
ALTER
D
UPDATE
Views
B
Transactions
C
Tables
D
Sequences
E
Synonyms
The status column in each row of the table does not need to be unique.
B
The Vin column must contain a unique value for each row of the cars table.
C
The factory_number column must contain a value in each row of the cars
table.
D
The date_built column in the cars table cannot contain null values.
E
The value in the car_number column for a given row must be unique
compared to all of the other rows in the table.
You need to duplicate the structure and data of the EMP table in the EMPLOYEES table. Which
of the following statements will allow you to accomplish this task?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
Which of the following is a method of storing data from related tables at a common physical
location?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
PL/SQL program
B
Database link
C
Materialized view
D
Cluster
Constraint checking is done after each SQL statement is executed, but you
can change this behavior by specifying SET CONSTRAINTS ALL DEFERRED.
B
Existing rows in the table are immediately checked for constraint violation.
C
Because the table is not empty, you cannot add a new column.
B
A new column, UPDATE_DT, is added to the STATE, table, and its contents for the
existing rows are NULL.
C
DATE
C
TIMESTAMP
D
Which dictionary view would you query to list only the tables you own?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
ALL_TABLES
B
USR_TABLES
C
USER_TABLES
D
DBA_TABLES
Which of the following cannot be contained in a create table command?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
A
NOT NULL constraint
B
Column name
D
Which of the following types of schema objects can be created and manipulated with SQL?
Each correct answer represents a complete solution. Choose all that apply.
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
Database links
B
Database triggers
C
Tablespaces
D
Synonyms
Database triggers
B
Private synonyms
C
Materialized views
D
Packages
Question 37 :Which type of constraint cannot be created as an inline constraint when creating a
table?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
Check
B
NOT NULL
C
None of these
D
Unique
E
Primary key
Dimensions
B
User-defined types
C
Clusters
D
Indexes
Which of the following SQL statements would allow you to meet these requirements.
Which of the following statements about this table are false? Select all that apply.
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
The date_built column in the cars table cannot contain null values.
B
The factory_number column must contain a value in each row of the cars
table.
C
The Vin column must contain a unique value for each row of the cars table.
D
The status column in each row of the table does not need to be unique.
E
The value in the car_number column for a given row must be unique
compared to all of the other rows in the table.
Exhibit
Which of the following parts of a SQL statements will correctly sort the output of the query by
the name of the department the employee is assigned too?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
A
select *
from employees a, depts b
where a.dept_dept_num=b.dept_num
order by b.dept_desc;
B
select *
from employees a, depts b
where a.dept_dept_num=b.dept_num
order by b.dept_no;
C
select *
from employees a, depts b
where a.dept_dept_num=b.dept_num
order by a;
D
select *
from employees a, depts b
where a.dept_dept_num=b.dept_num
order by a.dept_dept_num;
E
select *
from employees a, depts b
where a.dept_dept_num=b.dept_num
order by 1;
Which of the following functions will change the case of the string but not provide the
functionality of case-insensitivity?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
SUBSTR
B
INITCAP
C
INSTR
D
TRANSLATE
RAWTONHEX
B
RAWTOHEX
C
REFTOHEX
D
HEXTORAW
The ORDER BY clause sorts the result set based on the columns specified.
1. UPDATE EMPLOYEES
2. WHERE EMPLOYEE_ID = 127
3. SET SALARY = SALARY * 1.25,
4. COMMISSION_PCT = 0
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
4
B
There is no error
C
1
D
Exhibit
Which of the following SQL statements will produce a report for all users who had over 100
page_counts between 12/01/2016 and 12/04/2016 as seen in this example output:
USER_ID PAGE_COUNTS
---------- -----------
2 136
4 156
3 230
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
Which of the following functions is used to round a number 'n' up to the next whole number?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
TRUNC
B
CEIL
C
FLOOR
D
MOD
A
ORDER BY
B
WHERE
C
GROUP BY
D
SELECT
Which of the following is the default value of the ORDER BY clause to sort the result set?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
TOP
B
BOTTOM
C
ASC
D
DESC
Which of the following is a small bit of logic, defined by a user, to instruct a particular table
about how it will accept, modify, or reject incoming data?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
View
B
Role
C
Constraint
D
Table
Question 16 :Which of the following functions can be used to extract the last three characters
from a given string?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
TRIM
B
SUBSTR
C
INSTR
D
LPAD
Question 17 :Which of the following capabilities refers to the restriction of tuples or rows from
a table?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
Sorting
B
Joining
C
Selection
D
Projection
Consider the following code segment. How many rows will be in the CARS table after all these
statements are executed?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
28
B
32
C
30
D
29
Which of the following types of operator does an INNER JOIN use in the WHERE clause to
define the join criteria?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
A
*
B
+
C
=
D
Which of the following subqueries returns exactly one column value from one row?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
Correlated subquery
B
Single-row subquery
C
Multiple-column subqueries
D
Scalar subquery
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
LIKE
B
BETWEEN
C
WHERE
D
DROP
Store number 1 and item number 101 will appear first in the output.
B
Which SQL statements do not give an error? (Choose all that apply.)
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
A
The value in the car_number column for a given row must be unique
compared to all of the other rows in the table.
B
The date_built column in the cars table can contain null values.
C
The factory_number column must contain a value in each row of the cars
table.
D
The Vin column must contain a unique value for each row of the cars table.
E
The status column in each row of the table can contain a null value.
Which of the following types of operators returns all rows selected by either query, including all
duplicates?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
UNION
B
MINUS
C
INTERSECT
D
UNION ALL
Which of the following parts of a SQL statement will cause the rowset of a query to be properly
ordered?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
group by
B
where
C
distinct
D
None of these will properly order the resulting row sets from a query.
E
sum
LENGTHS
B
MIN
C
AVG
D
MAX
Figure: A
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
Which of the following queries will display the term_date in the following format:
EMP_NUM TO_CHAR(TERM_DATE,'MM/DD/YYYYHH24:MI:SS-DAY')
---------------------------------------------------------
1 01/25/2016 00:00:00 - MONDAY
2 05/31/2017 22:00:34 - WEDNESDAY
3 04/01/2017 22:00:42 - SATURDAY
4 01/11/2017 22:00:50 - WEDNESDAY
5 10/03/2016 22:00:56 - MONDAY
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
The query will return an error since there is no provision in the date/time
format masks to display the day of the week.
C
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
123
B
1234
C
123.33
E
123.34
What special characters are allowed in a table name? (Choose all that apply.)
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
@
B
#
C
&
D
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
TEACHER_LAST_NAME TEACHER_FIRST_NAME
-----------------------------------------
Smith Carrol
B
The SQL will return an error because there is no group by function associated
with the max(student_count) clause.
C
The SQL will return an error because the subquery against the class table,
which should only return one value, will return more than one value.
D
TEACHER_LAST_NAME TEACHER_FIRST_NAME
-----------------------------------------
Sargon Lee
Question 35 :Which dictionary view would you query to list only the tables you own?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
USR_TABLES
B
USER_TABLES
C
DBA_TABLES
D
ALL_TABLES
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
Figure: A
You want to know how many salespersons have sold Product Number 21765. Which of the
following queries will allow you to accomplish this task?
It operates on one or more groups of rows and gives one result per group.
C
What will be the value in the first row of the result set when the following query is executed?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
A
28-SEP-91
B
17-DEC-90
C
02-APR-91
D
The query is invalid, because you cannot have a column in the ORDER BY clause
that is not part of the SELECT claus
Which of the following is a transaction control statement that ends the current database
transaction and makes all changes made in that transaction permanent?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
SAVEPOINT
B
SET TRANSACTION
C
ROLLBACK
D
COMMIT
Which of the following is the correct syntax of the TRUNCATE command?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
TRUNCATE <table_name>;
D
Which of the following types of joins retrieves all values in a certain table regardless of whether
these values are present in other tables?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
RIGHT JOIN
B
OUTER JOIN
C
INNER JOIN
D
LEFT JOIN
Which of the following commands are classified as Data Manipulation Language commands?
INSERT
B
DROP
C
DELETE
D
UPDATE
Which of the following is true about a truncate statement? (Choose all that are correct)
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
EMPLOYEE_SALARY
B
Employee Salary
C
employee_salary
D
EMPLOYEE SALARY
Tables cannot be created without defining a primary key. The primary key is
missing form the table definition.
C
No maximum length is specified for the first column definition. You must
always specify a length for character and numeric columns.
E
User
B
Directory
C
Context
D
Constraint
Examine the data in the CLASS table below:
teacher_numbe
Class student_count
r
1 1 20
2 2 20
3 3 30
4 4 15
5 1 30
6 2 35
7 3 22
8 4 14
9 1 31
10 1 22
11 2 30
Table: A
Which of the following delete statements will remove all of the classes that have teacher 2 as the
teacher and where there are less than 30 students in the class?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
Select *
From teachers
Order by 4 desc, 2, 3 asc;
Question 57 :Which statement best describes the use of a group function? (Choose all that
apply)
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
When the following query is executed, what will be the value of PROD_ID and ORD_DATE for the
customer Abraham Taylor, Jr.?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform
this task are A to H and alt+1 to alt+9.
NULL, NULL
B
1001, 02-FEB-00
C
NULL, 01-JAN-01
t