Download ExamView - Untitled.tst

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

Concurrency control wikipedia , lookup

Open Database Connectivity wikipedia , lookup

Entity–attribute–value model wikipedia , lookup

Microsoft SQL Server wikipedia , lookup

Database wikipedia , lookup

SQL wikipedia , lookup

Microsoft Jet Database Engine wikipedia , lookup

Extensible Storage Engine wikipedia , lookup

Ingres (database) wikipedia , lookup

PL/SQL wikipedia , lookup

Clusterpoint wikipedia , lookup

Relational model wikipedia , lookup

Database model wikipedia , lookup

Transcript
Name: ________________________ Class: ___________________ Date: __________
ID: A
Chapter 7 Test Bank
True/False
Indicate whether the statement is true or false.
____
1. Most server-side scripting languages, including ASP.NET, allow you to create Web pages that can read and
write data to and from databases.
____
2. Essentially, any information that can be organized into ordered sets of data, then quickly retrieved, can be
considered a database.
____
3. Each row in a database table is called a field.
____
4. To summarize, you can think of databases as consisting of tables, which consist of fields, which consist of
records.
____
5. With large and complex collections of information, flat-file databases can become unwieldy.
____
6. A primary key is a type of index, which identifies records in a database to make retrievals and sorting faster.
____
7. To create a many-to-many relationship, you must use a join table.
____
8. An application or collection of applications used to access and manage a database is called a database
management system.
____
9. Many database management systems use a structural definition language (SDL) for creating databases, tables,
fields, and other components of a database.
____ 10. SQL statements are composed of keywords that perform actions on a database.
____ 11. Microsoft SQL Server Management Studio Express is a graphic tool for manipulating SQL Server databases.
____ 12. The most important tool in the SQL Server Management Studio is the New Data window, which you can use
to execute SQL commands.
____ 13. To successfully execute SQL commands, you must first understand how to write them manually.
____ 14. The query windows in SQL Server Management Studio Express are where most of the action occurs when
you create or manipulate databases in SQL Server.
____ 15. To execute the SQL commands in a query window, you select Run from the Query menu.
____ 16. To delete a database, you execute the DELETE DATABASE statement, which removes all tables from the
database and deletes the database itself.
____ 17. The fields in a table store data according to size.
1
Name: ________________________
ID: A
____ 18. To work with a database in a query window, you must first select it by executing the USE database
statement.
____ 19. Text values must be enclosed within double quotations.
____ 20. The values you enter in the VALUES list must be in the same order in which you defined the table fields.
____ 21. You should specify NULL in any fields for which you do not have a value.
____ 22. In most cases, you will probably add records to a database with the BULK INSERT statement.
____ 23. You use the ? wildcard with the SELECT statement to retrieve all fields from a table.
____ 24. The criteria portion of the SELECT statement determines which fields to retrieve from a table.
____ 25. When you use the DELETE statement, it only deletes the first record that matches the condition.
Multiple Choice
Identify the choice that best completes the statement or answers the question.
____ 26. A ____ is an ordered collection of information from which a computer program can quickly access
information.
a. file
c. data network
b. datahouse
d. database
____ 27. A(n) ____ in a database is a single complete set of related information.
a. field
c. column
b. record
d. attribute
____ 28. ____ are the individual categories of information stored in a record.
a. Rows
c. Fields
b. Entities
d. Tables
____ 29. A(n) ____ database stores information in a single table.
a. relational
c. proprietary
b. flat-file
d. indexed-file
____ 30. A ____ database stores information across multiple related tables.
a. relational
c. non-relational
b. flat
d. semi-relational
____ 31. A ____ is the main table in a relationship that is referenced by another table.
a. secondary table
c. federated table
b. foreign table
d. primary table
____ 32. A(n) ____ references a primary table in a relational database.
a. under table
c. related table
b. infant table
d. minor table
2
Name: ________________________
ID: A
____ 33. A ____ is a field that contains a unique identifier for each record in a primary table.
a. primary key
c. primary field
b. secondary key
d. primitive key
____ 34. A ____ is a field in a related table that refers to the primary key in a primary table.
a. primary key
c. secondary key
b. foreign key
d. federated key
____ 35. A ____ relationship exists between two tables when a related table contains exactly one record for each record
in the primary table.
a. one-to-many
c. many-to-many
b. many-to-one
d. one-to-one
____ 36. A ____ creates a one-to-many relationship for each of the two tables in a many-to-many relationship.
a. junction table
c. composite table
b. joint table
d. link table
____ 37. A(n) ____ is a structured set of instructions and criteria for retrieving, adding, modifying, and deleting
database information.
a. inquiry
c. query
b. question
d. interjection
____ 38. ____ identifiers must begin with a letter, underscore (_), number sign (#), or at sign (@), and subsequent
characters are restricted to letters, numbers, underscores, number signs, or at signs.
a. Standard
c. Special
b. Regular
d. Proprietary
____ 39. To use delimited identifiers in SQL statements, you must contain them within ____.
a. "" or \\
c. "" or {}
b. ‘’ or []
d. "" or []
____ 40. The term ____ refers to a single installation of SQL Server.
a. case
c. instance
b. subject
d. instantiation
____ 41. You use the ____ statement to create a new database.
a. CREATE NEW DATABASE
c. NEW DATABASE
b. CREATE DATABASE
d. DATABASE CREATE
____ 42. The syntax for the CREATE TABLE statement is as follows: ____.
a. INSERT TABLE table_name (column_name TYPE, ...);
b. NEW TABLE table_name (column_name TYPE, ...);
c. ALTER DATABASE NEW TABLE table_name (column_name TYPE, ...);
d. CREATE TABLE table_name (column_name TYPE, ...);
____ 43. You add individual records to a table with the ____ statement.
a. INSERT
c. UPDATE
b. SELECT
d. CREATE
3
Name: ________________________
ID: A
____ 44. The syntax for the BULK INSERT statement is as follows: ____.
a. BULK INSERT TABLE table_name FROM 'filepath';
b. BULK INSERT INTO table_name FROM 'filepath';
c. BULK INSERT table_name FROM 'filepath';
d. BULK INSERT table_name FROM FILE 'filepath';
____ 45. The basic syntax for a SELECT statement is as follows: ____.
a. SELECT criteria FROM table_name;
b. SELECT criteria FROM TABLE table_name;
c. SELECT CRITERIA criteria FROM table_name;
d. SELECT criteria OUT OF table_name;
____ 46. You use the ____ keyword with the SELECT statement to perform an alphanumeric sort of the results
returned from a query.
a. INTO
c. WHERE
b. ORDER BY
d. WHEN
____ 47. To perform a reverse sort, add the ____ keyword after the name of the field by which you want to perform the
sort.
a. ASC
c. INVERSE
b. REVERSE
d. DESC
____ 48. You can specify which records to return by using the ____ keyword.
a. WHERE
c. IDENTIFY
b. WHICH
d. SPECIFY
____ 49. The ____ keyword specifies the name of the table to update in the records that match the condition in the
WHERE keyword.
a. SELECT
c. UPDATE
b. INSERT
d. SET
____ 50. The ____ keyword specifies the value to assign to the fields in the records that match the condition in the
WHERE keyword.
a. PUT
c. AS
b. SET
d. FILE
4
ID: A
Chapter 7 Test Bank
Answer Section
TRUE/FALSE
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
ANS:
ANS:
ANS:
ANS:
ANS:
ANS:
ANS:
ANS:
ANS:
ANS:
ANS:
ANS:
ANS:
ANS:
ANS:
ANS:
ANS:
ANS:
ANS:
ANS:
ANS:
ANS:
ANS:
ANS:
ANS:
T
T
F
F
T
T
F
T
F
T
T
F
T
T
F
F
F
T
F
T
T
F
F
T
F
PTS:
PTS:
PTS:
PTS:
PTS:
PTS:
PTS:
PTS:
PTS:
PTS:
PTS:
PTS:
PTS:
PTS:
PTS:
PTS:
PTS:
PTS:
PTS:
PTS:
PTS:
PTS:
PTS:
PTS:
PTS:
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
REF:
REF:
REF:
REF:
REF:
REF:
REF:
REF:
REF:
REF:
REF:
REF:
REF:
REF:
REF:
REF:
REF:
REF:
REF:
REF:
REF:
REF:
REF:
REF:
REF:
366
366
366
366
367
367
370
371
372
373
374
375
376
378
378
383
384
385
386
386-387
387
387
389
391
395
PTS:
PTS:
PTS:
PTS:
PTS:
PTS:
PTS:
PTS:
PTS:
PTS:
PTS:
PTS:
1
1
1
1
1
1
1
1
1
1
1
1
REF:
REF:
REF:
REF:
REF:
REF:
REF:
REF:
REF:
REF:
REF:
REF:
366
366
366
367
367
367
367
367
367
367
370
372
MULTIPLE CHOICE
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
ANS:
ANS:
ANS:
ANS:
ANS:
ANS:
ANS:
ANS:
ANS:
ANS:
ANS:
ANS:
D
B
C
B
A
D
C
A
B
D
A
C
1
ID: A
38.
39.
40.
41.
42.
43.
44.
45.
46.
47.
48.
49.
50.
ANS:
ANS:
ANS:
ANS:
ANS:
ANS:
ANS:
ANS:
ANS:
ANS:
ANS:
ANS:
ANS:
B
D
C
B
D
A
C
A
B
D
A
C
B
PTS:
PTS:
PTS:
PTS:
PTS:
PTS:
PTS:
PTS:
PTS:
PTS:
PTS:
PTS:
PTS:
1
1
1
1
1
1
1
1
1
1
1
1
1
REF:
REF:
REF:
REF:
REF:
REF:
REF:
REF:
REF:
REF:
REF:
REF:
REF:
2
380
380
380
382
385
386
387
389
390
390
391
393
393
Chapter 7 Test Bank [Answer Strip]
T 18.
_____
F 19.
_____
T
_____
1.
C 44.
_____
B 34.
_____
T 20.
_____
T 21.
_____
T
_____
2.
A 33.
_____
ID: A
A 45.
_____
D 35.
_____
F 22.
_____
F
_____
3.
F 23.
_____
F
_____
4.
T 24.
_____
F 25.
_____
A 36.
_____
B 46.
_____
C 37.
_____
D 47.
_____
T
_____
5.
T
_____
6.
F
_____
7.
B 38.
_____
D 26.
_____
A 48.
_____
T
_____
8.
D 39.
_____
F
_____
9.
B 27.
_____
T 10.
_____
C 28.
_____
C 40.
_____
B 50.
_____
T 11.
_____
B 41.
_____
F 12.
_____
T 13.
_____
B 29.
_____
A 30.
_____
D 42.
_____
T 14.
_____
D 31.
_____
F 15.
_____
F 16.
_____
F 17.
_____
C 49.
_____
A 43.
_____
C 32.
_____