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

Home My courses CS-350-LEC-1913T Week 7: Logical Condition Quiz 004



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

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;

Question 2 This is used to restrict the rows that are returned by a query.
Not yet
answered
Select one:
Marked out of
a. Select
1.00
b. Where

c. Insert

d. Delete

Clear my choice

Question 3 Given the output below. Which of the following is the correct
Not yet PL/SQL to be used?
answered

Marked out of
1.00

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;

Clear my choice
Question 4 This is used to display rows based on a range of values.
Not yet
answered
Select one:
Marked out of
 a. Like
1.00
b. Between
 c. IN

 d. Comparison

Clear my choice

 Question 5 Given the output below. Which of the following is the correct
Not yet PL/SQL to be used?
 answered

Marked out of
 1.00

Select one:
a. SELECT DESCRIPTION, ONHAND, CLASS
FROM PARTS
WHERE CLASS = ‘AP’ AND ONHAND BETWEEN 8 AND 12;

b. SELECT DESCRIPTION, ONHAND, CLASS


FROM PARTS
WHERE CLASS = ‘AP’ AND DESCRIPTION LIKE ‘%ER’;

c. SELECT DESCRIPTION, ONHAND, CLASS


FROM PARTS
WHERE CLASS = ‘AP’ OR DESCRIPTION LIKE ‘%ER’;

d. SELECT DESCRIPTION, ONHAND, CLASS


FROM PARTS
WHERE CLASS = ‘AP’ OR ONHAND BETWEEN 8 AND 12;

Clear my choice
Question 6 Choose the letter of the correct answer based on table PARTS as
Not yet shown below
answered

Marked out of
 1.00


 
 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;

Question 7 True/False Character values are format sensitive and date


Not yet values are case sensitive-sensitive.
answered

Marked out of
Answer: False
1.00

Question 8 This is used to test for values in a specified set of values.


Not yet
answered
Select one:
Marked out of a. Like
1.00
b. Comparison

c. Between

d. IN

Clear my choice

Question 9 True/False. Character strings and date values are enclosed with
Not yet double quotation marks.
answered

Marked out of
Answer: False
1.00
Question 10 Choose the letter of the correct answer based on table PARTS as
Not yet shown below
answered

Marked out of
 1.00


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;

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

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