CS351-Database Management System 1: Short Quiz 2
CS351-Database Management System 1: Short Quiz 2
CS351-Database Management System 1: Short Quiz 2
Short quiz 2
Select one:
a. SAVEPOINT
b. ROLLBACK
c. COMMIT
d. CREATE
Check
Feedback
Correct
Marks for this submission: 1.00/1.00.
Select one:
a. Insert
b. merge
c. Alter
d. Update
Check
Feedback
Correct
Marks for this submission: 1.00/1.00.
Select one:
a. Relational model
c. Relational server
d. Relational database
Check
Feedback
Correct
Marks for this submission: 1.00/1.00.
Select one:
a. Grant
b. Revoke
c. Insert
Check
Feedback
Correct
Marks for this submission: 1.00/1.00.
Select one:
a. Dr. E.F Codd
d. DrcL.F Codd
Check
Feedback
Correct
Marks for this submission: 1.00/1.00.
SHORT QUIZ 3
Select one:
a. DELETE
b. MODIFY
c. ADD
d. DROP
Check
Feedback
Correct
Marks for this submission: 1.00/1.00.
Select one:
a. Drop a column
Check
Feedback
Correct
Marks for this submission: 1.00/1.00. Accounting for previous tries, this gives 0.00/1.00
A statement that is use to rename the table or change the existing name of the
table.
Select one:
a. Name
b. Rename
c. Alias
d. Update
Check
Feedback
Correct
Marks for this submission: 1.00/1.00.
Select one:
a. ADD
b. DELETE
c. MODIFY
d. DROP
Check
Feedback
Correct
Marks for this submission: 1.00/1.00.
Select one:
a. Index
b. View
c. Table
d. Synonym
Check
Feedback
Correct
Marks for this submission: 1.00/1.00.
Select one:
a. MODIFY
b. ADD
c. DROP
d. DELETE
Check
Feedback
Correct
Marks for this submission: 1.00/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:
Check
Feedback
Correct
Marks for this submission: 1.00/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 STUDENTS
MODIFY ADDRESS VARCHAR(20);
b. ALTER STUDENTS
SET ADDRESS VARCHAR(20);
Check
Feedback
Correct
Marks for this submission: 1.00/1.00. Accounting for previous tries, this gives 0.33/1.00.
Select one:
a. VARCHAR
b. CHAR
c. INT
d. NUMBER
Check
Feedback
Correct
Marks for this submission: 1.00/1.00. Accounting for previous tries, this gives 0.67/1.00.
Select one:
a. Table
b. Synonym
c. Index
d. View
Check
Feedback
Correct
Marks for this submission: 1.00/1.00.
ASSIGNMENT #1
Select one:
a. DROP EMPLOYEES;
Check
Feedback
Correct
Marks for this submission: 1.00/1.00.
Which of the following is the correct example of modifying the column JOB_ID?
Change the datatype size to 10.
Select one:
a. ALTER EMPLOYEES
d. ALTER EMPLOYEES
Feedback
Correct
Marks for this submission: 1.00/1.00.
a. ALTER EMPLOYEES
Feedback
Correct
Marks for this submission: 1.00/1.00. Accounting for previous tries, this gives 0.67/1.00.
Previous page
Which of the following is the correct example of renaming the table EMPLOYEES
to WORKERS?
Select one:
Check
Feedback
Correct
Marks for this submission: 1.00/1.00.
Select one:
d. TRUNCATE EMPLOYEES;
Check
Feedback
Correct
Marks for this submission: 1.00/1.00.
DROP FIRSTNAME;
b. ALTER EMPLOYEES
c. ALTER EMPLOYEES
FROM N FIRSTNAME;
Feedback
Correct
Marks for this submission: 1.00/1.00.
Previous page
Which of the following is the correct example of creating a new table
STUDENTS? The column STUD_ID is set to primary key.
Select one:
Check
Feedback
Correct
Marks for this submission: 1.00/1.00. Accounting for previous tries, this gives 0.67/1.00.
Previous page
DROP SALARY;
b. ALTER EMPLOYEES
DROP SALARY;
Check
Feedback
Correct
Marks for this submission: 1.00/1.00.
Previous page
Which of the following is the correct example of modifying the column lastname?
Change the datatype size to 20.
Select one:
a. ALTER EMPLOYEES
SETLASTNAME =VARCHAR(20);
d. ALTER EMPLOYEES
Feedback
Correct
Marks for this submission: 1.00/1.00.
Which of the following is the correct example of adding a new column ADDRESS
datatypevarchar size 20 to EMPLOYEES table?
Select one:
d. ALTER EMPLOYEES
Feedback
Correct
Marks for this submission: 1.00/1.00. Accounting for previous tries, this gives 0.00/1.00.
SHORT QUIZ 4
a. DELETE
b. TRUNCATE
c. UPDATE
d. INSERT
Check
Feedback
Correct
Marks for this submission: 1.00/1.00.
Select one:
a. TRUNCATE
b. DELETE
c. INSERT
d. UPDATE
Check
Feedback
Correct
Marks for this submission: 1.00/1.00.
Select one:
a. Transaction
b. DDL
c. DML
d. Select
Check
Feedback
Correct
Marks for this submission: 1.00/1.00.
A type of insert statement that omit the column from the column list.
Select one:
a. Excluded
b. included
c. Implicit
d. Explicit
Check
Feedback
Correct
Marks for this submission: 1.00/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:
Check
Feedback
Correct
Marks for this submission: 1.00/1.00. Accounting for previous tries, this gives 0.67/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
Check
Feedback
Correct
Marks for this submission: 1.00/1.00.
A type of insert statement that specify the NULL keyword in the VALUES clause.
Select one:
a. Excluded
b. included
c. Explicit
d. Implicit
Check
Feedback
Correct
Marks for this submission: 1.00/1.00.
Suppose that a user uses the DELETE statement as shown below: what is/are
the possible output.
DELETE from STUDENT;
Select one:
Check
Feedback
Correct
Marks for this submission: 1.00/1.00. Accounting for previous tries, this gives 0.00/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:
Check
Feedback
Correct
Marks for this submission: 1.00/1.00. Accounting for previous tries, this gives 0.67/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’;
b. UPDATE STUDENTS
SET LASTNAME = ‘SANTOS’, SET YR_LVL = ‘IRREG’
WHERE USN_ID = 50;
c. UPDATE STUDENTS
SET LASTNAME = ‘SANTOS’, SET YR_LVL = ‘IRREG’;
d. UPDATE STUDENTS
SET LASTNAME = ‘SANTOS’, YR_LVL = ‘IRREG’
WHERE USN_ID = 50;
Check
Feedback
Correct
Marks for this submission: 1.00/1.00. Accounting for previous tries, this gives 0.67/1.00.
ASSIGNMENT # 2
Which of the following is the correct example of updating the COURSE to ‘N/A’ of
all students from STUDENTS table whose course IS NULL;
Select one:
b. UPDATE STUDENTS
c. UPDATE STUDENTS
Feedback
Correct
Marks for this submission: 1.00/1.00. Accounting for previous tries, this gives 0.33/1.00.
a. UPDATE STUDENTS
Feedback
Correct
Marks for this submission: 1.00/1.00. Accounting for previous tries, this gives 0.67/1.00.
Previous page
Which of the following is the correct example updating all student COURSE to
‘BSIT’ from STUDENTS table?
Select one:
c. UPDATE STUDENTS
d. UPDATE STUDENTS
Which of the following is the correct example updating the student LASTNAME
TO ‘SANTOS’ and course to ‘BSCS’ whose STUD_ID is equal to 109?
Select one:
a. UPDATE EMPLOYEES
d. UPDATE EMPLOYEES
Feedback
Correct
Marks for this submission: 1.00/1.00.
(10,’CRUZ’);
VALUES(10,’CRUZ’);
Check
Feedback
Correct
Marks for this submission: 1.00/1.00. Accounting for previous tries, this gives 0.67/1.00.
Previous page
Check
Feedback
Correct
Marks for this submission: 1.00/1.00.
Check
Feedback
Correct
Marks for this submission: 1.00/1.00. Accounting for previous tries, this gives 0.67/1.00.
Check
Feedback
Correct
Marks for this submission: 1.00/1.00.
Which of the following is the correct example inserting a new value to
STUDENTS table that will only add new data to STUD_ID and LASTNAME? The
stud_id is 10 and lastname is 'CRUZ' and the rest of the column is set to NULL.
Select one:
Check
Feedback
Correct
Marks for this submission: 1.00/1.00.
Which of the following is the correct example of deleting a student record from
STUDENTS table whose COURSE is equal to NULL;
Select one:
Feedback
Correct
Marks for this submission: 1.00/1.00. Accounting for previous tries, this gives 0.00/1.00.
SHORT QUIZ 5
Select one:
a. Blank
b. Zero
c. NULL
d. Space
Check
Feedback
Correct
Marks for this submission: 1.00/1.00.
c. Clauses are usually placed on separate lines for readability and ease of editing.
Feedback
Correct
Marks for this submission: 1.00/1.00. Accounting for previous tries, this gives 0.33/1.00.
Select one:
a. ||
b. ( )
c. AS
d. *
Check
Feedback
Correct
Marks for this submission: 1.00/1.00.
Select one:
a. Literal
b. Table name
c. String
d. Alias
Check
Feedback
Correct
Marks for this submission: 1.00/1.00.
Select one:
a. MDAS operator
b. Numerical Values
c. Arithmetic expression
d. Logical Condition
Check
Feedback
Correct
Marks for this submission: 1.00/1.00.
This is use to Selects the columns in a table that are returned by a query. Selects
a few or as many of the columns as required.
Select one:
a. Projection
b. Joins
c. Selection
d. Inclusion
Check
Feedback
Correct
Marks for this submission: 1.00/1.00. Accounting for previous tries, this gives 0.67/1.00.
This is used to brings together data that is stored in different tables by specifying
the link between them.
Select one:
a. Projection
b. Joins
c. Inclusion
d. Selection
Check
Feedback
Correct
Marks for this submission: 1.00/1.00.
Supposed that the user uses the ff SELECT statement: what will be the possible
output.
SELECT GRADE AS STUDENT MARK FROM GRADE_REPORT;
Select one:
Check
Feedback
Correct
Marks for this submission: 1.00/1.00.
A system used to concatenate one column to another column.
Select one:
a. *
b. ||
c. AS
d. ( )
Check
Feedback
Correct
Marks for this submission: 1.00/1.00.
This is used to selects the rows in a table that are returned by a query. Various
criteria can be used to restrict the rows that are retrieved.
Select one:
a. Selection
b. Joins
c. Projection
d. Inclusion
Check
Feedback
Correct
Marks for this submission: 1.00/1.00.
SHORT QUIZ #6
This is used to in conditions that compare one expression with another value or
expression.
Select one:
a. Logical Condition
b. Subtraction
c. Add
d. Comparison
Check
Feedback
Correct
Marks for this submission: 1.00/1.00.
Check
Feedback
Correct
Marks for this submission: 1.00/1.00.
True/False. Character strings and date values are enclosed with double
quotation marks.
FALSE
Answer:
Check
Feedback
Correct
Marks for this submission: 1.00/1.00.
Check
Feedback
Correct
Marks for this submission: 1.00/1.00.
Select one:
a. Between
b. Like
c. Comparison
d. IN
Check
Feedback
Correct
Marks for this submission: 1.00/1.00.
Select one:
a. IN
b. Like
c. Between
d. Comparison
Check
Feedback
Correct
Marks for this submission: 1.00/1.00.
Select one:
a. Between
b. Like
c. IN
d. Comparison
Check
Feedback
Correct
Marks for this submission: 1.00/1.00.
Select one:
a. Insert
b. Select
c. Where
d. Delete
Check
Feedback
Correct
Marks for this submission: 1.00/1.00.
Check
Feedback
Correct
Marks for this submission: 1.00/1.00.
True/False Character values are format sensitive and date values are case
sensitive-sensitive.
FALSE
Answer:
Check
Feedback
Correct
Marks for this submission: 1.00/1.00.
LONG QUIZ 1
Select one:
a. IN
b. Between AND
c. IS NUL
d. <>
Check
Feedback
Correct
Marks for this submission: 1.00/1.00. Accounting for previous tries, this gives 0.67/1.00.
Select one:
a. UPDATE
b. INSERT
c. CREATE table
d. MERGER
Check
Feedback
Correct
Marks for this submission: 1.00/1.00. Accounting for previous tries, this gives 0.33/1.00.
True or False:
Security is one of the characteristics of the database that includes also the
protection of the database from unauthorized access confidentiality and
unauthorized changes.
false
Answer:
Check
Feedback
Correct
Marks for this submission: 1.00/1.00.
Select one:
a. EMPLOYEES
b. Phone_no
c. STUDENT
d. ORDERS
Check
Feedback
Correct
Marks for this submission: 1.00/1.00.
d. Incorrect SELECT statement
Check
Feedback
Correct
Marks for this submission: 1.00/1.00. Accounting for previous tries, this gives 0.67/1.00.
True or False:
Database Architecture is the overall design of the database
false
Answer:
Check
Feedback
Correct
Marks for this submission: 1.00/1.00.
c. 0 rows selected
Check
Feedback
Correct
Marks for this submission: 1.00/1.00. Accounting for previous tries, this gives 0.33/1.00.
Select one:
c. Database instance
d. Data independence
Check
Feedback
Correct
Marks for this submission: 1.00/1.00.
Which of the following is not part of DDL statement?
Select one:
a. DELETE
b. ALTER
d. CREATE
Check
Feedback
Correct
Marks for this submission: 1.00/1.00. Accounting for previous tries, this gives 0.67/1.00.
b. Incorrect SELECT statement
Check
Feedback
Correct
Marks for this submission: 1.00/1.00.
a. Semi-Computerized
d. Data Processing
Check
Feedback
Correct
Marks for this submission: 1.00/1.00.
Suppose that the user wanted to add a new column name as CUST_NAME data
type char size 6. What is the correct SQL statement to use?
Select one:
b. ALTER PARTS
ADD CUST_NAME CHAR(6);
d. ALTER PARTS
SET CUST_NAME = CHAR(6);
Check
Feedback
Correct
Marks for this submission: 1.00/1.00.
True or False
Database Management System is a collection of interrelated data and a set of
programs to access those data.
true
Answer:
Check
Feedback
Correct
Marks for this submission: 1.00/1.00.
Select one:
a. Transactions
b. Data Integrity
c. Data Processing
d. Data Persistence
Check
Feedback
Correct
Marks for this submission: 1.00/1.00.
Select one:
a. Alias
b. Concat
c. Logical condition
d. Specific Column
Check
Feedback
Correct
Marks for this submission: 1.00/1.00. Accounting for previous tries, this gives 0.67/1.00.
Suppose that the user wanted to add a new column name as CUST_NAME data
type char size 6. What is the correct type of statement to use?
Select one:
a. DELETE
b. INSERT
c. ALTER
d. UPDATE
Check
Feedback
Correct
Marks for this submission: 1.00/1.00.
Select one:
a. Lower Efficiency
b. Costs
c. Data integrity
d. Qualified Personnel
Check
Feedback
Correct
Marks for this submission: 1.00/1.00.
True or False
Table is known as the collection of data that contains information relevant to an
enterprise.
false
Answer:
Check
Feedback
Correct
Marks for this submission: 1.00/1.00.
a. LIKE
b. <
c. >
d. !=
Check
Feedback
Correct
Marks for this submission: 1.00/1.00. Accounting for previous tries, this gives 0.67/1.00.
True or False:
Database is the term generally used to describe what was done by large
mainframe computers from the late 1940's until the early 1980's.
false
Answer:
Check
Feedback
Correct
Marks for this submission: 1.00/1.00.