Sie sind auf Seite 1von 13

QUESTION BANK - CƠ SỞ DỮ LIỆU

Câu 1: Which of the following column properties would be used to specify that cells in a column must
contain a monetary value that is less than another monetary value in the same row?
A. Null status B. Default value C. Data constraints D. Data type
Câu 2: The SQL keyword BETWEEN is used:
A. to limit the columns displayed. B. as a wildcard.
C. for ranges. D. None of the above is correct.
Câu 3: The keyword LIKE can be used in a WHERE clause to refer to a range of values.
A. True B. False
Câu 4: The XML family of standards is very important in database processing today.
A. True B. False
Câu 5: One of the reasons why OODBMSs have not been widely used for business information systems is
that OOP is obsolete.
A. True B. False
Câu 6: You have run an SQL statement that asked the DBMS to display data in a table named
USER_TABLES. The results include columns of data labeled "TableName," "NumberOfColumns" and
"PrimaryKey." You are looking at ________.
A. user data. B. indexes C. A report D. metadata
Câu 7: A unique, DBMS-supplied identifier used as the primary key of a relation is called a(n):
A. primary key. B. composite key. C. surrogate key. D. foreign key.
Câu 8: Which of the following statements is true concerning routines and triggers?
A. Both are stored in the database. B. Both have to be called to operate.
C. Both run automatically. D. Both consist of procedural code.
Câu 9: Because it contains a description of its own structure, a database is considered to be ________.
A. described B. an application program
C. metadata compatible D. self-describing
Câu 10: A CASE SQL statement is which of the following?
A. way to establish a data definition in SQL.
B. A way to establish a loop in SQL.
C. A way to establish an IF-THEN-ELSE in SQL.
C. All of the above.
Câu 11: The SQL command to create a table is:
A. ALTER TABLE. B. CREATE TABLE. C. MAKE TABLE. D. DEFINE TABLE.
Câu 12: Data manipulation language (DML) commands are used to define a database, including creating,
altering, and dropping tables and establishing constraints.
A. True B. False
Câu 13: Scalar aggregate are multiple values returned from an SQL query that includes an aggregate
function.
A. True B. False
Câu 14: The identifier of an entity will become the ________ of the new table.
A. primary key B. identity key C. foreign key D. main attribute
Câu 15: Which of the following data constraints would be used to specify that the value of a cell in one
column must be less than the value of a cell in another column in the same row of the same table?
A. An intrarelation constraint B. A range constraint
C. A domain constraint D. An interrelation constraint
Câu 16: Indexes may be created or dropped at any time.
A. True B. False
Câu 17: Views constructed from SQL SELECT statements that conform to the SQL-92 standard may not
contain:
A. GROUP BY. B. WHERE. C. ORDER BY. D. FROM.
Câu 18: DISTINCT and its counterpart, ALL, can be used more than once in a SELECT statement.
A. True B. False
Câu 19: The relational database model was created by E.F. Codd.
A. True B. False
Trang 1/13 - Mã đề thi 027
Câu 20: SQL can be used to:
A. modify database data only. B. create database structures only.
C. query database data only. D. All of the above can be done by SQL.
Câu 21: What is the best data type definition for SQL Server when a field is alphanumeric and has a fixed
length?
A. CHAR B. VARCHAR2 C. LONG D. NUMBER
Câu 22: In a one-to-many relationship, the entity that is on the one side of the relationship is called a(n)
________ entity.
A. child B. instance C. parent D. subtype
Câu 23: Which of the following is true concerning systems information in an RDBMS?
A. This information can be accessed using SQL.
B. This information often cannot be updated by a user.
C. RDBMS store database definition information in system-created tables.
D. All of the above.
Câu 24: Entities of a given type are grouped into a(n):
A. ERD. B. entity class. C. database. D. attribute.
Câu 25: Applications are programs that interact directly with the database.
A. True B. False
Câu 26: The purpose of a database is to help people stop using spreadsheets.
A. True B. False
Câu 27: A recursive relationship is a relationship between an entity and ________.
A. a subtype entity B. itself C. an archetype entity D. an instance entity
Câu 28: Which of the following situation requires the use of ID-dependent entities?
A. Archetype/instance relationships only B. Multivalued attributes only
C. Association relationships only D. All of the above use ID dependent entities
Câu 29: The command to eliminate a table from a database is:
A. UPDATE TABLE CUSTOMER; B. DELETE TABLE CUSTOMER;
C. REMOVE TABLE CUSTOMER; D. DROP TABLE CUSTOMER;
Câu 30: If you are going to use a combination of three or more AND and OR conditions, it is often easier
to use the NOT and NOT IN operators.
A. True B. False
Câu 31: A view is which of the following?
A. A base table that cannot be accessed via SQL commands
B. A base table that can be accessed via SQL commands
C. A virtual table that cannot be accessed via SQL commands
D. A virtual table that can be accessed via SQL commands
Câu 32: A DBMS that combines a DBMS and an application generator is ________.
A. IBM's DB2 B. Microsoft's Access
C. Oracle Corporation's Oracle D. Microsoft's SQL Server
Câu 33: Which type of entity represents an actual occurrence of an associated generalized entity?
A. Instance entity B. Subtype entity C. Archetype entity D. Supertype entity
Câu 34: What is an SQL virtual table that is constructed from other tables?
A. A view B. Just another table C. Query results D. A relation
Câu 35: Which of the following column properties would be used to specify that cells in a column must be
immediately filled with a monetary value of $10,000?
A. Default value B. Data constraints C. Null status D. Data type
Câu 36: SELECT DISTINCT is used if a user wishes to see duplicate columns in a query.
A. True B. False
Câu 37: The following are functions of a DBMS except ________.
A. creating databases B. processing data
C. creating and processing forms D. administrating databases
Câu 38: The following SQL is which type of join: SELECT CUSTOMER_T. CUSTOMER_ID,
ORDER_T. CUSTOMER_ID, NAME, ORDER_ID FROM CUSTOMER_T,ORDER_T ;
A. Natural join B. Equi-join C. Outer join D. Cartesian join
Câu 39: Entities can be associated with one another in which of the following?
A. Identifiers B. Entities C. Relationships D. Attributes
Trang 2/13 - Mã đề thi 027
Câu 40: Which of the three possible types of triggers does SQL Server support?
A. BEFORE only B. INSTEAD OF and AFTER only
C. AFTER only D. INSTEAD OF only
Câu 41: The SQL keyword(s) ________ is used with wildcards.
A. NOT IN only B. IN and NOT IN C. IN only D. LIKE only
Câu 42: Which of the following refers to something that can be identified in the users' work environment,
something that the users want to track?
A. Identifier B. Attribute C. Entity D. Relationship
Câu 43: A database is called "self-describing" because it contains a description of itself.
A. True B. False
Câu 44: A primary key should be defined as:
A. NULL. B. NOT NULL.
C. Either of the above can be used. D. None of the above are correct.
Câu 45: An on-line commercial site such as Amazon.com is an example of a(n) ________.
A. multiuser database application B. single-user database application
C. data mining database application D. e-commerce database application
Câu 46: Which of the following are the five built-in functions provided by SQL?
A. SUM, AVG, MIN, MAX, NAME B. SUM, AVG, MIN, MAX, MULT
C. COUNT, SUM, AVG, MAX, MIN D. SUM, AVG, MULT, DIV, MIN
Câu 47: The result of a SQL SELECT statement is a(n) ________.
A. report B. file C. table D. form
Câu 48: A database design may be based on existing data.
A. True B. False
Câu 49: A ________ is a program that performs some common action on database data and that is stored
in the database.
A. pseudofile B. None of the above is correct.
C. trigger D. stored procedure
Câu 50: Which of the following columns is(are) are required in a table?
A. An alternate key B. A foreign key C. A primary key D. A surrogate key.
Câu 51: Which of the following data constraints would be used to specify that the value of cells in a column
must be one of a specific set of possible values?
A. An intrarelation constraint B. An interrelation constraint
C. A range constraint D. A domain constraint
Câu 52: ON UPDATE CASCADE ensures which of the following?
A. Normalization B. Data Integrity C. Materialized Views D. All of the above.
Câu 53: Which of the following improves a query's processing time?
A. Write complex queries. B. Combine a table with itself.
C. Query one query within another. D. Use compatible data types.
Câu 54: Which of the following statements is true concerning subqueries?
A. Does not start with the word SELECT.
B. Cannot return the same result as a query that is not a subquery.
C.Involves the use of an inner and outer query.
C. All of the above.
Câu 55: Which of the following is valid SQL for an Index?
A. CREATE INDEX ID; B. REMOVE INDEX ID;
C. CHANGE INDEX ID; D. ADD INDEX ID;
Câu 56: Which of the following indicates the minimum number of entities that must be involved in a
relationship?
A. Greater Entity Count (GEC) B. Maximum cardinality
C. ERD D. Minimum cardinality
Câu 57: What type of join is needed when you wish to return rows that do have matching values?
A. Outer join B. Equi-join C. Natural join D. All of the above.
Câu 58: What is an advantage of placing computations in SQL views?
A. To ensure that the results are consistent.
B. To save users from having to write an expression.
C.To accomplish both of the above.
Trang 3/13 - Mã đề thi 027
D.None of the above is correct - computations cannot be placed in a view.
Câu 59: Which of the following is one of the basic approaches for joining tables?
A. Natural join B. Subqueries C. Union Join D. All of the above
Câu 60: If a denormalization situation exists with a many-to-many or associative binary relationship, which
of the following is true?
A. All fields are stored in four relations. B. All fields are stored in one relation.
C. All fields are stored in two relations. D. All fields are stored in three relations.
Câu 61: A database has data and relationships.
A. True B. False
Câu 62: A UNION query is which of the following?
A.Combines the output from multiple queries and must include the same number of columns.
B.Combines the output from no more than two queries and must include the same number of columns.
C.Combines the output from no more than two queries and does not include the same number of
columns.
D.Combines the output from multiple queries and does not include the same number of columns.
Câu 63: The SELECT command, with its various clauses, allows users to query the data contained in the
tables and ask many different questions or ad hoc queries.
A. True B. False
Câu 64: The SQL keyword GROUP BY instructs the DBMS to group together those rows that have the
same value in a column.
A. True B. False
Câu 65: The benefits of a standard relational language include which of the following?
A. Increased dependence on a single vendor B. Reduced training costs
C. Applications are not needed. D. All of the above.
Câu 66: To sort the results of a query use:
A. SORT BY. B. ORDER BY.
C. GROUP BY. D. None of the above is correct.
Câu 67: In the relational model, relationships between relations or tables are created by using:
A. composite keys. B. determinants. C. candidate keys. D. foreign keys.
Câu 68: The following are components of a database except ________.
A. user data B. metadata C. indexes D. reports
Câu 69: In a database, data is stored in spreadsheets which have rows and columns.
A. True B. False
Câu 70: Which of the following is the original purpose of SQL?
A. To specify the syntax and semantics of SQL data definition language
B. To specify the syntax and semantics of SQL manipulation language C.
To define the data structures
D. All of the above.
Câu 71: Table is synonymous with the term:
A. field. B. column. C. record. D. relation.
Câu 72: What mode of authentication does SQL Server NOT provide?
A. SQL Server only security B. Mixed security
C. Windows-only security D. Both SQL Server and Windows-only security
Câu 73: Microsoft Access has become ubiquitous, and being able to program in Access is a critical skill.
A. True B. False
Câu 74: To establish a range of values, < and > can be used.
A. True B. False
Câu 75: If a relationship has a cascade updates constraint, then if ________ in the parent table is changed,
then the same change will automatically be made to any corresponding foreign key value.
A. a foreign key B. the primary key C. any alternate key D. a surrogate key
Câu 76: Which of the following is a correlated subquery?
A. Uses the result of an inner query to determine the processing of an outer query.
B. Uses the result of an inner query to determine the processing of an inner query.
C. Uses the result of an outer query to determine the processing of an inner query.
C. Uses the result of an outer query to determine the processing of an outer query.

Trang 4/13 - Mã đề thi 027


Câu 77: The HAVING clause acts like a WHERE clause, but it identifies groups that meet a criterion,
rather than rows.
A. True B. False
Câu 78: SQL provides five built-in functions: COUNT, SUM, AVG, MAX, MIN.
A. True B. False
Câu 79: The command to remove rows from a table 'CUSTOMER' is:
A. DROP FROM CUSTOMER... B. REMOVE FROM CUSTOMER...
C. UPDATE FROM CUSTOMER... D. DELETE FROM CUSTOMER WHERE...
Câu 80: SQL stands for ________.
A. Sequential Question Language B. Structured Query Language
C. Sequential Query Language D. Structured Question Language
Câu 81: If attributes A and B determine attribute C, then it is also true that:
A. (A,B) is a composite determinant. B. (B → C).
C. (A → C). D. C is a determinant.
Câu 82: The SQL -92 wildcards are ____ and ____.
A. percent sign (%); underscore (_) B. question mark (?); asterisk (*)
C. underscore(_); question mark (?) D. asterisk (*); percent sign (%)
Câu 83: An Enterprise Resource Planning application is an example of a(n) ________.
A. multiuser database application B. single-user database application
C. e-commerce database application D. data mining database application
Câu 84: Indexes can usually be created for both primary and secondary keys.
A. True B. False
Câu 85: The fastest read/write time and most efficient data storage of any disk array type is:
A. RAID-3. B. RAID-0. C. RAID-1. D. RAID-2.
Câu 86: The DBMS acts as an interface between what two components of an enterprise-class database
system?
A. Data and the database B. Database application and SQL
C. Database application and the database D. The user and the database application
Câu 87: COUNT(field_name) tallies only those rows that contain a value; it ignores all null values.
A. True B. False
Câu 88: ________ was adopted as a national standard by ANSI in 1992.
A. Microsoft Access B. Oracle C. SQL D. DBase
Câu 89: Microsoft Access is an enterprise-class database product.
A. True B. False
Câu 90: When using the SQL INSERT statement:
A. rows can be modified according to criteria only.
B. rows can be inserted into a table only one at a time only.
C.rows can either be inserted into a table one at a time or in groups.
C. rows cannot be copied in mass from one table to another only.
Câu 91: A subquery in an SQL SELECT statement is enclosed in:
A. braces -- {...}. B. CAPITAL LETTERS.
C. brackets -- [...]. D. parenthesis -- (...).
Câu 92: SQL is:
A. an operating system. B. a DBMS.
C. a data sublanguage. D. a programming language.
Câu 93: Which of the following refers to an entity in which the identifier of one entity includes the identifier
of another entity?
A. Strong entity B. ID-dependent entity
C. ID-independent entity D. Weak entity
Câu 94: In a one-to-many relationship, the entity that is on the many side of the relationship is called a(n)
________ entity.
A. subtype B. instance C. child D. parent
Câu 95: The keyword BETWEEN can be used in a WHERE clause to refer to a range of values.
A. True B. False
Câu 96: The rows of the result relation produced by a SELECT statement can be sorted, but only by one
column.
Trang 5/13 - Mã đề thi 027
A. True B. False
Câu 97: A relation is considered a:
A. one-dimensional table. B. Column.
C. three-dimensional table. D. two-dimensional table.
Câu 98: Which of the following is NOT a type of SQL constraint?
A. UNIQUE B. FOREIGN KEY C. ALTERNATE KEY D. PRIMARY KEY
Câu 99: Each index consumes extra storage space and also requires overhead maintenance time whenever
indexed data change value.
A. True B. False
Câu 100: Prior to 1970, all data was stored in separate files, which were mostly stored on reels of magnetic
tape.
A. True B. False
Câu 101: The qualifier DISTINCT must be used in an SQL statement when we want to eliminate duplicate
rows.
A. True B. False
Câu 102: Which of the following is not considered to be a basic element of an enterprise-class database
system?
A. DBMS B. Users
C. COBOL programs D. Database applications
Câu 103: An application where only one user accesses the database at a given time is an example of a(n)
________.
A. e-commerce database application B. data mining database application
C. single-user database application D. multiuser database application
Câu 104: In an SQL SELECT statement querying a single table, according to the SQL-92 standard the
asterisk (*) means that:
A. all records with even partial criteria met are to be returned.
B.all columns of the table are to be returned.
B. None of the above is correct.
C. all records meeting the full criteria are to be returned.
Câu 105: Which of the following do you need to consider when you make a table in SQL?
A. Data types B. Primary keys C. Default values D. All of the above.
Câu 106: A SELECT statement within another SELECT statement and enclosed in square brackets ([...])
is called a subquery.
A. True B. False
Câu 107: A ________ is a stored program that is attached to a table or a view.
A. trigger B. embedded SELECT statement
C. pseudofile D. None of the above is correct.
Câu 108: ORDER BY can be combined with the SELECT statements.
A. True B. False
Câu 109: Enterprise Resource Planning (ERP) is an example of a single user database.
A. True B. False
Câu 110: In a 1:1 relationship, the foreign key is placed in:
A. the child table.
B. either the parent table or the child table.
C.either table without specifying parent and child tables.
C. the parent table.
Câu 111: To define what columns should be displayed in an SQL SELECT statement:
A. use USING to name the source table(s) and list the columns to be shown after WHERE.
B. use USING to name the source table(s) and list the columns to be shown after SELECT.
C. use SELECT to name the source table(s) and list the columns to be shown after USING.
D.use FROM to name the source table(s) and list the columns to be shown after SELECT.
Câu 112: What type of join is needed when you wish to include rows that do not have matching values?
A. Outer join B. Natural join C. Equi-join D. All of the above.
Câu 113: Which of the following is NOT a basic element of all versions of the E-R model?
A. Entities B. Relationships C. Primary keys D. Attributes
Câu 114: Properties that describe the characteristics of entities are called:
Trang 6/13 - Mã đề thi 027
A.attributes. B. relationships. C. entities. D. identifiers.
Câu 115: A reason for using an SQL view to hide columns is:
A. to simplify a result only.
A. to prevent the display of sensitive data only.
B. None of the above (A&B) are reasons for using an SQL view.
D.to accomplish both of the above (A&B).
Câu 116: An attribute is a(n):
A. two dimensional table. B. column of a table.
C. key of a table. D. row of a table.
Câu 117: The different classes of relations created by the technique for preventing modification anomalies
are called:
A. functional dependencies. B. referential integrity constraints.
C. normal forms. D. None of the above is correct.
Câu 118: Which of the following is true concerning a procedure?
A. You do not create them with SQL. B. They are the same thing as a function.
C. They do not need to have a unique name. D. They include procedural and SQL statements.
Câu 119: Which type of entity has its relationship to another entity determined by an attribute in that other
entity called a discriminator?
A. Supertype entity B. Subtype entity C. Archetype entity D. Instance entity
Câu 120: If a denormalization situation exists with a one-to-one binary relationship, which of the following
is true?
A. All fields are stored in two relations. B. All fields are stored in one relation.
C. All fields are stored in three relations. D. All fields are stored in four relations.
Câu 121: SQL views can be used to hide:
A. columns and rows only.
B. complicated SQL syntax only.
C. both of the above can be hidden by an SQL view.
C. None of the above is correct.
Câu 122: A foreign key is:
A. used to define data types.
B. used to define null status.
C. a column containing the primary key of another table.
C. All of the above are above correct.
Câu 123: The result of every SQL query is a table.
A. True B. False
Câu 124: In an EntErprise-class database system, business users interact directly with database applications
that interact with the DBMS, which directly accesses the database data.
A. True B. False
Câu 125: There is an equivalent join expression that can be substituted for all subquery expressions.
A. True B. False
Câu 126: One solution to the multivalued dependency constraint problem is to:
A. change the theme.
B. create a new theme.
C. split the relation into two relations, each with a single theme.
C. add a composite key.
Câu 127: SQL Server program code that is executed after an SQL command has been processed is called
a(n):
A. AFTER trigger. B. BEGIN trigger.
C. INSTEAD OF trigger. D. BEFORE trigger.
Câu 128: In which of the following can many entity instances of one type be related to many entity
instances of another type?
A. Composite Relationship B. Many-to-Many Relationship
C. One-to-One Relationship D. One-to-Many Relationship
Câu 129: Structured Query Language (SQL) is an internationally recognized standard language that is
understood by all commercial database management system products.

Trang 7/13 - Mã đề thi 027


A. True B. False
Câu 130: What is not an advantage of stored procedures?
A. SQL can be optimized B. Code sharing
C. Increased network traffic D. Greater security
Câu 131: The primary key is selected from the:
A. composite keys. B. determinants. C. candidate keys. D. foreign keys.
Câu 132: The SQL statement that queries or reads data from a table is ________.
A. QUERY B. SELECT
C. READ D. None of the above is correct.
Câu 133: Embedded SQL is which of the following?
A.Hard-coded SQL statements in a program language such as Java.
A. The process of making an application capable of generating specific SQL code on the fly.
B. Hard-coded SQL statements in a trigger.
C. Hard-coded SQL statements in a procedure.
Câu 134: Which of the following is true concerning triggers?
A. You do not create them with SQL.
B. They execute against only some applications that access a database.
C. They cannot cascade (cause another trigger to fire).
D.They have an event, condition, and action.
Câu 135: You can add a row using SQL in a database with which of the following?
A. INSERT B. CREATE C. MAKE D. ADD
Câu 136: Which type of entity cannot exist in the database unless another type of entity also exists in the
database, but does not require that the identifier of that other entity be included as part of its own identifier?
A. ID-dependent entity B. Strong entity
C. Weak entity D. ID- independent entity
Câu 137: Find the SQL statement below that is equal to the following: SELECT NAME FROM
CUSTOMER WHERE STATE = 'VA';
A. SELECT NAME FROM CUSTOMER WHERE STATE CONTAIN ('VA');
B. SELECT NAME IN CUSTOMER WHERE STATE = 'VA';
C. SELECT NAME FROM CUSTOMER WHERE STATE IN ('VA');
C. SELECT NAME IN CUSTOMER WHERE STATE IN ('VA');
Câu 138: The following SQL is which type of join: SELECT CUSTOMER_T. CUSTOMER_ID,
ORDER_T. CUSTOMER_ID, NAME, ORDER_ID FROM CUSTOMER_T,ORDER_T WHERE
CUSTOMER_T. CUSTOMER_ID = ORDER_T. CUSTOMER_ID
A. Natural join B. Equi-join C. Cartesian join D. Outer join
Câu 139: The SQL statement: SELECT Number1 + Number 2 AS Total FROM NUMBER_TABLE; adds
two numbers from each row together and lists the results in a column named Total.
A. True B. False
Câu 140: The SQL WHERE clause:
A. limits the row data are returned. B. limits the column data that are returned.
C. Both A and B are correct. D. Neither A nor B are correct.
Câu 141: SQL data definition commands make up a(n) ________.
A. HTML B. XML C. DML D. DDL
Câu 142: A relation is in this form if it is in BCNF and has no multivalued dependencies:
A. third normal form. B. second normal form.
C. domain/key normal form. D. fourth normal form.
Câu 143: Which type of entity is related to two or more associated entities that each contain specialized
attributes that apply to some but not all of the instances of the entity?
A. Archetype entity B. Subtype entity C. Supertype entity D. Instance entity
Câu 144: What is the best data type definition for SQL Server when a field is alphanumeric and has a
length that can vary?
A. LONG B. VARCHAR C. NUMBER D. CHAR
Câu 145: The wildcard in a WHERE clause is useful when?
A. An exact match is not possible in a CREATE statement.
B. An exact match is necessary in a SELECT statement.
C. An exact match is not possible in a SELECT statement.
Trang 8/13 - Mã đề thi 027
C. An exact match is necessary in a CREATE statement.
Câu 146: For what purposes are views used?
A. To hide columns only B. To hide complicated SQL statements only
C. To hide rows only D. All of the above are uses for SQL views.
Câu 147: Which of the following are integrity controls that a DBMS may support?
A. Limit the use of null values in some fields.
B. Limit the set of permissible values that a field may assume.
C. Assume a default value in a field unless a user enters a value for that field.
D. All of the above.
Câu 148: The SQL statement to create a view is:
A. SELECT VIEW. B. MAKE VIEW. C. CREATE VIEW. D. INSERT VIEW.
Câu 149: Which of the following column properties would be used to specify that cells in a column must
contain a monetary value?
A. Data type B. Data constraints C. Default value D. Null status
Câu 150: Helping people keep track of things is the purpose of a(n) ________.
A. table B. instance C. relationship D. database
Câu 151: How many tables may be included with a join?
A. Two B. Three C. One D. All of the above.
Câu 152: In which of the following is a single-entity instance of one type related to many entity instances
of another type?
A. One-to-One Relationship B. Composite Relationship

Trang 9/13 - Mã đề thi 027


C. One-to-Many Relationship D. Many-to-Many Relationship
Câu 153: Selecting a data type involves which of the following?
A. Maximize storage space B. Represent most values
C. Improve data integrity D. All of the above.
Câu 154: The format SELECT-FROM-WHERE is the fundamental framework of SQL SELECT
statements.
A. True B. False
Câu 155: A subquery in an SQL SELECT statement:
A. cannot have its results sorted using ORDER BY.
B. can always be duplicated by a join.
C. can only be used with two tables.
C. has a distinct form that cannot be duplicated by a join.
Câu 156: Which of the following is an advantage of partitioning?
A. Complexity B. Inconsistent access speed
C. Extra space D. Security
Câu 157: An attribute that names or identifies entity instances is a(n):
A. relationship. B. attribute. C. entity. D. identifier.
Câu 158: SQL query and modification commands make up a(n) ________.
A. XML B. DDL C. HTML D. DML
Câu 159: The SQL ALTER statement can be used to:
A. change the table data. B. change the table structure.
C. add rows to the table. D. delete rows from the table.
Câu 160: The DBMS that is most difficult to use is ________.
A. Microsoft's Access B. IBM's DB2
C. Microsoft's SQL Server D. Oracle Corporation's Oracle
Câu 161: The ADD command is used to enter one row of data or to add multiple rows as a result of a query.
A. True B. False
Câu 162: A rule of thumb for choosing indexes for a relational database includes which of the following?
A. Indexes are more useful on smaller tables.
B. Indexes are more useful for columns that do not appear frequently in the WHERE clause in queries.
C. Do not specify a unique index for the primary key of each table.
D. Be careful indexing attributes that have null values.
Câu 163: A key:
A. can only be one column.
B. identifies a column.
C. identifies a row.
C. must always be composed of two or more columns.
Câu 164: A database has a built-in capability to create, process and administer itself.
A. True B. False
Câu 165: The DBMS ranked as being the "easiest to use" in the text is Oracle Corporation's Oracle.
A. True B. False
Câu 166: Which of the following is a way to create and modify tables using SQL Server?
A. Write SQL code using either CREATE or ALTER SQL statements only.
B. Use the graphical facilities of SQL Server Enterprise Manager only.
C. Neither of A and B will work.
D. Both A and B will work.
Câu 167: A secondary key is which of the following?
A. Useful for denormalization decisions B. Primary key
C. Determines the tablespace required D. Nonunique key
Câu 168: Which of the following products was an early implementation of the relational model developed
by E.F. Codd of IBM?
A. dBase-II B. IDMS C. R:base D. DB2
Câu 169: SQL is a programming language.
A. True B. False

Trang 10/13 - Mã đề thi 027


Câu 170: To remove duplicate rows from the results of an SQL SELECT statement, the ________ qualifier
specified must be included.
A. UNIQUE B. SINGLE C. DISTINCT D. ONLY
Câu 171: The DBMS ranked as being the "hardest to use" in the text is Microsoft's SQL Server.
A. True B. False
Câu 172: The condition in a WHERE clause can refer to only one value.
A. True B. False
Câu 173: Each entity is represented as a(n):
A. tuple. B. file. C. attribute. D. table.
Câu 174: A dynamic view is one whose contents materialize when referenced.
A. True B. False
Câu 175: Which is NOT one of the most common types of SQL CHECK constraints?
A. Lists of values
B. Comparing one column value to another within the same table
C. Range checks D. System date
Câu 176: Which of the following products implemented the CODASYL DBTG model?
A. R:base B. dBase-II C. DB2 D. IDMS
Câu 177: What SQL structure is used to limit column values of a table?
A. The LIMIT constraint B. The VALUE constraint C. The CHECK constraint
D. None of the above is correct.
Câu 178: Which of the following indicates the maximum number of entities that can be involved in a
relationship?
A. Minimum cardinality B. ERD
C. Greater Entity Count (GEC) D. Maximum cardinality
Câu 179: SQL provides the AS keyword, which can be used to assign meaningful column names to the
results of queries using the SQL built-in functions.
A. True B. False
Câu 180: The wildcard asterisk (*) is the SQL-92 standard for indicating "any sequence of characters."
A. True B. False
Câu 181: Which type of entity represents a logical generalization whose actual occurrence is represented
by a second, associated entity?
A. Instance entity B. Subtype entity C. Archetype entity D. Supertype entity
Câu 182: Which of the following products was the first to implement true relational algebra in a PC
DBMS?
A. Oracle B. R:base C. dBase-II D. IDMS
Câu 183: The HAVING clause does which of the following?
A. Acts like a WHERE clause but is used for groups rather than rows.
A. Acts EXACTLY like a WHERE clause.
B. Acts like a WHERE clause but is used for columns rather than groups.
C. Acts like a WHERE clause but is used for rows rather than columns.
Câu 184: Which of the following is the correct order of keywords for SQL SELECT statements?
A. WHERE, FROM,SELECT B. FROM, WHERE, SELECT
C. SELECT, FROM, WHERE D. SELECT,WHERE,FROM
Câu 185: In which of the following is a single-entity instance of one type of related to a single-entity
instance of another type?
A. One-to-One Relationship B. Composite Relationship
C. One-to-Many Relationship D. Many-to-Many Relationship
Câu 186: Every time attribute A appears, it is matched with the same value of attribute B, but not the same
value of attribute C. Therefore, it is true that:
A. ((B,C) → A). B. (A → C). C. (A → (B,C)). D. (A → B).
Câu 187: Which of the following is a group of one or more attributes that uniquely identifies a row?
A. Determinant B. Relation C. Key D. Tuple
Câu 188: SQL is a data sublanguage.
A. True B. False

Trang 11/13 - Mã đề thi 027


Câu 189: Row is synonymous with the term:
A. record. B. relation. C. column. D. field.
Câu 190: To update an SQL view, the DBMS must be able to associate the column(s) to be updated with:
A. a particular column in a particular row.
B. a particular row in a particular underlying table.
A. a particular column in a particular underlying table.
B. None of the above is correct.
Câu 191: For some relations, changing the data can have undesirable consequences called:
A. referential integrity constraints. B. normal forms.
C. modification anomalies. D. transitive dependencies.
Câu 192: When the values in one or more attributes being used as a foreign key must exist in another set
of one or more attributes in another table, we have created a(n):
A. transitive dependency. B. insertion anomaly.
C. referential integrity constraint. D. normal form.
Câu 193: Which one of the following sorts rows in SQL?
A. GROUP BY B. SORT BY C. ORDER BY D. ALIGN BY
Câu 194: SUM, AVG, MIN, and MAX can only be used with numeric columns.
A. True B. False
Câu 195: A functional dependency is a relationship between or among:
A. tables. B. rows. C. relations. D. attributes.
Câu 196: The DROP TABLE statement:
A. is not an SQL statement.
B. works whether or not referential integrity constraints would be violated.
C. deletes the table structure only.
D.deletes the table structure along with the table data.
Câu 197: Which of the following is not a restriction for a table to be a relation?
A. The cells of the table must contain a single value.
B. All of the entries in any column must be of the same kind.
C. The columns must be ordered.
C. No two rows in a table may be identical.
Câu 198: Most companies keep at least two versions of any database they are using.
A. True B. False
Câu 199: When three or more AND and OR conditions are combined, it is easier to use the SQL
keyword(s):
A. Both IN and NOT IN. B. IN only.
C. NOT IN only. D. LIKE only.
Câu 200: The SQL statement: SELECT Name, COUNT(*) FROM NAME_TABLE; counts the number of
name rows and displays this total in a table with a single row and a single column.
A. True B. False
Câu 201: A relation in this form is free of all modification anomalies.
A. First normal form B. Second normal form
C. Third normal form D. Domain/key normal form
Câu 202: In a 1:N relationship, the foreign key is placed in:
A. either table without specifying parent and child tables.
B. the child table.
B. either the parent table or the child table.
C. the parent table.
Câu 203: A tuple is a(n):
A. column of a table. B. two dimensional table.
C. row of a table. D. key of a table.
Câu 204: If attribute A determines both attributes B and C, then it is also true that:
A. (C → A). B. (B → A). C. (A → B). D. ((B,C) → A).
Câu 205: The Microsoft Access wildcards are ____ and ____.
A. question mark (?); asterisk (*) B. underscore(_); question mark (?)
C. asterisk (*); percent sign (%) D. percent sign (%); underscore (_)

Trang 12/13 - Mã đề thi 027


Câu 206: In an enterprise-class database system, business users interact directly with database applications,
which directly access the database data.
A.True B. False
Câu 207: SQL Server automatically creates an index on:
A. both primary and foreign keys.
A. SQL Server never automatically creates an index.
B. primary keys only.
C. foreign key only.
Câu 208: Which of the following column properties specifies whether or not cells in a column must contain
a data value?
A. Data type B. Null status C. Data constraints D. Default value
Câu 209: Database applications are seldom intended for use by a single user.
A. True B. False

------- Hết -------


Chúc các anh/chị thành công

Trang 13/13 - Mã đề thi 027

Das könnte Ihnen auch gefallen