You are on page 1of 10

6/22/22, 4:01 PM Prelim Exam: Attempt review

Home / My courses /
UGRD-IT6202-2126S /
Week 5: Prelim Examination /
Prelim Exam

Started on Wednesday, 20 April 2022, 12:48 PM


State Finished
Completed on Wednesday, 20 April 2022, 1:01 PM
Time taken 13 mins 15 secs
Marks 30.00/30.00
Grade 100.00 out of 100.00

Question 1
Correct

Mark 1.00 out of 1.00

It is the collection of information stored in the database at a particular moment is called

Answer: instance of the database 

Question 2
Correct

Mark 1.00 out of 1.00

The overall logical structure schema of a database can be expressed graphically by an E-R diagram  .

Question 3
Correct

Mark 1.00 out of 1.00

Which of the following is not part of data manipulation language?

Select one:
a. Insert

b. Alter 

c. merge

d. Update

semestral.amaes.com/2126/mod/quiz/review.php?attempt=28091&cmid=39164 1/10
6/22/22, 4:01 PM Prelim Exam: Attempt review

Question 4

Correct

Mark 1.00 out of 1.00

Which of the following is the correct example of inserting new values to STUDENTS table?

Select one:
a. INSERT INTO STUDENTSVALUES('1','DELA CRUZ','JUANITO','BSIT');

b. INSERT INTO STUDENTS VALUES(1,'DELA CRUZ','JUANITO','BSIT'); 

c. INSERT INTO STUDENTS VALUES(1,DELA CRUZ,JUANITO,BSIT);

d. INSERT INTO STUDENTS (1,'DELA CRUZ','JUANITO','BSIT');

Question 5
Correct

Mark 1.00 out of 1.00

Which of the following is the correct example updating all student COURSE to ‘BSIT’ from STUDENTS table?

Select one:
a. UPDATE TABLE STUDENTS

SET COURSE = ‘BSIT’;

b. UPDATE STUDENTS 

SET COURSE = ‘BSIT’;

c. UPDATE TABLE STUDENTS


SET COURSE = ‘BSIT’

WHERE COURSE = ‘BSIT’;

d. UPDATE STUDENTS

SET COURSE = ‘BSIT’


WHERE COURSE = ‘BSIT’;

Your answer is correct.

Question 6
Correct

Mark 1.00 out of 1.00

The overall design of the database is called the

Answer: Database schema 

semestral.amaes.com/2126/mod/quiz/review.php?attempt=28091&cmid=39164 2/10
6/22/22, 4:01 PM Prelim Exam: Attempt review

Question 7

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 COLUMN CITY VARCHAR(10);

b. ALTER TABLE STUDENTS



ADD CITY CHAR(10);

c. ALTER TABLE STUDENTS

ADD COLUMN CITY CHAR(10);

d. ALTER TABLE STUDENTS

ADD CITY VARCHAR(10);

Question 8
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. MODIFY 

b. ADD

c. DELETE

d. DROP

Question 9
Correct

Mark 1.00 out of 1.00

Which of the following is the correct example of inserting new values to STUDENTS table where the course is set to NULL;

Select one:
a. INSERT INTO STUDENTS (1,'DELA CRUZ','JUANITO',NULL);

b. INSERT INTO STUDENTS (1,'DELA CRUZ','JUANITO','NULL');

c. INSERT INTO STUDENTS VALUES(1,'DELA CRUZ','JUANITO',NULL); 

d. INSERT INTO STUDENTS VALUES(1,'DELA CRUZ','JUANITO','NULL');

semestral.amaes.com/2126/mod/quiz/review.php?attempt=28091&cmid=39164 3/10
6/22/22, 4:01 PM Prelim Exam: Attempt review

Question 10

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. All rows are deleted including table structure.

b. All rows are deleted but the table is still intact. 

c. 0 rows are updated.

d. 0 rows are deleted.

Question 11
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. Update

b. Rename 

c. Name

d. Alias

Question 12
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’, 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’;

semestral.amaes.com/2126/mod/quiz/review.php?attempt=28091&cmid=39164 4/10
6/22/22, 4:01 PM Prelim Exam: Attempt review

Question 13

Correct

Mark 1.00 out of 1.00

Which of the following is the correct example of adding a new column ADDRESS datatypevarchar size 20 to EMPLOYEES table?

Select one:
a. ALTER TABLE EMPLOYEES
SET ADDRESS VARCHAR(20);

b. ALTER TABLE EMPLOYEES


ADD COLUMN ADDRESS VARCHAR(20);

c. ALTER TABLE EMPLOYEES 

ADD ADDRESS VARCHAR(20);

d. ALTER EMPLOYEES

ADD ADDRESS VARCHAR(20);

Your answer is correct.

Question 14
Correct

Mark 1.00 out of 1.00

Which of the following is not part of data control language?

Select one:
a. Revoke

b. Insert 

c. Grant

Question 15
Correct

Mark 1.00 out of 1.00

Which of the following is the correct example of deleting all records in STUDENTS table;

Select one:
a. DELETE TABLE STUDENTS;

b. DELETE FROM STUDENTS; 

c. DROP TABLE STUDENTS;

d. DELETE * FROM STUDENTS;

semestral.amaes.com/2126/mod/quiz/review.php?attempt=28091&cmid=39164 5/10
6/22/22, 4:01 PM Prelim Exam: Attempt review

Question 16

Correct

Mark 1.00 out of 1.00

Which of the following is not part of transaction control?

Select one:
a. SAVEPOINT

b. CREATE 

c. ROLLBACK

d. COMMIT

Question 17
Correct

Mark 1.00 out of 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’

Select one:
a. INSERT INTO STUDENTS VALUES (STUD_ID,LASTNAME)
(10,’CRUZ’);

b. INSERT INTO STUDENTS VALUES (A0,’CRUZ’);

c. INSERT INTO STUDENTS (A0,’CRUZ’);

d. INSERT INTO STUDENTS(STUD_ID,LASTNAME) 


VALUES(10,’CRUZ’);

Your answer is correct.

Question 18
Correct

Mark 1.00 out of 1.00

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 TABLE STUDENTS( STUD_ID NUMBER(3) pk);

d. CREATE STUDENTS( STUD_ID NUMBER(3) PRIMARY KEY);

semestral.amaes.com/2126/mod/quiz/review.php?attempt=28091&cmid=39164 6/10
6/22/22, 4:01 PM Prelim Exam: Attempt review

Question 19

Correct

Mark 1.00 out of 1.00

This describes the database design at the logical level.

Answer: Logical schema 

Question 20
Correct

Mark 1.00 out of 1.00

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 

SET LASTNAME = ‘SANTOS’, COURSE = ‘BSCS’

WHERE STUD_ID = 109;

b. UPDATE TABLE EMPLOYEES


SET LASTNAME = ‘SANTOS’, COURSE = ‘BSCS’

WHERE STUD_ID = 109;

c. UPDATE TABLE EMPLOYEES

SET LASTNAME = ‘SANTOS’, SET COURSE = ‘BSCS’


WHERE STUD_ID = 109;

d. UPDATE EMPLOYEES
SET LASTNAME = ‘SANTOS’, SET COURSE = ‘BSCS’

WHERE STUD_ID = 109;

Your answer is correct.

semestral.amaes.com/2126/mod/quiz/review.php?attempt=28091&cmid=39164 7/10
6/22/22, 4:01 PM Prelim Exam: Attempt review

Question 21

Correct

Mark 1.00 out of 1.00

It is a collection of relations or two-dimensional tables controlled by the Oracle server.

Select one:
a. Relational model

b. Database management system

c. Relational database 

d. Relational server

Question 22
Correct

Mark 1.00 out of 1.00

This describes the database design at the physical level.

Answer: Physical schema 

Question 23
Correct

Mark 1.00 out of 1.00

He proposed the relational model for database systems in 1970.

Select one:
a. DrcL.F Codd

b. Dr. J.F Codd

c. Dr. Lee Codd

d. Dr. E.F Codd 

Question 24
Correct

Mark 1.00 out of 1.00

Are said to exhibit physical data independence if they do not depend on the physical schema.

Answer: Application program 

semestral.amaes.com/2126/mod/quiz/review.php?attempt=28091&cmid=39164 8/10
6/22/22, 4:01 PM Prelim Exam: Attempt review

Question 25

Correct

Mark 1.00 out of 1.00

It is the term generally used to describe what was done by large mainframe computers from the late 1940's until the early 1980's.

Answer: Data processing 

Question 26
Correct

Mark 1.00 out of 1.00

This is a characteristic of database that includes also the protection of the database from unauthorized access confidentiality and
unauthorized changes.

Answer: Data integrity 

Question 27
Correct

Mark 1.00 out of 1.00

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

Select one:
a. NUMBER

b. VARCHAR

c. INT 

d. CHAR

Question 28
Correct

Mark 1.00 out of 1.00

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

Select one:
a. Synonym

b. Index

c. Table

d. View 

semestral.amaes.com/2126/mod/quiz/review.php?attempt=28091&cmid=39164 9/10
6/22/22, 4:01 PM Prelim Exam: Attempt review

Question 29

Correct

Mark 1.00 out of 1.00

It is design to manage large bodies of information.

Answer: Database system 

Question 30
Correct

Mark 1.00 out of 1.00

Are applied to the table and form the logical schema.

Answer: Constraints 

◄ Lesson 4: Data Definition Language (DDL) - PTT

Jump to...

Lesson 5: Data Manipulation Language ►

semestral.amaes.com/2126/mod/quiz/review.php?attempt=28091&cmid=39164 10/10

You might also like