Вы находитесь на странице: 1из 8

2/18/2019 Prelims

Question 1 Which of the following is the correct example of adding a new column
Answer saved CONTACT_NOdatatypeNUMBER size 11 to EMPLOYEES table?
Marked out of
1.00 Select one:
a. ALTER TABLE EMPLOYEES
ADD CONTACT_NO NUMBER;

b. ALTER EMPLOYEES
ADD CONTACT_NO NUMBER(11);

c. ALTER TABLE EMPLOYEES


ADD COLUMN CONTACT_NO NUMBER(11);

d. ALTER TABLE EMPLOYEES


ADD CONTACT_NO NUMBER(11);

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

Marked out of Select one:


1.00
a. TRUNCATE
b. INSERT

c. UPDATE

d. DELETE

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

Select one:
a. UPDATE STUDENTS
SET LASTNAME = ‘SANTOS’, SET YR_LVL = ‘IRREG’;
b. UPDATE STUDENTS
SET LASTNAME = ‘SANTOS’, YR_LVL = ‘IRREG’
WHERE USN_ID = 50;

c. UPDATE STUDENTS
SET LASTNAME = ‘SANTOS’, SET YR_LVL = ‘IRREG’
WHERE USN_ID = 50;
d. UPDATE STUDENTS
SET LASTNAME = ‘SANTOS’, YR_LVL = ‘IRREG’;

https://blended.amauonline.com/mod/quiz/attempt.php?attempt=34090768#q18 1/8
2/18/2019 Prelims
Question 4 Which of the following is the correct example of updating the COURSE to ‘N/A’ of all
Answer saved students from STUDENTS table whose course IS NULL;
Marked out of
1.00 Select one:
a. UPDATE STUDENTS
SET COURSE = ‘N/A’
WHERE COURSE IS NULL;

b. UPDATE STUDENTS
SET COURSE = ‘N/A’
WHERE COURSE = NULL;

c. UPDATE TABLE STUDENTS


SET COURSE = ‘N/A’
WHERE COURSE = NULL;

d. UPDATE TABLE STUDENTS


SET COURSE = ‘N/A’
WHERE COURSE IS NULL;

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


Answer saved

Marked out of Select one:


1.00
a. Synonym
b. View

c. Table

d. Index

Question 6 Which of the following is the correct example of deleting all records in STUDENTS
Answer saved table;
Marked out of
1.00 Select one or more:
a. DELETE * FROM STUDENTS;
b. DROP TABLE STUDENTS;

c. DELETE TABLE STUDENTS;


d. DELETE FROM STUDENTS;

Question 7 This is also known as facts that can be recorded and that have implicit meaning.
Answer saved

Marked out of Answer: Data


1.00

https://blended.amauonline.com/mod/quiz/attempt.php?attempt=34090768#q18 2/8
2/18/2019 Prelims
Question 8 An alter statement that is used to add new column to the table.
Answer saved

Marked out of Select one:


1.00
a. DELETE

b. ADD
c. DROP

d. MODIFY

Question 9 Which of the following is the correct example of truncating the table EMPLOYEES?
Answer saved

Marked out of Select one:


1.00
a. ALTER TABLE TRUNCATE TABLE EMPLOYEES;
b. ALTER TABLE TRUNCATE EMPLOYEES;

c. TRUNCATE EMPLOYEES;
d. TRUNCATE TABLE EMPLOYEES;

Question 10 Which of the following is the correct example inserting a new value to STUDENTS
Answer saved table that will only add new data to STUD_ID and LASTNAME? The stud_id is 10 and
Marked out of lastname is 'CRUZ' and the rest of the column is set to NULL.
1.00

Select one or more:


a. INSERT INTO STUDENTS VALUES (10,'CRUZ','NULL','NULL');

b. INSERT INTO STUDENTS VALUES (10,'CRUZ',NULL,NULL);

c. INSERT INTO STUDENTS (10,'CRUZ',NULL,NULL);

d. INSERT INTO STUDENTS TABLE VALUES (10,'CRUZ','NULL','NULL');

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


Answer saved

Marked out of Select one:


1.00
a. INT

b. CHAR

c. VARCHAR

d. NUMBER

Question 12 Which of the following is not part of transaction control?


Answer saved

Marked out of Select one:


1.00
a. CREATE
b. COMMIT

c. SAVEPOINT

d. ROLLBACK

https://blended.amauonline.com/mod/quiz/attempt.php?attempt=34090768#q18 3/8
2/18/2019 Prelims
Question 13 Which of the following is not part of data control language?
Answer saved

Marked out of Select one:


1.00
a. Insert

b. Revoke
c. Grant

Question 14 This is formed by one or more than one attributes.


Answer saved

Marked out of Answer: entity


1.00

Question 15 Which of the following is the correct example of removing a column FIRSTNAME from
Answer saved EMPLOYEES table?
Marked out of
1.00 Select one:
a. ALTER TABLE EMPLOYEES
DROP COLUMN FIRSTNAME;

b. ALTER TABLE EMPLOYEES


DROP FIRSTNAME;

c. ALTER EMPLOYEES
FROM COLUMN FIRSTNAME;

d. ALTER EMPLOYEES
FROM N FIRSTNAME;

Question 16 Suppose that a user wanted to change the datatype of column ADDRESS from
Answer saved Varchar to Char which of the following is the correct example.
Marked out of
1.00 Select one:
a. ALTER STUDENTS
MODIFY ADDRESS VARCHAR(20);

b. ALTER TABLE STUDENTS


MODIFY ADDRESS VARCHAR(20);

c. ALTER STUDENTS
SET ADDRESS VARCHAR(20);

d. ALTER TABLE STUDENTS


SET ADDRESS VARCHAR(20);

Question 17 An alter statement that is used to update an existing column datatype or datatype size.
Answer saved

Marked out of Select one:


1.00
a. DELETE

b. DROP

c. ADD

d. MODIFY

https://blended.amauonline.com/mod/quiz/attempt.php?attempt=34090768#q18 4/8
2/18/2019 Prelims
Question 18 It is a unit of data – is a symbol or a set of symbols which is used to represent
Answer saved something.
Marked out of
1.00
Answer: datum –

Question 19 It is an association among several entities.


Answer saved

Marked out of Answer: relationship


1.00

Question 20 An alter statement that is used to delete an existing column in the table.
Answer saved

Marked out of Select one:


1.00
a. ADD

b. DELETE

c. DROP
d. MODIFY

Question 21 Are said to exhibit physical data independence if they do not depend on the physical
Answer saved schema.
Marked out of
1.00
Answer: Application programs

Question 22 The overall logical structure schema of a database can be expressed graphically by an
Not yet
E-R diagram .
answered

Marked out of
1.00

https://blended.amauonline.com/mod/quiz/attempt.php?attempt=34090768#q18 5/8
2/18/2019 Prelims
Question 23 Which of the following is the correct example updating the student LASTNAME TO
Answer saved ‘SANTOS’ and course to ‘BSCS’ whose STUD_ID is equal to 109?
Marked out of
1.00 Select one:
a. UPDATE TABLE EMPLOYEES
SET LASTNAME = ‘SANTOS’, COURSE = ‘BSCS’
WHERE STUD_ID = 109;

b. UPDATE TABLE EMPLOYEES


SET LASTNAME = ‘SANTOS’, SET COURSE = ‘BSCS’
WHERE STUD_ID = 109;

c. UPDATE EMPLOYEES
SET LASTNAME = ‘SANTOS’, COURSE = ‘BSCS’
WHERE STUD_ID = 109;

d. UPDATE EMPLOYEES
SET LASTNAME = ‘SANTOS’, SET COURSE = ‘BSCS’
WHERE STUD_ID = 109;

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


Answer saved

Marked out of Select one:


1.00
a. Database management system
b. Relational model

c. Relational database
d. Relational server

Question 25 Which of the following is the correct example of adding a new column ADDRESS
Answer saved datatypevarchar size 20 to EMPLOYEES table?
Marked out of
1.00 Select one:
a. ALTER TABLE EMPLOYEES
ADD ADDRESS VARCHAR(20);

b. ALTER TABLE EMPLOYEES


SET ADDRESS VARCHAR(20);

c. ALTER TABLE EMPLOYEES


ADD COLUMN ADDRESS VARCHAR(20);

d. ALTER EMPLOYEES
ADD ADDRESS VARCHAR(20);

https://blended.amauonline.com/mod/quiz/attempt.php?attempt=34090768#q18 6/8
2/18/2019 Prelims
Question 26 Which of the following is the correct example of modifying the column JOB_ID?
Answer saved Change the datatype size to 10.
Marked out of
1.00 Select one:
a. ALTER TABLE EMPLOYEES
MODIFY SET JOB_ID CHAR(10);

b. ALTER EMPLOYEES
MODIFY JOB_ID CHAR(10);

c. ALTER EMPLOYEES
MODIFY SET JOB_ID CHAR(10);

d. ALTER TABLE EMPLOYEES


MODIFY JOB_ID CHAR(10);

Question 27 Suppose that a user uses the DELETE statement as shown below: what is/are the
Answer saved possible output.
Marked out of
1.00

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 28 It is the collection of basic objects.


Answer saved
Marked out of Answer: relational model
1.00

https://blended.amauonline.com/mod/quiz/attempt.php?attempt=34090768#q18 7/8
2/18/2019 Prelims
Question 29 Which of the following is the correct example of updating the LASTNAME to ‘REYES’
Answer saved of all students from STUDENTS table whose STUD_ID is equal to 01020564?
Marked out of
1.00 Select one:
a. UPDATE STUDENTS
SET LASTNAME = ‘REYES’
WHERE STUD_ID = 01020564;

b. UPDATE TABLE STUDENTS


SET LASTNAME = ‘REYES’
WHERE STUD_ID = 01020564;

c. UPDATE TABLE STUDENTS


SET STUD_ID = 01020564;
WHERE LASTNAME = ‘REYES’;

d. UPDATE STUDENTS
SET STUD_ID = 01020564;
WHERELASTNAME = ‘REYES’;

Question 30 Which of the following is the correct example of deleting a student record from
Answer saved STUDENTS table whose COURSE is equal to NULL;
Marked out of
1.00 Select one:
a. DELETE * FROM STUDENTS
WHERE COURSE IS NULL;

b. DELETE FROM STUDENTS


WHERE COURSE IS NULL;

c. DELETE FROM STUDENTS


WHERE COURSE = ‘NULL’;

d. DELETE FROM STUDENTS


WHERE COURSE IS =NULL;

https://blended.amauonline.com/mod/quiz/attempt.php?attempt=34090768#q18 8/8

Вам также может понравиться