You are on page 1of 8

11/3/22, 3:54 PM PRELIM LAB QUIZ 2: Attempt review

Started on Wednesday, 5 October 2022, 8:09 AM


State Finished
Completed on Wednesday, 5 October 2022, 8:16 AM
Time taken 7 mins 11 secs
Marks 20.00/20.00
Grade 100.00 out of 100.00

Question 1

Correct

Mark 1.00 out of 1.00

Which of the following is not true about ALTER statement?

Select one:
a. Insert new row in a table
b. Modify an existing column definition
c. Define a default value for the new column
d. Drop a column

Question 2
Correct

Mark 1.00 out of 1.00

Suppose that a user wanted to insert a new value using the implicit method which of the following is the correct example.

Select one:
a. INSERT INTO STUDENTS VALUES (10, NULL,’ELENA’,NULL);
b. INSERT INTO STUDENTS VALUES (10,’ELENA’)
c. INSERT INTO STUDENST(USN_ID, FIRSTNAME)

VALUES(10,’ELENA’)
d. INSERT INTO STUDENTS VALUES (USN_ID, FIRSTNAME)

(10,’ELENA’)

Question 3
Correct

Mark 1.00 out of 1.00

A statement that is use to rename the table or change the existing name of the table.

Select one:
a. Rename
b. Alias
c. Name
d. Update

semestral.amaes.com/2212/mod/quiz/review.php?attempt=78211&cmid=11824 1/8
11/3/22, 3:54 PM PRELIM LAB QUIZ 2: Attempt review

Question 4

Correct

Mark 1.00 out of 1.00

It logically represents subsets of data from one or more table.

Select one:
a. Index
b. Synonym
c. Table
d. View

Question 5
Correct

Mark 1.00 out of 1.00

A type of insert statement that omit the column from the column list.

Select one:
a. Excluded
b. Explicit
c. Implicit
d. included

Question 6
Correct

Mark 1.00 out of 1.00

Basic unit of storage composed of rows and columns

Select one:
a. Synonym
b. Index
c. Table
d. View

semestral.amaes.com/2212/mod/quiz/review.php?attempt=78211&cmid=11824 2/8
11/3/22, 3:54 PM PRELIM LAB QUIZ 2: Attempt review

Question 7

Correct

Mark 1.00 out of 1.00

Suppose that a user wanted to update the lastname of student to ‘Santos’ and YR_LVL to ‘Irreg’ whose USN_ID is equal to 50, in one select
statement which of the following is the correct sql statement to use.

Select one:
a. UPDATE STUDENTS

SET LASTNAME = ‘SANTOS’, YR_LVL = ‘IRREG’

WHERE USN_ID = 50;


b. UPDATE STUDENTS

SET LASTNAME = ‘SANTOS’, YR_LVL = ‘IRREG’;


c. UPDATE STUDENTS

SET LASTNAME = ‘SANTOS’, SET YR_LVL = ‘IRREG’;


d. UPDATE STUDENTS

SET LASTNAME = ‘SANTOS’, SET YR_LVL = ‘IRREG’

WHERE USN_ID = 50;

Question 8
Correct

Mark 1.00 out of 1.00

A type of insert statement that specify the NULL keyword in the VALUES clause.

Select one:
a. Implicit
b. Excluded
c. Explicit
d. included

Question 9
Correct

Mark 1.00 out of 1.00

An alter statement that is used to add new column to the table.

Select one:
a. DELETE
b. ADD
c. DROP
d. MODIFY

semestral.amaes.com/2212/mod/quiz/review.php?attempt=78211&cmid=11824 3/8
11/3/22, 3:54 PM PRELIM LAB QUIZ 2: Attempt review

Question 10

Correct

Mark 1.00 out of 1.00

A type of DML statement that is use to update existing rows in a table.

Select one:
a. INSERT
b. UPDATE
c. DELETE
d. TRUNCATE

Question 11
Correct

Mark 1.00 out of 1.00

Suppose that a user uses the DELETE statement as shown below: what is/are the possible output.
 
DELETE from STUDENT;

Select one:
a. 0 rows are deleted.
b. 0 rows are updated.
c. All rows are deleted but the table is still intact.
d. All rows are deleted including table structure.

Question 12
Correct

Mark 1.00 out of 1.00

Suppose that a user wanted to add a new column name as CITY datatype set to char size 10. Which of the following is the correct sql
statement?

Select one:
a. ALTER TABLE STUDENTS

ADD CITY VARCHAR(10);


b. ALTER TABLE STUDENTS

ADD COLUMN CITY VARCHAR(10);


c. ALTER TABLE STUDENTS

ADD CITY CHAR(10);
d. ALTER TABLE STUDENTS

ADD COLUMN CITY CHAR(10);

semestral.amaes.com/2212/mod/quiz/review.php?attempt=78211&cmid=11824 4/8
11/3/22, 3:54 PM PRELIM LAB QUIZ 2: Attempt review

Question 13

Correct

Mark 1.00 out of 1.00

A type of DML statement that is use to add new rows in a table.

Select one:
a. DELETE
b. UPDATE
c. INSERT
d. TRUNCATE

Question 14
Correct

Mark 1.00 out of 1.00

Suppose that a user wanted to insert a new value using the explicit method which of the following is the correct example.

Select one:
a. INSERT INTO STUDENTS VALUES (10, NULL,’ELENA’,NULL);
b. INSERT INTO STUDENTS VALUES (10,’ELENA’)
c. INSERT INTO STUDENTS VALUES (USN_ID, FIRSTNAME)

(10,’ELENA’)
d. INSERT INTO STUDENST(USN_ID, FIRSTNAME)

VALUES(10,’ELENA’)

Question 15
Correct

Mark 1.00 out of 1.00

Suppose that a user wanted to change the datatype of column ADDRESS from Varchar to Char which of the following is the correct example.

Select one:
a. ALTER TABLE STUDENTS

MODIFY ADDRESS VARCHAR(20);
b. ALTER STUDENTS

SET ADDRESS VARCHAR(20);


c. ALTER TABLE STUDENTS

SET ADDRESS VARCHAR(20);


d. ALTER STUDENTS

MODIFY ADDRESS VARCHAR(20);

semestral.amaes.com/2212/mod/quiz/review.php?attempt=78211&cmid=11824 5/8
11/3/22, 3:54 PM PRELIM LAB QUIZ 2: Attempt review

Question 16

Correct

Mark 1.00 out of 1.00

An alter statement that is used to delete an existing column in the table.

Select one:
a. ADD
b. MODIFY
c. DROP
d. DELETE

Question 17
Correct

Mark 1.00 out of 1.00

Consists of a collection of DML statements that form a logical unit of work.

Select one:
a. DML
b. DDL
c. Transaction
d. Select

Question 18
Correct

Mark 1.00 out of 1.00

A type of DML statement that is use to remove existing rows in a table.

Select one:
a. TRUNCATE
b. INSERT
c. UPDATE
d. DELETE

semestral.amaes.com/2212/mod/quiz/review.php?attempt=78211&cmid=11824 6/8
11/3/22, 3:54 PM PRELIM LAB QUIZ 2: Attempt review

Question 19

Correct

Mark 1.00 out of 1.00

An alter statement that is used to update an existing column datatype or datatype size.

Select one:
a. DROP
b. DELETE
c. MODIFY
d. ADD

Question 20
Correct

Mark 1.00 out of 1.00

Which of the following datatype is not being used in oracle?

Select one:
a. NUMBER
b. CHAR
c. INT
d. VARCHAR

semestral.amaes.com/2212/mod/quiz/review.php?attempt=78211&cmid=11824 7/8
11/3/22, 3:54 PM PRELIM LAB QUIZ 2: Attempt review

semestral.amaes.com/2212/mod/quiz/review.php?attempt=78211&cmid=11824 8/8

You might also like