Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

CS351-Database Management System 1: Short Quiz 2

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 44

CS351-Database Management System 1

Short quiz 2

Which of the following is not part of transaction control?

Select one:

a. SAVEPOINT

b. ROLLBACK

c. COMMIT

d. CREATE

Check

Feedback
Correct
Marks for this submission: 1.00/1.00.

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

Select one:

a. Insert

b. merge

c. Alter

d. Update

Check

Feedback
Correct
Marks for this submission: 1.00/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 server

d. Relational database

Check

Feedback
Correct
Marks for this submission: 1.00/1.00.

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

Select one:

a. Grant

b. Revoke

c. Insert

Check

Feedback
Correct
Marks for this submission: 1.00/1.00.

He proposed the relational model for database systems in 1970.

Select one:
a. Dr. E.F Codd

b. Dr. J.F Codd

c. Dr. Lee Codd

d. DrcL.F Codd

Check

Feedback
Correct
Marks for this submission: 1.00/1.00.

SHORT QUIZ 3

An alter statement that is used to add new column to the table.

Select one:

a. DELETE

b. MODIFY

c. ADD

d. DROP

Check

Feedback
Correct
Marks for this submission: 1.00/1.00.

Which of the following is not true about ALTER statement?

Select one:
a. Drop a column

b. Define a default value for the new column

c. Insert new row in a table

d. Modify an existing column definition

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.

An alter statement that is used to delete an existing column in the table.

Select one:

a. ADD
b. DELETE

c. MODIFY

d. DROP

Check

Feedback
Correct
Marks for this submission: 1.00/1.00.

Basic unit of storage composed of rows and columns

Select one:

a. Index

b. View

c. Table

d. Synonym

Check

Feedback
Correct
Marks for this submission: 1.00/1.00.

An alter statement that is used to update an existing column datatype or datatype


size.

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:

a. ALTER TABLE STUDENTS


ADD CITY VARCHAR(10);

b. ALTER TABLE STUDENTS


ADD COLUMN CITY VARCHAR(10);

c. ALTER TABLE STUDENTS


ADD CITY CHAR(10);

d. ALTER TABLE STUDENTS


ADD COLUMN CITY CHAR(10);

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);

c. ALTER TABLE STUDENTS


MODIFY ADDRESS VARCHAR(20);

d. ALTER TABLE 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.

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

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.

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

Select one:

a. Table
b. Synonym

c. Index

d. View

Check

Feedback
Correct
Marks for this submission: 1.00/1.00.

ASSIGNMENT #1

Which of the following is the correct example of dropping the table


EMPLOYEES?

Select one:

a. DROP EMPLOYEES;

b. DROP TABLE EMPLOYEES;

c. ALTER TABLE DROP EMPLOYEES;

d. ALTER TABLE DROP TABLE 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

MODIFY 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 SET JOB_ID CHAR(10);


Check

Feedback
Correct
Marks for this submission: 1.00/1.00.

Which of the following is the correct example of adding a new column


CONTACT_NOdatatypeNUMBER size 11 to EMPLOYEES table?
Select one:

a. ALTER EMPLOYEES

ADD CONTACT_NO NUMBER(11);

b. ALTER TABLE EMPLOYEES

ADD CONTACT_NO NUMBER(11);

c. ALTER TABLE EMPLOYEES

ADD CONTACT_NO NUMBER;


d. ALTER TABLE EMPLOYEES

ADD COLUMN CONTACT_NO NUMBER(11);


Check

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:

a. RENAME EMPLOYEES AS WORKERS;

b. RENAME TABLE EMPLOYEES TO WORKERS;

c. RENAME EMPLOYEES TO WORKERS;

d. ALTER TABLE RENAME EMPLOYEES TO WORKERS;

Check

Feedback
Correct
Marks for this submission: 1.00/1.00.

Which of the following is the correct example of truncating the table


EMPLOYEES?

Select one:

a. ALTER TABLE TRUNCATE EMPLOYEES;

b. TRUNCATE TABLE EMPLOYEES;


c. ALTER TABLE TRUNCATE TABLE EMPLOYEES;

d. TRUNCATE EMPLOYEES;

Check

Feedback
Correct
Marks for this submission: 1.00/1.00.

Which of the following is the correct example of removing a column FIRSTNAME


from EMPLOYEES table?
Select one:

a. ALTER TABLE EMPLOYEES

DROP FIRSTNAME;

b. ALTER EMPLOYEES

FROM COLUMN FIRSTNAME;

c. ALTER EMPLOYEES

FROM N FIRSTNAME;

d. ALTER TABLE EMPLOYEES

DROP COLUMN FIRSTNAME;


Check

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:

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

b. CREATE TABLE STUDENTS( STUD_ID NUMBER(3) pk);

c. CREATE TABLE STUDENTS( STUD_ID NUMBER(3) datatypePRIMARY


KEY);

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

Check

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 removing a column SALARY


from EMPLOYEES table?
Select one:

a. ALTER TABLE EMPLOYEES

DROP SALARY;

b. ALTER EMPLOYEES

DROP COLUMN SALARY;

c. ALTER TABLE EMPLOYEES

DROP COLUMN SALARY;


d. 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

SET LASTNAME  = VARCHAR(20);

b. ALTER TABLE EMPLOYEES

SETLASTNAME  =VARCHAR(20);

c. ALTER TABLE EMPLOYEES

MODIFY LASTNAME VARCHAR(20);

d. ALTER EMPLOYEES

MODIFY LASTNAME VARCHAR(20);


Check

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:

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);


Check

Feedback
Correct
Marks for this submission: 1.00/1.00. Accounting for previous tries, this gives 0.00/1.00.

SHORT QUIZ 4

A type of DML statement that is use to remove existing rows in a table.


Select one:

a. DELETE

b. TRUNCATE

c. UPDATE

d. INSERT
Check

Feedback
Correct
Marks for this submission: 1.00/1.00.

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

Select one:

a. TRUNCATE

b. DELETE

c. INSERT

d. UPDATE

Check

Feedback
Correct
Marks for this submission: 1.00/1.00.

Consists of a collection of DML statements that form a logical unit of work.

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:

a. INSERT INTO STUDENTS VALUES (10,’ELENA’)

b. INSERT INTO STUDENST(USN_ID, FIRSTNAME)


VALUES(10,’ELENA’)

c. INSERT INTO STUDENTS VALUES (USN_ID, FIRSTNAME)


(10,’ELENA’)

d. INSERT INTO STUDENTS VALUES (10, NULL,’ELENA’,NULL);

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:

a. All rows are deleted but the table is still intact.

b. 0 rows are updated.

c. 0 rows are deleted.

d. All rows are deleted including table structure.

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:

a. INSERT INTO STUDENST(USN_ID, FIRSTNAME)


VALUES(10,’ELENA’)

b. INSERT INTO STUDENTS VALUES (USN_ID, FIRSTNAME)


(10,’ELENA’)

c. INSERT INTO STUDENTS VALUES (10, NULL,’ELENA’,NULL);

d. INSERT INTO STUDENTS VALUES (10,’ELENA’)

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:

a. UPDATE TABLE STUDENTS

SET COURSE = ‘N/A’


WHERE COURSE = NULL;

b. UPDATE STUDENTS

SET COURSE = ‘N/A’


WHERE COURSE IS NULL;

c. UPDATE STUDENTS

SET COURSE = ‘N/A’


WHERE COURSE = NULL;

d. UPDATE TABLE STUDENTS

SET COURSE = ‘N/A’


WHERE COURSE IS NULL;
Check

Feedback
Correct
Marks for this submission: 1.00/1.00. Accounting for previous tries, this gives 0.33/1.00.

Which of the following is the correct example of updating the LASTNAME to


‘REYES’ of all students from STUDENTS table whose STUD_ID is equal to
01020564?
Select one:

a. UPDATE STUDENTS

SET STUD_ID = 01020564;


WHERELASTNAME = ‘REYES’;

b. UPDATE TABLE STUDENTS

SET STUD_ID = 01020564;


WHERE LASTNAME = ‘REYES’;

c. UPDATE TABLE STUDENTS

SET LASTNAME = ‘REYES’


WHERE STUD_ID = 01020564;
d. UPDATE STUDENTS

SET LASTNAME = ‘REYES’


WHERE STUD_ID = 01020564;
Check

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:

a. UPDATE TABLE STUDENTS

SET COURSE = ‘BSIT’


WHERE COURSE = ‘BSIT’;

b. UPDATE TABLE STUDENTS

SET COURSE = ‘BSIT’;

c. UPDATE STUDENTS

SET COURSE = ‘BSIT’;

d. UPDATE STUDENTS

SET COURSE = ‘BSIT’


WHERE COURSE = ‘BSIT’;
Check
Feedback
Correct
Marks for this submission: 1.00/1.00. Accounting for previous tries, this gives 0.67/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’, SET 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’, COURSE = ‘BSCS’


WHERE STUD_ID = 109;
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’
Select one:

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

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

c. INSERT INTO STUDENTS VALUES (STUD_ID,LASTNAME)

(10,’CRUZ’);

d. INSERT INTO STUDENTS(STUD_ID,LASTNAME)

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

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 (1,'DELA CRUZ','JUANITO','BSIT');

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

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

Check

Feedback
Correct
Marks for this submission: 1.00/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 VALUES(1,'DELA CRUZ','JUANITO',NULL);

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

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

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

Check

Feedback
Correct
Marks for this submission: 1.00/1.00. Accounting for previous tries, this gives 0.67/1.00.

Which of the following is the correct example of deleting all records in


STUDENTS table;
Select one:

a. DROP TABLE STUDENTS;

b. DELETE * FROM STUDENTS;

c. DELETE TABLE STUDENTS;

d. DELETE FROM STUDENTS;

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:

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

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

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

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

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:

a. DELETE * FROM STUDENTS

WHERE COURSE IS NULL;

b. DELETE FROM STUDENTS

WHERE COURSE = ‘NULL’;

c. DELETE FROM STUDENTS

WHERE COURSE IS NULL;

d. DELETE FROM STUDENTS


WHERE COURSE IS  =NULL;
Check

Feedback
Correct
Marks for this submission: 1.00/1.00. Accounting for previous tries, this gives 0.00/1.00.

SHORT QUIZ 5

It is a value that is unavailable, unassigned, unknown, or inapplicable.

Select one:

a. Blank

b. Zero

c. NULL

d. Space

Check

Feedback
Correct
Marks for this submission: 1.00/1.00.

Which of the following is not true about writing SQL statements?


Select one:

a. Keywords cannot be split across lines or abbreviated.

b. SQL statements are case sensitive.

c. Clauses are usually placed on separate lines for readability and ease of editing.

d. Indents should be used to make code more readable.


Check

Feedback
Correct
Marks for this submission: 1.00/1.00. Accounting for previous tries, this gives 0.33/1.00.

This character is used to override the default precedence or to clarify the


statement.

Select one:

a. ||

b. ( )

c. AS

d. *

Check

Feedback
Correct
Marks for this submission: 1.00/1.00.

It is a character, a number, or a date that is included in the SELECT statement.

Select one:

a. Literal

b. Table name

c. String

d. Alias

Check
Feedback
Correct
Marks for this submission: 1.00/1.00.

This is use to create expression with number and date values.

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:

a. Error because of missing “” mark.

b. Will display the column GRADE rename as STUDENT MARK

c. Will display all rows and columns.

d. Error because of the keyword AS.

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.

True/False. The != not equal to symbol is also equal to this symbol<>.


TRUE
Answer: 

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.

True/False. A null value means that the value is unavailable, unassigned,


unknown, or inapplicable.
TRUE
Answer: 

Check

Feedback
Correct
Marks for this submission: 1.00/1.00.

This is used to perform wildcard searches of valid search string values.

Select one:

a. Between

b. Like

c. Comparison

d. IN

Check

Feedback
Correct
Marks for this submission: 1.00/1.00.

This is used to display rows based on a range of values.

Select one:

a. IN

b. Like

c. Between
d. Comparison

Check

Feedback
Correct
Marks for this submission: 1.00/1.00.

This is used to test for values in a specified set of values.

Select one:

a. Between

b. Like

c. IN

d. Comparison

Check

Feedback
Correct
Marks for this submission: 1.00/1.00.

This is used to restrict the rows that are returned by a query.

Select one:

a. Insert

b. Select

c. Where

d. Delete

Check
Feedback
Correct
Marks for this submission: 1.00/1.00.

True/False. This symbol % denotes zero or many characters.


TRUE
Answer: 

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

Which of the following is not part of other Comparison Operator?

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.

Which of the following is not part of DML statement?

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 NAME, ORG, POSITION


FROM ORGCHAR
WHERE ORG =’JPCS’
OR POSITION = ‘SEC’
AND NAME LIKE ‘%N’;
Select one:
a. 0 rows selected
b. Incorrect SELECT statement
c. It will retrieve the record of JOAN and ROAN
d. It will retrieve the record of JOAN,ROAN and JUN
Check

INSERT INTO ORGCHART VALUES (11,’YAMBAO,JUN’, NULL, NULL); 


Select one:
a. The ORG and POSITION of YAMBAO will automatically sets to NULL.
b. Cannot insert the record because of missing values for ORG and POSITION.
c. The ORG and POSITION of YAMBAO will automatically sets to None.
d. The ORG and POSITION of YAMBAO will automatically sets to N/A

Which of the following is not the correct example of entity?

Select one:

a. EMPLOYEES

b. Phone_no

c. STUDENT
d. ORDERS

Check

Feedback
Correct
Marks for this submission: 1.00/1.00.

SELECT NAME, ORG, POSITION


FROM ORGCHAR
WHERE NAME LIKE ‘A%’
AND POSITION = ‘SEC’;
Select one:

a. It retrieves the record of ANNA and MOJICA

b. It retrieves the record of AGAPITO

c. 0 rows selected / no rows selected

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.

SELECT NAME, ORG, POSITION, ID * (100 + 3)


FROM ORGCHAR
WHERE ORG = ‘AMATHS’
Select one:

a. It will retrieve the record of ANNA with new ID of 1003

b. It will retrieve the record of ANNA with new ID of 10

c. 0 rows selected

d. It will retrieve the record of ANNA with new ID of 1030

Check

Feedback
Correct
Marks for this submission: 1.00/1.00. Accounting for previous tries, this gives 0.33/1.00.

Which of the following is not part of advantage of database?

Select one:

a. Efficient data access

b. Data integrity and security

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

c. None of the choices

d. CREATE

Check

Feedback
Correct
Marks for this submission: 1.00/1.00. Accounting for previous tries, this gives 0.67/1.00.

SELECT NAME, ORG, POSITION


FROM ORGCHAR
WHERE NAME LIKE ‘%A’;
Select one:

a. It retrieves the record of AGAPITO

b. Incorrect SELECT statement

c. 0 rows selected / no rows selected

d. It retrieves the record of ANNA and MOJICA

Check

Feedback
Correct
Marks for this submission: 1.00/1.00.

Which of the following is not part of handling data?


Select one:

a. Semi-Computerized

b. File Oriented Approach

c. Data Management Systems

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:

a. ALTER TABLE PARTS


ADD CUST_NAME CHAR(6);

b. ALTER PARTS
ADD CUST_NAME CHAR(6);

c. ALTER TABLE PARTS


SET 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.

Which of the following is not part of characteristics of database?

Select one:

a. Transactions

b. Data Integrity

c. Data Processing

d. Data Persistence

Check

Feedback
Correct
Marks for this submission: 1.00/1.00.

Which of the following is not part of basic SELECT statement

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.

Which of the following is not part of disadvantage of database?

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.

Which of the following is not part of common Comparison operator?


Select one:

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.

You might also like