SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
|
Email
Search
Test your basic knowledge |
Oracle SQL
Start Test
Study First
Subjects
:
oracle
,
it-skills
Instructions:
Answer 50 questions in 15 minutes.
If you are not ready to take this test, you can
study here
.
Match each statement with the correct term.
Don't refresh. All questions and answers are randomly picked and ordered every time you load a test.
This is a study tool. The 3 wrong answers for each question are randomly chosen from answers to other questions. So, you might find at times the answers obvious, but you will see it re-enforces your understanding as you take the test each time.
1. You can simplify the writing of SQL statements by writing SQL _________ that generate and execute other SQL statements.
STORAGE
Implicit conversion
Script
SET clause of an UPDATE statement
2. Checks whether any value in the list makes the condition true.
Any
When you want to run the same script repeatedly - but want to be able to change a variable you would use a substitution variable. During the execution of the script the user will be prompted to input the variable to use.
Semicolon or forward slash
A correct statement
3. List the reasons that a subquery could not be unnested.
Logical unit of work
RIGHT LEFT JOIN
Orable's flashback query feature allows you to look at values of a query at a specific time in the past - such as before specfic DML statements occured. This can be usefull in case a suer accidentally performs an unintended but committed DML change.
X
4. It is considered good form to put all SQL commands in...
Correlated
12:00:00 A.M
All caps
Inconsistencies
5. What is the main difference between the NOT EXISTS and the NOT IN operators?
Rounded edges
Structured Query Language
When you want to run the same script repeatedly - but want to be able to change a variable you would use a substitution variable. During the execution of the script the user will be prompted to input the variable to use.
The way NULL values are treated
6. Write a statement that drops the index need_to_pass_i
DROP INDEX need_to_pass_i
B-Tree Index
Recursive
X
7. Oracle uses the outer join operator to indicate that nulls are shown for...
NATURAL JOIN
Non-matching rows
Location of the file
DICTIONARY
8. Which operator is most commonly used?
Command returns the number of records returned by a query.
Any
UNION
X
9. All SQL statements contained within a script must end with a _______________ - even if they are done in SQL Developer.
BETWEEN
All caps
DECODE
Semicolon or forward slash
10. A transaction is a...
+
Retrieve
USER_ - ALL_ - DBA_ - and V$
Logical unit of work
11. What is the Oracle data dictionary called that contains a set of tables and views containing the data about the database?
@ or START
ALL_OBJECTS
COMMIT
4
12. Subqueries can return...
Groups
Multiple rows
VALUES clause of an INSERT statement
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
13. What is the maximum value for a column defined as NUMBER(4 -2)?
DICTIONARY
Subqueries allow you to nest multiple queries into each other. This gives you the ability to use one statement to break down a problem into individual components. Without nesting queries - you would be required to have multiple queries which could be
Black
99.99
14. An outer join includes the result rows returned by an __________ plus extra rows where no matches are found.
KEEP INDEX
Time zone
Load the file into the SQL Statement Box - by opening the location the file is stored and inserting it into the statement Box. Next you can press the F5 key.
Equijoin
15. What is Oracle's most popular index storage structure?
All caps
SELECT DISTINCT menu FROM restaurant
B-Tree Index
DESC dict;
16. In a view you can give a column a different name than it has in the...
LIKE
MINUS
Columns
Parent table
17. What is the first column of a composite index called?
Inconsistencies
SET clause of an UPDATE statement
Leading-edge
Default is 14; when you use the default - you repeat the heading every 14 rows.
18. What is the command you would type into SQL*Plus if you needed to know the definition for each column of a table?
DICT_COLUMNS
Load the file into the SQL Statement Box - by opening the location the file is stored and inserting it into the statement Box. Next you can press the F5 key.
INTERSECT
SET clause of an UPDATE statement
19. List 6 Table-Related Menu Choices
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
RUN SCRIPT
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
When you want to run the same script repeatedly - but want to be able to change a variable you would use a substitution variable. During the execution of the script the user will be prompted to input the variable to use.
20. If a graphical representation of a table's box has __________ it means that the relationship is identifying.
Scalar
X
Script
Rounded edges
21. In SQL Developer field names and table names are shown in the color _______.
RIGHT LEFT JOIN
Any
Black
4000
22. The using clause of the ANSI join syntax always assumes an...
Running a script file
Equijoin and identical column names
12:00:00 A.M
BETWEEN
23. A _________ subquery returns a single column with a single row
Implicit conversion
SELECT DISTINCT menu FROM restaurant
Time zone
Scalar
24. Explain the steps needed to run a script in SQL Developer
Hide data
When you issue a INSERT - UPDATE - DELETE - or MERGE statement - Oracle automatically locks the modified rows. The lock prevents other sessions from making changes to these rows. The lock is released when the session initiating change commits or roll
Load the file into the SQL Statement Box - by opening the location the file is stored and inserting it into the statement Box. Next you can press the F5 key.
To achieve good performance for data retrieval and data manipulation statements Oracle uses indexes. In the same way you would use an index in the back of a book to quickly find information - Oracle uses indexes to speed up data retrieval. If the app
25. The ROWID pseudocolumn is not an ________- but it acts like one.
Actual column
LENGTH
Inconsistencies
SYSDATE
26. You can __________ DISTINCT and a GROUP BY clause in the same SELECT statement.
Combine
Logical unit of work
Recursive
ADD_MONTHS function
27. How many characters can you have using the VARCHAR data type?
4000
ANY
RUN SCRIPT
Fractional seconds
28. Instead of using the Oracle Outer Join Operator or the ANSI syntax - you can achieve the same result with two SQL statements: ____________ and a ____________
All caps
FALSE
Orable's flashback query feature allows you to look at values of a query at a specific time in the past - such as before specfic DML statements occured. This can be usefull in case a suer accidentally performs an unintended but committed DML change.
Equijoin and correlated subquery
29. Explain how the SPOOL command is used and what program it can be used in.
X
The SPOOL command - together with a file name - spools any subsequently issued SQL Plus or SQL command to a file. Just as with other file names - you can add a path to store the file in a directory other than your SQL Plus default directory. SQL Deve
MINUS
The main components of a ROWID are the data object number - the number of the data block - the numbers of rows within the data block - and the data file number.
30. The RTRIM function is useful for eliminating ________ in a string.
GROUP BY
Load the file into the SQL Statement Box - by opening the location the file is stored and inserting it into the statement Box. Next you can press the F5 key.
Crow's foot
Extra spaces
31. Checks whether any value in the list makes the condition true.
TO_CHAR function
Details
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Any
32. Explain what a static data dictionary view is and how it is used
Rounded edges
DD-MON-YY
The indexed column is part of an expression. In this case - consider creating a function-based index instead
The static data dictionary stores details about database objects - such as tables - indexes - and views. Whenever a new object is added or an object is changed - data about the object is recorded in the data dictionary.
33. Which one of the following string functions tells you how many characters are in a string?
VALUES clause of an INSERT statement
ADD
LENGTH
Non-matching rows
34. Write an SQL statement for SQL *Plus in which you want any unique menu items to be displayed from the restaurant table
Groups
SELECT DISTINCT menu FROM restaurant
B-Tree Index
4000
35. ____________ are useful for analyzing and exploring the relationships within your data
X
LENGTH
Equijoin
Self-joins
36. When you run a script in SQL*Plus you must give the...
ON
DICT_COLUMNS
X
Location of the file
37. When writing the syntax for finding information on three or more tables - the parenthesis around the ON clause is...
Any
Optional
Fractional seconds
Load the file into the SQL Statement Box - by opening the location the file is stored and inserting it into the statement Box. Next you can press the F5 key.
38. The DUAL table can be used for...
12:00:00 A.M
Re-create
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Testing functions
39. LINESIZE
SUM
Black
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
Semicolon or forward slash
40. A calculation with a null always yields...
Business problems
DD-MON-YY
Another null
Structured Query Language
41. Users can only see changes made to a database once they have been...
Committed
FALSE
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Month ddth - yyyy
42. When using the following data: NUMBER(10 -4) - the # 4 is called the __________.
Scale
All caps
Retrieve
+
43. Dynamic views begin with a ___________.
ROLLBACK
V$
Has not changed the name
When you want to run the same script repeatedly - but want to be able to change a variable you would use a substitution variable. During the execution of the script the user will be prompted to input the variable to use.
44. The ____________ icon allows you to execute multiple statements and emulates SQL *Plus as much as possible.
Results
RUN SCRIPT
Common column value
LIKE
45. What is the data type you can use if you need an unlimited number of textual characters?
CLOB
V$
Scalar
2000
46. Another name for a data dictionary view is __________________ or _________________.
DICTIONARY
Multiple rows
Month ddth - yyyy
Static or dynamic
47. Information that is returned after you run your statement are found in the __________ tab in SQL Developer.
Results
Scalar
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
ON
48. Which format mask displays December 31st - 1999?
4
Any
@ or START
Month ddth - yyyy
49. Explain why constraints are used when building tables.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
50. _________ and __________ functions are opposites of each other and provide a value in a group of rows.
Combine
Both MIN and MAX
Testing functions
FALSE