Database Management System Lab Prelim Q1
Database Management System Lab Prelim Q1
M. Esperal
PRELIM LAB QUIZ 1
Completed on Monday, 19 June 2023, 9:01 PM
Grade 100.00 out of 100.00
Question 1
Are applied to the table and form the logical schema.
Constraints
Answer:
Question 2
Is the underlying the structure of a database.
Data model
Answer:
Question 3
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
MODIFY SET JOB_ID CHAR(10);
b.
ALTER TABLE EMPLOYEES
MODIFY SET JOB_ID CHAR(10);
c.
ALTER TABLE EMPLOYEES
MODIFY JOB_ID CHAR(10);
d.
ALTER EMPLOYEES
MODIFY JOB_ID CHAR(10);
Question 4
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:
a.
CREATE TABLE STUDENTS( STUD_ID NUMBER(3) PRIMARY KEY);
b.
CREATE TABLE STUDENTS( STUD_ID NUMBER(3) datatypePRIMARY KEY);
c.
CREATE STUDENTS( STUD_ID NUMBER(3) PRIMARY KEY);
d.
CREATE TABLE STUDENTS( STUD_ID NUMBER(3) pk);
Question 5
It is a collection of interrelated data and a set of programs to access those data.
database management system
Answer:
Question 6
It is an interpreted data – data supplied with semantics.
Information
Answer:
Question 7
Which of the following is the correct example of dropping the table EMPLOYEES?
Select one:
a.
ALTER TABLE DROP TABLE EMPLOYEES;
b.
ALTER TABLE DROP EMPLOYEES;
c.
DROP EMPLOYEES;
d.
DROP TABLE EMPLOYEES;
Question 8
Which of the following is the correct example of truncating the table EMPLOYEES?
Select one:
a.
ALTER TABLE TRUNCATE EMPLOYEES;
b.
ALTER TABLE TRUNCATE TABLE EMPLOYEES;
c.
TRUNCATE EMPLOYEES;
d.
TRUNCATE TABLE EMPLOYEES;
Question 9
Are said to exhibit physical data independence if they do not depend on the physical
schema.
Application program
Answer:
Question 10
It is an association among several entities.
relationship
Answer:
Question 11
Which of the following is the correct example of adding a new column
CONTACT_NOdatatypeNUMBER size 11 to EMPLOYEES table?
Select one:
a.
ALTER TABLE EMPLOYEES
ADD CONTACT_NO NUMBER(11);
b.
ALTER TABLE EMPLOYEES
ADD COLUMN CONTACT_NO NUMBER(11);
c.
ALTER TABLE EMPLOYEES
ADD CONTACT_NO NUMBER;
d.
ALTER EMPLOYEES
ADD CONTACT_NO NUMBER(11);
Question 12
It is a bundle of actions which are done within a database to bring it from one consistent
state to a new consistent state.
Transaction
Answer:
Question 13
It is design to manage large bodies of information.
Database System
Answer:
Question 14
Which of the following is the correct example of removing a column SALARY from
EMPLOYEES table?
Select one:
a.
ALTER EMPLOYEES
DROP SALARY;
b.
ALTER EMPLOYEES
DROP COLUMN SALARY;
c.
ALTER TABLE EMPLOYEES
DROP SALARY;
d.
ALTER TABLE EMPLOYEES
DROP COLUMN SALARY;
Question 15
Which of the following is the correct example of modifying the column lastname? Change
the datatype size to 20.
Select one:
a.
ALTER EMPLOYEES
MODIFY LASTNAME VARCHAR(20);
b.
ALTER TABLE EMPLOYEES
SETLASTNAME =VARCHAR(20);
c.
ALTER TABLE EMPLOYEES
MODIFY LASTNAME VARCHAR(20);
d.
ALTER EMPLOYEES
SET LASTNAME = VARCHAR(20);
Question 16
Which of the following is the correct example of removing a column FIRSTNAME from
EMPLOYEES table?
Select one:
a.
ALTER TABLE EMPLOYEES
DROP COLUMN FIRSTNAME;
b.
ALTER EMPLOYEES
FROM COLUMN FIRSTNAME;
c.
ALTER TABLE EMPLOYEES
DROP FIRSTNAME;
d.
ALTER EMPLOYEES
FROM N FIRSTNAME;
Question 17
It is a unit of data – is a symbol or a set of symbols which is used to represent something.
datum
Answer:
Question 18
Which of the following is the correct example of adding a new column ADDRESS
datatypevarchar size 20 to EMPLOYEES table?
Select one:
a.
ALTER EMPLOYEES
ADD ADDRESS VARCHAR(20);
b.
ALTER TABLE EMPLOYEES
ADD COLUMN ADDRESS VARCHAR(20);
c.
ALTER TABLE EMPLOYEES
SET ADDRESS VARCHAR(20);
d.
ALTER TABLE EMPLOYEES
ADD ADDRESS VARCHAR(20);
Question 19
It is collection of data that contains information relevant to an enterprise.
Database
Answer:
Question 20
Which of the following is the correct example of renaming the table EMPLOYEES to
WORKERS?
Select one:
a.
RENAME EMPLOYEES TO WORKERS;
b.
RENAME EMPLOYEES AS WORKERS;
c.
ALTER TABLE RENAME EMPLOYEES TO WORKERS;
d.
RENAME TABLE EMPLOYEES TO WORKERS;