Sei sulla pagina 1di 26

Started on Sunday, 8 April 2018, 11:47 AM

State Finished
Completed on Sunday, 8 April 2018, 11:52 AM
Time taken 4 mins 59 secs

Question 1

Correct
Mark 1.00 out of 1.00

Flag question

Question text

A nested query is a query within a query.


Select one:
A. True
Correct.
B. False

Feedback

The correct answer is: True

Question 2

Correct
Mark 1.00 out of 1.00

Flag question

Question text

The SQL commands may be issued on a single line, but command sequences are best structured
when the SQL command's components are shown on separate and indented lines.
Select one:
A. True
Correct.
B. False

Feedback

The correct answer is: True

Question 3

Incorrect
Mark 0.00 out of 1.00

Flag question

Question text

Using the CREATE INDEX command, SQL indexes can be created on the basis of any selected
attribute.
Select one:
A. True
B. False
Incorrect.

Feedback

The correct answer is: True

Question 4

Correct
Mark 1.00 out of 1.00

Flag question

Question text

You can draw domain values from other tables by including the SELECT statement in the
CHECK clause.
Select one:
A. True
Correct.
B. False

Feedback

The correct answer is: True

Question 5

Correct
Mark 1.00 out of 1.00

Flag question

Question text

Use the SELECT command to list all rows for all columns in the specified table.
Select one:
A. True
Correct.
B. False

Feedback

The correct answer is: True

Question 6

Incorrect
Mark 0.00 out of 1.00

Flag question

Question text
A database language must enable the user to create database and table structures to perform basic
data management chores.
Select one:
A. True
B. False
Incorrect.

Feedback

The correct answer is: True

Question 7

Incorrect
Mark 0.00 out of 1.00

Flag question

Question text

The basic SQL aggregate function that gives the arithmetic mean for the specific column is ____.
Select one:
A. COUNT
B. AVG
C. MAX
D. SUM
Incorrect.

Feedback

The correct answer is: AVG

Question 8

Incorrect
Mark 0.00 out of 1.00
Flag question

Question text

Which command is used to select partial table contents?


Select one:
A. SELECT <column(s)>
FROM <Table name>
WHERE <Item>;
Incorrect.
B. LIST <column(s)>
FROM <Table name>
WHERE <Conditions>;
C. SELECT <column(s)>
FROM <Table name>
WHERE <Conditions>;
D. LIST<column(s)>
FROM <Table name>
WHERE <Item>;

Feedback

The correct answer is: SELECT <column(s)>


FROM <Table name>
WHERE <Conditions>;

Question 9

Incorrect
Mark 0.00 out of 1.00

Flag question

Question text

The ____ keyword is used to assign a column alias.


Select one:
A. LET
B. SET
C. AS
D. ALIAS
Incorrect.

Feedback

The correct answer is: AS

Question 10

Incorrect
Mark 0.00 out of 1.00

Flag question

Question text

ANSI-standard SQL allows the use of special operators in conjunction with the WHERE
clause. A special operator used to check for similar character strings is ____.
Select one:
A. BETWEEN
Incorrect.
B. IS NULL
C. LIKE
D. IN

Feedback

The correct answer is: LIKE

Question 11

Incorrect
Mark 0.00 out of 1.00
Flag question

Question text

The ANSI standardization effort has led to a de facto query standard for relational databases.
Select one:
A. True
B. False
Incorrect.

Feedback

The correct answer is: True

Question 12

Correct
Mark 1.00 out of 1.00

Flag question

Question text

The basic SQL aggregate function that gives the number of rows containing not null values for
the given column is ____.
Select one:
A. COUNT
Correct.
B. MIN
C. MAX
D. SUM

Feedback

The correct answer is: COUNT


Question 13

Incorrect
Mark 0.00 out of 1.00

Flag question

Question text

A table can be deleted from the database by using the ____ command.
Select one:
A. DROP
B. DELETE
Incorrect.
C. MODIFY
D. ERASE

Feedback

The correct answer is: DROP

Question 14

Incorrect
Mark 0.00 out of 1.00

Flag question

Question text

To list the contents of a table, you must use the DISPLAY command.
Select one:
A. True
Incorrect.
B. False

Feedback
The correct answer is: False

Question 15

Incorrect
Mark 0.00 out of 1.00

Flag question

Question text

What is the command to join the P_DESCRIPT and P_PRICE fields from the PRODUCT table
and the V_NAME, V_AREACODE, V_PHONE and V_CONTACT fields from the VENDOR
table, where the value of V_CODE match and the output is ordered by the Price?
Select one:
A. SELECT P_DESCRIPT, P_PRICE, V_NAME, V_CONTACT, V_AREACODE,
V_PHONE
FROM PRODUCT, VENDOR
WHERE PRODUCT.V_CODE <> VENDOR.V_CODE;
ORDER BY P_PRICE;
B. SELECT P_DESCRIPT, P_PRICE, V_NAME, V_CONTACT, V_AREACODE,
V_PHONE
FROM PRODUCT, VENDOR
WHERE PRODUCT.V_CODE => VENDOR.V_CODE;
ORDER BY P_PRICE;
C. SELECT P_DESCRIPT, P_PRICE, V_NAME, V_CONTACT, V_AREACODE,
V_PHONE
FROM PRODUCT, VENDOR
WHERE PRODUCT.V_CODE <= VENDOR.V_CODE;
ORDER BY P_PRICE;
Incorrect.
D. SELECT P_DESCRIPT, P_PRICE, V_NAME, V_CONTACT, V_AREACODE,
V_PHONE
FROM PRODUCT, VENDOR
WHERE PRODUCT.V_CODE = VENDOR.V_CODE;
ORDER BY P_PRICE;

Feedback

The correct answer is: SELECT P_DESCRIPT, P_PRICE, V_NAME, V_CONTACT,


V_AREACODE, V_PHONE
FROM PRODUCT, VENDOR
WHERE PRODUCT.V_CODE = VENDOR.V_CODE;
ORDER BY P_PRICE;

Question 16

Correct
Mark 1.00 out of 1.00

Flag question

Question text

You can create a logical (virtual) table by using the MAKE VIEW command.
Select one:
A. True
B. False
Correct.

Feedback

The correct answer is: False

Question 17

Correct
Mark 1.00 out of 1.00

Flag question

Question text

A database language must enable the user to perform complex queries designed to transform the
raw data into useful information.
Select one:
A. True
Correct.
B. False

Feedback

The correct answer is: True

Question 18

Incorrect
Mark 0.00 out of 1.00

Flag question

Question text

A single database can hold multiple schemas belonging to different users or applications.
Select one:
A. True
B. False
Incorrect.

Feedback

The correct answer is: True

Question 19

Correct
Mark 1.00 out of 1.00

Flag question

Question text

Reserved words are words used by SQL to perform specific functions.


Select one:
A. True
Correct.
B. False

Feedback

The correct answer is: True

Question 20

Incorrect
Mark 0.00 out of 1.00

Flag question

Question text

By default, the ORDER BY clause sorts records in descending order.


Select one:
A. True
Incorrect.
B. False

Feedback

The correct answer is: False

Question 21

Incorrect
Mark 0.00 out of 1.00

Flag question

Question text

SQL requires the use of the ADD command to enter data into a table.
Select one:
A. True
Incorrect.
B. False

Feedback

The correct answer is: False

Question 22

Correct
Mark 1.00 out of 1.00

Flag question

Question text

You can create a logical table by using the VIRTUAL VIEW command.
Select one:
A. True
B. False
Correct.

Feedback

The correct answer is: False

Question 23

Incorrect
Mark 0.00 out of 1.00

Flag question

Question text
Which command uses columns and column aliases to determine the total value of inventory held
on hand?
Select one:
A. SELECT P_DESCRIPT, P_ONHAND, P_PRICE, P_ONHAND/P_PRICE
FROM PRODUCT;
B. SELECT P_DESCRIPT, P_ONHAND, P_PRICE, P_ONHAND=P_PRICE
FROM PRODUCT;
Incorrect.
C. SELECT P_DESCRIPT, P_ONHAND, P_PRICE, P_ONHAND*P_PRICE
FROM PRODUCT;
D. SELECT P_DESCRIPT, P_ONHAND, P_PRICE, P_ONHAND-P_PRICE
FROM PRODUCT;

Feedback

The correct answer is: SELECT P_DESCRIPT, P_ONHAND, P_PRICE,


P_ONHAND*P_PRICE
FROM PRODUCT;

Question 24

Incorrect
Mark 0.00 out of 1.00

Flag question

Question text

In Oracle, the ____ command is used to change the display for a column, for example to place a
$ in front of a numeric value.
Select one:
A. DISPLAY
B. FORMAT
C. CHAR
D. CONVERT
Incorrect.

Feedback
The correct answer is: FORMAT

Question 25

Correct
Mark 1.00 out of 1.00

Flag question

Question text

Character procedures are often more software-specific than most other SQL procedures.
Select one:
A. True
B. False
Correct.

Feedback

The correct answer is: False

Question 26

Correct
Mark 1.00 out of 1.00

Flag question

Question text

The ____ clause is used to produce a list of only values that are different from one another.
Select one:
A. AGGREGATE
B. RESTRICTED
C. SELECT
D. DISTINCT
Correct.
Feedback

The correct answer is: DISTINCT

Question 27

Correct
Mark 1.00 out of 1.00

Flag question

Question text

A table row can be deleted using the DELETE command.


Select one:
A. True
Correct.
B. False

Feedback

The correct answer is: True

Question 28

Incorrect
Mark 0.00 out of 1.00

Flag question

Question text

Which command uses columns and column aliases to determine the total value of inventory held
on hand and to display the results in a column labeled TotValue?
Select one:
A. SELECT P_DESCRIPT, P_ONHAND, P_PRICE, P_ONHAND*P_PRICE AS
TOTVALUE
FROM PRODUCT;
B. SELECT P_DESCRIPT, P_ONHAND, P_PRICE, P_ONHAND=P_PRICE AS
TOTVALUE
FROM PRODUCT;
C. SELECT P_DESCRIPT, P_ONHAND, P_PRICE, P_ONHAND/P_PRICE AS
TOTVALUE
FROM PRODUCT;
D. SELECT P_DESCRIPT, P_ONHAND, P_PRICE, P_ONHAND-P_PRICE AS
TOTVALUE
FROM PRODUCT;
Incorrect.

Feedback

The correct answer is: SELECT P_DESCRIPT, P_ONHAND, P_PRICE,


P_ONHAND*P_PRICE AS TOTVALUE
FROM PRODUCT;

Question 29

Incorrect
Mark 0.00 out of 1.00

Flag question

Question text

The conditional LIKE must be used in conjunction with wildcard characters.


Select one:
A. True
B. False
Incorrect.

Feedback

The correct answer is: True

Question 30

Incorrect
Mark 0.00 out of 1.00
Flag question

Question text

The CHECK clause is used to define a condition for the values that the attribute domain cannot
have.
Select one:
A. True
Incorrect.
B. False

Feedback

The correct answer is: False

Question 31

Incorrect
Mark 0.00 out of 1.00

Flag question

Question text

What command is used to list a unique value for V_CODE, where the list will produce only a list
of those values that are different from one another?
Select one:
A. SELECT ONLY V_CODE
FROM PRODUCT;
B. SELECT UNIQUE V_CODE
FROM PRODUCT;
Incorrect.
C. SELECT DIFFERENT V_CODE
FROM PRODUCT;
D. SELECT DISTINCT V_CODE
FROM PRODUCT;
Feedback

The correct answer is: SELECT DISTINCT V_CODE


FROM PRODUCT;

Question 32

Incorrect
Mark 0.00 out of 1.00

Flag question

Question text

Which command would you use when making corrections to the PRODUCT table?
Select one:
A. CHANGE PRODUCT
SET P_INDATE = '01/18/2004'
WHERE P_CODE = '13-Q2/P2';
B. ROLLBACK PRODUCT
SET P_INDATE = '01/18/2004'
WHERE P_CODE = '13-Q2/P2';
C. EDIT PRODUCT
SET P_INDATE = '01/18/2004'
WHERE P_CODE = '13-Q2/P2';
Incorrect.
D. UPDATE PRODUCT
SET P_INDATE = '01/18/2004'
WHERE P_CODE = '13-Q2/P2';

Feedback

The correct answer is: UPDATE PRODUCT


SET P_INDATE = '01/18/2004'
WHERE P_CODE = '13-Q2/P2';

Question 33

Incorrect
Mark 0.00 out of 1.00
Flag question

Question text

Any changes made to the table contents are not physically saved to the disk until you use the
SAVE command.
Select one:
A. True
Incorrect.
B. False

Feedback

The correct answer is: False

Question 34

Correct
Mark 1.00 out of 1.00

Flag question

Question text

SQL has become the catalyst in the development of distributed databases and client/server
database architectures.
Select one:
A. True
Correct.
B. False

Feedback

The correct answer is: True

Question 35
Incorrect
Mark 0.00 out of 1.00

Flag question

Question text

Microsoft Access users can use Access QBE (query by example) query generator.
Select one:
A. True
B. False
Incorrect.

Feedback

The correct answer is: True

Question 36

Correct
Mark 1.00 out of 1.00

Flag question

Question text

A wildcard character is a symbol that can be used as a general substitute for other characters
or commands.
Select one:
A. True
Correct.
B. False

Feedback

The correct answer is: True


Question 37

Correct
Mark 1.00 out of 1.00

Flag question

Question text

Which query will output the table contents when the value of V_CODE is not equal to 21344?
Select one:
A. SELECT P_DESCRIPT, P_INDATE, P_PRICE, V_CODE
FROM PRODUCT
WHERE V_CODE <> 21344;
Correct.
B. SELECT P_DESCRIPT, P_INDATE, P_PRICE, V_CODE
FROM PRODUCT
WHERE V_CODE <= 21344;
C. SELECT P_DESCRIPT, P_INDATE, P_PRICE, V_CODE
FROM PRODUCT
WHERE V_CODE = 21344;
D. SELECT P_DESCRIPT, P_INDATE, P_PRICE, V_CODE
FROM PRODUCT
WHERE V_CODE => 21344;

Feedback

The correct answer is: SELECT P_DESCRIPT, P_INDATE, P_PRICE, V_CODE


FROM PRODUCT
WHERE V_CODE <> 21344;

Question 38

Incorrect
Mark 0.00 out of 1.00

Flag question
Question text

ANSI-standard SQL allows the use of special operators in conjunction with the WHERE clause.
Select one:
A. True
B. False
Incorrect.

Feedback

The correct answer is: True

Question 39

Incorrect
Mark 0.00 out of 1.00

Flag question

Question text

Only numeric data can be added and subtracted, not other data types.
Select one:
A. True
Incorrect.
B. False

Feedback

The correct answer is: False

Question 40

Incorrect
Mark 0.00 out of 1.00

Flag question
Question text

Which command is used to restore the table’s contents to their default values?
Select one:
A. COMMIT; RESTORE;
B. COMMIT; BACKUP;
C. COMMIT; ROLLBACK;
Incorrect.
D. ROLLBACK;

Feedback

The correct answer is: ROLLBACK;


Finish review
◄ SeverLogin
Jump to...
Using SQL Script Files with MS Access ►
Skip <span id="mod_quiz_navblock_title">Quiz navigation</span>

Quiz navigation

Show one page at a timeFinish review

IS222_201801_O

Participants

Badges

Competencies

Marksheet

Welcome to

CO

CA

Week 1 (5 - 11 February, 2018)

Week 2 (12 - 18 February, 2018)

Week 3 (19 - 25 February, 2018)


Weeks 4 - 5

Weeks 6-7

Week 8-9

Dashboard

Site home

Calendar

My courses

FBEFYE

MG101_201801_B

MG204_201801_B

FSTE_eMentoring

FSTESLS

More...

You are logged in as Regional Swamy


Top
Bottom

The University of the South Pacific


Laucala Campus, Suva, Fiji.
Tel: +679 323 1000
www.usp.ac.fj

Powered by:

[Server: M4]
Get the mobile app

Potrebbero piacerti anche