Professional Documents
Culture Documents
Question 1
Correct
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
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
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
Select one:
a. Index
b. Synonym
c. Table
d. View
Question 5
Correct
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
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
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’
Question 8
Correct
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
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
Select one:
a. INSERT
b. UPDATE
c. DELETE
d. TRUNCATE
Question 11
Correct
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
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
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
Select one:
a. DELETE
b. UPDATE
c. INSERT
d. TRUNCATE
Question 14
Correct
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
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
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
Select one:
a. ADD
b. MODIFY
c. DROP
d. DELETE
Question 17
Correct
Select one:
a. DML
b. DDL
c. Transaction
d. Select
Question 18
Correct
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
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
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