CS403: Introduction to Modern Database Systems Final Exams Answers
Though we may not recognise them in our everyday activities, databases are everywhere. They are hidden behind your online banking profile, airline reservation systems, medical records, and even employment records. This course will provide a general overview of databases, introducing you to database history, modern database systems, the different models used to design a database, and Structured Query Language (SQL), which is the standard language used to access and manipulate databases. Many of the principles of database systems carry to other areas in computer science, especially operating systems. Databases are often thought of as one of the core computer science topics since many other areas in the discipline have been derived from this area.
To effectively use this website to answer your alison questions with ease, checkout this short tutorial I put together to help you in the video below.
Question 1
Question text
b. It is 32.
c. It is 32 degrees.
d. It is 32 degrees Fahrenheit.
Question 2
Question text
a. Low data quality
b. Limited data sharing
c. Short development time
d. Program-data independence
Question 3
Question text
a. Letters
b. Data plus semantics
c. Letters that spell a word
d. A number and its data type
Question 4
Question text
a. Backing up hard drives or other storage disks
b. Recording the behavior of real time embedded systems
c. Storing and retrieving enterprise data for business systems
d. Performing computations for scientific and engineering application systems
Question 5
Question text
a. integrated and shared
b. redundant and accurate
c. functional and redundant
d. transactional and unconstrained
Question 6
Question text
a. Design
b. Testing
c. Usage
d. Requirements elicitation
Question 7
Question text
a. Data security
b. Data accuracy
c. Data redundancy
d. Data dependence
Question 8
Question text
a. Network
b. Relational
c. Hierarchical
d. Object-oriented
Question 9
Question text
a. Network
b. Relational
c. Hierarchical
d. Object-oriented
Question 10
Question text
a. Conceptual
b. External
c. Individual
d. Internal
Question 11
Question text
a. Metadata
b. Abstract data
c. Semantic data
d. Referential data
Question 12
Question text
a. a meta table
b. a virtual table
c. a copy of a table
d. a pointer to a table
Question 13
Question text
a. foreign
b. hash
c. national
d. primary
Question 14
Question text
a. an index
b. a schema
c. a table
d. a view
Question 15
Question text
a. Flat files
b. Rough files
c. Magnetic tape
d. Punched cards
Question 19
Question text
a. An E-R diagram is transformed into the database design.
b. An E-R diagram is transformed into the internal database.
c. An E-R diagram is transformed into the physical database.
d. An E-R diagram is used to represent the database requirements.
Question 20
Question text
In this figure, what is TextBook an example of?
a. Primary key
b. Composite key
c. Multivalued attribute
d. Single-valued attribute
Question 21
Question text
a. Circle
b. Diamond
c. Oval
d. Rectangle
Question 22
Question text
What kind of relationship is this figure an example of?
a. Unary
b. One to all
c. One to one
d. One to many
Question 23
Question text
Which of the following can we use to indicate whether an entity instance is mandatory?
a. Cardinality
b. Optionality
c. Disjointedness
d. Referential integrity
Question 24
Question text
You have an application domain that consists of Cities, Towns, and Neighborhoods. A City has a name, zip code, state, and a country. A Town has a name, zip code, state, and country. A Neighborhood has a name, coordinate, and population. Using a relational model, what are Students, Courses, and Sections called?
a. Attributes
b. Constraints
c. Entities
d. Relations
Question 25
Question text
Question 26
Question text
Question 27
Question text
a. They cannot be used in most modern database systems
b. They ensure values entered into a table satisfy conditions
c. They can only check numeric values for arithmetic relations
d. They cannot always be implemented in some SQL implementations
Question 28
Question text
Question 29
Question text
a. Π (Student)
b. Π (Course)
c. ΠName (Student)
d. σname (Student)
Question 30
Question text
a. The mathematical basis for SQL
b. A language used to store data in a database
c. The translation of a query by an SQL compiler
d. An informal way to describe how a database works
Question 31
Question text
Question 32
Question text
a. A theta join
b. An inner join
c. A natural join
d. A cartesian product
Question 33
Question text
Which of the following is this operation an example of?
Student ⋈ student.sid = course.sid Course
a. An equijoin
b. A hash join
c. A theta join
d. A natural join
Question 34
Question text
In what normal form is the relation in the figure?
a. First normal form
b. Second normal form
c. Third normal form
d. Boyce-Codd normal form
Question 35
Question text
a. It is in fourth normal form
b. There are transitive dependencies
c. Every determinant is a candidate key
d. There are some partial functional dependencies
Question 36
Question text
a. Foreign key
b. Primary key
c. Independent key
d. Functional dependency
Question 37
Question text
a. When there are no repeating groups in a relation
b. When there are no transitive functional dependencies
c. When there are no dependencies on part of the primary key
d. When there are no dependent attributes in transitive relation
Question 38
Question text
In this figure, which of the following is a candidate key?
Question 39
Question text
a. Insert
b. Select
c. Update
d. Create table
Question 40
Question text
If we have the following table:
customer (custNo, name, street, city, state, zip, telephone, creditLimit)
What will this update command do?
update customer
set creditLimit = creditLimit * 1.05
where state = ‘MA’
a. Insert a new record into the table for each MA customer
b. Set the credit limit of all MA customers to credit limit * 1.05
c. Set the credit limit of all MA customers to credit limit / 1.05
d. Change state to MA where credit limit was increased by 5%
Question 41
Question text
Question 42
Question text
a. Delete table rows that match a condition
b. Truncate parts of a table that are too long
c. Remove table columns that match a condition
d. Insert a mark to indicate that a table is deleted
Question 43
Question text
a. It can only be used by itself.
b. It can be included as part of an insert only.
c. It can be included as part of an update but not as part of a delete.
d. It can be included as part of an update, delete, or insert statement.
Question 44
Question text
a. Only joining tables
b. Choosing the table
c. Choosing the expression to display
d. Choosing only rows that fit a certain criteria
Question 45
Question text
What will the following query return for results?
select lname
from customer
where credit_limit in (1000,2000,3000)
a. All last names and credit limits from 1000 to 2000, and 2000 to 3000
b. The last name of all customers with a credit limit of 1000, 2000, or 3000
c. All last names and credit limits where the credit limit is 1000, 2000, 3000
d. The last name of all customers with a credit from 1000 to 2000, and 2000 to 3000
Question 46
Question text
Consider the following database table:
PartNo | Description | CustID | Name | QuantityOrdered |
---|---|---|---|---|
2361 | Pens | 7810 | J. Smith | 22 |
2371 | Paper Clips | 7810 | J. Smith | 1000 |
2914 | Pens | 7914 | K. Jones | 900 |
If we were to delete the third row, all information about customer 7914 would be lost. Which of the following is this an example of?
Question 47
Question text
Consider the following database table:
PartNo | Description | CustID | Name | QuantityOrdered |
---|---|---|---|---|
2361 | Pens | 7810 | J. Smith | 22 |
2371 | Paper Clips | 7810 | J. Smith | 1000 |
2914 | Pens | 7914 | K. Jones | 900 |
Since the primary key is made up of PartNo and CustID, we cannot insert a new part without adding an associated customer. Which of the following is this an example of?
Question 48
Question text
a. Return all rows in all tables
b. Return only those rows with a matching row in the corresponding table
c. Return all rows in the right table regardless of whether there is a match in the left table
d. Return all rows in the left or right table regardless of whether there is a match in the corresponding table
Question 49
Question text
What would the following query produce for results?
select count(*)
from customer
where credit_limit > 500
Question 50
Question text
You are given the following tables:
CourseID | Description | Credits |
---|---|---|
CS101 | Computer Science I | 3 |
CS201 | Elementary Data Structures | 3 |
ENGL210 | Technical Writing | 3 |
SID | CourseID | SemID | Instructor | Grade |
---|---|---|---|---|
282712 | ENGL210 | 201701 | H. Zacny | B+ |
362112 | CS101 | 201701 | K. Ross | C |
What would the following SQL Select statement produce for output?
select course.description, registration.SID,registration.grade
from registration
right join course
on registration.courseID = course.courseID
a. Computer Science I 362112 C
b. Computer Science I 362112 C
Technical Writing 28212 B+
c. Computer Science I 362112 C
Elementary Data Structures null null
Technical Writing 28212 B+
d. No results due to syntax error
UPDATES(Questions Repeat)
Question text
Question text
Question text
Question text
Question text
Question text
Question text
Question text
Question text
Question text
Question text
Question text
Question text
Question text
Question text
Question text
Question text
In this figure, which of the following is a candidate key?
Question text
Which of the following is true of the ER diagram in the figure below?
Question text
What kind of relationship is this figure an example of?
Question text
Which of the following can we use to indicate whether an entity instance is mandatory?
Cardinality
Optionality
Disjointedness
Referential integrity
Feedback
Question text
You have an application domain that consists of Cities, Towns, and Neighborhoods. A City has a name, zip code, state, and a country. A Town has a name, zip code, state, and country. A Neighborhood has a name, coordinate, and population. Using a relational model, what are Students, Courses, and Sections called?
Attributes
Constraints
Entities
Relations
Feedback
Question text
This figure shows an ER diagram that contains a one-to-one relationship and four possible ways to map the diagram to a set of relations. Which is the correct solution to mapping this ER diagram to a set of relations?
Feedback
Question text
Question text
Question text
Question text
If we had another relation, staff, which was union compatible with faculty, what would the following expression return for a result?
Πempno (Staff ⋃ Instructor)
Question text
Question text
Question text
In what normal form is the relation in the figure?
Question text
Question text
Consider the following database table:
PartNo | Description | CustID | Name | QuantityOrdered |
---|---|---|---|---|
2361 | Pens | 7810 | J. Smith | 22 |
2371 | Paper Clips | 7810 | J. Smith | 1000 |
2914 | Pens | 7914 | K. Jones | 900 |
If J. Smith changes her last name to Klein, we would have to update multiple rows in the table. Which of the following is this an example of?
Question text
Question text
Question text
What would this delete operation do?
delete from course
where credits = 3
Question text
Question text
What will the following query return for results?
select lname
from customer
where credit_limit in (1000,2000,3000)
Question text
Question text
What would the following SQL statement produce for output?
select top 2 from customers
Question text
Question text
Question text
You are given the following tables:
CourseID | Description | Credits |
---|---|---|
CS101 | Computer Science I | 3 |
CS201 | Elementary Data Structures | 3 |
ENGL210 | Technical Writing | 3 |
SID | CourseID | SemID | Instructor | Grade |
---|---|---|---|---|
282712 | ENGL210 | 201701 | H. Zacny | B+ |
362112 | CS101 | 201701 | K. Ross | C |
What would the following SQL Select statement produce for output?
select course.description, registration.SID,registration.grade
from registration
right join course
on registration.courseID = course.courseID
Computer Science I 362112 C
Computer Science I 362112 C
Technical Writing 28212 B+
Computer Science I 362112 C
Elementary Data Structures null null
Technical Writing 28212 B+
No results due to syntax error