DBMS - Midterms - 50 PDF
DBMS - Midterms - 50 PDF
DBMS - Midterms - 50 PDF
Question 1 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 = HW;
Clear my choice
c. ||
d. *
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, ONHAND, CLASS
FROM PARTS
WHERE DESCRIPTION LIKE ‘%L%’;
c. SELECT DESCRIPTION, ONHAND, CLASS
FROM PARTS
WHERE ONHAND >=9;
Clear my choice
Question 4 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 * FROM PARTS;
Clear my choice
Question 5 This is use to Selects the columns in a table that are returned by
Not yet a query. Selects a few or as many of the columns as required.
answered
b. Projection
c. Selection
d. Joins
Clear my choice
Question 6 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 DISTINCT WAREHOUSE, CLASS FROM PARTS;
b. SELECT WAREHOUSE, CLASS FROM PARTS;
Question 7 True/False. Character strings and date values are enclosed with
Not yet double quotation marks.
answered
Marked out of
Answer: False
1.00
Question 8 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 that will display the
distinct value for CLASS and WAREHOUSE limit the rows by
getting only the parts under WAREHOUSE 3?
Marked out of
Answer: True
1.00
Question 10 It is a value that is unavailable, unassigned, unknown, or
Not yet inapplicable.
answered
b. NULL
c. Blank
d. Zero
Clear my choice
Question 11 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 DESCRIPTION, ONHAND and WAREHOUSE of all PARTS
where ONHAND is greater than or equal to 21.
Question 12 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 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’.
d. Like
Clear my choice
Question 14 Choose the letter of the correct answer based on table PARTS as
Not yet shown below
answered
Marked out of
1.00
Marked out of
Answer: True
1.00
Question 16 This is use to create expression with number and date values.
Not yet
answered
Select one:
Marked out of
a. Arithmetic expression
1.00
b. MDAS operator
c. Numerical Values
d. Logical Condition
Clear my choice
Question 17 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
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’;
Clear my choice
b. Logical Condition
c. Comparison
d. Add
Clear my choice
Question 19 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
b. SELECT DESCRIPTION, ONHAND, CLASS
FROM PARTS
WHERE CLASS = ‘AP’ OR ONHAND BETWEEEN 8 AND 12
c. SELECT DESCRIPTION, ONHAND, CLASS
FROM PARTS
WHERE CLASS = ‘AP’ OR ONHAND >=8;
Clear my choice
Question 20 Choose the letter of the correct answer based on table PARTS as
Not yet shown below
answered
Marked out of
1.00
b. IN
c. Comparison
d. Like
Clear my choice
Question 22 It is a character, a number, or a date that is included in the
Not yet SELECT statement.
answered
b. Literal
c. Table name
d. String
Clear my choice
b. Inclusion
c. Projection
d. Joins
Clear my choice
Question 24 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.
d. Selection
Clear my choice
Question 26 Which of the following is not true about writing SQL statements?
Not yet
answered
Select one:
Marked out of
a. Keywords cannot be split across lines or abbreviated.
1.00
b. SQL statements are not case sensitive.
Clear my choice
Question 27 Choose the letter of the correct answer based on table PARTS as
Not yet shown below
answered
Marked out of
1.00
b. *
c. AS
d. ||
Clear my choice
Question 29 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. Between
c. IN
d. Comparison
Clear my choice
Question 30 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;
Clear my choice
b. Comparison
c. Subtraction
d. Logical Condition
Clear my choice
Question 33 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 that will display the
DESCRIPTION, WAREHOUSE AND distinct value for CLASS.
Question 34 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 DISTINCT WAREHOUSE FROM PARTS;
Clear my choice
Question 35 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 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’;
b. Between
c. IN
d. Like
Clear my choice
Marked out of
Answer: False
1.00
Question 38 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 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%’;
Question 39 Choose the letter of the correct answer based on table PARTS as
Not yet shown below
answered
Marked out of
1.00
c. Between
d. Like
Clear my choice
Question 41 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 showing all rows and
columns sort the description in ascending order.
Question 42 Choose the letter of the correct answer based on table PARTS as
Not yet shown below
answered
Marked out of
1.00
Marked out of
1.00
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.
Question 44 Supposed that the user uses the ff SELECT statement: what will
Not yet be the possible output.
answered
SELECT GRADE AS STUDENT MARK FROM GRADE_REPORT;
Marked out of
1.00
Select one:
a. Will display the column GRADE rename as STUDENT MARK
Clear my choice
Question 45 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. Delete
c. Where
d. Insert
Clear my choice
Question 46 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’ OR CLASS = ‘HW’;
b. SELECT DESCRIPTION, ONHAND, CLASS
FROM PARTS
WHERE DESCRIPTION LIKE ‘R%’;
Clear my choice
Question 47 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 (PARTNUM|| ‘belong to’||DESCRIPTION) FROM
PARTS WHERE CLASS = SG;
Clear my choice
c. Like
d. Comparison
Clear my choice
Question 49 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 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%’;
Question 50 This is used to restrict the rows that are returned by a query.
Not yet
answered
Select one:
Marked out of
a. Delete
1.00
b. Where
c. Select
d. Insert
Clear my choice
Stay in touch
AMA EDUCATION SYSTEM
https://blended.amauonline.com/helpdesk