We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3
EXAMINATION SHEET
FOR DBA LEVEL III
1. With SQL, how can you insert a new record into the “DEPARTMENT” table? a. Insert into DEPARTMENT(DepName,Dnumber) values(‘Textile’,’Tex003’) b. Insert into DEPARTMENT(‘Textile’,’Tex003’) c. Insert values into DEPARTMENT (‘Textile’,’Tex003’) d. Insert into (DepName,Dnumber) values(‘Textile’,’Tex003’) 2. With SQL server,how can you assign a value to a variable? a. Set @FirstName=’abebe’ b. Set @@FirstName=’abebe’ c. Set FirstName=abebe d. Set FirstName=”abebe” 3. Which one of the following is the best example for composite attributes? a. Name b. Age c. College_Diploma d. ID 4. Which type of join should you use if you want to return only matched rows? a. Inner join b. Left outer join c. Right outer join d. Full outer join 5. ________deals with fixing the database after a failure, such as a hard disk malfunction a. Recovery b. Backup c. Security d. Access control 6. Which of the following is the Data Manipulation Language command? a. Alter b. Update c. Create d. Drop 7. Which of the following is a correct syntax to modify a table? a. alter table <TableName><ColumnName><data type><field size><constraints> b. ALTER TABLE ADD<ColumnName><data type><field size><constraints> c. ALTER TABLE <TableName>ADD<ColumnName><data type><field size><constraints> d. ALTER TABLE <TableName>DROP<ColumnName> 8. Which one of the following is false when using the Identity Property? a. It must be used with character data type b. Only one identity column is allowed per table c. It cannot be updated d. It does not allow null values 9. Which of the following is an advantage of DBMS? a. Requires expertise and resources to administer b. Initial training required for all users c. Facilitated development of new applications program d. Cost of Hardware and Software 10. With SQL, how can you populatea ‘EMPLOYEE’ Table with Rows from DEPENDENTED? a. Insert into FirstName, LastName EMPLOYEE from DEPENDENTED b. Select FirstName, LastName into DEPENDENTED fromEMPLOYEE c. Insert into FirstName, LastName DEPENDENTED fromEMPLOYEE d. Select FirstName, LastName into EMPLOYEE from DEPENDENTED 11. Which SQL statement is correct to update the value of Salary field by 25% for an employee who has an ID of ‘202’ in the “EMPLOYEE” table? a. Update set Salary=Salary*25%+Salary where ID=’202’ b. Update set Salary=Salary*25%+Salary EMPLOYEE where ID=’202’ c. UpdateEMPLOYEE set Salary=Salary*25%+Salary where ID=’202’ d. Update set Salary=Salary*25%+Salary FROM EMPLOYEE where ID=’202’ 12. With SQL, how can you return all the records from a table named “EMPLOYEE” sorted Ascending by “LastName”? a. Select *from EMPLOYEE ORDER LastNameAsc b. Select *from EMPLOYEE ORDER BY LastNameDesc c. Select *from EMPLOYEE ORDER LastNameDesc d. Select *from EMPLOYEE ORDER BY LastNameAsc 13. With SQL, how can you return the number of records in the “COURSE” table? a. Select columns() from COURSE b. Select columns(*) from COURSE c. Select count() from COURSE d. Select count(*) from COURSE 14. With SQL, how do you select all the records from a table named “STUDENT” where the value of the column “Department” is “Computing”? a. Select from STUDENT where Department=’computing’ b. Select * from STUDENT where Department=’computing’ c. Select * from STUDENT where Department <> ‘computing’ d. Select * from STUDENT where Department!=’computing’ 15. All fields’ value from a specific entity can be grouped together as a a. File b. Field c. Records d. Database 16. Which one of the following is SQL server system database component except? a. Master database b. Tempdb database c. Model database d. Conventional database 17. Which one of the following cardinality is more appropriate for a relationship between PEPOLE table and LANGUGE table? a. One – to –one b. One – to –many c. Many – to – many d. Has no relationship 18. Which one of the following is the benefit of modular programming? a. Less code has to be written b. Codes are simple and easy to understand c. It allows many programmers to collaborate on the same application d. All of the above 19. Which of the following is NOT a data type? a. ID b. Float c. Double d. Money 20. Which of the following is true about primary key? a. Primary keys do not allow null values b. Two rows cannot have the same primary key value c. A primary key value always uniquely identifies a single row d. All tables must have a primary key e. All of the above