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

Home My courses CS-350-LEC-1913T Week 4: Preliminary Examination Prelims



Question 1 Which of the following is the correct example of modifying the
 Not yet column lastname? Change the datatype size to 20.
answered
 Marked out of Select one:
1.00
a. ALTER TABLE EMPLOYEES
 MODIFY LASTNAME VARCHAR(20);


b. ALTER EMPLOYEES
SET LASTNAME  = VARCHAR(20);

c. ALTER TABLE EMPLOYEES


SETLASTNAME  =VARCHAR(20);

d. ALTER EMPLOYEES
MODIFY LASTNAME VARCHAR(20);

Clear my choice

Question 2 Suppose that a user wanted to change the datatype of column


Not yet ADDRESS from Varchar to Char which of the following is the
answered correct example.
Marked out of
1.00
Select one:
a. ALTER STUDENTS
SET ADDRESS VARCHAR(20);

b. ALTER TABLE STUDENTS


MODIFY ADDRESS VARCHAR(20);

c. ALTER STUDENTS
MODIFY ADDRESS VARCHAR(20);

d. ALTER TABLE STUDENTS


SET ADDRESS VARCHAR(20);

Clear my choice

Question 3 It is a collection of interrelated data and a set of programs to


Not yet access those data.
answered

Marked out of
Answer: Database Management System
1.00
Question 4 Which of the following is the correct example of creating a new
Not yet table STUDENTS? The column STUD_ID is set to primary key.
answered

Marked out of Select one:


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



Clear my choice

 Question 5 Which of the following is not part of data control language?


Not yet
 answered
Select one:
Marked out of
a. Revoke
1.00
b. Grant

c. Insert

Clear my choice

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


Not yet
answered
Select one:
Marked out of
a. ROLLBACK
1.00
b. SAVEPOINT

c. COMMIT

d. CREATE

Clear my choice

Question 7 Which of the following is the correct example of removing a


Not yet column FIRSTNAME from EMPLOYEES table?
answered

Marked out of Select one:


1.00
a. ALTER TABLE EMPLOYEES
DROP FIRSTNAME;

b. ALTER TABLE EMPLOYEES


DROP COLUMN FIRSTNAME;

c. ALTER EMPLOYEES
FROM N FIRSTNAME;

d. ALTER EMPLOYEES
FROM COLUMN FIRSTNAME;

Clear my choice
Question 8 Which of the following is not true about ALTER statement?
Not yet
answered
Select one:
Marked out of
 a. Insert new row in a table
1.00
b. Define a default value for the new column
 c. Modify an existing column definition

 d. Drop a column

Clear my choice

 Question 9 This describes the database design at the logical level.


Not yet
 answered
Answer: Logical Schema
Marked out of
 1.00

Question 10 A type of DML statement that is use to update existing rows in a


Not yet table.
answered

Marked out of Select one:


1.00
a. UPDATE

b. INSERT

c. TRUNCATE

d. DELETE

Clear my choice

Question 11 The overall design of the database is called the


Not yet
answered
Answer: Database Schema
Marked out of
1.00

Question 12 It is a unit of data – is a symbol or a set of symbols which is used


Not yet to represent something.
answered

Marked out of
Answer: Datum
1.00

Question 13 Suppose that a user uses the DELETE statement as shown below:
Not yet what is/are the possible output.
answered
 
Marked out of
1.00 DELETE from STUDENT;

Select one:
a. 0 rows are updated.

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

c. All rows are deleted including table structure.

d. 0 rows are deleted.

Clear my choice
Question 14 Which of the following is the correct example of updating the
Not yet LASTNAME to ‘REYES’ of all students from STUDENTS table whose
answered
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 STUD_ID = 01020564;

WHERE LASTNAME = ‘REYES’;


c. UPDATE STUDENTS
 SET STUD_ID = 01020564;

WHERELASTNAME = ‘REYES’;

d. UPDATE TABLE STUDENTS


SET LASTNAME = ‘REYES’
WHERE STUD_ID = 01020564;

Clear my choice

Question 15 It is an association among several entities.


Not yet
answered
Answer: Relationship
Marked out of
1.00

Question 16 Basic unit of storage composed of rows and columns


Not yet
answered Select one:
Marked out of
a. Synonym
1.00
b. Index

c. Table

d. View

Clear my choice

Question 17 It is an interpreted data – data supplied with semantics.


Not yet
answered
Answer: Information
Marked out of
1.00

Question 18 Are applied to the table and form the logical schema.
Not yet
answered
Answer: Constraints
Marked out of
1.00
Question 19 Is the underlying the structure of a database.
Not yet
answered
Answer: Data Models
Marked out of
 1.00


Question 20 Which of the following is the correct example of updating the
Not yet COURSE to ‘N/A’ of all students from STUDENTS table whose
 answered
course IS NULL;
Marked out of
 1.00
Select one:
a. UPDATE TABLE STUDENTS

SET COURSE = ‘N/A’

 WHERE COURSE IS NULL;

b. UPDATE TABLE STUDENTS


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

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

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

Clear my choice

Question 21 An alter statement that is used to delete an existing column in


Not yet the table.
answered

Marked out of Select one:


1.00
a. MODIFY

b. DELETE

c. ADD

d. DROP

Clear my choice

Question 22 Which of the following is the correct example of truncating the


Not yet table EMPLOYEES?
answered

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;

Clear my choice
Question 23 It is a bundle of actions which are done within a database to
Not yet bring it from one consistent state to a new consistent state.
answered

Marked out of
 Answer: Transaction
1.00


Question 24 Which of the following is the correct example of renaming the
Not yet table EMPLOYEES to WORKERS?
 answered

Marked out of Select one:


 1.00
a. RENAME EMPLOYEES TO WORKERS;

 b. ALTER TABLE RENAME EMPLOYEES TO WORKERS;

c. RENAME TABLE EMPLOYEES TO WORKERS;



d. RENAME EMPLOYEES AS WORKERS;

Clear my choice

Question 25 Which of the following is the correct example of deleting all


Not yet records in STUDENTS table;
answered

Marked out of Select one or more:


1.00
a. DROP TABLE STUDENTS;

b. DELETE * FROM STUDENTS;

c. DELETE TABLE STUDENTS;

d. DELETE FROM STUDENTS;

Question 26 It is a collection of relations or two-dimensional tables


Not yet controlled by the Oracle server.
answered

Marked out of Select one:


1.00
a. Relational database

b. Relational model

c. Relational server

d. Database management system

Clear my choice

Question 27 The overall logical structure schema of a database can be


Not yet
expressed graphically by an E-R Diagram .
answered

Marked out of
1.00
Question 28 Which of the following is the correct example of dropping the
Not yet table EMPLOYEES?
answered

Marked out of Select one:


 1.00
a. DROP TABLE EMPLOYEES;

 b. DROP EMPLOYEES;

c. ALTER TABLE DROP EMPLOYEES;



d. ALTER TABLE DROP TABLE EMPLOYEES;

 Clear my choice


Question 29 Which of the following is the correct example of removing a
 Not yet column SALARY from EMPLOYEES table?
answered

 Marked out of Select one:


1.00
a. ALTER TABLE EMPLOYEES
DROP SALARY;

b. ALTER TABLE EMPLOYEES


DROP COLUMN SALARY;

c. ALTER EMPLOYEES
DROP COLUMN SALARY;

d. ALTER EMPLOYEES
DROP SALARY;

Clear my choice

Question 30 Consists of a collection of DML statements that form a logical


Not yet unit of work.
answered

Marked out of Select one:


1.00
a. Transaction

b. Select

c. DML

d. DDL

Clear my choice

Stay in touch
AMA EDUCATION SYSTEM
 https://blended.amauonline.com/helpdesk

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