0% found this document useful (0 votes)
61 views

Back To 'Certificate Final Exam/': Cost Int

This document is a review of a certificate final exam taken on an online learning platform. It provides feedback on 18 multiple choice questions covering topics related to databases, data modeling, and data management. The review shows the questions, whether the answer was right or wrong, and how many points were earned for each question.

Uploaded by

hosbadawi.hb
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
61 views

Back To 'Certificate Final Exam/': Cost Int

This document is a review of a certificate final exam taken on an online learning platform. It provides feedback on 18 multiple choice questions covering topics related to databases, data modeling, and data management. The review shows the questions, whether the answer was right or wrong, and how many points were earned for each question.

Uploaded by

hosbadawi.hb
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 16

CS403: Certificate Final Exam: Attempt review | Saylor Academy https://learn.saylor.org/mod/quiz/review.php?

attempt=1608448&cmid=23178&showall=1

 Back to 'Certificate Final Exam\'

Started on Wednesday, April 27, 2022, 5:38 PM


State Finished
Completed on Wednesday, April 27, 2022, 6:03 PM
Time taken 24 mins 43 secs
Points 37.00/50.00
Grade 7.40 out of 10.00 (74%)

Question 1 Which of the following code segments best describes information?


Correct

1.00 points out Select one:


of 1.00
a. Cost = 10

b. Int X;
X = 10

c. int Dollars = 10;


Print Dollars

d. Int Dollars;

Dollars = 10;
Cost = Dollars

Your answer is correct.

Question 2 Which of the following selections best describes information?


Incorrect

0.00 points out Select one:


of 1.00
a. Letters
b. Data plus semantics
c. Letters that spell a word 
d. A number and its data type

Question 3 Which of the following is information?


Correct

1.00 points out Select one:


of 1.00
a. 32
b. It is 32.
c. It is 32 degrees.
d. It is 32 degrees Fahrenheit.

1 of 16 4/27/22, 18:03
CS403: Certificate Final Exam: Attempt review | Saylor Academy https://learn.saylor.org/mod/quiz/review.php?attempt=1608448&cmid=23178&showall=1

Question 4 Which of the following best describes a database?


Correct

1.00 points out Select one:


of 1.00
a. A system for managing data
b. A set of data for a particular application
c. A major subsystem of an operating system
d. A reusable, organized collection of related data

Question 5 Which of the following sets of terms describes the data in a database?
Correct

1.00 points out Select one:


of 1.00
a. integrated and shared
b. redundant and accurate
c. functional and redundant
d. transactional and unconstrained

Question 6 What is used in DBMSes to make sure that data are accurate and consistent?
Incorrect

0.00 points out Select one:


of 1.00
a. Primary keying
b. Check constraints
c. Referential integrity
d. Field-level validations 

Question 7 One function of a DBMS is provision of which of the following?


Correct

1.00 points out Select one:


of 1.00
a. Data security
b. Data accuracy
c. Data redundancy
d. Data dependence

Question 8 Which kind of database corresponds to 'graph'?


Incorrect

0.00 points out Select one:


of 1.00
a. Network
b. Relational
c. Hierarchical 
d. Object-oriented

2 of 16 4/27/22, 18:03
CS403: Certificate Final Exam: Attempt review | Saylor Academy https://learn.saylor.org/mod/quiz/review.php?attempt=1608448&cmid=23178&showall=1

Question 9 Which kind of database corresponds to 'class'?


Correct

1.00 points out Select one:


of 1.00
a. Network
b. Relational
c. Hierarchical
d. Object-oriented

Question 10 Which level of the three-level database architecture deals with how the user sees data?
Incorrect

0.00 points out Select one:


of 1.00
a. Conceptual
b. External
c. Individual
d. Internal 

Question 11 What is data that describes data called?


Correct

1.00 points out Select one:


of 1.00
a. Metadata
b. Abstract data
c. Semantic data
d. Referential data

Question 12 Indices are useful for searching a database because they decrease which of the following?
Correct

1.00 points out Select one:


of 1.00
a. query complexity
b. search time for certain types of queries
c. the amount of storage used in searching a database
d. the design effort needed for developing the database search algorithms

Question 13 What is a value that a DBMS maps to a single element of a relation?


Correct

1.00 points out Select one:


of 1.00
a. a key
b. a field value
c. a field name
d. a query value

3 of 16 4/27/22, 18:03
CS403: Certificate Final Exam: Attempt review | Saylor Academy https://learn.saylor.org/mod/quiz/review.php?attempt=1608448&cmid=23178&showall=1

Question 14 A link can be established between two tables by the use of what kind of key?
Correct

1.00 points out Select one:


of 1.00
a. foreign
b. hash
c. national
d. primary

Question 15 IMS is an example of a database system that implemented which of the following models?
Correct

1.00 points out Select one:


of 1.00
a. Hierarchical
b. Network
c. Relational
d. Theoretical

Question 16 If you were a database consultant tasked with recommending a data model for storing parts shared by large machinery for a manufacturing company, which of the following types of database would you recommend?
Correct

1.00 points out Select one:


of 1.00
a. Network
b. NoSQL
c. Object
d. Relational

Question 17 "Design" corresponds to which of the following database terms?


Incorrect

0.00 points out Select one:


of 1.00
a. Internal view
b. External view 
c. Conceptual schema
d. Data management language

Question 18 "User interface" corresponds to which of the following database terms?


Correct

1.00 points out Select one:


of 1.00
a. Subschema
b. External view
c. Network schema
d. Data management language

4 of 16 4/27/22, 18:03
CS403: Certificate Final Exam: Attempt review | Saylor Academy https://learn.saylor.org/mod/quiz/review.php?attempt=1608448&cmid=23178&showall=1

Question 19 Which of the following is an example of a use of an E-R diagram?


Correct

1.00 points out Select one:


of 1.00
a. A model of a database
b. A design of a database
c. A diagram of a database
d. A specification of database requirements

Question 20 In this figure, which of the following is a candidate key?


Incorrect

0.00 points out


of 1.00

Select one:
a. Name
b. License
c. SocSec#
d. StudentId 

Question 21 On an ER diagram, which shape is used to represent an entity?


Correct

1.00 points out Select one:


of 1.00
a. Circle
b. Diamond
c. Oval
d. Rectangle

5 of 16 4/27/22, 18:03
CS403: Certificate Final Exam: Attempt review | Saylor Academy https://learn.saylor.org/mod/quiz/review.php?attempt=1608448&cmid=23178&showall=1

Question 22 What kind of relationship is this figure an example of?


Correct

1.00 points out


of 1.00

Select one:
a. Unary
b. One to all
c. One to one
d. One to many

Question 23 Which of the following can we use to indicate whether an entity instance is mandatory?
Correct

1.00 points out Select one:


of 1.00
a. Cardinality

b. Optionality

c. Disjointedness

d. Referential integrity

Your answer is correct.

Question 24 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,
Correct what are Students, Courses, and Sections called?
1.00 points out
of 1.00 Select one:
a. Attributes

b. Constraints

c. Entities

d. Relations

Your answer is correct.

6 of 16 4/27/22, 18:03
CS403: Certificate Final Exam: Attempt review | Saylor Academy https://learn.saylor.org/mod/quiz/review.php?attempt=1608448&cmid=23178&showall=1

Question 25 The diagram contains a unary entity which has a many-to-many relationship. Which of the following best demonstrates a mapping of the ERD to relations?
Incorrect

0.00 points out


of 1.00

Select one:
a.

b. 

c.

d.

Your answer is incorrect.

7 of 16 4/27/22, 18:03
CS403: Certificate Final Exam: Attempt review | Saylor Academy https://learn.saylor.org/mod/quiz/review.php?attempt=1608448&cmid=23178&showall=1

Question 26 This figure shows an ER diagram that contains a one to many relationship, and four possible ways to map the diagram to a set of relations. Which mapping is correct?
Incorrect

0.00 points out


of 1.00

Select one:
a.

b.

c. 

d.

Your answer is incorrect.

Question 27 What constraint type does the following constraint belong to?
Incorrect
"Every table must have a primary key, of which no part can be null."
0.00 points out
of 1.00
Select one:
a. Entity integrity
b. Domain integrity 
c. Semantic integrity
d. Referential integrity

8 of 16 4/27/22, 18:03
CS403: Certificate Final Exam: Attempt review | Saylor Academy https://learn.saylor.org/mod/quiz/review.php?attempt=1608448&cmid=23178&showall=1

Question 28 Which of the following is an additional constraint that is added by users or database administrators?
Correct

1.00 points out Select one:


of 1.00
a. Entity integrity
b. Domain integrity
c. Semantic integrity
d. Referential integrity

Question 29 What is relational algebra?


Correct

1.00 points out Select one:


of 1.00
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 30 In relational algebra, how would one select just the name from the student relation?
Correct

1.00 points out Select one:


of 1.00
a. Π (Student)
b. Π (Course)
c. ΠName (Student)
d. σname (Student)

Question 31 Assuming that we have an additional relation called staff which is union compatible with faculty, what will the following operation result in?
Correct
Πname (Staff ⋂ Instructor)
1.00 points out
of 1.00
Select one:
a. No rows being printed
b. The cartesian product of instructor and staff
c. All rows of instructor being added to all rows of staff
d. The name of all rows which are in both staff and instructor

Question 32 What would the following operation produce for output?


Correct
πdescription,name((course ⟖course.courseid = registration.courseid registration) ⋈sid = student.sid student)
1.00 points out
of 1.00
Select one:
a. All course descriptions and names of all students
b. Registered students and all the course descriptions
c. All student names and all courses that are registered
d. Registered students and descriptions of their courses

9 of 16 4/27/22, 18:03
CS403: Certificate Final Exam: Attempt review | Saylor Academy https://learn.saylor.org/mod/quiz/review.php?attempt=1608448&cmid=23178&showall=1

Question 33 Which of the following is this operation an example of?


Correct
Student ⋈ student.sid = course.sid Course
1.00 points out
of 1.00
Select one:
a. An equijoin
b. A hash join
c. A theta join
d. Aa natural join

Question 34 In what normal form is the relation in the figure?


Correct

1.00 points out


of 1.00

Select one:
a. First normal form
b. Second normal form
c. Third normal form
d. Boyce-Codd normal form

Question 35 A relation is considered to be in Boyce-Codd normal form if and only if which of the following applies?
Correct

1.00 points out Select one:


of 1.00
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 Consider the following database table:


Incorrect
PartNo Description CustID Name QuantityOrdered
0.00 points out
of 1.00 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?

Select one:
a. A non-normal form
b. A deletion anomaly
c. An update anomaly 
d. An insertion anomaly

10 of 16 4/27/22, 18:03
CS403: Certificate Final Exam: Attempt review | Saylor Academy https://learn.saylor.org/mod/quiz/review.php?attempt=1608448&cmid=23178&showall=1

Question 37 Which of the following terms describes one attribute (or field) that determines the value of another attribute?
Incorrect

0.00 points out Select one:


of 1.00
a. Foreign key
b. Primary key
c. Independent key 
d. Functional dependency

Question 38 What is the difference between data definition language and data manipulation language?
Correct

1.00 points out Select one:


of 1.00
a. It is used to create tables, views, etc., and data manipulation language is only used for inserts 

b. It is used for queries and data manipulation language is used for updating and deleting tables only

c. It is used to create the files that store tables whereas data manipulation language is used to update data

d. It is used to create tables, indexes, etc., whereas data manipulation language is used to query the database

Your answer is correct.

Question 39 Which of the following is a data definition command?


Incorrect

0.00 points out Select one:


of 1.00
a. Insert
b. Select 
c. Update
d. Create table

Question 40 Assume that we have a table called student with the following columns:
Correct
(sid,fname,lname,major)
1.00 points out
of 1.00 What is wrong with this insert command?
insert into student ('s2234','John','Smith','Chemistry')

Select one:
a. It is missing a left parenthesis
b. It is missing a right parenthesis
c. It is missing a value before the parenthesis
d. There are not enough fields in the statement

11 of 16 4/27/22, 18:03
CS403: Certificate Final Exam: Attempt review | Saylor Academy https://learn.saylor.org/mod/quiz/review.php?attempt=1608448&cmid=23178&showall=1

Question 41 Which of the following are constraints that can be used with the create table command?
Correct

1.00 points out Select one:


of 1.00
a. references, alias, check
b. null, primary key, view of
c. primary key, not null, unique
d. primary key, default, between

Question 42 Which of the following is true about a select statement?


Correct

1.00 points out Select one:


of 1.00
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 43 What is the delete statement used to do?


Incorrect

0.00 points out Select one:


of 1.00
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 44 What would this statement produce for output?


Correct
select lname, fname
1.00 points out
from customer
of 1.00
where state like '%M'

Select one:
a. Customers' last and first names who live in a state that ends with an M
b. Customers' last and first names who live in a state that begins with an M
c. a list of all customers in the table who live in a state that ends with an M
d. A list of all customers in the table who live in a state that begins with an M

Question 45 Which of the following describes the order by clause?


Correct

1.00 points out Select one:


of 1.00
a. It is always the first part of an SQL select statement
b. It sorts the entire table by ordering the values of a column(s)
c. It sorts the result set from a query by ordering column values
d. It uses descending when the order for sorting is not specified

12 of 16 4/27/22, 18:03
CS403: Certificate Final Exam: Attempt review | Saylor Academy https://learn.saylor.org/mod/quiz/review.php?attempt=1608448&cmid=23178&showall=1

Question 46 Which of the following is a SQL aggregate function?


Correct

1.00 points out Select one:


of 1.00
a. average
b. avg
c. mean
d. sqrt

Question 47 What is the SQL 'group by' statement used to do?


Correct

1.00 points out Select one:


of 1.00
a. Sort the results in group order
b. List the rows ordered by group
c. List a single row for each group
d. Insert new records into the table

Question 48 Which type of join returns all rows in the left table regardless of whether there are matches in the right table?
Correct

1.00 points out Select one:


of 1.00
a. Hash join
b. Full outer join
c. Left outer join
d. Right outer join

13 of 16 4/27/22, 18:03
CS403: Certificate Final Exam: Attempt review | Saylor Academy https://learn.saylor.org/mod/quiz/review.php?attempt=1608448&cmid=23178&showall=1

Question 49 You are given the following tables:


Correct

1.00 points out


of 1.00
Course

CourseID Description Credits

CS101 Computer Science I 3

CS201 Elementary Data Structures 3

ENGL210 Technical Writing 3

Registration

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

Select one:
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

Your answer is correct.

14 of 16 4/27/22, 18:03
CS403: Certificate Final Exam: Attempt review | Saylor Academy https://learn.saylor.org/mod/quiz/review.php?attempt=1608448&cmid=23178&showall=1

Question 50 You are given the following tables:


Correct

1.00 points out


of 1.00
Course

CourseID Description Credits

CS101 Computer Science I 3

CS201 Elementary Data Structures 3

ENGL210 Technical Writing 3

Registration

SID CourseID SemID Instructor Grade

282712 ENGL210 201701 H. Zacny B+

362112 CS101 201701 K. Ross C

652123 CS403 201603 K. Ross A

Student

SID Lname Fname Major

986223 Smith Janet Chemistry

362112 Williams Henry Computer Science

282712 Jones John English Literature

What would the following SQL Select statement produce for output?
select course.Description,registration.SID,registration.grade, student.lname
from registration
inner join course
on registration.courseID = course.courseID
inner join student on registration.sid = student.sid

Select one:
a. No output, since this query cannot be performed

b. Technical Writing 282712 B+ Jones

c. Technical Writing 282712 B+ Jones


Computer Science I 362112 Williams C

d. Technical Writing 282712 B+ Jones 


Computer Science I 362112 Williams C
Null 652123 Null A

Your answer is correct.

15 of 16 4/27/22, 18:03
CS403: Certificate Final Exam: Attempt review | Saylor Academy https://learn.saylor.org/mod/quiz/review.php?attempt=1608448&cmid=23178&showall=1

 Previous Jump to...

16 of 16 4/27/22, 18:03

You might also like