EMT Practice Test

1. Question Content...


Question List

Question1: Consider the following relations shown in the exhibit. Which of the following SQL statements would return the Customers2 relation from the Customers relation?

Question2: Consider the Information Engineering diagram shown in the exhibit for a building management company.
Referential integrity must be maintained such that a building cannot be deleted when it has residents.
Building_ID, R_ID, Room_Count and Room_Num are integer numbers, whereas Bldg_Name, Location and Res_Name are all represented by variable-length strings with a maximum of 20 characters. Which SQL statement best implements the relations shown in this diagram?

Question3: What improvement can be made to file-based databases to overcome their limitations?

Question4: Which of the following is a characteristic of the three-tier database architecture?

Question5: Consider the following relational algebraic expression: Which of the following SQL statements is equivalent to this relational algebraic expression?

Question6: Consider the relations shown in the exhibit. Which of the following SQL statements would enter data from the Customers relation into the Atlanta_Customers relation?

Question7: Consider the Employee relation shown in the exhibit. A database manager wants to set up a view called Emp_Dept that allows users to find employees and their department ID numbers. Which SQL statement will accomplish this?

Question8: Consider the Orders relation shown in the exhibit. Which of the following SQL statements would replace the value in the Sales_Rep_No column with 110 everywhere that Sales_Rep_No 108 is listed?

Question9: Your enterprise is developing a database system that will contain highly sensitive data. Security of the data will take priority over database processing speed. Which database protection technique should be employed?

Question10: Which of the following best describes a composite key?

Question11: Consider the Information Engineering diagram shown in the exhibit. Building_ID, R_ID, Room_Count and Room_Num are integer numbers, whereas Bldg_Name, Location and Res_Name are all represented by variable-length strings with a maximum of 20 characters.
Which SQL statement best implements the RESIDENT relation shown in this diagram?

Question12: Consider the Registration relation shown in the exhibit. Which of the following SQL statements would return the Registration2 relation from the Registration relation?

Question13: Which area of database security involves maintaining access to enterprise data?

Question14: Consider the table shown in the exhibit. Which relational algebraic operation would return Row 3?

Question15: Consider the following table as well as the Dept1_Parts and Dept2_Parts relations shown in the exhibit:
Which of the following relational algebraic expressions would result in the given table?


Question16: Consider the Stu_Act and Act_Fee tables shown in the exhibit. Which relational algebraic operation would yield the Activity Relation table in the exhibit?

Question17: In which situation would the DBMS use a serial schedule to execute the transactions?

Question18: A relation for a construction company is shown in the exhibit. Which of the following best defines the relationship between Cust_ID and Cust_Name?

Question19: Which statement best describes a procedural data manipulation language command?

Question20: Consider the following relational algebraic expression as well as the Dept1_Parta and Dept2_Parts relations shown in the exhibit: Which of the following relations would result form the given relational algebraic expression?

Question21: The exhibit shows a relation for a company projects. Which candidate key(s) would best serve as the primary key for this relation?

Question22: Consider the Registration relation shown in the exhibit. Which of the following SQL statements would return all tuples that have course codes beginning with the letter M?

Question23: Consider the relation shown in the exhibit. Which of the following SQL statements would properly remove all tuples for New York customers?

Question24: Consider the following relation definition:
STUDENT(
Student_Number: integer NOT NULL
Name: variable length character string length 20 NOT NULL)
Primary Key Student_Number
HOUSING(
Housing_ID: integer NOT NULL
Student_Number: integer NOT NULL
Building: variable length character string length 25 NOT NULL)
Primary Key Housing_ID
Foreign Key Student_Number References
STUDENT(Student_Number)
ON DELETE NO CHECK
ON UPDATE
Which integrity constraint is violated in this relation definition?

Question25: Consider the Information Engineering diagram in the exhibit showing the relations BUILDING and RESIDENT. What is the relationship between BUILDING and RESIDENT?

Question26: Which term describes an attribute or combination of attributes that uniquely identifies a row in a relation?

Question27: Consider the Registration relation shown in the exhibit. Which of the following SQL statements would return all tuples that have course codes beginning with the letter M?

Question28: Consider the following DBDL description of an entity: Teachers (teach_num: variable length character string length 10 NOT NULL teach_name: variable length character string length 10 NOT NULL) Primary Key: teach_num which integrity constraint is satisfied?

Question29: Which of the following occurs in a relation when records are added or removed?

Question30: Which database architecture is best suited to implementation in the World Wide Web environment?

Question31: For the Employee relation shown in the exhibit, which set of column value holds the complete tuple for the employee named James Smith?

Question32: Consider the Dept1_Parts and Dept2_Parts relations shown in the exhibit. Which of the following SQL statements would create an intersection of the two relations with the widest variety of Structured Query Language dialects?

Question33: Which pair of relational algebraic operations requires union compatibility?

Question34: Several SQL operations are performed by User 1 to access the Fee information for Bowling in the Act_Fee relation (shown in the exhibit). The first access returns a fee of 50. An unrelated SQL operation by another user updates the Bowling fee to 60. The second access by User 1 returns a fee of 60. What problem has occurred?

Question35: The exhibit shows a table called Housing Relation that relates a unique student identification number with a dormitory building and a room fee for that building. Each building charges only one fee and a student can live in only one building. The key for the Housing Relation is Student_ID.
This table is in which normal form?

Question36: Consider the entity-relationship (ER) diagram shown in the exhibit. What do the characters at the ends of the connecting line indicate?

Question37: Which process is used to prevent the current database operation from reading or writing a data item while that data item is being accessed by another operation?

Question38: In a relational database, which term describes a single table consisting of rows and columns?

Question39: Consider the symbols shown in the exhibit. Which of the following correctly identifies these symbols when used in an entity-relationship (ER) diagram?

Question40: Which statement is used to define a named group of related tables, views, domains and other database objects?

Question41: The exhibit shows a table called Activity Relation that relates a unique student identification number with a sports activity and a fee for participating in that activity. A student can participate in only one activity. The key for the relation is Student_ID. What consequence would occur if the tuple for Student_ID 1001 were removed?

Question42: What is a domain?

Question43: To create a view, what are the minimal privileges that a user must have for the relations used to make the view?

Question44: Consider the following SQL statement and the Orders relation shown in the exhibit:

What is the output of this SQL statement?

Question45: Consider the relations shown in the exhibit. Due to restructuring, the sales department has been eliminated and the employees working in that department have been dismissed. All ID information is stored as integers. Which SQL statement would be used to return a relation with all information for the employees who have been dismissed?

Question46: Which of the following describes two desirable characteristics of a primary key?

Question47: FROM Registration WHERE
Consider the following relational algebraic expression: Which of the following SQL Course_Code
'A4343';
statements is equivalent to this relational algebraic expression?

Question48: Consider the entity-relationship (ER) diagram shown in the exhibit. Which type of relationship between the two entities is shown?

Question49: Using the Customer and Sales_Rep relations shown in the exhibit, you must determine a relational algebraic expression that will result in the following relation: Which of the following relational algebraic expressions would result in this relation? Using the Customer and Sales_Rep relations shown in the exhibit, you must determine a relational algebraic expression that will result in the following relation: Which of the following relational algebraic expressions would result in this relation?

Question50: Which concurrency control method should be used only when conflicts between transactions rarely occur?

Question51: Your enterprise is involved in planning a database project. The exhibit shows the result of one phase of the database design life cycle. Which term best describes the diagram shown in the exhibit?

Question52: Which characteristic is an advantage of a database management system?

Question53: Consider the following relational algebraic expression as well as the Employee and Department relations shown in the exhibit: Which of the following relations would result from the given relational algebraic expression?

Question54: Which subset of Structured Query Language (SQL) is used to perform operations such as data retrieval or deletion on the data contained in a database?

Question55: What is the highest normal form of the relation(s) shown in the exhibit?

Question56: Consider the relation shown in the exhibit. Which of the following SQL statements would properly add information for a new employee?

Question57: Your database administrator has disallowed a group of users from making alterations to the Employees table in your corporate database. The users, known as Group_2, previously had full privileges with the Employees table. Which of the following SQL statements properly removes any alteration privileges from Group_2?

Question58: NULL) Primary Key Class_Num
Consider the Information Engineering diagram shown in the exhibit. Which DBDL definition best describes this diagram?

Question59: Which component in the three-tier database architecture handles the data-processing and business logic?

Question60: Consider the Recreation relation shown in the exhibit. You need to apply a SQL statement to the Recreation relation that will return the following data:
Which SQL statement applied to the Recreation relation will return this data?

Question61: Which type of relational integrity is violated if a primary key in a database has a null value?

Question62: Consider the entity-relation (ER) diagram shown in the exhibit. When the logical database design phase is completed, which of the following is a valid DBDL description of the base relations for the ER diagram?

Question63: Consider the following SQL statement and the Orders relation shown in the exhibit:
How many records should be returned?

Question64: You enterprise must decide whether to use a database management system. Which of the following lists four advantages of using a DBMS?

Question65: Which of the following definitions best describes an entity?

Question66: With regard to databases, what is normalization?

Question67: Consider the following four database design activities:
1 - Design user views.
2 - Select a DBMS.
3 - Apply normalization.
4 - Determine entities.
Which choice shows the correct ordering of these activities, from first to last, by assigned numbers?

Question68: Consider the table for an employee database shown in the exhibit. What is the cardinality of the table?

Question69: Consider the following database information:
domain s_id: integer domain grd: fixed length
character string length 1
STUDENT_GRADE(
Student_Number: s_id NOT NULL
Grade: grd ) Primary Key
Student_Number
During which phase of the database design process would this information be developed?

Question70: Your enterprise has reached the conceptual design phase for a database project. What is the desired goal at the end of this design phase?

Question71: Consider the table for an employee database shown in the exhibit. What is the degree of the table?

Question72: A large enterprise uses a two-tier database architecture and runs complex database applications.
Which term best describes the client in this system?

Question73: Which of the following best describes the information contained in the data dictionary (or system catalog)?

Question74: Which type of entity must reference another entity for its data to be meaningful?

Question75: Which of the following ACID properties requires that a transaction be executed in its entirety or not all?

Question76: What is the highest normal form of the relation(s) shown in the exhibit?

Question77: What is a data dictionary?

Question78: What is the highest normal form of the relation(s) shown in the exhibit?

Question79: Which term describes one or more database operations that are executed as a single unit?

Question80: Consider the relational database shown in the exhibit.
What is the foreign key in this database?

Question81: What is a relational database domain?

Question82: Which statement best describes a candidate key?

Question83: Your company must choose which type of database to use for a new project. Which of the following lists three characteristics of file-based database systems?

Question84: Which type of dependency occurs when one attribute of a composite key is removed and the dependency still exists?

Question85: Your enterprise is creating a relation (shown in the exhibit) that tracks parts and suppliers. Which situation would occur if new supplier information were entered in the relation before any information about specific parts?

Question86: Which of the following best describes the ON DELETE CASCADE referential integrity constraint?

Question87: Which of the following best describes the ON DELETE NO ACTION referential integrity constraint?

Question88: Which term describes the management of simultaneous transactions to prevent conflicts?

Question89: Which statement accurately describes a characteristic of attributes?

Question90: Consider the Recreation relation in the exhibit. A data operation that changes one of the tuples for Student_ID 1003 must be performed. It is necessary to change one of the activities from swimming to tennis. The Student_ID and Activity attributes make up the primary key for the Recreation relation. All related information must be altered, as well. Which SQL statement or statements would best accomplish this?

Question91: Consider the Project relation shown in the exhibit as well as the following SQL statement:
DELETE FROM Project
WHERE Cust_Name = Acme;
Which of the following tables shows the Project relation after execution of this SQL statement?

Question92: Which subset of Structured Query Language (SQL) is used to limit access to a database or its data?

Question93: A foreign key maps to a:

Question94: Consider the Information Engineering diagram shown in the exhibit. Building_ID, R_ID, Room_Count and Room_Num are integer numbers, whereas Bldg_Name and Res_Name are represented by variable-length strings with a maximum of 20 characters. Location can be up to 50 characters long, and no building has more than 600 rooms. Which SQL statement best implements the BUILDING relation shown in this diagram?

Question95: In which phase of database design do you identify entities, attribute domains, and relationships?

Question96: Which term best defines a database system in which data records are stored in one or more files with no structured relationship?

Question97: Which of the following definitions applies to all types of databases?

Question98: Which database security technique prevents invalid data from being entered into the database?

Question99: Which relational algebraic operation is used to select specific columns (attributes) from a relation?

Question100: Which of the following best describes the two-tier database architecture?

Question101: Which term describes the rejoining of relations that have been decomposed?

Question102: Which security technique limits access by unauthorized users to parts of an enterprise database?

Question103: Consider the entity-relationship (ER) diagram shown in the exhibit. Which type of relationship between the two entities is shown?

Question104: Consider the Orders relation shown in the exhibit. Which of the following SQL statements would return all complete tuples for order dates in 2002, arranged by amount from lowest to highest?

Question105: Which mechanism provides database users with controlled access to the database through the use of virtual tables?

Question106: Which three pieces of information did E.F. Codd describe as necessary to retrieve a data value from a relational database?

Question107: Consider the Dept1_Parts and Dept2_Parts relations shown in the exhibit. Which of the following SQL statements would create a set difference of the two relations with the widest variety of Structured Query Language dialects?

Question108: Consider the Dept1_Parts and Dept2_Parts relations shown in the exhibit. Which of the following SQL statements would create a set difference of the two relations with the widest variety of Structured Query Language dialects?

Question109: The database manager wants to give Rubio and Doe the ability to modify the Project Relation shown in the exhibit. A temporary employee named Temp needs to access the data in the database to generate reports.
Which group of SQL statements will perform this task?