Вы находитесь на странице: 1из 7

Home My courses CS-350-LEC-1913T Week 10: Short Quiz Quiz 005



Question 1 Choose the letter of the correct answer based on the table
 Not yet EMPLOYEES as shown below.
answered
 Table 1.0 EMPLOYEES
Marked out of
1.00

What query should be used in order to display the firstname


concatenated to salary with additional column salary that
provides a computation of salary * 2. Rename the column as
Increase of all employees whose lastname ends with N.

Select one:
a. SELECT lower(FIRSTNAME || 'SALARY OF' || SALARY || 'IF
MULITPLY BY TWO THEN HE/SHE WLL GOT A NEW SALARY OF' ||
SALARY * 2)AS INCREASE FROM EMPLOYEES WHERE LASTNAME
LIKE 'N%';

b. SELECT (FIRSTNAME || 'SALARY OF' || SALARY || 'IF MULITPLY BY


TWO THEN HE/SHE WLL GOT A NEW SALARY OF' || SALARY * 2)AS
INCREASE FROM EMPLOYEES WHERE LASTNAME LIKE '%N';

c. SELECT (FIRSTNAME || 'SALARY OF' || SALARY || 'IF MULITPLY BY


TWO THEN HE/SHE WLL GOT A NEW SALARY OF' || SALARY * 2)AS
INCREASE FROM EMPLOYEES WHERE LASTNAME LIKE 'N%';

d. SELECT (FIRSTNAME || 'SALARY OF' SALARY 'IF MULITPLY BY TWO


THEN HE/SHE WLL GOT A NEW SALARY OF' || SALARY * 2)AS
INCREASE FROM EMPLOYEES WHERE LASTNAME LIKE 'N%';

Clear my choice
Question 2 Choose the letter of the correct answer based on the table
Not yet EMPLOYEES as shown below.
answered
Table 1.0 EMPLOYEES
Marked out of
 1.00


What query should be used in order todisplay the firstname in
capitalized format rename the column as pangalan whose
job_id is equal to ‘SA_REP’.

Select one:
a. SELECT UPPER(FIRSTNAME) AS PANGALAN
FROM EMPLOYEES
WHERE JOB_ID IS 'SA_REP';

b. SELECT FIRSTNAME AS PANGALAN


FROM EMPLOYEES
WHERE JOB_ID = 'SA_REP';

c. SELECT UPPER(FIRSTNAME) PANGALAN


FROM EMPLOYEES
WHERE JOB_ID = 'SA_REP';

d. SELECT UPPER(FIRSTNAME) AS PANGALAN


FROM EMPLOYEES
WHERE JOB_ID = 'SA_REP';

Clear my choice
Question 3 Choose the letter of the correct answer based on the table
Not yet EMPLOYEES as shown below.
answered
Table 1.0 EMPLOYEES
Marked out of
 1.00

Based on the given SELECT statement below what would be the


possible output?
SELECT INITCAP(LASTNAME||’,’||FIRSTNAME) AS NAME

FROM EMPLOYEES
WHERE JOB_ID LIKE ’%PR%’;

Select one:
a. King’,’Steven
Hunold’,’Alexander
Ernst’,’Bruce
Lorentz’,’Diana

b. King,Steven
Hunold,Alexander
Ernst,Bruce
Lorentz,Diana

c. KING,STEVEN
HUNOLD,ALEXANDER
ERNST,BRUCE
LORENTZ,DIANA

d. king,steven
hunold,alexander
Ernst,bruce
lorentz,Diana

Clear my choice

Question 4 It is use to accept numeric input and return numeric values.


Not yet
answered
Select one:
Marked out of
a. Character function
1.00
b. Number function

c. Multiple row function

d. Case manipulation function

Clear my choice
Question 5 Choose the letter of the correct answer based on the table
Not yet EMPLOYEES as shown below.
answered
Table 1.0 EMPLOYEES
Marked out of
 1.00

Based on the given SELECT statement below what would be the


possible output?
SELECT TRUNC(563.396,1)FROM DUAL;

Select one:
a. 563

b. 500

c. 563.3

d. 563.39

Clear my choice
Question 6 Choose the letter of the correct answer based on the table
Not yet EMPLOYEES as shown below.
answered
Table 1.0 EMPLOYEES
Marked out of
 1.00

Based on the given SELECT statement below what would be the


possible output?
SELECT FIRSTNAME, SALARY, LPAD(SALARY * 0.10 + SALARY – 100, 8,
‘$’) AS BONUS

FROM EMPLOYEES
WHERE DEPARTMENT_ID NOT IN (10, 110, 50

AND SALARY=17000;

Select one:
a. NENA       17000              $$$18600
LEX          17000              $$$18600

b. NENA       17000              $$$17000


LEX          17000              $$$17000

c. NENA       17000              17000$$$


LEX          17000              17000$$$

d. NENA       17000              18600$$$


LEX          17000              18600$$$

Clear my choice
Question 7 Choose the letter of the correct answer based on the table
Not yet EMPLOYEES as shown below.
answered
Table 1.0 EMPLOYEES
Marked out of
 1.00


What query should be used in order to display the employees
lastname concatenated with firstname and with a ‘, (comma)’
in between. A rename on the concatenated column as
Complete Name. Note all values in Complete Name column
should be in lowercase plus display the length of employees
lastname for all employees whose lastname starts with letter M
sort the lastname in its default order.

Select one:
a. SELECT LOWER(LASTNAME||','||FIRSTNAME) AS "COMPLETE
NAME",
LENGTH(LASTNAME)
FROM EMPLOYEES
WHERE LASTNAME LIKE 'M%';

b. SELECT LOWER(LASTNAME||','||FIRSTNAME) AS COMPLETE NAME,


LENGTH(LASTNAME)

FROM EMPLOYEES
WHERE LASTNAME LIKE '%M';

c. SELECT LOWER(LASTNAME||','||FIRSTNAME) AS COMPLETE NAME,


LENGTH(LASTNAME)
FROM EMPLOYEES

WHERE LASTNAME LIKE 'M%';

d. SELECT LOWER(LASTNAME,FIRSTNAME) AS COMPLETE NAME,


LENGTH(LASTNAME)

FROM EMPLOYEES
WHERE LASTNAME LIKE 'M%';

Clear my choice
Question 8 This is use to accept character input and can return both
Not yet character and number values.
answered

Marked out of Select one:


 1.00
a. Case manipulation function

 b. Number function

c. Multiple row function



d. Character function

 Clear my choice


Question 9 Trims leading or trailing characters (or both) from a character
 Not yet string.
answered

 Marked out of Select one:


1.00
a. SUBSTR

b. INSTR

c. Trim

d. Length

Clear my choice

Question 10 This is use to find the numeric position of a named character


Not yet starting at character position n.
answered

Marked out of Select one:


1.00
a. INSTR

b. Length

c. Trim

d. SUBSTR

Clear my choice

Stay in touch
AMA EDUCATION SYSTEM
 https://blended.amauonline.com/helpdesk

Вам также может понравиться