Started On Thursday, 9 April 2015, 3:03 PM: Question Text
Started On Thursday, 9 April 2015, 3:03 PM: Question Text
Started On Thursday, 9 April 2015, 3:03 PM: Question Text
State Finished
Marks 24.00/30.00
Question 1
Complete
Mark 0.00 out of 1.00
Flag question
Question text
The IN condition is also known as
Select one:
a. Operator is used to select and display rows based on a range of values
b. The "membership condition
c. Way of renaming a column heading in the output
d. None of the above
Question 2
Complete
Mark 1.00 out of 1.00
Flag question
Question text
NULL is a value
Select one:
a. That is unavailable, unassigned, unknown, or inapplicable
b. Way of renaming a column heading in the output
c. Connect or link together in a series
d. None of the above
Question 3
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Group function include
Select one:
a. Max
b. Min
c. Sum
d. All of the above
Question 4
Complete
Mark 0.00 out of 1.00
Flag question
Question text
Using your existing knowledge of the employees table, would the following two statements produce the same
result?
SELECT COUNT(*)
FROM employees;
SELECT COUNT(commission_pct)
FROM employees;
Select one:
a. The first statement is invalid
b. The second statement is invalid
c. Yes
d. No
Question 5
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Which syntax would be used to retrieve all rows in both the EMPLOYEES and DEPARTMENTS tables, even
when there is no match
Select one:
a. Use any equijoin syntax
b. FULL OUTER JOIN
c. FULL INNER JOIN
d. LEFT OUTER JOIN AND RIGHT OUTER JOIN
Question 6
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Character manipulation functions include
Select one:
a. Upper
b. Lower
c. Initcap
d. Concat
Question 7
Complete
Mark 1.00 out of 1.00
Flag question
Question text
………………………..is a schema object that can speed up the retrieval of rows by using a pointer
Select one:
a. Select
b. Index
c. View
d. Group
Question 8
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Outer join syntax uses the terms
Select one:
a. Left
b. Full
c. Right
d. All of the above
Question 9
Complete
Mark 0.00 out of 1.00
Flag question
Question text
When a join returns the unmatched rows as well as matched rows, it is called
Select one:
a. Left outer join
b. Inner join
c. Outer join
d. Cross join
Question 10
Complete
Mark 0.00 out of 1.00
Flag question
Question text
You cannot modify data through a view if the view contains
Select one:
a. Group functions
b. A GROUP BY clause
c. The DISTINCT keyword
d. All of the above
Question 11
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Group functions cannot be used in the
Select one:
a. Where clause
b. From
c. select
d. None of the above
Question 12
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Single raw operators not include
Select one:
a. >
b. <
c. =
d. In
Question 13
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Case manipulation functions not include
Select one:
a. Concat
b. Lower
c. Upper
d. Initcap
Question 14
Complete
Mark 1.00 out of 1.00
Flag question
Question text
The NVL function converts………………………….. of a fixed data type, either date, character or number
Select one:
a. A null value to a known value
b. Length of a string as a number
c. String of a determined length function
d. None of the above
Question 15
Complete
Mark 1.00 out of 1.00
Flag question
Question text
What would the following SQL statement return?
FROM employees;
Select one:
a. The total amount of salaries in the employees table
b. The number of unique salaries in the employees table
c. The total number of rows in the employees table
d. A listing of all unique salaries in the employees table
Question 16
Complete
Mark 1.00 out of 1.00
Flag question
Question text
LPAD function is
Select one:
a. Finds the numeric position of a named character
b. Shows the length of a string as a number value
c. Pads the left side of a character, resulting in a right-justified value
d. All of the above
Question 17
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Which one NOT a date function
Select one:
a. To_char
b. Add_months
c. month_between
d. Round
Question 18
Complete
Mark 1.00 out of 1.00
Flag question
Question text
The ___________ join is the ANSI-standard syntax used to generate a Cartesian product.
Select one:
a. Cross
b. Full
c. All
d. Natural
Question 19
Complete
Mark 1.00 out of 1.00
Flag question
Question text
A NATURAL JOIN is based on
Select one:
a. Columns with the same datatype and width
b. Tables with the same structure
c. Columns with the same name and datatype
d. Columns with the same name
Question 20
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Which one is not a RESERVED WORD
Select one:
a. Make
b. Insert
c. Any
d. Delete
Question 21
Complete
Mark 1.00 out of 1.00
Flag question
Question text
What function would you use to return the highest date in a month
Select one:
a. END_DAY
b. FINAL_DAY
c. HIGHEST_DAY
d. LAST_DAY
Question 22
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Select the output for the below SQL statement.
SELECT title
FROM d_cds
Select one:
a. carpe Diem
b. Carpe diem
c. Carpe Diem
d. carpe diem
Question 23
Complete
Mark 0.00 out of 1.00
Flag question
Question text
The following statement returns 0 (zero). Is it true?
SELECT 121/NULL
FROM dual;
Select one:
a. False
b. True
Question 24
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Department-id 99 does not exist.
DECLARE
v_deptname departments.department_name%TYPE;
BEGIN
EXCEPTION
END;
Select one:
a. ORA-01403: No Data Found ORA-20201: Department does not exist
b. ORA-01403: No Data Found
c. ORA-20201: Department does not exist
d. None of the above
Question 25
Complete
Mark 1.00 out of 1.00
Flag question
Question text
What will be output of the following program?
DECLARE
BEGIN
DBMS_OUTPUT.PUT_LINE(SIGN(v_my_num));
END
Select one:
a. +12475
b. 0
c. -12475
d. -1
Question 26
Complete
Mark 1.00 out of 1.00
Flag question
Question text
stored PL/SQL procedure can be invoked from which of the following?
C. A calling application
Select one:
a. A and B
b. A only
c. A, B and C
d. A and C
Question 27
Complete
Mark 0.00 out of 1.00
Flag question
Question text
Select valid identifier in PL/SQL statement
Select one:
a. 2secondname
b. Price_%
c. Last-name
d. address_1
Question 28
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Select the correct output of following program.
Select one:
a. 3
b. 100
c. 1
d. 10
Question 29
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Which statement will return the salary (for example, the salary of 6000) from the Employees table in the
following format? $6000.00
Select one:
a. SELECT TO_CHAR(sal, '$99999.00') SALARY
FROM employees
b. SELECT TO_CHAR(salary, '$99999.00') SALARY
FROM employees
c. SELECT TO_CHAR(salary, '$99999') SALARY
FROM employees
d. SELECT TO_CHAR(salary, '99999.00') SALARY
FROM employees
Question 30
Complete
Mark 1.00 out of 1.00
Flag question
Question text
The basic unit in a PL/SQL program is a called
Select one:
a. block
b. section
c. loop
d. unit
Finish review