Dbms 2
Dbms 2
Home / My courses / UGRD-IT6202-2212S / PRE FINAL EXAMINATION / PRE FINAL LAB EXAMINATION
Question 1
Complete
True/False. Table is known as the collection of data that contains information relevant to an enterprise.
Answer: True
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=98454&cmid=3832&showall=1 1/26
12/5/22, 12:16 AM PRE FINAL LAB EXAMINATION: Attempt review
Question 2
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 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';
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=98454&cmid=3832&showall=1 2/26
12/5/22, 12:16 AM PRE FINAL LAB EXAMINATION: Attempt review
Question 3
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=98454&cmid=3832&showall=1 3/26
12/5/22, 12:16 AM PRE FINAL LAB EXAMINATION: Attempt review
Question 4
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
FROM EMPLOYEES
WHERE DEPARTMENT_ID BETWEEN 60 OR 90;
FROM EMPLOYEES
WHERE DEPARTMENT_ID BETWEEN 90 AND 60;
d. SELECT TRIM(LASTNAME,’A’)
FROM EMPLOYEES
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=98454&cmid=3832&showall=1 4/26
12/5/22, 12:16 AM PRE FINAL LAB EXAMINATION: Attempt review
Question 5
Complete
Select one:
a. EMPLOYEES
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=98454&cmid=3832&showall=1 5/26
12/5/22, 12:16 AM PRE FINAL LAB EXAMINATION: Attempt review
b. Phone_no
c. STUDENT
d. ORDERS
Question 6
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';
WHERE SUBSTR(JOB_ID,4)='%REP%';
Question 7
Complete
True/False. Database Management System is a collection of interrelated data and a set of programs to access those data.
Answer: True
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=98454&cmid=3832&showall=1 6/26
12/5/22, 12:16 AM PRE FINAL LAB EXAMINATION: Attempt review
Question 8
Complete
Question 9
Complete
This is use to find the numeric position of a named character starting at character position n.
Select one:
a. Length
b. SUBSTR
c. Trim
d. INSTR
Question 10
Complete
Question 11
Complete
Select one:
a. >
b. LIKE
c. !
d. <
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=98454&cmid=3832&showall=1 7/26
12/5/22, 12:16 AM PRE FINAL LAB EXAMINATION: Attempt review
Question 12
Complete
Select one:
a. Data integrity and security
b. Data independence
c. Efficient data access
d. Database instance
Question 13
Complete
Question 14
Complete
Select one:
a. Semi-Computerized
b. Data Management Systems
c. File Oriented Approach
d. Data Processing
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=98454&cmid=3832&showall=1 8/26
12/5/22, 12:16 AM PRE FINAL LAB EXAMINATION: Attempt review
Question 15
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 = 'SA_REP';
FROM EMPLOYEES
WHERE JOB_ID = 'SA_REP';
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=98454&cmid=3832&showall=1 9/26
12/5/22, 12:16 AM PRE FINAL LAB EXAMINATION: Attempt review
Question 16
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 8300 AND 4400;
FROM EMPLOYEES
WHERE SALARY BETWEEN 4400 AND 8300;
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=98454&cmid=3832&showall=1 10/26
12/5/22, 12:16 AM PRE FINAL LAB EXAMINATION: Attempt review
Question 17
Complete
Question 18
Complete
True/False. Database is the term generally used to describe what was done by large mainframe computers from the late 1940's until the early
1980's.
Answer: True
Question 19
Complete
Answer: 9
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=98454&cmid=3832&showall=1 11/26
12/5/22, 12:16 AM PRE FINAL LAB EXAMINATION: Attempt review
Question 20
Complete
Answer: 8.22
Question 21
Complete
Suppose that the user wanted to add a new column name as CUST_NAME data type char size 6. What is the correct type of statement to use?
Select one:
a. INSERT
b. ALTER
c. DELETE
d. UPDATE
Question 22
Complete
This query returns rows in the first query that are not present in the second query.
Answer: minus
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=98454&cmid=3832&showall=1 12/26
12/5/22, 12:16 AM PRE FINAL LAB EXAMINATION: Attempt review
Question 23
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=98454&cmid=3832&showall=1 13/26
12/5/22, 12:16 AM PRE FINAL LAB EXAMINATION: Attempt review
Question 24
Complete
Select one:
a. INSTR
b. SUBSTR
c. Length
d. Trim
Question 25
Complete
Select one:
a. Dual table
b. Multiple row
c. Number function
d. Single row
Question 26
Complete
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=98454&cmid=3832&showall=1 14/26
12/5/22, 12:16 AM PRE FINAL LAB EXAMINATION: Attempt review
Question 27
Complete
Answer: 3
Question 28
Complete
Select one:
a. 60
b. 0
c. 600
d. 00
Question 29
Complete
Select one:
a. Character function
b. Multiple row function
c. Number function
d. Case manipulation function
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=98454&cmid=3832&showall=1 15/26
12/5/22, 12:16 AM PRE FINAL LAB EXAMINATION: Attempt review
Question 30
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.
Question 31
Complete
Question 32
Complete
Question 33
Complete
This is use to accept character input and can return both character and number values.
Select one:
a. Multiple row function
b. Character function
c. Number function
d. Case manipulation function
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=98454&cmid=3832&showall=1 16/26
12/5/22, 12:16 AM PRE FINAL LAB EXAMINATION: Attempt review
Question 34
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 salary leftpadded with 15 character long and ‘$’ as special character and another column
salary right padded with 10 character long with ‘@’ as special character used of all employees in 201, 176 and 144.
Select one:
a. SELECT LPAD(SALARY,15,'@'), RPAD(SALARY,10,'$')
FROM EMPLOYEES
FROM EMPLOYEES
WHERE EMPLOYEE_ID = (201,176,144);
FROM EMPLOYEES
WHERE EMPLOYEE_ID IN (201,176,144);
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=98454&cmid=3832&showall=1 17/26
12/5/22, 12:16 AM PRE FINAL LAB EXAMINATION: Attempt review
Question 35
Complete
This is used to converts the first letter of each word to uppercase and the remaining letters to lowercase.
Select one:
a. Sentence case
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=98454&cmid=3832&showall=1 18/26
12/5/22, 12:16 AM PRE FINAL LAB EXAMINATION: Attempt review
b. INITCAT
c. Upper case
d. lowercase
Question 36
Complete
Answer: True
Question 37
Complete
Select one:
a. CREATE
b. DELETE
c. ALTER
d. None of the choices
Question 38
Complete
Select one:
a. INSTR
b. Length
c. Trim
d. SUBSTR
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=98454&cmid=3832&showall=1 19/26
12/5/22, 12:16 AM PRE FINAL LAB EXAMINATION: Attempt review
Question 39
Complete
Answer: 5
Question 40
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: False
Question 41
Complete
Select one:
a. Between AND
b. IS NUL
c. IN
d. <>
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=98454&cmid=3832&showall=1 20/26
12/5/22, 12:16 AM PRE FINAL LAB EXAMINATION: Attempt review
Question 42
Complete
Select one:
a. Data integrity
b. Costs
c. Qualified Personnel
d. Lower Efficiency
Question 43
Complete
Select one:
a. Data Integrity
b. Transactions
c. Data Processing
d. Data Persistence
Question 44
Complete
A type of function that accepts character input and can return both character and number values.
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=98454&cmid=3832&showall=1 21/26
12/5/22, 12:16 AM PRE FINAL LAB EXAMINATION: Attempt review
Question 45
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, RPAD(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=98454&cmid=3832&showall=1 22/26
12/5/22, 12:16 AM PRE FINAL LAB EXAMINATION: Attempt review
Question 46
Complete
Select one:
a. Alias
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=98454&cmid=3832&showall=1 23/26
12/5/22, 12:16 AM PRE FINAL LAB EXAMINATION: Attempt review
b. Logical condition
c. Specific Column
d. Concat
Question 47
Complete
Select one:
a. CREATE table
b. UPDATE
c. MERGER
d. INSERT
Question 48
Complete
It is a table that is owned by the user SYS and can be accessed by all users.
Select one:
a. Authors
b. Employees
c. Dual
d. Parts
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=98454&cmid=3832&showall=1 24/26
12/5/22, 12:16 AM PRE FINAL LAB EXAMINATION: Attempt review
Question 49
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 concatenated to employees original salary plus concatenate again a new column
salary that multiplies the original salary into three. Rename the column as Dream Salaries.Note sort the salary in descending order.
Select one:
a. SELECT (FIRSTNAME||' EARNS '|| SALARY || 'MONTHLY BUT WANTS' || SALARY * 3)
AS "DREAM SALARIES"
FROM EMPLOYEES
ORDER BY SALARY;
FROM EMPLOYEES
AS "DREAM SALARIES"
FROM EMPLOYEES
ORDER BY SALARY;
FROM EMPLOYEES
ORDER BY SALARY DESC;
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=98454&cmid=3832&showall=1 25/26
12/5/22, 12:16 AM PRE FINAL LAB EXAMINATION: Attempt review
Question 50
Complete
Select one:
a. Multiple row
b. Number function
c. Single row
d. Dual table
Jump to...
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=98454&cmid=3832&showall=1 26/26