Exit Chapter 09 ยท ๐Ÿ—„๏ธ Database Concepts โ€” Quiz

Playing as a guest? to earn XP and track your progress.

Question 1 of 54 0 correct so far

๐Ÿ—„๏ธ Database Concepts Quiz

Q1.

Storing the same data in many files is called:

Explanation

Redundancy means unnecessary duplication of data.

Q2.

When a student's address is changed in one file but not in another, it causes:

Explanation

Inconsistency means the copies of the same data don't match.

Q3.

Data scattered in different files with different formats, making it hard to bring together, is called:

Explanation

Isolated data is difficult to combine and use.

Q4.

Which is NOT a limitation of the file system?

Explanation

The file system has poor sharing and security; a DBMS solves these problems.

Q5.

The memory trick RIDDS for file system problems stands for:

Explanation

These are the five limitations of a file system listed in the notes.

Q6.

An organised collection of related data is called a:

Explanation

A database stores related data in an organised way.

Q7.

Software used to create, manage and protect a database is called a:

Explanation

DBMS stands for Database Management System.

Q8.

DBMS stands for:

Explanation

A DBMS manages databases.

Q9.

Which of these is a DBMS?

Explanation

MySQL, Oracle, SQL Server, PostgreSQL and SQLite are DBMS software.

Q10.

Which is an advantage of a DBMS?

Explanation

A DBMS reduces redundancy, keeps data consistent and secure, and allows sharing and backup.

Q11.

A DBMS allows only authorised users to see certain data. This advantage is:

Explanation

Passwords and permissions protect the data.

Q12.

Rules that keep data correct and valid (e.g. marks cannot be negative) ensure:

Explanation

Integrity means the data stays accurate and valid.

Q13.

Where are databases used?

Explanation

Banks, railways, schools, hospitals and online shops all use databases.

Q14.

In the relational data model, data is stored in:

Explanation

The relational model organises data as tables called relations.

Q15.

In the relational model, a table is called a:

Explanation

A relation is a table of rows and columns.

Q16.

A column of a relation is called a(n):

Explanation

Each column (field) is an attribute.

Q17.

A row of a relation is called a(n):

Explanation

Each row (record) is a tuple.

Q18.

The set of all allowed values for an attribute is called its:

Explanation

Example: the domain of Gender could be {M, F}.

Q19.

The number of ATTRIBUTES (columns) in a relation is called its:

Explanation

Degree = number of columns.

Q20.

The number of TUPLES (rows) in a relation is called its:

Explanation

Cardinality = number of rows.

Q21.

A table has 5 columns and 8 rows. What are its degree and cardinality?

Explanation

Degree counts columns; cardinality counts rows.

Q22.

A relation has degree 4 and cardinality 10. If 2 rows are added, what is the new cardinality?

Explanation

Adding rows increases cardinality; the degree stays 4.

Q23.

A relation has degree 4 and cardinality 10. If one column is added, what is the new degree?

Explanation

Adding a column increases the degree by 1.

Q24.

Which is a property of a relation?

Explanation

Rows are unique, column names are unique, order does not matter and values are atomic.

Q25.

Does the ORDER of rows in a relation matter?

Explanation

Rows (and columns) can be in any order in a relation.

Q26.

Each cell of a relation holds one single (indivisible) value. Such values are called:

Explanation

A cell should not hold a list of values.

Q27.

A value that is unknown or not applicable is stored as:

Explanation

NULL means 'unknown'; it is not the same as 0 or a blank.

Q28.

Is NULL the same as 0?

Explanation

0 is a known value; NULL means the value is not known.

Q29.

An attribute (or group of attributes) that can uniquely identify each row is a:

Explanation

Every attribute set that is unique and not NULL is a candidate key.

Q30.

The candidate key CHOSEN to uniquely identify rows of a table is the:

Explanation

Only one candidate key is chosen as the primary key.

Q31.

Candidate keys that are NOT chosen as the primary key are called:

Explanation

Candidate keys = primary key + alternate keys.

Q32.

Which formula is correct?

Explanation

All candidate keys except the primary key are alternate keys.

Q33.

Which properties must a primary key have?

Explanation

Every row must have a primary key value, and no two rows can share it.

Q34.

How many primary keys can a table have?

Explanation

A table has only one primary key (it may be made of more than one column).

Q35.

An attribute in one table that refers to the primary key of another table is a:

Explanation

A foreign key links two tables.

Q36.

Which statement about a foreign key is TRUE?

Explanation

Many rows can refer to the same parent row, so foreign key values can repeat.

Q37.

The table whose primary key is referred to by a foreign key is called the:

Explanation

The table containing the foreign key is the child; the referenced one is the parent.

Q38.

STUDENT(RollNo, Name, AdmNo, Phone): RollNo, AdmNo and Phone are all unique. If RollNo is made the primary key, AdmNo and Phone are:

Explanation

They are candidate keys not chosen as primary, so they are alternate keys.

Q39.

STUDENT(RollNo, Name, AdmNo, Phone): which of these is the WORST choice for a key?

Explanation

Two students can have the same name, so Name cannot uniquely identify a row.

Q40.

EMP(EmpID, Name, DeptNo) and DEPT(DeptNo, DName). DeptNo is the primary key of DEPT. In EMP, DeptNo is a:

Explanation

EMP.DeptNo refers to the primary key of DEPT.

Q41.

Can two employees in EMP have the same DeptNo (a foreign key)?

Explanation

Foreign key values can repeat.

Q42.

Which column is the best primary key for a BOOK table?

Explanation

Titles, authors and prices can repeat; BookID is unique for every book.

Q43.

Which key is used to LINK two tables together?

Explanation

A foreign key in one table refers to the primary key of another table, linking them.

Q44.

Which term means the same as 'record'?

Explanation

A record is a row, which is a tuple.

Q45.

Which term means the same as 'field'?

Explanation

A field is a column, which is an attribute.

Q46.

Which statement about a DBMS is FALSE?

Explanation

A DBMS reduces redundancy.

Q47.

In a relation, can two columns have the SAME name?

Explanation

Attribute names in a relation are unique.

Q48.

Which of these is a good example of a domain?

Explanation

A domain is the set of allowed values for an attribute.

Q49.

A relation STUDENT has 6 attributes and 0 tuples. What is its cardinality?

Explanation

An empty table has no rows, so its cardinality is 0.

Q50.

Which of these is NOT a DBMS?

Explanation

MS Paint is a drawing program.

Q51.

A DBMS that stores data in the form of related tables is called a(n):

Explanation

MySQL is an RDBMS.

Q52.

Why is a DBMS better than keeping data in separate files?

Explanation

A DBMS overcomes the limitations of the file system.

Q53.

A bank customer's balance must never be different in two places. This is achieved through:

Explanation

Consistency means all copies of data agree.

Q54.

In a school database, which attribute is MOST suitable as a foreign key in the MARKS table to link it with STUDENT?

Explanation

RollNo is the primary key of STUDENT, so MARKS.RollNo can refer to it.