Professional Documents
Culture Documents
Dbms 1
Dbms 1
Dbms 1
Question 1
Complete
Answer: 3
Question 2
Complete
Select one:
a. Data Management Systems
b. Data Processing
c. Semi-Computerized
d. File Oriented Approach
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=98436&cmid=3799 1/28
12/5/22, 12:05 AM PRE FINAL EXAMINATION: Attempt review
Question 3
Complete
A type of function that accepts character input and can return both character and number values.
Question 4
Complete
This is use to find the numeric position of a named character starting at character position n.
Select one:
a. INSTR
b. SUBSTR
c. Length
d. Trim
Question 5
Complete
Select one:
a. Length
b. SUBSTR
c. Trim
d. INSTR
Question 6
Complete
Select one:
a. >
b. LIKE
c. !
d. <
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=98436&cmid=3799 2/28
12/5/22, 12:05 AM PRE FINAL EXAMINATION: Attempt review
Question 7
Complete
Answer: 5
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=98436&cmid=3799 3/28
12/5/22, 12:05 AM PRE FINAL EXAMINATION: Attempt review
Question 8
Complete
Choose the letter of the correct answer based on the table EMPLOYEES as shown below.
Based on the given SELECT statement below what would be the possible output?
SELECT MOD(SALARY,10) AS “EXCESS SALARY”
FROM EMPLOYEES
Select one:
a. 3
3
3
3
3
b. 0
0
0
0
0
0
c. 3
3
3
3
3
3
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=98436&cmid=3799 4/28
12/5/22, 12:05 AM PRE FINAL EXAMINATION: Attempt review
d. 0
0
0
0
0
Question 9
Complete
Choose the letter of the correct answer based on the table EMPLOYEES as shown below.
What query should be used in order todisplay the firstname and length of firstname rename the column length of firstname as Number of
Character of all employees whose salary is between 4400 and 8300
Select one:
a. SELECT FIRSTNAME, LENGTH(FIRSTNAME) AS NUMBER OF CHARACTER
FROM EMPLOYEES
FROM EMPLOYEES
WHERE SALARY BETWEEN 4400 AND 8300;
FROM EMPLOYEES
WHERE SALARY BETWEEN 8300 AND 4400;
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=98436&cmid=3799 5/28
12/5/22, 12:05 AM PRE FINAL EXAMINATION: Attempt review
Question 10
Complete
Answer: 9
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=98436&cmid=3799 6/28
12/5/22, 12:05 AM PRE FINAL EXAMINATION: Attempt review
Question 11
Complete
Choose the letter of the correct answer based on the table EMPLOYEES as shown below.
Based on the given SELECT statement below what would be the possible output?
SELECT (LASTNAME||FIRSTNAME), JOB_ID
FROM EMPLOYEES
Select one:
a. ABELELLEN SA_REP
TALORJONATHAN SA_REP
GRANTKIMBERLY SA_REP
b. ABELELLEN SA_REP
TALORJONATHAN SA_REP
GRANTKIMBERLY SA_REP
FAYPAT MK_REP
d. ABELELLEN SA_REP
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=98436&cmid=3799 7/28
12/5/22, 12:05 AM PRE FINAL EXAMINATION: Attempt review
Question 12
Complete
Choose the letter of the correct answer based on the table EMPLOYEES as shown below.
What query should be used in order to display the lastname and salary of all employees whose department_id = 60 or job_id like ‘_T%’.
Format the salary to be 15 character long, left padded with ‘$’ as special character. Label the column Salary.
Select one:
a. SELECT LASTNAME, LPAD(SALARY,15,'$') AS SALARY
FROM EMPLOYEES
FROM EMPLOYEES
WHERE DEPARTMENT_ID = 60 OR JOB_ID LIKE '_T';
FROM EMPLOYEES
WHERE DEPARTMENT_ID = 60 OR JOB_ID LIKE '_T';
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=98436&cmid=3799 8/28
12/5/22, 12:05 AM PRE FINAL EXAMINATION: Attempt review
Question 13
Complete
Select one:
a. 60
b. 0
c. 00
d. 600
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=98436&cmid=3799 9/28
12/5/22, 12:05 AM PRE FINAL EXAMINATION: Attempt review
Question 14
Complete
Choose the letter of the correct answer based on the table EMPLOYEES as shown below.
What query should be used in order to display the employees lastname concatenated to salary. Format the salary column to 6 character long
left padded with ‘*’ as special character for all employees whose manager_id is null or salary between 4000 and 6000 Rename the column as
employees and their Salaries
Select one:
a. SELECT (FIRSTNAME||RPAD(SALARY,6,'*')) AS "EMPLOYEES AND THEIR SALARIES"
FROM EMPLOYEES
FROM EMPLOYEES
WHERE MANAGER_ID = NULL
FROM EMPLOYEES
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=98436&cmid=3799 10/28
12/5/22, 12:05 AM PRE FINAL EXAMINATION: Attempt review
Question 15
Complete
Select one:
a. Trim
b. SUBSTR
c. INSTR
d. Length
Question 16
Complete
Choose the letter of the correct answer based on the table EMPLOYEES as shown below.
Table 1.0 EMPLOYEES
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 (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 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%';
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%';
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=98436&cmid=3799 11/28
12/5/22, 12:05 AM PRE FINAL EXAMINATION: Attempt review
Question 17
Complete
Question 18
Complete
Choose the letter of the correct answer based on the table EMPLOYEES as shown below.
Table 1.0 EMPLOYEES
Based on the given SELECT statement below what would be the possible output?
Select one:
a. 563
b. 563.39
c. 500
d. 563.3
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=98436&cmid=3799 12/28
12/5/22, 12:05 AM PRE FINAL EXAMINATION: Attempt review
Question 19
Complete
Select one:
a. INSERT
b. CREATE table
c. MERGER
d. UPDATE
Question 20
Complete
SELECT SUM(QTY) FROM STOCKS WHERE WAREHOUSE IN (1,5) GROUP BY WAREHOUSE HAVING MAX(WAREHOUSE) >=5;
Answer: True
Question 21
Complete
It is a table that is owned by the user SYS and can be accessed by all users.
Select one:
a. Employees
b. Parts
c. Dual
d. Authors
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=98436&cmid=3799 13/28
12/5/22, 12:05 AM PRE FINAL EXAMINATION: Attempt review
Question 22
Complete
Select one:
a. Data Persistence
b. Data Integrity
c. Data Processing
d. Transactions
Question 23
Complete
This is use to accept character input and can return both character and number values.
Select one:
a. Number function
b. Character function
c. Multiple row function
d. Case manipulation function
Question 24
Complete
Select one:
a. EMPLOYEES
b. Phone_no
c. ORDERS
d. STUDENT
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=98436&cmid=3799 14/28
12/5/22, 12:05 AM PRE FINAL EXAMINATION: Attempt review
Question 25
Complete
Answer: 7
Question 26
Complete
Question 27
Complete
A type of function that helps how to group rows in a table into smaller sets and how to specify search criteria for groups of rows.
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=98436&cmid=3799 15/28
12/5/22, 12:05 AM PRE FINAL EXAMINATION: Attempt review
Question 28
Complete
This query returns rows in the first query that are not present in the second query.
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=98436&cmid=3799 16/28
12/5/22, 12:05 AM PRE FINAL EXAMINATION: Attempt review
Question 29
Complete
Choose the letter of the correct answer based on the table EMPLOYEES as shown below.
What query should be used in order todisplay a report that trim the letter ‘A’ from lastname of all employees whose department_id between
60 and 90.
Select one:
a. SELECT TRIM('A' FROM LASTNAME)
FROM EMPLOYEES
b. SELECT TRIM(LASTNAME,’A’)
FROM EMPLOYEES
WHERE DEPARTMENT_ID BETWEEN 60 AND 90;
FROM EMPLOYEES
WHERE DEPARTMENT_ID BETWEEN 60 OR 90;
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=98436&cmid=3799 17/28
12/5/22, 12:05 AM PRE FINAL EXAMINATION: Attempt review
Question 30
Complete
Answer: 8.22
Question 31
Complete
Question 32
Complete
True/False. Security is one of the characteristic of database that includes also the protection of the database from unauthorized access
confidentiality and unauthorized changes.
Answer: True
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=98436&cmid=3799 18/28
12/5/22, 12:05 AM PRE FINAL EXAMINATION: Attempt review
Question 33
Complete
Answer: 4
Question 34
Complete
Question 35
Complete
Select one:
a. Database instance
b. Data independence
c. Data integrity and security
d. Efficient data access
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=98436&cmid=3799 19/28
12/5/22, 12:05 AM PRE FINAL EXAMINATION: Attempt review
Question 36
Complete
True/False. Database Management System is a collection of interrelated data and a set of programs to access those data.
Answer: True
Question 37
Complete
Choose the letter of the correct answer based on the table EMPLOYEES as shown below.
What query should be used in order toget theSUBSTR function that returns the job_id = ‘REP’.
Select one:
a. SELECT JOB_ID FROM EMPLOYEES
WHERE SUBSTR(JOB_ID,4)='%REP%';
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=98436&cmid=3799 20/28
12/5/22, 12:05 AM PRE FINAL EXAMINATION: Attempt review
Question 38
Complete
Choose the letter of the correct answer based on the table EMPLOYEES as shown below.
Based on the given SELECT statement below what would be the possible output?
SELECT TRIM(‘K’ FROM LASTNAME)AS TRIM, LASTNAME, DEPARTMENT_ID, MANAGER_ID
FROM EMPLOYEES
WHERE DEPARTMENT_ID = 50
AND MANAGER_ID = 100;
Select one:
a. ZLOYEY TRINA 80 200
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=98436&cmid=3799 21/28
12/5/22, 12:05 AM PRE FINAL EXAMINATION: Attempt review
Question 39
Complete
Choose the letter of the correct answer based on the table EMPLOYEES as shown below.
Based on the given SELECT statement below what would be the possible output?
SELECT TRUNC(563.396,1)FROM DUAL;
Select one:
a. 563.39
b. 563
c. 500
d. 563.3
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=98436&cmid=3799 22/28
12/5/22, 12:05 AM PRE FINAL EXAMINATION: Attempt review
Question 40
Complete
Select one:
a. CREATE
b. DELETE
c. ALTER
d. None of the choices
Question 41
Complete
Select one:
a. Multiple row
b. Single row
c. Dual table
d. Number function
Question 42
Complete
Select one:
a. Logical condition
b. Concat
c. Specific Column
d. Alias
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=98436&cmid=3799 23/28
12/5/22, 12:05 AM PRE FINAL EXAMINATION: Attempt review
Question 43
Complete
Choose the letter of the correct answer based on the table EMPLOYEES as shown below.
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 FIRSTNAME AS PANGALAN
FROM EMPLOYEES
FROM EMPLOYEES
WHERE JOB_ID IS 'SA_REP';
FROM EMPLOYEES
WHERE JOB_ID = 'SA_REP';
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=98436&cmid=3799 24/28
12/5/22, 12:05 AM PRE FINAL EXAMINATION: Attempt review
Question 44
Complete
Choose the letter of the correct answer based on the table EMPLOYEES as shown below.
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%';
LENGTH(LASTNAME)
FROM EMPLOYEES
LENGTH(LASTNAME)
FROM EMPLOYEES
WHERE LASTNAME LIKE 'M%';
FROM EMPLOYEES
WHERE LASTNAME LIKE '%M';
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=98436&cmid=3799 25/28
12/5/22, 12:05 AM PRE FINAL EXAMINATION: Attempt review
Question 45
Complete
Answer: 1
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=98436&cmid=3799 26/28
12/5/22, 12:05 AM PRE FINAL EXAMINATION: Attempt review
Question 46
Complete
Choose the letter of the correct answer based on the table EMPLOYEES as shown below.
Based on the given SELECT statement below what would be the possible output?
SELECT LOWER(LASTNAME||’with a salary of’||SALARY) as Record, LENGTH(LASTNAME) as Lname
FROM EMPLOYEES
Select one:
a. KING WITH A SALARY OF 24000 4
HUNOLDWITH A SALARY OF 2400 6
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=98436&cmid=3799 27/28
12/5/22, 12:05 AM PRE FINAL EXAMINATION: Attempt review
Question 47
Complete
Answer: True
Question 48
Complete
Question 49
Complete
Question 50
Complete
Select one:
a. Lower Efficiency
b. Data integrity
c. Qualified Personnel
d. Costs
Jump to...
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=98436&cmid=3799 28/28