MIS 430 Flashcards

1
Q

18) Attribute B of EntityX is a:
A) Composite attribute
B) Multivalued attribute
C) Derived attribute
D) Unique composite attribute

A

A) Composite attribute

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

19) In the ER Diagram for the SUNSHINE AIRLINE COMPANY, which word should replace AAA?

A) AirplaneTypeID

B) AIRPLANETYPE

C) AirportID

D) AIRPORT

A

B) AIRPLANETYPE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

20) In the ER Diagram for the SUNSHINE AIRLINE COMPANY, which word should replace BBB?

A) AirplaneTypeID

B) AIRPLANETYPE

C) AirportID

D) AIRPORT

A

D) AIRPORT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

21) In the ER Diagram for the SUNSHINE AIRLINE COMPANY, which word should replace xxx?

A) AirplaneTypeID

B) NoOfEngines

C) AirportID

D) LengthOfRunway

A

A) AirplaneTypeID

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

22) In the ER Diagram for the SUNSHINE AIRLINE COMPANY, which word should replace ppp?

A) AirplaneTypeID

B) NoOfEngines

C) AirportID

D) LengthOfRunway

A

C) AirportID

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

23) In the ER Diagram for the SUNSHINE AIRLINE COMPANY, which word should replace qqq?

A) AirplaneTypeID

B) NoOfEngines

C) AirportID

D) LengthOfRunway

A

D) LengthOfRunway

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

24) In the ER Diagram for the SUNSHINE AIRLINE COMPANY, which two words should replace yyy and zzz?

A) AirplaneTypeID and NoOfSeats

B) NoOfEngines and NoOfSeats

C) AirportID and AirplaneTypeID

D) LengthOfRunway and NoOfSeats

A

B) NoOfEngines and NoOfSeats

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

25) In the ER Diagram for the SUNSHINE AIRLINE COMPANY, Symbol1 should be:

A) ||

B) >|

C) >○

D) |○

A

B) >|

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

26) In the ER Diagram for the SUNSHINE AIRLINE COMPANY, Symbol2 should be:

A) ||

B) |<

C) ○<

D) ○|

A

B) |<

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

23) How many columns will a relation resulting from mapping the Entity X have?

A) 2

B) 3

C) 4

D) 5

A

C) 4

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

24) How many columns will a relation resulting from mapping the Entity Y have?

A) 2

B) 3

C) 4

D) 5

A

B) 3

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

25) How many tables will the relational schema mapped from the ABC Retailer ER diagram have?

A) 2

B) 3

C) 4

D) 5

A

C) 4

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

26) How many columns will the relation PROMOTION have in the relational schema mapped from the ABC Retailer ER diagram?

A) 2

B) 3

C) 4

D) 5

A

B) 3

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

27) How many columns will the relation PRODUCT have in the relational schema mapped from the ABC Retailer ER diagram?

A) 2

B) 3

C) 4

D) 5

A

B) 3

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

28) How many columns will the relation BRAND have in the relational schema mapped from the ABC Retailer ER diagram?

A) 2

B) 3

C) 4

D) 5

A

A) 2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

29) How many foreign keys will the relational schema mapped from the ABC Retailer ER diagram have?

A) 0

B) 1

C) 2

D) 3

A

D) 3

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

30) How many optional columns will the relational schema mapped from the ABC Retailer ER diagram have?

A) 0

B)1

C) 2

D) 3

A

A) 0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

31) How many tables will the relational schema mapped from the Central School Library ER diagram have?

A) 2

B) 3

C) 4

D) 5

A

C) 4

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

32) How many bridge tables will the relational schema mapped from the Central School Library ER diagram have?

A) 0

B) 1

C) 2

D) 3

A

B) 1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

33) How many columns will the relation LIBRARY BOOK have in the relational schema mapped from the Central School Library ER diagram?

A) 2

B) 3

C) 4

D) 5

A

A) 2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

34) How many columns will the relation COPY have in the relational schema mapped from the Central School Library ER diagram?

A) 2

B) 3

C) 4

D) 5

A

B) 3

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

35) How many columns will the relation AUTHOR have in the relational schema mapped from the Central School Library ER diagram?

A) 2

B) 3

C) 4

D) 5

A

A) 2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

36) How many tables in the relational schema mapped from the Central School Library ER diagram will have composite primary keys?

A) 0

B)1

C) 2

D) 3

A

C) 2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

37) How many foreign keys will the relational schema mapped from the Central School Library ER diagram have?

A) 0

B) 1

C) 2

D) 3

A

D) 3

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

38) How many foreign keys in the relational schema mapped from the Central School Library ER diagram serve as a component of a primary key?

A) 0

B) 1

C) 2

D) 3

A

D) 3

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
26
Q

39) How many optional columns will the relational schema mapped from the Central School Library ER diagram have?

A) 0

B) 1

C) 2

D) 3

A

A) 0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
27
Q

40) What is the minimal number of records that can be entered in the database whose relational schema is mapped from the Central School Library ER diagram?

A) 1

B) 4

C) 5

D) 12

A

C) 5

28
Q

41) How many tables will the relational schema mapped from the Eaglerun Trucking Dispatcher ER diagram have?

A) 2

B) 3

C) 4

D) 5

A
29
Q

42) How many bridge tables will the relational schema mapped from the Eaglerun Trucking Dispatcher ER diagram have?

A) 0

B) 1

C) 2

D) 3

A
30
Q

43) How many columns will the relation DRIVER have in the relational schema mapped from the Eaglerun Trucking Dispatcher ER diagram?

A) 0 or 1

B) 1 or 2

C) 2 or 3

D) 3 or 4

A
31
Q

44) How many columns will the relation TRUCK have in the relational schema mapped from the Eaglerun Trucking Dispatcher ER diagram?

A) 0 or 1

B) 1 or 2

C) 2 or 3

D) 3 or 4

A
32
Q

45) How many columns will the relation REGION have in the relational schema mapped from the Eaglerun Trucking Dispatcher ER diagram?

A) 2

B) 3

C) 4

D) 5

A
33
Q

46) How many foreign keys will the relational schema mapped from the Eaglerun Trucking Dispatcher ER diagram have?

A)1

B) 2

C) 3

D) 4

A
34
Q

47) How many foreign keys in the relational schema mapped from the Eaglerun Trucking Dispatcher ER diagram serve as a component of a primary key?

A) 0

B) 1

C) 2

D) 3

A
35
Q

48) How many tables in the relational schema mapped from the Eaglerun Trucking Dispatcher ER diagram will have composite primary keys?

A) 0

B) 1

C) 2

D) 3

A
36
Q

49) How many unique non-primary key columns will the relational schema mapped from the Eaglerun Trucking Dispatcher ER diagram have?

A) 0

B)1

C) 2

D) 3

A

C) 2

37
Q

50) What is the minimal number of records that can be entered in the database whose relational schema is mapped from the Eaglerun Trucking Dispatcher ER diagram?

A)1

B) 4

C) 5

D) 12

A

B) 4

38
Q

7) Which of the following (regarding the relation ENROLLMENT) represents the insertion anomaly?

A) Inability to insert a student without adding a class

B) Inability to insert a class without adding a student

C) Inability to insert a class name without a class ID

D) Inability to insert a student name without a student ID

A

B) Inability to insert a class without adding a student

39
Q

8) Which of the following (regarding the relation ENROLLMENT) represents the deletion anomaly?

A) Deleting a student ID may delete a student name

B) Deleting a class ID may delete the class name

C) Deleting class may delete all information about a student a student

D) Deleting a student may delete all information about a class

A
40
Q

9) Which of the following (regarding the relation ENROLLMENT) represents the modification anomaly?

A) If a class name changes, it may have to be changed in more than one record

B) If a student ID changes, we may have to change the class ID as well

C) If a class ID changes, we may have to change the student ID as well

D) If a student decides to use a longer version of his or her name, we cannot accommodate that modification

A

A) If a class name changes, it may have to be changed in more than one record

41
Q

10) Which of the following actions in the table ENROLLMENT will be prevented by an insertion anomaly?

A) Entering a new student 444, Sue

B) Entering a new student 555, Lisa

C) Entering a new record 666, Bob, E1, English

D) Entering a new class M1, Math1

D

A

D) Entering a new class M1, Math1

42
Q

11) Which of the following is in danger of being affected by the deletion anomaly in the table ENROLLMENT?

A) Student 111, Joe

B) Student 222, Bob

C) Class H1, History

D) Class El, English

A

C) Class H1, History

43
Q

12) Which of the following actions in the table ENROLLMENT will be affected by a modification anomaly?

A) Changing the name of Joe to Joseph

B) Changing the name of English1 to English101

C) Changing the name of History1 to History101

D) Changing the name of Bob to Robert

A

B) Changing the name of English1 to English101

44
Q

13) Which of the following functional dependencies does NOT exist in the table ENROLLMENT?

A) StudentID –> StudentName

B) Student Name –> StudentID

C) StudentID –> ClassID

D) ClassID –> ClassName

B

A

B) Student Name –> StudentID

45
Q

14) What type of functional dependency does NOT exist in the table ENROLLMENT?

A) Trivial

B) Full key

C) Partial

D) Transitive

C

A

C) Partial

46
Q

15) Table ENROLLMENT is:

A) Not in 1NF

B) In 1NF but not in 2NF

C) In 2NF but not in 3NF

D) In 3NF

A

C

47
Q

16) Normalizing table ENROLLMENT to 3NF will result in:

A) No changes (table ENROLLMENT remains as is, no additional tables)

B) Two separate tables

C) Three separate tables

D) Four separate tables

A

B) Two separate tables

48
Q

17) Which of the following (regarding the relation FLIGHT) represents the insertion anomaly?

A) Inability to insert a flight without its occurrence

B) Inability to insert an origin without a destination

C) Inability to insert a destination without an origin

D) Inability to insert a number of passengers without a flight ID and date

A
49
Q

18) Which of the following functional dependencies does not exist in the table FLIGHT?

A) FlightID –> NoOffPassengers

B) FlightID –> Origin

C) FlightID –> Destination

D) FlightID, Date –> NoOfPassengers

A

A) FlightID –> NoOffPassengers

50
Q

19) Which of the following functional dependencies in the table FLIGHT is an augmented functional dependency?

A) FlightID, Date -> NoOfPassengers

B) FlightID –> Origin

C) FlightID –> Destination

D) FlightID, Date –> Origin

A

D) FlightID, Date –> Origin

51
Q

20) What type of functional dependency does NOT exist in the table FLIGHT?

A) Trivial

B) Full key

C) Partial

D) Transitive

A
52
Q

21) Table FLIGHT is:

A) Not in 1NF

B) In 1NF but not in 2NF

C) In 2NF but not in 3NF

D) In 3NF

A
53
Q

22) Normalizing table FLIGHT to 3NF will result in:

A) No changes (table FLIGHT remains as is, no additional tables)

B) Two separate tables

C) Three separate tables

D) Four separate tables

A

B) Two separate tables

54
Q

23) What type of functional dependency exists in the table DOCTOR?

A) Trivial

B) Partial

C) Transitive

D) All of the above

A
55
Q

24) Table DOCTOR is:

A) Not in 1NF

B) In INF but not in 2NF

C) In 2NF but not in 3NF

D) In 3NF

D

A

D) In 3NF

56
Q

25) Normalizing table DOCTOR to 3NF will result in:

A) No changes (table DOCTOR remains as is, no additional tables)

B) Two separate tables

C) Three separate tables

D) Four separate tables

A

A) No changes (table DOCTOR remains as is, no additional tables)

57
Q

10) What will be the result of the following query on table STUDENT? SELECT * from STUDENT;

A) The entire relation STUDENT will be displayed

B) StudentID column of the relation STUDENT will be displayed

C) First record of the relation STUDENT will be displayed

D) Last record of the relation STUDENT will be displayed

A

A) The entire relation STUDENT will be displayed

58
Q

11) Which of the following queries on table STUDENT will return three values as a result?

A) SELECT name FROM student WHERE class 1= ‘Sophomore’;

B) SELECT name FROM student;

C) SELECT DISTINCT name FROM student;

D) SELECT class FROM student;

C

A

C) SELECT DISTINCT name

FROM student;

59
Q

12) Which of the following queries on table STUDENT will return number 2 as a result?

A) SELECT COUNT(*) FROM student;

B) SELECT COUNT(name) FROM student;

C) SELECT COUNT(class) FROM student;

D) SELECT COUNT(DISTINCT class) FROM student;

A
60
Q

13) How many records will the following query on table STUDENT return? SELECT FROM student WHERE name LIKE ‘%or%’;

A) 0

B) 2

C) 3

D) 4

D

A

D) 4

61
Q

14) What will be the result of the following query on table STUDENT? SELECT COUNT( *) FROM student GROUP BY class;

A) Number 5

B) Number 2

C) Numbers 2 and 3

D) Numbers 1 and 1

C

A

C) Numbers 2 and 3

62
Q

15) What will be the result of the following query on table STUDENT? SELECT COUNT( *) FROM student GROUP BY class HAVING COUNT(*) <3;

A) Number 5

B) Number 2

C) Numbers 2 and 3

D) Numbers 1 and 1

A

B) Number 2

63
Q

16) Which of the following sequences of CREATE TABLE statements for HAPPY INSURANCE database is in correct order?

A) CREATE TABLE area CREATE TABLE client CREATE TABLE agent

B) CREATE TABLE area CREATE TABLE agent CREATE TABLE client

C) CREATE TABLE client CREATE TABLE agent CREATE TABLE area

D) CREATE TABLE agent CREATE TABLE client CREATE TABLE area

B

A

B) CREATE TABLE area CREATE TABLE agent CREATE TABLE client

64
Q

17) Which of the following sequences of DROP TABLE statements for HAPPY INSURANCE database is in correct order?

A) DROP TABLE area DROP TABLE client DROP TABLE agent

B) DROP TABLE area DROP TABLE agent DROP TABLE client

C) DROP TABLE client DROP TABLE agent DROP TABLE area

D) DROP TABLE agent DROP TABLE client DROP TABLE area

C

A

C) DROP TABLE client DROP TABLE agent DROP TABLE area

65
Q

18) What will be retrieved by the following query on the table CLIENT? SELECT DISTINCT clientname FROM client WHERE clientspousename = ‘Amy’;

A) Name Amy twice

B) Name Amy

C) Name Cole

D) Names Andy and Cole

D

A

D) Names Andy and Cole

66
Q

19) How many records will be retrieved by the following query on table AGENT? SELECT a.agentname, s.agentname FROM agent a, agent s WHERE a.supervisedby = s.agentid;

A) 0

B) 1

C) 2

D) 4

A
67
Q

20) How many records will be retrieved by the following query on tables AGENT and AREA? SELECT * FROM agent ag, area a WHERE ag.agentarea = a.areaid;

A) 0

B) 3

C) 4

D) 12

A

C) 4