ACID stands for Atomicity, Consistency, Isolation, Durability.
Computer ScienceDatabases & DBMSPPSCID: LTP-8802
What is a transaction in a database?
AA report printed from a database
BA backup of a table
CA single unit of work that must complete fully or not at all ✓ Correct answer
DA user login to a database
✓ Correct answer: A single unit of work that must complete fully or not at all
Full explanation
A transaction is a single unit of work that must complete fully or not at all.
Computer ScienceDatabases & DBMSPPSCID: LTP-8803
What is an index in a database?
AA list of all database users
BA copy of a table
CA type of primary key
DA structure that speeds up finding rows in a table ✓ Correct answer
✓ Correct answer: A structure that speeds up finding rows in a table
Full explanation
An index is a structure that speeds up finding rows in a table.
Computer ScienceDatabases & DBMSPPSCID: LTP-8804
Which SQL command removes all rows from a table but keeps its structure?
ATRUNCATE TABLE ✓ Correct answer
BDELETE TABLE
CDROP TABLE
DCLEAR TABLE
✓ Correct answer: TRUNCATE TABLE
Full explanation
The TRUNCATE TABLE command removes all rows from a table but keeps its structure.
Computer ScienceDatabases & DBMSPPSCID: LTP-8893
Which key in a database table uniquely identifies each row and cannot contain a duplicate or empty value?
AForeign key
BPrimary key ✓ Correct answer
CCandidate key
DAlternate key
✓ Correct answer: Primary key
Full explanation
A primary key uniquely identifies each row of a table and cannot contain a duplicate or empty value.
Computer ScienceDatabases & DBMSPPSCID: LTP-8894
The standard language used to create, read, update and delete data in a relational database is called what?
AHTML
BCSS
CSQL ✓ Correct answer
DFTP
✓ Correct answer: SQL
Full explanation
SQL (Structured Query Language) is the standard language used to create, read, update and delete data in a relational database.
Computer ScienceDatabases & DBMSPPSCID: LTP-8897
Which normal form requires that every non-key attribute depends on the whole primary key and on nothing but the key?
AFirst normal form
BThird normal form ✓ Correct answer
CUnnormalised form
DDenormalised form
✓ Correct answer: Third normal form
Full explanation
Third normal form requires that every non-key attribute depends on the whole primary key and on nothing but the key.
Computer ScienceDatabases & DBMSPPSCID: LTP-8899
In a database management system, the software component that manages the stored data and lets users query it is called the what?
AWord processor
BSpreadsheet
CWeb server
DDatabase engine ✓ Correct answer
✓ Correct answer: Database engine
Full explanation
The database engine is the software component that manages the stored data and lets users query it.
Computer ScienceDatabases & DBMSPPSCID: LTP-8901
A database view is best described as what?
AA printed report of the data
BA virtual table based on a query over real tables ✓ Correct answer
CA backup copy of the whole database
DA physical disk partition
✓ Correct answer: A virtual table based on a query over real tables
Full explanation
A database view is a virtual table based on a query over real tables.
Computer ScienceDatabases & DBMSBPSCID: BPP-4042
In a database, a table is made up of:
ARows and columns ✓ Correct answer
BPages and lines
CFiles and folders
DSheets and cells
✓ Correct answer: Rows and columns
Full explanation
In a database, a table is made up of Rows and columns.
Computer ScienceDatabases & DBMSID: DB-001
In a hierarchical database model, data is organised in the form of:
ATables of rows and columns
BDocuments in collections
CA tree structure with parent-child links ✓ Correct answer
DA graph of nodes and edges
✓ Correct answer: A tree structure with parent-child links
Full explanation
A hierarchical model organises data as a tree: each record has one parent (except the root) and may have many children, like folders inside folders.
Computer ScienceDatabases & DBMSID: DB-002
In the network database model, a record can have:
AOnly one parent record
BNo relationships at all
CMore than one parent record ✓ Correct answer
DOnly a primary key
✓ Correct answer: More than one parent record
Full explanation
Unlike the hierarchical model, the network model lets a record have more than one parent, so the same record can be reached by several paths.
Computer ScienceDatabases & DBMSID: DB-003
In the three-schema architecture of a database, the conceptual schema describes:
AHow data is stored on disk
BWhat one user sees of the database
CThe logical structure of the whole database ✓ Correct answer
DThe physical files of the database
✓ Correct answer: The logical structure of the whole database
Full explanation
The conceptual schema is the logical view of the whole database: its tables, fields and relationships. The external schema is one user's view, and the internal schema is the physical storage.
Computer ScienceDatabases & DBMSID: DB-004
Physical data independence means that:
AUsers can change the conceptual schema freely
BThe database needs no backup
CThe physical storage can change without changing the logical structure ✓ Correct answer
DEvery user sees the same view
✓ Correct answer: The physical storage can change without changing the logical structure
Full explanation
Physical data independence means the way data is stored on disk (files, indexes) can change without any change to the logical tables the users see.
Computer ScienceDatabases & DBMSID: DB-005
In an ER diagram, an entity is represented by a:
ADiamond
BEllipse
CRectangle ✓ Correct answer
DDouble ellipse
✓ Correct answer: Rectangle
Full explanation
In an ER diagram a rectangle is an entity, an ellipse is an attribute, and a diamond is a relationship.