11/3/22, 12:29 AM MIDTERM LAB EXAMINATION: Attempt review
Home / My courses / UGRD-IT6202-2212S / MIDTERM EXAMINATION / MIDTERM LAB EXAMINATION
Started on Thursday, 3 November 2022, 12:20 AM
State Finished
Completed on Thursday, 3 November 2022, 12:29 AM
Time taken 8 mins 28 secs
Marks 50.00/50.00
Grade 100.00 out of 100.00
Question 1
Complete
Mark 1.00 out of 1.00
This is use to Selects the columns in a table that are returned by a query. Selects a few or as many of the columns as required.
Select one:
a. Selection
b. Inclusion
c. Joins
d. Projection
Question 2
Complete
Mark 1.00 out of 1.00
Given the output below. Which of the following is the correct PL/SQL to be used?
Select one:
a. SELECT DISTINCT WAREHOUSE, CLASS FROM PARTS;
b. SELECT DISTINCT WAREHOUSE, CLASS FROM PARTS WHERE WAREHOUSE >=1;
c. SELECT WAREHOUSE, CLASS FROM PARTS WHERE CLASS IN (‘AP’,’SG’,’HW’);
d. SELECT WAREHOUSE, CLASS FROM PARTS;
Your answer is correct.
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=49917&cmid=3833&showall=1 1/23
11/3/22, 12:29 AM MIDTERM LAB EXAMINATION: Attempt review
Question 3
Complete
Mark 1.00 out of 1.00
True/False. The != not equal to symbol is also equal to this symbol<>.
Answer: True
Question 4
Complete
Mark 1.00 out of 1.00
This is used to display rows based on a range of values.
Select one:
a. IN
b. Between
c. Comparison
d. Like
Question 5
Complete
Mark 1.00 out of 1.00
Given the output below. Which of the following is the correct PL/SQL to be used?
Select one:
a. SELECT (PARTNUM|| ‘belong to’||DESCRIPTION) FROM PARTS WHERE CLASS = SG;
b. SELECT (PARTNUM|| belong to||DESCRIPTION) FROM PARTS WHERE CLASS = ‘SG’;
c. SELECT (PARTNUM|| ‘belong to’||DESCRIPTION) FROM PARTS WHERE CLASS = ‘SG’;
d. SELECT (PARTNUM|| ‘belong to’||DESCRIPTION) FROM PARTS WHERE PARTNUM IN (‘BV06,’KV29’)
Your answer is correct.
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=49917&cmid=3833&showall=1 2/23
11/3/22, 12:29 AM MIDTERM LAB EXAMINATION: Attempt review
Question 6
Complete
Mark 1.00 out of 1.00
Supposed that the user uses the ff SELECT statement: what will be the possible output.
SELECT GRADE AS STUDENT MARK FROM GRADE_REPORT;
Select one:
a. Error because of missing “” mark.
b. Will display all rows and columns.
c. Will display the column GRADE rename as STUDENT MARK
d. Error because of the keyword AS.
Question 7
Complete
Mark 1.00 out of 1.00
This is use to create expression with number and date values.
Select one:
a. Numerical Values
b. Arithmetic expression
c. MDAS operator
d. Logical Condition
Question 8
Complete
Mark 1.00 out of 1.00
This is used to restrict the rows that are returned by a query.
Select one:
a. Insert
b. Where
c. Select
d. Delete
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=49917&cmid=3833&showall=1 3/23
11/3/22, 12:29 AM MIDTERM LAB EXAMINATION: Attempt review
Question 9
Complete
Mark 1.00 out of 1.00
Choose the letter of the correct answer based on table PARTS as shown below
Which of the following is the correct report listing only the column DESCRIPTION, ONHAND and WAREHOUSE of all PARTS where ONHAND
is greater than or equal to 21.
SELECT DESCRIPTION, ONHAND, WAREHOUSE FROM PARTS WHERE ONHAND >=21;
SELECT DESCRIPTION, ONHAND, WAREHOUSE FROM PARTS WHERE ONHAND <=21;
SELECT DESCRIPTION, ONHAND, WAREHOUSE FROM PARTS WHERE ONHAND =21;
SELECT DESCRIPTION, ONHAND, WAREHOUSE FROM PARTS WHERE ONHAND >21;
Mark 1.00 out of 1.00
Question 10
Complete
Mark 1.00 out of 1.00
Which of the following is not true about writing SQL statements?
Select one:
a. SQL statements are not case sensitive.
b. Clauses are usually placed on separate lines for readability and ease of editing.
c. Keywords cannot be split across lines or abbreviated.
d. Indents should be used to make code more readable.
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=49917&cmid=3833&showall=1 4/23
11/3/22, 12:29 AM MIDTERM LAB EXAMINATION: Attempt review
Question 11
Complete
Mark 1.00 out of 1.00
Given the output below. Which of the following is the correct PL/SQL to be used?
Select one:
a. SELECT DESCRIPTION, ONHAND, CLASS
FROM PARTS
WHERE CLASS = ‘AP’ OR DESCRIPTION LIKE ‘%ER’;
b. SELECT DESCRIPTION, ONHAND, CLASS
FROM PARTS
WHERE CLASS = ‘AP’ AND ONHAND BETWEEN 8 AND 12;
c. SELECT DESCRIPTION, ONHAND, CLASS
FROM PARTS
WHERE CLASS = ‘AP’ AND DESCRIPTION LIKE ‘%ER’;
d. SELECT DESCRIPTION, ONHAND, CLASS
FROM PARTS
WHERE CLASS = ‘AP’ OR ONHAND BETWEEN 8 AND 12;
Your answer is correct.
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=49917&cmid=3833&showall=1 5/23
11/3/22, 12:29 AM MIDTERM LAB EXAMINATION: Attempt review
Question 12
Complete
Mark 1.00 out of 1.00
Given the output below. Which of the following is the correct PL/SQL to be used?
Select one:
a. SELECT DESCRIPTION, ONHAND, CLASS
FROM PARTS
WHERE CLASS IN (‘HW’,’AP’);
b. SELECT DESCRIPTION, ONHAND, CLASS
FROM PARTS
WHERE DESCRIPTION LIKE ‘%R’;
c. SELECT DESCRIPTION, ONHAND, CLASS
FROM PARTS
WHERE DESCRIPTION LIKE ‘R%’;
d. SELECT DESCRIPTION, ONHAND, CLASS
FROM PARTS
WHERE CLASS = ‘AP’ OR CLASS = ‘HW’;
Your answer is correct.
Question 13
Complete
Mark 1.00 out of 1.00
This is used to test for values in a specified set of values.
Select one:
a. Between
b. IN
c. Like
d. Comparison
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=49917&cmid=3833&showall=1 6/23
11/3/22, 12:29 AM MIDTERM LAB EXAMINATION: Attempt review
Question 14
Complete
Mark 1.00 out of 1.00
This character is used to override the default precedence or to clarify the statement.
Select one:
a.
b. AS
c. *
d. ||
Question 15
Complete
Mark 1.00 out of 1.00
Choose the letter of the correct answer based on table PARTS as shown below
Which of the following is the correct report listing the DESCRIPTION and Price (Note that in column PRICE add ADDITIONAL 10000). Get only
the prices with no digit that is equal to ‘5’. Note that you have to concatenate the said column and rename the merge column as “New Price
Lists”. Sort the data in DESC order by Price.
SELECT DESCRIPTION, PRICE + 10000 AS “NEW PRICE LISTS” FROM PARTS ORDER BY PRICE DESC;
SELECT DESCRIPTION, PRICE + 10000 AS NEW PRICE LISTS FROM PARTS ORDER BY PRICE DESC;
SELECT DESCRIPTION, PRICE + 10000 AS “NEW PRICE LISTS” FROM PARTS ORDER BY PRICE;
SELECT DESCRIPTION, PRICE + 10000 + PRICE AS “NEW PRICE LISTS” FROM PARTS ORDER BY PRICE DESC;
Mark 1.00 out of 1.00
Question 16
Complete
Mark 1.00 out of 1.00
True/False. Character strings and date values are enclosed with double quotation marks.
Answer: False
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=49917&cmid=3833&showall=1 7/23
11/3/22, 12:29 AM MIDTERM LAB EXAMINATION: Attempt review
Question 17
Complete
Mark 1.00 out of 1.00
Given the output below. Which of the following is the correct PL/SQL to be used
Select one:
a. SELECT DICTINCT WAREHOUSE, CLASS FROM PARTS WHERE WAREHOUSE >=1;
b. SELECT DISTINCT WAREHOUSE FROM PARTS;
c. SELECT WAREHOUSE, CLASS FROM PARTS;
d. SELECT WAREHOUSE, CLASS FROM PARTS WHERE CLASS IN (‘AP’,’SG’,’HW’);
Your answer is correct.
Question 18
Complete
Mark 1.00 out of 1.00
Given the output below. Which of the following is the correct PL/SQL to be used?
Select one:
a. SELECT DESCRIPTION, ONHAND, CLASS
FROM PARTS
WHERE CLASS = ‘AP’ OR ONHAND BETWEEEN 8 AND 12
b. SELECT DESCRIPTION, ONHAND, CLASS
FROM PARTS
WHERE CLASS = ‘AP’ OR DESCRIPTION LIKE ‘__S%’;
c. SELECT DESCRIPTION, ONHAND, CLASS
FROM PARTS
WHERE CLASS = ‘AP’ OR ONHAND >=8;
d. SELECT DESCRIPTION, ONHAND, CLASS
FROM PARTS
WHERE CLASS = ‘AP’ AND DESCRIPTION LIKE ‘__S%’;
Your answer is correct.
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=49917&cmid=3833&showall=1 8/23
11/3/22, 12:29 AM MIDTERM LAB EXAMINATION: Attempt review
Question 19
Complete
Mark 1.00 out of 1.00
This is used to test for values in a specified set of values.
Select one:
a. Between
b. IN
c. Like
d. Comparison
Question 20
Complete
Mark 1.00 out of 1.00
True/False. This symbol % denotes zero or many characters.
Answer: True
Question 21
Complete
Mark 1.00 out of 1.00
This is used to brings together data that is stored in different tables by specifying the link between them.
Select one:
a. Inclusion
b. Selection
c. Projection
d. Joins
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=49917&cmid=3833&showall=1 9/23
11/3/22, 12:29 AM MIDTERM LAB EXAMINATION: Attempt review
Question 22
Complete
Mark 1.00 out of 1.00
Choose the letter of the correct answer based on table PARTS as shown below
Which of the following is the correct report listing only the column DESCRIPTION, PARTNUM, CLASS and PRICE of all parts where the
description fourth letter starting from the first is equal to ‘D’.
SELECT DESCRIPTION, PARTNUM, CLASS, PRICES FROM PARTS WHERE DESCRIPTION LIKE ‘___D%’;
SELECT DESCRIPTION, PARTNUM, CLASS, PRICES FROM PARTS WHERE DESCRIPTION LIKE ‘%D___’;
SELECT DESCRIPTION, PARTNUM, CLASS, PRICES FROM PARTS WHERE DESCRIPTION LIKE ‘D%’;
SELECT DESCRIPTION, PARTNUM, CLASS, PRICES FROM PARTS WHERE DESCRIPTION LIKE ‘%D’;
Mark 1.00 out of 1.00
Question 23
Complete
Mark 1.00 out of 1.00
Choose the letter of the correct answer based on table PARTS as shown below
Which of the following is the correct report listing only the column DESCRIPTION, WAREHOUSE, CLASS and PRICE of all parts where the
description contains keyword ‘SHE’.
SELECT DESCRIPTION, WAREHOUSE, CLASS, PRICE FROM PARTS WHERE DESCRIPTION LIKE ‘%SHE%’;
SELECT DESCRIPTION, WAREHOUSE, CLASS, PRICE FROM PARTS WHERE DESCRIPTION LIKE ‘SHE%’;
SELECT DESCRIPTION, WAREHOUSE, CLASS, PRICE FROM PARTS WHERE DESCRIPTION LIKE ‘%SHE’;
SELECT DESCRIPTION, WAREHOUSE, CLASS, PRICE FROM PARTS WHERE DESCRIPTION LIKE ‘SHE’;
Mark 1.00 out of 1.00
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=49917&cmid=3833&showall=1 10/23
11/3/22, 12:29 AM MIDTERM LAB EXAMINATION: Attempt review
Question 24
Complete
Mark 1.00 out of 1.00
This is used to selects the rows in a table that are returned by a query. Various criteria can be used to restrict the rows that are retrieved.
Select one:
a. Inclusion
b. Projection
c. Selection
d. Joins
Question 25
Complete
Mark 1.00 out of 1.00
It is a value that is unavailable, unassigned, unknown, or inapplicable.
Select one:
a. Blank
b. NULL
c. Zero
d. Space
Question 26
Complete
Mark 1.00 out of 1.00
Choose the letter of the correct answer based on table PARTS as shown below
Which of the following is the correct report listing only the column PARTNUM, CLASS and ONHAND of all parts where partnum is equal to
AT94, DR93 and KV29. (Note 1 query only and do not use logical condition)
SELECT PARTNUM, CLASS, ONHAND FROM PARTS WHERE PARTNUM IN (‘AT94’,’DR93’,’KV29’);
SELECT PARTNUM, CLASS, ONHAND FROM PARTS WHERE PARTNUM IN (AT94,DR93,KV29);
SELECT PARTNUM, CLASS, ONHAND FROM PARTS WHERE PARTNUM = (‘AT94’,’DR93’,’KV29’);
SELECT PARTNUM, CLASS, ONHAND FROM PARTS WHERE PARTNUM NOT IN (‘AT94’,’DR93’,’KV29’);
Mark 1.00 out of 1.00
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=49917&cmid=3833&showall=1 11/23
11/3/22, 12:29 AM MIDTERM LAB EXAMINATION: Attempt review
Question 27
Complete
Mark 1.00 out of 1.00
Choose the letter of the correct answer based on table PARTS as shown below
Which of the following is the correct report listing only the column DESCRIPTION, ONHAND, CLASS and PRICE of all price where the
description ends with letter ‘N’.
SELECT DESCRIPTION, ONHAND, CLASSS FROM PARTS WHERE DESCRIPTION LIKE ‘%N’;
SELECT DESCRIPTION, ONHAND, CLASSS FROM PARTS WHERE DESCRIPTION LIKE ‘N%’;
SELECT DESCRIPTION, ONHAND, CLASSS FROM PARTS WHERE DESCRIPTION LIKE ‘%N%’;
SELECT DESCRIPTION, ONHAND, CLASSS FROM PARTS WHERE DESCRIPTION NOT LIKE ‘%N’;
Mark 1.00 out of 1.00
Question 28
Complete
Mark 1.00 out of 1.00
Choose the letter of the correct answer based on table PARTS as shown below
Which of the following is the correct report listing only the column CLASS, DESCRIPTION and PRICE of all PARTS where price range is
between 200 to 500. Sort the Price in descending order.
SELECT CLASS, DESCRIPTION, PRICE FROM PARTS WHERE PRICE BETWEEN 200 AND 500;
SELECT CLASS, DESCRIPTION, PRICE FROM PARTS WHERE PRICE BETWEEN 500 AND 500;
SELECT CLASS, DESCRIPTION, PRICE FROM PARTS WHERE PRICE BETWEEN =200 AND 500;
SELECT CLASS, DESCRIPTION, PRICE FROM PARTS WHERE PRICE BETWEEN 200 AND BETWEEN 500;
Mark 1.00 out of 1.00
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=49917&cmid=3833&showall=1 12/23
11/3/22, 12:29 AM MIDTERM LAB EXAMINATION: Attempt review
Question 29
Complete
Mark 1.00 out of 1.00
Choose the letter of the correct answer based on table PARTS as shown below
Which of the following is the correct report that will merge the column DESCRIPTION and PRICE put a literal character string of = “ with a
price of ” in between the two columns. Limit the rows returned by getting only the partnum that starts with letter ‘K’.
SELECT (DESCRIPTION|| ‘WITH A PRICE OF’ || PRICE) FROM PARTS WHERE PARTNUM LIKE ‘K%’;
SELECT (DESCRIPTION|| ‘WITH A PRICE OF’ || PRICE) FROM PARTS WHERE PARTNUM LIKE ‘%K’;
SELECT (DESCRIPTION|| ‘WITH A PRICE OF’ || PRICE) FROM PARTS WHERE PARTNUM LIKE ‘%K%’;
SELECT (DESCRIPTION|| ‘WITH A PRICE OF’ || PRICE) FROM PARTS WHERE PARTNUM LIKE ‘__K%’;
Mark 1.00 out of 1.00
Question 30
Complete
Mark 1.00 out of 1.00
It is a character, a number, or a date that is included in the SELECT statement.
Select one:
a. Alias
b. Literal
c. String
d. Table name
Question 31
Complete
Mark 1.00 out of 1.00
A system used to concatenate one column to another column.
Select one:
a.
b. *
c. AS
d. ||
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=49917&cmid=3833&showall=1 13/23
11/3/22, 12:29 AM MIDTERM LAB EXAMINATION: Attempt review
Question 32
Complete
Mark 1.00 out of 1.00
Given the output below. Which of the following is the correct PL/SQL to be used?
Select one:
a. SELECT DESCRIPTION, PRICE *.5 +(PRICE-100) FROM PARTS WHERE PRICE <10000;
b. SELECT DESCRIPTION, PRICE *.5 +PRICE-100 FROM PARTS WHERE PRICE <10000;
c. SELECT DESCRIPTION, (PRICE *.5 )+PRICE-100 FROM PARTS WHERE PRICE >10000;
d. SELECT DESCRIPTION, PRICE *.5 +PRICE-100 FROM PARTS WHERE PRICE >10000;
Your answer is correct.
Question 33
Complete
Mark 1.00 out of 1.00
This is used to in conditions that compare one expression with another value or expression.
Select one:
a. Comparison
b. Logical Condition
c. Subtraction
d. Add
Question 34
Complete
Mark 1.00 out of 1.00
This is used to display rows based on a range of values.
Select one:
a. Between
b. IN
c. Comparison
d. Like
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=49917&cmid=3833&showall=1 14/23
11/3/22, 12:29 AM MIDTERM LAB EXAMINATION: Attempt review
Question 35
Complete
Mark 1.00 out of 1.00
Choose the letter of the correct answer based on table PARTS as shown below
Which of the following is the correct report that will list only the column DESCRIPTION, PARTNUM, CLASS, and PRICE of all PART whose
CLASS is equal to HW.
SELECT DESCRIPTION, PARTNUM, CLASS, PRICE FROM PARTS WHERE CLASS=’HW’;
SELECT DESCRIPTION, PARTNUM, CLASS, PRICE FROM PARTS WHERE class="HW";
SELECT ‘DESCRIPTION’, ‘PARTNUM’, ‘CLASS’, ‘PRICE’ FROM PARTS WHERE CLASS=’HW’;
SELECT COLUMN DESCRIPTION, PARTNUM, CLASS, PRICE FROM PARTS WHERE CLASS=’HW’;
Mark 1.00 out of 1.00
Question 36
Complete
Mark 1.00 out of 1.00
Choose the letter of the correct answer based on table PARTS as shown below
Which of the following is the correct report that will display the distinct value for CLASS and WAREHOUSE limit the rows by getting only the
parts under WAREHOUSE 3?
SELECT CLASS, WAREHOUSE FROM PARTS WHERE WAREHOUSE = 3;
SELECT CLASS, WAREHOUSE FROM PARTS WHERE WAREHOUSE = ‘3’;
SELECT CLASS, WAREHOUSE FROM PARTS WHERE WAREHOUSE = =3;
SELECT CLASS, WAREHOUSE =3 FROM PARTS WHERE WAREHOUSE = 3;
Mark 1.00 out of 1.00
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=49917&cmid=3833&showall=1 15/23
11/3/22, 12:29 AM MIDTERM LAB EXAMINATION: Attempt review
Question 37
Complete
Mark 1.00 out of 1.00
Choose the letter of the correct answer based on table PARTS as shown below
Which of the following is the correct report listing only the column PARTNUM, DESCRIPTION and PRICE of all PARTS where price is less than
500. Sort the PRICE in ascending order.
SELECT PARTNUN, DESCRIPTION, PRICE FROM PARTS WHERE PRICE < 500;
SELECT PARTNUN, DESCRIPTION, PRICE FROM PARTS WHERE PRICE > 500;
SELECT PARTNUN, DESCRIPTION, PRICE FROM PARTS WHERE PRICE <=500;
SELECT PARTNUN, DESCRIPTION, PRICE FROM PARTS WHERE PRICE >= 500;
Mark 1.00 out of 1.00
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=49917&cmid=3833&showall=1 16/23
11/3/22, 12:29 AM MIDTERM LAB EXAMINATION: Attempt review
Question 38
Complete
Mark 1.00 out of 1.00
Choose the letter of the correct answer based on table PARTS as shown below
Which of the following is the correct report listing the column PARTNO, DESCRIPTION and WAREHOUSE. Get only that description that does
not ends with ‘ER’. Note that you have to merge the said three columns, rename the merge column as “Parts Record”. Below is the sample
output for column.
Parts Record
AT94is the part number ofIRONwhich belong to warehouse3
SELECT (PARTNUM || ‘is the part number of’|| DESCRIPTION || ‘which belongs to’ || WAREHOUSE FROM PARTS WHERE PARTNUM NOT LIKE
‘%ER’;
SELECT (PARTNUM || ‘is the part number of’ ||DESCRIPTION || ‘which belongs to’ || WAREHOUSE) FROM PARTS WHERE PARTNUM NOT LIKE
‘ER%’;
SELECT (PARTNUM ‘is the part number of’ DESCRIPTION‘which belongs to’WAREHOUSE) FROM PARTS WHERE PARTNUM NOT LIKE ‘%ER’;
SELECT (PARTNUM || ‘is the part number of’ ||DESCRIPTION || ‘which belongs to’ || WAREHOUSE) FROM PARTS WHERE PARTNUM LIKE
‘%ER’;
Mark 1.00 out of 1.00
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=49917&cmid=3833&showall=1 17/23
11/3/22, 12:29 AM MIDTERM LAB EXAMINATION: Attempt review
Question 39
Complete
Mark 1.00 out of 1.00
Given the output below. Which of the following is the correct PL/SQL to be used?
Select one:
a. SELECT DESCRIPTION, ONHAND,CLASS
FROM PARTS
WHERE ONHAND >=21;
b. SELECT DESCRIPTION, ONHAND,CLASS
FROM PARTS
WHERE ONHAND IN(50,21,22);
c. SELECT DESCRIPTION, ONHAND,CLASS
FROM PARTS
WHERE CLASS = HW;
d. SELECT DESCRIPTION, ONHAND,CLASS
FROM PARTS
WHERE CLASS = ‘HW’;
Your answer is correct.
Question 40
Complete
Mark 1.00 out of 1.00
This is used to perform wildcard searches of valid search string values.
Select one:
a. Comparison
b. Like
c. Between
d. IN
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=49917&cmid=3833&showall=1 18/23
11/3/22, 12:29 AM MIDTERM LAB EXAMINATION: Attempt review
Question 41
Complete
Mark 1.00 out of 1.00
This is used to perform wildcard searches of valid search string values.
Select one:
a. Comparison
b. Like
c. Between
d. IN
Question 42
Complete
Mark 1.00 out of 1.00
Choose the letter of the correct answer based on table PARTS as shown below
Which of the following is the correct report showing all rows and columns sort the description in ascending order.
SELECT * FROM PARTS ORDER BY DESCRIPTION DESC;
SELECT * FROM PARTS ORDER BY DESCRIPTION;
SELECT * FROM PARTS ORDER BY DESCRIPTION ASC;
SELECT * FROM PARTS ORDER BY DESC;
Mark 1.00 out of 1.00
Question 43
Complete
Mark 1.00 out of 1.00
True/False Character values are format sensitive and date values are case sensitive-sensitive.
Answer: False
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=49917&cmid=3833&showall=1 19/23
11/3/22, 12:29 AM MIDTERM LAB EXAMINATION: Attempt review
Question 44
Complete
Mark 1.00 out of 1.00
This is used to in conditions that compare one expression with another value or expression.
Select one:
a. Comparison
b. Add
c. Subtraction
d. Logical Condition
Question 45
Complete
Mark 1.00 out of 1.00
Choose the letter of the correct answer based on table PARTS as shown below
Which of the following is the correct report that will display the DESCRIPTION, WAREHOUSE AND distinct value for CLASS.
SELECT DESCRIPTION, WAREHOUSE, DISTINCT (CLASS) FROM PARTS;
SELECT DESCRIPTION, WAREHOUSE, CLASS FROM PARTS;
SELECT DISTINCT DESCRIPTION, WAREHOUSE, CLASS FROM PARTS;
SELECT DESCRIPTION, WAREHOUSE, DISTINCT ‘CLASS ‘ FROM PARTS;
Mark 1.00 out of 1.00
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=49917&cmid=3833&showall=1 20/23
11/3/22, 12:29 AM MIDTERM LAB EXAMINATION: Attempt review
Question 46
Complete
Mark 1.00 out of 1.00
Choose the letter of the correct answer based on table PARTS as shown below
Which of the following is the correct report listing only the column DESCRIPTION, CLASS and PRICE of all PARTS where class is not equal to
AP.
SELECT DESCRIPTION, CLASS, PRICE FROM PARTS WHERE CLASS NOT LIKE ‘%AP%’;
SELECT DESCRIPTION, CLASS, PRICE FROM PARTS WHERE CLASS NOT LIKE ‘%AP’;
SELECT DESCRIPTION, CLASS, PRICE FROM PARTS WHERE CLASS != AP;
SELECT DESCRIPTION, CLASS, PRICE FROM PARTS WHERE CLASS <> AP;
Mark 1.00 out of 1.00
Question 47
Complete
Mark 1.00 out of 1.00
True/False. A null value means that the value is unavailable, unassigned, unknown, or inapplicable.
Answer: True
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=49917&cmid=3833&showall=1 21/23
11/3/22, 12:29 AM MIDTERM LAB EXAMINATION: Attempt review
Question 48
Complete
Mark 1.00 out of 1.00
Given the output below. Which of the following is the correct PL/SQL to be used?
Select one:
a. SELECT * FROM TABLE PARTS;
b. SELECT ALL COLUMN FROM PARTS;
c. SELECT ALL FROM PARTS;
d. SELECT * FROM PARTS;
Your answer is correct.
Question 49
Complete
Mark 1.00 out of 1.00
Given the output below. Which of the following is the correct PL/SQL to be used?
Select one:
a. SELECT DESCRIPTION, ONHAND, CLASS
FROM PARTS
WHERE CLASS IN (‘HW’,’SG’);
b. SELECT DESCRIPTION, ONHAND, CLASS
FROM PARTS
WHERE DESCRIPTION LIKE ‘%L’;
c. SELECT DESCRIPTION, ONHAND, CLASS
FROM PARTS
WHERE ONHAND >=9;
d. SELECT DESCRIPTION, ONHAND, CLASS
FROM PARTS
WHERE DESCRIPTION LIKE ‘%L%’;
Your answer is correct.
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=49917&cmid=3833&showall=1 22/23
11/3/22, 12:29 AM MIDTERM LAB EXAMINATION: Attempt review
Question 50
Complete
Mark 1.00 out of 1.00
This is used to restrict the rows that are returned by a query.
Select one:
a. Where
b. Delete
c. Insert
d. Select
◄ MIDTERM EXAMINATION
Jump to...
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=49917&cmid=3833&showall=1 23/23