The document contains a confidential database system exam with two sections - objective questions and structured questions. The objective questions section contains 40 multiple choice questions testing various database concepts like the three schema architecture, entity-relationship modeling, relational algebra, SQL, normalization, and transactions. The structured questions section contains two essay questions, with the first asking about database architecture, properties, relationships and creating tables from given schemas. The second asks about database transaction properties, data definition language statements, normalization forms, and generating output from SQL statements on a sample table.
Structured Query Language
SQL Commands:
• The standard SQL commands to interact with relational databases are CREATE, SELECT, INSERT, UPDATE, DELETE and DROP
Fundamentals of Database Systems questions and answers with explanation for fresher's and experienced for interview, competitive examination and entrance test.
Structured Query Language
SQL Commands:
• The standard SQL commands to interact with relational databases are CREATE, SELECT, INSERT, UPDATE, DELETE and DROP
Fundamentals of Database Systems questions and answers with explanation for fresher's and experienced for interview, competitive examination and entrance test.
Overview of computer math and numbers targeted at middle and high school. Covers computer use of numbers including binary numbers, a flip-flop, exponents. A few binary number games and projects are included.
this is about databases questions , maybe i miss copy some option D,.docxEvonCanales257
this is about databases questions , maybe i miss copy some option D, if ABC there are all incorrecct please type D after that question thank you
Suppose that a PRODUCT table contains two attributes, PROD_CODE and VEND_CODE. Those two attributes have values of ABC, 125, DEF, 124, GHI, 124, and JKL, 123, respectively. The VENDOR table contains a single attribute, VEND_CODE, with values 123, 124, 125, and 126, respectively. (The VEND_CODE attribute in the PRODUCT table is a foreign key to the VEND_CODE in the VENDOR table.) Given that information, what would be the query output for a INTERSECT query based on these two tables?
[removed]
a. The query output will be: 125,124,123,126
[removed]
b. The query output will be: 123
[removed]
c. The query output will be: 125,124,124,123,123,124,125,126
[removed]
d. The query output will be: 123,124,125
What is the difference between UNION and UNION ALL?
[removed]
a. A UNION ALL operator will yield all rows of both relations, including duplicates
[removed]
b. UNION yields unique rows
[removed]
c. UNION eliminates duplicates rows
[removed]
d. All of these choices are correct.
A(n) ______________ is a block of PL/SQL code that is automatically invoked by the DBMS upon the occurrence of a data manipulation event (INSERT, UPDATE or DELETE.)
[removed]
a. stored procedure
[removed]
b. trigger
[removed]
c. view
[removed]
d. function
__________________ means that the relations yield attributes with identical names and compatible data types.
[removed]
a. duplicated
[removed]
b. Set comparable
[removed]
c. Union compatible
[removed]
d. compatible-oriented
Which of the following a parts of the definition of a trigger?
[removed]
a. The triggering level
[removed]
b. The triggering action
[removed]
c. The triggering timing
[removed]
d. All of these choices are correct.
Which of the following relational set operators does NOT require that the relations are union-compatible?
[removed]
a. INTERSECT
[removed]
b. PROJECT
[removed]
c. MINUS
[removed]
d. UNION
Suppose that you have two tables, EMPLOYEE and EMPLOYEE_1. The EMPLOYEE table contains the records for three employees: Alice Cordoza, John Cretchakov, and Anne McDonald. The EMPLOYEE_1 table contains the records for employees John Cretchakov and Mary Chen. Given that information, what is the query output for the INTERSECT query?
[removed]
a. The query output will be: John Cretchakov and Mary Chen
[removed]
b. The query output will be: Alice Cordoza, John Cretchakov, Anne McDonald and Mary Chen
[removed]
c. The query output will be: John Cretchakov
[removed]
d. The query output will be: Alice Cordoza, John Cretchakov, Anne McDonald, John Cretchakov and Mary Chen
A _____________________ is a join that performs a relational product (or Cartesian product) of two tables.
[removed]
a. CROSS JOIN
[removed]
b. DUPLICATE JOIN
[removed]
c. OUTER JOIN
[removed]
d. INNER JOIN
What Oracle function should you use to calculate the number of days between t.
Suppose that a PRODUCT table contains two attributes, PROD_CODE an.docxpicklesvalery
Suppose that a PRODUCT table contains two attributes, PROD_CODE and VEND_CODE. Those two attributes have values of ABC, 125, DEF, 124, GHI, 124, and JKL, 123, respectively. The VENDOR table contains a single attribute, VEND_CODE, with values 123, 124, 125, and 126, respectively. (The VEND_CODE attribute in the PRODUCT table is a foreign key to the VEND_CODE in the VENDOR table.) Given that information, what would be the query output for a INTERSECT query based on these two tables?
a. The query output will be: 125,124,123,126
b. The query output will be: 123
c. The query output will be: 125,124,124,123,123,124,125,126
d. The query output will be: 123,124,125
What is the difference between UNION and UNION ALL?
a. A UNION ALL operator will yield all rows of both relations, including duplicates
b. UNION yields unique rows
c. UNION eliminates duplicates rows
d. All of these choices are correct.
A(n) ______________ is a block of PL/SQL code that is automatically invoked by the DBMS upon the occurrence of a data manipulation event (INSERT, UPDATE or DELETE.)
a. stored procedure
b. trigger
c. view
d. function
__________________ means that the relations yield attributes with identical names and compatible data types.
a. duplicated
b. Set comparable
c. Union compatible
d. compatible-oriented
Which of the following a parts of the definition of a trigger?
a. The triggering level
b. The triggering action
c. The triggering timing
d. All of these choices are correct.
Which of the following relational set operators does NOT require that the relations are union-compatible?
a. INTERSECT
b. PROJECT
c. MINUS
d. UNION
Suppose that you have two tables, EMPLOYEE and EMPLOYEE_1. The EMPLOYEE table contains the records for three employees: Alice Cordoza, John Cretchakov, and Anne McDonald. The EMPLOYEE_1 table contains the records for employees John Cretchakov and Mary Chen. Given that information, what is the query output for the INTERSECT query?
a. The query output will be: John Cretchakov and Mary Chen
b. The query output will be: Alice Cordoza, John Cretchakov, Anne McDonald and Mary Chen
c. The query output will be: John Cretchakov
d. The query output will be: Alice Cordoza, John Cretchakov, Anne McDonald, John Cretchakov and Mary Chen
A _____________________ is a join that performs a relational product (or Cartesian product) of two tables.
a. CROSS JOIN
b. DUPLICATE JOIN
c. OUTER JOIN
d. INNER JOIN
What Oracle function should you use to calculate the number of days between the current date and January 25, 1999?
a. SELECT SYSDATE()-#25-JAN-1999#;
b. SELECT SYSDATE – TO_DATE('25-JAN-1999', 'DD-MON-YYYY') FROM DUAL;
c. SELECT SYSDATE FROM DUAL;
d. SELECT SYSDATE()-JAN-#25-1999#;
Using tables named T1 and T2, write a query example for a LEFT OUTER JOIN, assuming that T1 and T2 share a common column named C1.
a. SELECT * FROM T1 OUTER JOIN T2 ON T1.C1 = T2.C2;
...
If you are using our Exam dumps then you will be able to get 100% guaranteed success in the real 1Z0-061 exam. Visit@ https://www.certmagic.com/1Z0-061-certification-practice-exams.html
#Oracle #Certifications #CertMagic #Learningmaterial #Practiceexams #Dumps #IT_Tech #Studyguide #FreeDemos #Discount #1Z0_061 #SQL #Fundamentals #Database
Exploring Microsoft Office 2010 Volume 1 Excel Chapter 2Testbank.docxPOLY33
Exploring Microsoft Office 2010 Volume 1
Excel Chapter 2
Testbank
1) Semi-selection or pointing
A) indicates a cells relative location from the cell containing the formula.
B) indicates a cell's specific location and the reference does not change when you copy the formula.
C) is the process of using the mouse to select cells while building a formula.
D) creates an Equals (=) sign.
Answer: C
Diff: 1
Reference: Formula Basics
Objective: 1
AppChap: Excel 2: Formulas and Functions
2) A formula in Excel must begin with
A) a cell's specific location.
B) a cells relative location.
C) both an absolute and a relative cell reference.
D) an Equals (=) sign.
Answer: D
Diff: 1
Reference: Formula Basics
Objective: 1
AppChap: Excel 2: Formulas and Functions
3) A relative cell reference
A) indicates a cell's specific location and the reference does not change when you copy the formula.
B) contains both an absolute and a relative cell reference.
C) indicates a cells relative location from the cell containing the formula; the reference changes when you copy the formula.
D) occurs when a formula directly or indirectly refers to the cell containing the formula.
Answer: C
Diff: 1
Reference: Formula Basics
Objective: 2
AppChap: Excel 2: Formulas and Functions
4) An absolute cell reference
A) causes a potential error.
B) indicates a cell's specific location and the reference does not change when you copy the formula.
C) occurs when a formula directly or indirectly refers to the cell containing the formula.
D) contains both an absolute and a relative cell reference.
Answer: B
Diff: 1
Reference: Formula Basics
Objective: 2
AppChap: Excel 2: Formulas and Functions
5) A mixed cell reference
A) occurs when a formula directly or indirectly refers to the cell containing the formula.
B) causes a potential error.
C) contains absolute or relative cell references, but not both.
D) contains both an absolute and a relative cell reference.
Answer: D
Diff: 1
Reference: Formula Basics
Objective: 2
AppChap: Excel 2: Formulas and Functions
6) A circular reference
A) is a predefined formula that performs a calculation.
B) is a rule that governs the structure and components for functions.
C) occurs when a formula directly or indirectly refers to the cell containing the formula.
D) is an input such as a cell reference or a value needed to complete a function.
Answer: C
Diff: 1
Reference: Formula Basics
Objective: 3
AppChap: Excel 2: Formulas and Functions
7) Excel displays a green arrow in the top left corner of a cell if it detects a
A) cell reference or a value.
B) rule that governs components of functions.
C) potential error.
D) predefined formula that performs a calculation.
Answer: C
Diff: 1
Reference: Formula Basics
Objective: 3
AppChap: Excel 2: Formulas and Functions
8) A function is a
A) predefined formula that performs a calculation.
B) cell reference or a value.
C) list of values and defined names as you enter a spreadsheet.
D) set of ru ...
QUESTION 1What type of items are valid for use in the value list o.docxteofilapeerless
QUESTION 1
What type of items are valid for use in the value list of a Case clause?
A.
literals
B.
variables
C.
all of the above
D.
Expressions
QUESTION 2
The acronym GUI stands for
A.
graphical user input.
B.
graphical unit interface.
C.
graphing user introduction.
D.
graphical user interface.
QUESTION 3
Keywords in Visual Basic are words that
A.
should be used when naming variables.
B.
have special meaning and should not be used when naming variables.
C.
are used to name controls, such as TextBox1, Command2, etc.
D.
are used as prefixes for control names (such as txt, btn, lbl, and lst).
QUESTION 4
Which of the following is NOT considered part of a good top-down design chart?
A.
Modules should be as independent of each other as possible.
B.
The design should be readable.
C.
A module should accomplish as many tasks as possible.
D.
Modules should proceed from general to specific as you read down the chart.
QUESTION 5
Constructs in which an If block is contained inside another If block are called:
A.
multi-If blocks
B.
none of the above
C.
nested If blocks
D.
sequential If blocks
QUESTION 6
The process of transmitting values to a Sub procedure is known as ______________.
A.
conveying
B.
referencing
C.
passing
D.
sending
QUESTION 7
1.
Which property is available for most controls that allows you to hide/unhide them either manually by setting the property or by setting it during run time via code?
A.
Visible
B.
Refresh
C.
View-Control
D.
Clear
QUESTION 8
1.
What does the rectangle flowchart symbol represent?
A.
connector
B.
decision
C.
process
D.
input/output
E.
terminal
QUESTION 9
1.
Which of the following is NOT a main component of a personal computer?
A.
disk drive
B.
keyboard
C.
receiver
D.
microprocessor
QUESTION 10
1.
A variable that is visible to every procedure in a form’s code without being passed is called a __________ variable.
A.
local
B.
global
C.
public
D.
class-level
QUESTION 11
1.
When using the logical operator “And”, what part of the expression must be true?
A.
only the right part
B.
only the left part.
C.
either the left or right part, but not both.
D.
both parts
QUESTION 12
Which of the following statements is a valid assignment statement?
A.
txtBox = "Hello World"
B.
"Hello World" = txtBox.Text
C.
Text.txtBox = "Hello World"
D.
txtBox.Text = "Hello World"
QUESTION 13
In Visual Basic, tooltips assist by showing a small caption about the purpose of each icon on the Toolbar. How do you make a tooltip appear?
A.
Hold your Alt key, then click the appropriate Toolbar icon to display its purpose.
B.
Right click the Toolbar icon, select purpose from the available options.
C.
Position the mouse pointer over the icon for a few seconds, the tooltip will appear.
D.
Hold your shift key, then click the appropriate Toolbar icon to display its purpose.
QUESTION 14
1.
Which of the following is NOT a reason for using procedures?
A.
They break a complex problem down into smaller piec.
Read| The latest issue of The Challenger is here! We are thrilled to announce that our school paper has qualified for the NATIONAL SCHOOLS PRESS CONFERENCE (NSPC) 2024. Thank you for your unwavering support and trust. Dive into the stories that made us stand out!
Biological screening of herbal drugs: Introduction and Need for
Phyto-Pharmacological Screening, New Strategies for evaluating
Natural Products, In vitro evaluation techniques for Antioxidants, Antimicrobial and Anticancer drugs. In vivo evaluation techniques
for Anti-inflammatory, Antiulcer, Anticancer, Wound healing, Antidiabetic, Hepatoprotective, Cardio protective, Diuretics and
Antifertility, Toxicity studies as per OECD guidelines
A Strategic Approach: GenAI in EducationPeter Windle
Artificial Intelligence (AI) technologies such as Generative AI, Image Generators and Large Language Models have had a dramatic impact on teaching, learning and assessment over the past 18 months. The most immediate threat AI posed was to Academic Integrity with Higher Education Institutes (HEIs) focusing their efforts on combating the use of GenAI in assessment. Guidelines were developed for staff and students, policies put in place too. Innovative educators have forged paths in the use of Generative AI for teaching, learning and assessments leading to pockets of transformation springing up across HEIs, often with little or no top-down guidance, support or direction.
This Gasta posits a strategic approach to integrating AI into HEIs to prepare staff, students and the curriculum for an evolving world and workplace. We will highlight the advantages of working with these technologies beyond the realm of teaching, learning and assessment by considering prompt engineering skills, industry impact, curriculum changes, and the need for staff upskilling. In contrast, not engaging strategically with Generative AI poses risks, including falling behind peers, missed opportunities and failing to ensure our graduates remain employable. The rapid evolution of AI technologies necessitates a proactive and strategic approach if we are to remain relevant.
2024.06.01 Introducing a competency framework for languag learning materials ...Sandy Millin
http://sandymillin.wordpress.com/iateflwebinar2024
Published classroom materials form the basis of syllabuses, drive teacher professional development, and have a potentially huge influence on learners, teachers and education systems. All teachers also create their own materials, whether a few sentences on a blackboard, a highly-structured fully-realised online course, or anything in between. Despite this, the knowledge and skills needed to create effective language learning materials are rarely part of teacher training, and are mostly learnt by trial and error.
Knowledge and skills frameworks, generally called competency frameworks, for ELT teachers, trainers and managers have existed for a few years now. However, until I created one for my MA dissertation, there wasn’t one drawing together what we need to know and do to be able to effectively produce language learning materials.
This webinar will introduce you to my framework, highlighting the key competencies I identified from my research. It will also show how anybody involved in language teaching (any language, not just English!), teacher training, managing schools or developing language learning materials can benefit from using the framework.
Unit 8 - Information and Communication Technology (Paper I).pdfThiyagu K
This slides describes the basic concepts of ICT, basics of Email, Emerging Technology and Digital Initiatives in Education. This presentations aligns with the UGC Paper I syllabus.
The French Revolution, which began in 1789, was a period of radical social and political upheaval in France. It marked the decline of absolute monarchies, the rise of secular and democratic republics, and the eventual rise of Napoleon Bonaparte. This revolutionary period is crucial in understanding the transition from feudalism to modernity in Europe.
For more information, visit-www.vavaclasses.com
Acetabularia Information For Class 9 .docxvaibhavrinwa19
Acetabularia acetabulum is a single-celled green alga that in its vegetative state is morphologically differentiated into a basal rhizoid and an axially elongated stalk, which bears whorls of branching hairs. The single diploid nucleus resides in the rhizoid.
1. CONFIDENTIAL FP304 DATABASE SYSTEM
Page 2 of 20
SECTION A
OBJECTIVE QUESTIONS (50 marks)
INSTRUCTION:
This section consists of FORTY (40) objective questions. Answer ALL questions in the
answer booklet.
1. “A software system that enable user to define, create and maintain the database”.
This statement describes [CLO 1]
A. Oracle 10g
B. Microsoft Office Access 2007
C. Database Management System
D. Data warehouse
2. The function of a database is to ____________. [CLO 1]
A. collect and organize input data
B. check all input data
C. check all spelling
D. output data
3. Choose the software that is commonly used in database. [CLO 1]
A. Oracle
B. SQL Access
C. SQL desktop
D. Linux
4. Internal Schema is one of the three-schema architecture. Which one is true about
Internal Schema? [CLO 1]
A. It hides the details of physical storage structures and concentrates on
describing entities, data types, relationships, user operations, and constraints.
B. Uses a physical data model and describes the complete details of data storage
and access paths for the database.
2. CONFIDENTIAL FP304 DATABASE SYSTEM
Page 3 of 20
C. Implementation of data model
D. The part of the database that a particular user is interested in and hides the rest
of the database from user
5. A _____________ is the set of allowable values for one or more attributes.
[CLO 1]
A.Cardinality
B.Tuple
C.Degree
D.Domain
6. Within a table, the primary key must be unique so that it will identify each row. When
this is the case, the table is said to exhibit ________ integrity.
[CLO 1]
A. Referential
B. Entity
C. Enforced
D. Key
7. The data type of values that appear in each column is represented by
_________________ of possible values. [CLO 1]
A. Range
B. Product
C. Domain
D. Function
3. CONFIDENTIAL FP304 DATABASE SYSTEM
Page 4 of 20
8. Based on Figure 1, identify which one is the Candidate Key?
Figure 1 [CLO 1]
A. W
B. X
C. Y
D. Z
9. All companies operate four departments in their organization. This relationship
represents a _______________. [CLO 1]
A. one-to-one relationship.
B. one-to-many relationship.
C. many-to-one relationship.
D. many-to-many relationship.
10. __________________works on a single relation R and defines a relation that
constrains only those tuples (rows) of R that satisfy the specified condition
(predicate). [CLO 1]
A. Cartesian product
B. Difference
C. Selection
D. Intersection
4. CONFIDENTIAL FP304 DATABASE SYSTEM
Page 5 of 20
11. _________________ works on a single relation R and defines a relation that contains
a vertical subset of R, extracting the values of specified attributes and eliminating
duplicates. [CLO 1]
A. Projection
B. Cartesian Product
C. Difference
D. Intersection
12. The ______________set operator combines all tuples from two relations excluding
duplicates. [CLO 1]
A. Union
B. Intersect
C. Difference
D. Divide
13. The ___________ operator returns all tuples in one relation that are not found in other
relation. [CLO 1]
A. Intersect
B. Product
C. Select
D. Difference
14. What is meant by the term union compatibility? [CLO 1]
A. When two or more tables share the same number of columns
B. When two or more tables have the same degree
C. When two or more tables share the same domains
D. When two or more tables share the same number of columns and when they share
the same domain
5. CONFIDENTIAL FP304 DATABASE SYSTEM
Page 6 of 20
15. What is meant by the following relational algebra statement?
STUDENT x COURSE [CLO 1]
A. Compute the natural join between the STUDENT and COURSE relations.
B. Compute the left outer join between the STUDENT and COURSE relations.
C. Compute the Cross Product between the STUDENT and COURSE relations.
D. Compute the outer join between the STUDENT and COURSE relations.
Question 16,17 and 18 are based on Figure 2 :
Figure 2
16. A relational algebra operator applied to tables of EMPLOYEES and DEPARTMENT
produces the following result as in Table 1
Table 1
The operator is: [CLO 3]
A. An outer join operator
B. The project operator
C. The cross product operator
D. The natural join operator
6. CONFIDENTIAL FP304 DATABASE SYSTEM
Page 7 of 20
17. A relational algebra operator applied to tables of EMPLOYEES and DEPARTMENT
produces the following result as in Table 2
Table 2
The operator is: [CLO 3]
A. An outer join operator
B. The project operator
C. The cross product operator
D. The natural join operator
18. A relational algebra operator applied to tables of EMPLOYEES and DEPARTMENT
produces the following result as in Table 3
Table 3
The operator is: [CLO 3]
A. An outer join operator
B. The project operator
C. The cross product operator
D. The natural join operator
19. Which clause would you use in a SELECT statement to limit the display to those
employees whose salary is greater than 5000? [CLO 3]
A. WHERE SALARY > 5000
B. HAVING SALARY > 5000
7. CONFIDENTIAL FP304 DATABASE SYSTEM
Page 8 of 20
C. ORDER BY SALARY > 5000
D. GROUP BY SALARY > 5000
20.
You use this SQL statement to retrieve data from a table for ______________.
[CLO 1]
A. Viewing
B. Deleting
C. Inserting
D. Updating
21. Which are Data Manipulation Language (DML) statements?
i. SELECT
ii. ALTER
iii. DROP
iv. DELETE
[CLO 1]
A. i, iv
B. ii, iii
C. i, ii, iii
D. ii, iii, iv
22. What happens if the WHERE clause is omitted from a DELETE statement?
[CLO 1]
A. All records from the table are deleted
B. No record from the table will be deleted
C. First record of the table will be deleted
D. The statement will not be executed and will give a syntax error
SELECT *
FROM orders;
8. CONFIDENTIAL FP304 DATABASE SYSTEM
Page 9 of 20
23. You need to produce a report for mailing labels for all customers. The mailing label
must have only the customer name and address. The CUSTOMERS table has these
columns:
CUST_ID NUMBER(4) NOT NULL
CUST_NAME VARCHAR2(100) NOT NULL
CUST_ADDRESS VARCHAR2(150)
CUST_PHONE VARCHAR2(20)
Which SELECT statement accomplishes this task? [CLO3]
A. SELECT *FROM CUSTOMERS;
B. SELECT CUST_NAME, CUST_ADDRESS, CUST_PHONE
FROM CUSTOMERS;
C. SELECT CUST_ID,CUST_NAME,CUST_ADDRESS, CUST_PHONE
FROM CUSTOMERS;
D. SELECT CUST_NAME, CUST_ADDRESS
FROM CUSTOMERS;
24. Which INSERT statement is correct to insert a new row into table of employees?
A. INSERT INTO employees (employee_id) VALUES (1000);
B. INSERT INTO employees VALUES (NULL, ‘John’,
‘Smith’);
C. INSERT INTO employees (first_name, last_name) VALUES
(‘John’, ‘Smith’);
D. INSERT INTO employees (first_name, last_name,
employee_id) VALUES (100, ‘John’, ‘Smith’);
9. CONFIDENTIAL FP304 DATABASE SYSTEM
Page 10 of 20
25. How to select all the records from a table named ‘Persons’ where the value of the
column “FirstName” starts with an “a” using SQL statement? [CLO 3]
A. SELECT * FROM Persons WHERE FirstName LIKE ‘%a’;
B. SELECT * FROM Persons WHERE FirstName= ‘a’;
C. SELECT * FROM Persons WHERE FirstName LIKE ‘a%’;
D. SELECT * FROM Persons WHERE FirstName LIKE ‘%a%’;
26. In UPDATE statement, choose the correct answer to update firstname = Mary to
firstname = Marry from a table named "staff". [CLO 3]
A. UPDATE RECORD staff SET FName = 'Marry' WHERE LName = 'Mary';
B. UPDATE staff SET FName = 'Marry' WHERE LName = 'Mary';
C. UPDATE staff SET INTO FName = 'Marry' WHERE LName = 'Mary';
D. UPDATE RECORD staff SET INTO FName = 'Marry' WHERE LName = 'Mary';
27. A goal of normalization is to minimize _____________. [CLO 1]
A. the number of relationships
B. the number of entities
C. the number of tables
D. data redundancy
28. A table that satisfies 2NF ___________________. [CLO 1]
A. always satisfies 1NF
B. may violate 1NF
C. always satisfies 3NF
D. always satisfies BCNF
29. On an entity-relationship diagram, a diamond represents a ___________.
10. CONFIDENTIAL FP304 DATABASE SYSTEM
Page 11 of 20
[CLO 1]
A. multivalued attribute
B. data flow
C. entity
D. relationship
30. A person, place, object, event, or concept in the user environment about which the
organization wishes to maintain data refers to a(n): ___________________ .
[CLO 1]
A. Cardinality
B. Attribute
C. Relationship
D. Entity
31. When applying the optional 1-M relationship rule for converting an ERD into a
relational table design, which of the following statements is true? [CLO1]
A. Each 1-M relationship with 0 for the minimum cardinality on the parent side
becomes a new table.
B. The primary key of the new table is the primary key of the entity type on the child
(many) side of the relationship.
C. The new table contains foreign keys for the primary keys of both entity types
participating in the relationship.
D. Both foreign keys in the new table do not permit null values.
32. What type of relationship is expressed with the phrase "Student takes Class"?
[CLO 1]
A. 1 : M
B. M : 1
C. 1 : 1
D.M : N
33. When applying the M-N relationship rule for converting an ERD into a relational
table design, which of the following statements is true?
11. CONFIDENTIAL FP304 DATABASE SYSTEM
Page 12 of 20
i. Each M-N relationship becomes a separate table
ii. The foreign keys must not allow null values.
iii. The primary key of the table is a combined key consisting of the
primary keys of the entity types participating in the M-N relationship.
iv. The primary key of the table is the primary key of the entity type
participating in the M-N relationship which has the most attributes.
[CLO 1]
A. i,ii
B. i,iii
C. i,ii,iii
D. ii,iii,iv
34. Based on Figure 3 the BOOKS and MEMBER entities are related to each other. The
relationship on the MEMBER side indicates that:
Figure 3
[CLO 1]
A. A BOOKS may be borrowed by one or more MEMBER.
B. A MEMBER may borrow one BOOKS.
C. A BOOKS may be borrowed by zero or one MEMBER only.
D. A MEMBER may borrow zero or more BOOKS.
12. CONFIDENTIAL FP304 DATABASE SYSTEM
Page 13 of 20
35. Choose the correct Entity Relationship Model diagram based on the situation given.
“Each INSTRUCTOR may teach one or more CLASS”
“Each CLASS is taught by one INSTRUCTOR”
[CLO 1]
A.
B.
C. .
D.
36. ______________ refers to the requirement that other operations cannot access data that has
been modified during a transaction that has not yet been completed.
[CLO 2]
A. Consistent
B. Isolated
C. Durable
D. Atomic
C INSTRUCTOR CLASS
teach
1 1
((0, N) (1,1)
C INSTRUCTOR CLASS
teach
(1,N) (1,1)
1 M
C INSTRUCTOR CLASS
teach
(0,1) (1,1)
1 1
C INSTRUCTOR CLASS
teach
(0,N) (1,1)
1 M
13. CONFIDENTIAL FP304 DATABASE SYSTEM
Page 14 of 20
37. _____________is the ability of the DBMS to recover the committed transaction updates
against any kind of system failure. [CLO 2]
A. Consistent
B. Isolated
C. Durable
D. Atomic
38. Deadlocks are possible only when one of the transactions wants to obtain a (n)
_________________ lock on a data item. [CLO 2]
A. Binary
B. Exclusive
C. Shared
D. Complete
39. Which of the following term below refers to the statement stated below?
[CLO 2]
A. Consistent
B. Durable
C. Atomic
D. Isolated
All of the tasks of a database transaction must be completed
If incomplete due to any possible reasons, the database transaction
must be aborted.
14. CONFIDENTIAL FP304 DATABASE SYSTEM
Page 15 of 20
40. If locking is not available and several users access a database concurrently, problems
may occur if their transactions use the same data at the same time. Concurrency
problems include
i. Lost or buried updates.
ii. Uncommitted dependency
iii. Inconsistent analysis
iv. Transaction Log
[CLO 2]
A. i
B. ii,iii
C. i,ii,iii
D. i,iii,iv
15. CONFIDENTIAL FP304 DATABASE SYSTEM
Page 16 of 20
SECTION B
STRUCTURED QUESTIONS (50 marks)
INSTRUCTION:
This section consists of TWO (2) structured questions. Answer ALL questions.
QUESTION 1
a) ANSI-SPARC Architecture, is an abstract design standard for a Database
Management System (DBMS), first proposed in 1975. Given ANSI-
SPARC architecture in Figure 1.1, explain each level.
Figure 1.1
[CLO 1]
(3 marks)
b) Database is a collection of persistent data that can be shared and
interrelated.
i. Explain TWO (2) properties of database.
ii. Explain TWO (2) features of Database Management System.
[CLO 1]
(4 marks)
[CLO 1]
(2 marks)
c) Illustrate THREE (3) most common relationships in E-R models. [CLO 1]
(3 marks)
16. CONFIDENTIAL FP304 DATABASE SYSTEM
Page 17 of 20
STUDENT
STU_NUM STU_LNAME
321452 Bowser
324257 Smithson
ENROLL
CLASS_CODE STU_NUM ENROLL_GRADE
10014 321452 C
10014 324257 B
10018 321452 A
10018 324257 B
10021 321452 C
10021 324257 C
CLASS
CLASS_CODE CRS_CODE CLASS_SECTION CLASS_TIME CLASS_ROOM PROF_NUM
10014 ACCT-211 3 THUR, 2:30- 3.45PM BUS252 342
10018 CIT-220 2 MON, 9:00- 9:50PM KLR211 114
10021 QM-261 1 WED, 8:00- 8:50AM KLR200 114
d) Study the tables STUDENT, ENROLL and CLASS in Figure 1.2:
Figure 1.2
i. Determine primary key for each table
ii. Determine foreign keys for these tables
iii. Write suitable command to create a new table consisting of
class code, student number, class room and class time
[CLO 3]
(2 marks)
[CLO 3]
(2 marks)
[CLO3]
(4 marks)
17. CONFIDENTIAL FP304 DATABASE SYSTEM
Page 18 of 20
e) Draw the ER Diagram for relational schemes in Figure 1.3:
PRODUCT ( product_code, product_name, price, brand)
BUYS ( recipt_no, product_code, quantity, discount, sub_total)
RECIPT ( receipt_no, date, customer_no)
CUSTOMER ( customer_no, name, address, phone_no)
Figure 1.3
[CLO 3]
(5 marks)
QUESTION 2
a) i) Explain TWO (2) properties of database transaction.
ii) Explain TWO (2) types of recovery tools.
[CLO 1]
(4 marks)
[CLO 2]
(2 marks)
b) Identify THREE (3) DDL statements in SQL and the function of each
statement.
[CLO 1]
(3 marks)
c) Describe the terms below:
i. Normalization
ii. Second Normal Form (2NF)
iii. Third Normal Form (3NF)
[CLO 1]
(3 marks)
18. CONFIDENTIAL FP304 DATABASE SYSTEM
Page 19 of 20
d) Generate the output for the following SQL statements based on
Table 2.1.
Table 2.1
i. SELECT vehicleID, platNo, yearProduce, model
FROM vehicle
WHERE yearProduce >= 2000
ORDER BY yearProduce asc
ii. SELECT vehicleID, platNo, model
FROM vehicle
WHERE model LIKE “Perodua%”
iii. SELECT vehicleID, platNo, yearProduce
FROM vehicle
WHERE price < 20000
iv. SELECT SUM(price)
FROM vehicle
[CLO 3]
(2 marks)
(2 marks)
(2 marks)
(2 marks)
19. CONFIDENTIAL FP304 DATABASE SYSTEM
Page 20 of 20
e) Table 2.2 shows a list of patient appointments with the doctor. Each
patient is given the time and date of appointment with doctors in a particular
room. Show the steps on how you make the process of normalization stage 1NF,
2NF and 3NF.
Appointment
[CLO 3]
(5 marks)
Table 2.2
NoBilik
Tarikh Masa
AT020123 Kamal 1/12/2002 10.00 S15
AT00111 Jamaliah 1/12/2002 12.00 S15
CT00456 Sudin 1/12/2002 10.00 S10
CT00456 Sudin 14/1/2002 14.00 S10
AT00111 Jamaliah 14/1/2002 16.30 S15
AT00103 Abu 15/1/2002 18.00 S13
NamaPesakit
Temujanji
8765 Shamsul
8602 Maizul
8111 Aziz
Staff# Nama_Doktor Pesakit#