ISDS 402 Midterm 1

0.0(0)
studied byStudied by 1 person
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/118

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

119 Terms

1
New cards

In the general division of labor between database applications and the DBMS, the processing of forms is considered a DBMS task.

False

2
New cards

Microsoft SQL Server is an example of a:

a. data manipulation system.

b. database.

c. list manager.

d. table.

e. database management system.

Database management system

3
New cards

A database may be used to help people:

a. track which student is assigned to a particular advisor.

b. know the current inventory levels of products their company sells.

c. check on the estimated arrival time of an incoming flight at an airport.

d. look up their checking account balance over the Internet.

e. All of these

All of these

4
New cards

Referential integrity constraints must be enforced by the application program.

False

5
New cards

An advantage of keeping data in lists is that if you add a new row of data to the list, you will never have null values occurring for any data item in the row.

False

6
New cards

SQL stands for:

a. Standard Query Language.

b. Structural Question Language.

c. Standard Question Language.

d. Structured Query Language.

e. Structured Question Language.

Structured Query Language

7
New cards

Relational database tables are commonly combined, queried, and processed using Structured Query Language (SQL).

True

8
New cards

The purpose of a database is to help people keep track of things.

True

9
New cards

A relational database can be defined as a self-describing collection of related tables.

True

10
New cards

Which of the following is not true of surrogate keys?

a. They are numeric.

b. They are unique.

c. They are usually generated by the DBMS.

d. They are meaningful to the users.

e. They are usually hidden on forms and reports.

They are meaningful to the users

11
New cards

Since surrogate keys are used to uniquely identify rows, their values are normally displayed prominently on all forms and reports for the users to see.

False

12
New cards

The primary key is used both to identify unique rows in a relation and to represent rows in relationships.

True

13
New cards

In the normalization process, it is necessary to identify all the determinants in a relation.

True

14
New cards

Although Microsoft Access is a personal database, it is still subject to the following modification problem(s):

a. problems adding data.

b. problems changing data.

c. problems deleting data.

d. All of these

e. None of these

All of these

15
New cards

Which of the following is not true about a relation?

a. A relation may not have duplicate rows.

b. The order of the rows of a relation is insignificant.

c. The cells of a relation must hold a single value.

d. A relation is a two-dimensional table.

e. A relation may have duplicate column names.

A relation may have duplicate column names

16
New cards

Which of the following is true about a key?

a. It may be unique.

b. It may be non-unique.

c. In may identify more than one row.

d. Both It may be unique and It may be non-unique

e. All of these

It may be non-unique

17
New cards

Null values can cause problems because they are ambiguous.

True

18
New cards

To create a well-formed relation through normalization, every determinant must be a candidate key.

True

19
New cards

When the primary key of one relation is placed into a second relation, it is called a:

a. candidate key.

b. relocated key.

c. field key.

d. foreign key.

e. referential integrity.

Foreign key

20
New cards

Which of the following data types used in SQL would define a fixed-length text field of 10 characters?

a. varchar(10)

b. text(10)

c. fixed(10)

d. char(10)

e. length(10)

char(10)

21
New cards

Which of the following is not a standard data type used in SQL?

a. Varchar

b. Integer

c. Numeric

d. Text

e. Char

Text

22
New cards

Which of the following cannot be done using the CONSTRAINT phrase?

a. Create a single attribute primary key.

b. Define a foreign key.

c. Establish a referential integrity constraint.

d. All of these can be done using the CONSTRAINT phrase.

e. None of these can be done using the CONSTRAINT phrase.

All of these can be done using the CONSTRAINT phrase.

23
New cards

Which SQL keyword is used to specify a condition that rows must meet to be included in the results of an SQL SELECT query?

a. ORDER BY

b. GROUP BY

c. WHERE

d. FROM

e. SELECT

WHERE

24
New cards

Given the table STUDENT(StudentID, Name, Advisor), which of the following SQL statements would be used to add new student data to the STUDENT table?

a. INSERT INTO STUDENT (New Student Data) VALUES (123, 'Jones', 'Smith');

b. INSERT INTO STUDENT VALUES (123, 'Jones', 'Smith');

c. INPUT DATA STUDENT SET StudentID=123, Name=' Jones', Advisor='Smith';

d. INSERT DATA STUDENT SET StudentID=123, Name='Jones', Advisor='Smith';

e. INPUT INTO STUDENT (123, 'Jones', 'Smith');

INSERT INTO STUDENT VALUES (123, 'Jones', 'Smith');

25
New cards

Which of the following activities is not performed during the implementation phase of developing a database system?

a. Filling the database with data

b. Creating forms

c. Transforming the data model into a database design

d. Creating reports

e. Writing application programs

Transforming the data model into a database design

26
New cards

In crow's foot style E-R diagrams, a hash mark across the relationship line near an entity indicates:

a. a minimum cardinality of zero.

b. a minimum cardinality of one.

c. a maximum cardinality of one.

d. a maximum cardinality of many.

e. Both a minimum cardinality of one and a maximum cardinality of one

Both a minimum cardinality of one and a maximum cardinality of one

27
New cards

Which of the following is true about identifiers of entities?

a. Identifiers are not normally used in a naming role.

b. Identifiers may not be more than two attributes.

c. The value of an identifier may identify a set of entity instances.

d. Identifiers must be unique.

e. An identifier in the E-R model is equivalent to a key in the relational model.

The value of an identifier may identify a set of entity instances.

28
New cards

Which of the following is not a stage in the development of a database system?

a. Requirements analysis

b. Validation

c. Component design

d. Implementation

e. All of these are stages in the development of a database system.

Validation

29
New cards

Entity A is N:1 to Entity B. Which of the following is known to be true?

a. A single instance of ENTITY A must be related to many instances of ENTITY B.

b. ENTITY A has a minimum cardinality of zero.

c. The degree of the relationship is "many."

d. There are more instances of ENTITY A than there are instances of ENTITY B in the user's environment.

e. A single instance of ENTITY B may be related to many instances of ENTITY A.

A single instance of ENTITY B may be related to many instances of ENTITY A.

30
New cards

________ is used to help people keep track of things.

Database

31
New cards

Deleted row-too much data lost

Changed row-inconsistent data

Inserted row-data missing

The above situations represent:

Modification problems

32
New cards

_______ contains a collection of separate tables.

Relational database

33
New cards

The possible modifications to the database tables are:

Insert, update, delete

34
New cards

The language for defining the structure and processing of a relational database is:

Structured Query Language

35
New cards

What are the purposes of using SQL?

A. Query for specific data conditions

B. Insert, update, and delete data

C. Perform computations on data in tables

D. Reconstruct lists from their underlying tables

E. All of the above

All of the above

36
New cards

Users, database application, database management system, and database itself are all components of:

Database system

37
New cards

A computer program used to create, process, and administer the database is known as:

Database management system

38
New cards

The purpose of the DBMS is to:

Create, process, and administer databases.

39
New cards

The difference between database application and DBMS is that database application:

Serves as an intermediary between the user and the DBMS.

40
New cards

The difference between database application and DBMS is that DBMS:

Receive requests encoded in SQL and translates those requests into actions on the database.

41
New cards

The difference between database application and database is that database:

Is a collection of related tables and other structures.

42
New cards

A relationship on foreign key values that specifies that the values of a foreign key must be a proper set of the values of the primary key to which it refers is:

Referential integrity constaint

43
New cards

The data about the structure of a database are called:

Metadata

44
New cards

A description of the structure of the database that is contained within the data itself is called:

Self-describing

45
New cards

A DBMS product intended for use by an individual or small workgroup, such as Microsoft Access, is called:

Personal database system

46
New cards

A DBMS product capable of supporting the operating requirement of large organizations is:

Enterprise-class database system

47
New cards

The terminology that is associated with a relation is:

Table

48
New cards

The terminology that is associated with a tuple is:

Row

49
New cards

The terminology that is associated with an attribute is:

Column

50
New cards

Rows contain data about an entity.

Columns contain data about attributes of the entity.

Cells of the table hold a single value.

All entries in a column are of the same kind.

Each column has a unique name.

The order of the columns is unimportant.

The order of the rows is unimportant.

No two rows may hold identical sets of data values.

These characteristics above represent:

Relation

51
New cards

One or more columns of a relation that is used to identify a row is:

Key

52
New cards

A key that contains two or more attributes is:

Composite key

53
New cards

A key that uniquely identifies each row in a relation is:

Candidate key

54
New cards

The candidate key that is chosen as the key that the DBMS will use to uniquely identify each row in a relation is:

Primary key

55
New cards

A column with a unique, DBMS identifier that has been added to a table to be the primary key is:

Surrogate key

56
New cards

The attribute in the second relation that holds the specified values is:

Foreign key

57
New cards

A missing value in a cell in a relation is:

Null value

58
New cards

The problem with null values is that they are:

Ambiguous

59
New cards

A relationship between attributes in which one attribute or group of attributes determines the value of another is called:

Functional dependency

60
New cards

When X leads to Y, X is functionally dependent on Y. This is an interpretation of:

Functional dependency

61
New cards

The process of breaking a table or relation with more than one theme into a set of tables that each has only one theme is:

Normalization

62
New cards

Identify all the candidate keys of the relation.

Identify all the functional dependencies in the relation.

Examine the determinants of the functional dependencies. If any determinant is not a candidate key, the relation is not well-formed.

Repeat step 3 as many times as necessary until every determinant of every relation is a candidate key.

The above steps represent:

Normalization process

63
New cards

The SQL was developed by:

IBM Corporation

64
New cards

The SQL standards were set by:

International Organization for Standardization

65
New cards

A style of query interface, first developed by IBM but now used by other vendors, that enables users to express queries by providing examples of the results they seek is called:

Query By Example

66
New cards

The SQL statement that is used for creating tables, relationships, and other structures, is known as:

Data definition language

67
New cards

The SQL statement that is used for querying, inserting, modifying, and deleting data, along with using SQL view, is known as:

Data manipulation language

68
New cards

What syntax is this:

Constraint Tablename_PK Primary Key ({PrimaryKeyColumns})

PK constraints

69
New cards

What syntax is this:

Constraint Tablename_FK Foreign Key({ForeignKeyColumns)}

References Tablename({PrimaryKeyColumns})

On Update

Foreign key constraints

70
New cards

Which SQL clause specifies which columns are to be listed in the query results?

SELECT

71
New cards

Which SQL clause specifies which tables are to be used in the query?

FROM

72
New cards

Which SQL clause specifies which rows are to be listed in the query results?

WHERE

73
New cards

What syntax is this:

SELECT ProjectName, Department, MaxHours

FROM PROJECT;

Reading specified columns from a single table

74
New cards

What syntax is this:

SELECT ProjectName, Department, MaxHours, StartDate, EndDate

FROM PROJECT

WHERE Department = 'Finance';

Reading specified rows from a single table

75
New cards

What syntax is this:

SELECT ProjectName, Department, MaxHours, StartDate, EndDate

FROM PROJECT

WHERE Department = 'Finance'

OR Phone = '819-826-2539';

Reading specified columns and specified rows from a single table

76
New cards

What syntax is this:

SELECT ProjectName, Department, MaxHours, StartDate, EndDate

FROM PROJECT

WHERE ProjectName LIKE '2014 Q_Portfolio Analysis';

Wildcard

77
New cards

What syntax is this:

SELECT FirstName, LastName, Department

FROM EMPLOYEE

WHERE EmployeeNumber >= 2

AND EmployeeNumber

Range

78
New cards

What syntax is this:

SELECT FirstName, LastName, Phone, Department

FROM EMPLOYEE

WHERE Phone IS NULL;

Null

79
New cards

What syntax is this:

SELECT FirstName, LastName, Phone, Department

FROM EMPLOYEE

ORDER BY Department ASC;

Sorting in ascending order

80
New cards

What syntax is this:

SELECT FirstName, LastName, Phone, Department

FROM EMPLOYEE

ORDER BY Department DESC;

Sorting in descending order

81
New cards

The difference between COUNT and SUM is that COUNT:

Counts the number of rows in the result.

82
New cards

The difference between COUNT and SUM is that SUM:

Totals the set of values of a numeric column.

83
New cards

What syntax is this:

SELECT Department, Count (*) AS NumberOfEmployees

FROM EMPLOYEE

GROUP BY Department;

Grouping

84
New cards

What syntax is this:

SELECT FirstName, LastName

FROM EMPLOYEE

WHERE EmployeeNumber IN (8, 10);

Subqueries

85
New cards

What syntax is this:

SELECT FirstName, LastName, HoursWorked

FROM EMPLOYEE, ASSIGNMENT

WHERE EMPLOYEE.EmployeeNumber = ASSIGNMENT.EmployeeNumber;

Join

86
New cards

What syntax is this:

UPDATE EMPLOYEE

SET Department = 'Finance', Phone = '373-103-8592'

WHERE EmployeeNumber = 5;

UPDATE...SET command

87
New cards

What SQL syntax is this:

DELETE

FROM EMPLOYEE

WHERE EmployeeNumber = 1

DELETE command

88
New cards

What SQL syntax is this:

DROP TABLE ASSIGNMENT;

DROP command

89
New cards

What SQL syntax is this:

ALTER TABLE ASSIGNMENT DROP CONSTRAINT ASSIGN_EMP_FK;

ALTER command

90
New cards

What SQL syntax is this:

TRUNCATE TABLE PROJECT;

TRUNCATE command

91
New cards

What SQL syntax is this:

ALTER TABLE PROJECT

ADD CONSTRAINT PROJECT_Check_Dates

CHECK (StartDate < EndDate);

CHECK command

92
New cards

Requirements analysis, component design, and implementation are stages of:

Database development process

93
New cards

What stage refers to system users being interviewed and sample forms, reports, queries, and descriptions of update activities being obtained?

Requirements analysis stage

94
New cards

What stage refers to the data model being transformed into a database design with tables, relationships, and constraints?

Component design stage

95
New cards

What stage refers to the database constructed in the DBMS and populated with data; queries, forms, and reports are created; application programs are written; and all these are tested?

Implementation stage

96
New cards

The acronym SDLC stands for:

Systems Development Life Cycle

97
New cards

The _______ is connected to the database development process that users use the entire information system or application, not the database by itself.

Systems Development Life Cycle

98
New cards

An element of the ER model that is something users want to track is:

Entity

99
New cards

An element of the ER model that describes the entity characteristics is:

Attribute

100
New cards

An element of the ER model, which are attributes that name or identify entity instances is:

Identifier