Correct Answer: An organized collection of related data
Explanation:
A database stores related data in an organized form so that it can be accessed and managed efficiently.
Incorrect! Try again.
2Which software is primarily used to create and manage databases?
Overview of Databases
Easy
A.Database Management System
B.Operating System
C.Spreadsheet Formula
D.Network Protocol
Correct Answer: Database Management System
Explanation:
A Database Management System (DBMS) provides tools for creating, storing, retrieving, and updating data.
Incorrect! Try again.
3What is a major benefit of using a database?
Importance and Applications
Easy
A.Direct conversion of data into electricity
B.Permanent elimination of network failures
C.Efficient data storage and retrieval
D.Automatic replacement of computer hardware
Correct Answer: Efficient data storage and retrieval
Explanation:
Databases help users store, organize, search, and retrieve large amounts of data efficiently.
Incorrect! Try again.
4Which application commonly uses a database to store account and transaction information?
Importance and Applications
Easy
A.Banking system
B.Text editor
C.Media player
D.Screen saver
Correct Answer: Banking system
Explanation:
Banking systems use databases to maintain customer accounts, balances, and transaction records.
Incorrect! Try again.
5Which type of database organizes data into tables containing rows and columns?
Types of Databases
Easy
A.Document database
B.Hierarchical database
C.Graph database
D.Relational database
Correct Answer: Relational database
Explanation:
A relational database represents data using tables made up of rows and columns.
Incorrect! Try again.
6Which type of database stores data in a tree-like parent-child structure?
Types of Databases
Easy
A.Graph database
B.Hierarchical database
C.Relational database
D.Document database
Correct Answer: Hierarchical database
Explanation:
A hierarchical database arranges records as a tree in which child records are connected to parent records.
Incorrect! Try again.
7Which database type is designed to represent highly connected data using nodes and edges?
Types of Databases
Easy
A.Relational database
B.Graph database
C.Hierarchical database
D.Flat-file database
Correct Answer: Graph database
Explanation:
A graph database uses nodes for entities and edges for relationships between those entities.
Incorrect! Try again.
8In a client-server database architecture, what does the client usually do?
Database Architecture
Easy
A.Stores every database backup
B.Sends requests to the server
C.Controls the server hardware directly
D.Replaces the database administrator
Correct Answer: Sends requests to the server
Explanation:
The client sends database requests, while the server processes them and returns the results.
Incorrect! Try again.
9Which layer of a three-tier architecture contains the user interface?
Database Architecture
Easy
A.Database layer
B.Storage layer
C.Presentation layer
D.Application layer
Correct Answer: Presentation layer
Explanation:
The presentation layer displays information to users and accepts their input.
Incorrect! Try again.
10How many main layers are present in a three-tier database architecture?
Database Architecture
Easy
A.Two layers
B.Four layers
C.Three layers
D.Five layers
Correct Answer: Three layers
Explanation:
Three-tier architecture contains the presentation, application, and database layers.
Incorrect! Try again.
11Which database component contains the actual stored facts, such as customer names and addresses?
Database Components
Easy
A.User
B.Data
C.Hardware
D.Procedure
Correct Answer: Data
Explanation:
Data consists of the facts and values that are stored and managed within the database.
Incorrect! Try again.
12Who is mainly responsible for database security, backup, and maintenance?
Database Components
Easy
A.Application user
B.Database administrator
C.Graphic designer
D.Network customer
Correct Answer: Database administrator
Explanation:
A database administrator manages database security, availability, backup, recovery, and maintenance.
Incorrect! Try again.
13Which language is commonly used to query a relational database?
Database Components
Easy
A.CSS
B.SQL
C.XML
D.HTML
Correct Answer: SQL
Explanation:
SQL is commonly used to define, retrieve, insert, update, and delete data in relational databases.
Incorrect! Try again.
14What does a database schema describe?
Introduction to Database Schemas
Easy
A.The structure and organization of a database
B.The physical appearance of a computer
C.The schedule of database employees
D.The speed of an internet connection
Correct Answer: The structure and organization of a database
Explanation:
A database schema defines structures such as tables, attributes, relationships, and constraints.
Incorrect! Try again.
15In a relational schema, what does an attribute usually represent?
Introduction to Database Schemas
Easy
A.A complete database server
B.A backup of the database
C.A connection between networks
D.A column in a table
Correct Answer: A column in a table
Explanation:
An attribute represents a property of an entity and is usually implemented as a table column.
Incorrect! Try again.
16Which data model represents information using entities, attributes, and relationships?
Types of Data Models
Easy
A.Hierarchical model
B.Physical model
C.Entity-relationship model
D.Network model
Correct Answer: Entity-relationship model
Explanation:
The entity-relationship model describes data through entities, their attributes, and their relationships.
Incorrect! Try again.
17In the relational data model, what is a single row commonly called?
Types of Data Models
Easy
A.Tuple
B.Attribute
C.Domain
D.Schema
Correct Answer: Tuple
Explanation:
A tuple is one row or record in a relational table.
Incorrect! Try again.
18Which design stage identifies high-level entities and relationships without focusing on implementation details?
Conceptual, Logical, and Physical Database Design
Easy
A.Logical design
B.Physical design
C.Interface design
D.Conceptual design
Correct Answer: Conceptual design
Explanation:
Conceptual design creates a high-level view of the required entities, attributes, and relationships.
Incorrect! Try again.
19Which design stage converts a conceptual model into tables, keys, and relationships?
Conceptual, Logical, and Physical Database Design
Easy
A.Physical design
B.Interface design
C.Logical design
D.Conceptual design
Correct Answer: Logical design
Explanation:
Logical design defines tables, columns, primary keys, foreign keys, and relationships independently of storage details.
Incorrect! Try again.
20Which design stage determines storage structures, indexes, and file organization?
Conceptual, Logical, and Physical Database Design
Easy
A.Logical design
B.Conceptual design
C.Physical design
D.Interface design
Correct Answer: Physical design
Explanation:
Physical design specifies how data is stored and accessed, including indexes and file organization.
Incorrect! Try again.
21A university stores student profiles, course registrations, grades, and fee payments in one managed system. What is the primary advantage of using a database for this purpose?
Overview of Databases
Medium
A.It eliminates the need for application programs
B.It stores information without any structure
C.It manages related data with controlled access
D.It guarantees that all data is entered correctly
Correct Answer: It manages related data with controlled access
Explanation:
A database organizes related information and provides mechanisms for access control, consistency, querying, and sharing.
Incorrect! Try again.
22An organization replaces separate spreadsheets with a database system. Which problem is most directly reduced by this change?
Overview of Databases
Medium
A.The need to define business requirements
B.Data redundancy across independent files
C.The possibility of all hardware failures
D.The need for users to interpret reports
Correct Answer: Data redundancy across independent files
Explanation:
A centralized database can reduce repeated copies of the same data and help maintain consistent values.
Incorrect! Try again.
23A bank must ensure that a transfer subtracts money from one account only when the amount is added to another account. Which database capability is most important?
Importance and Applications
Medium
A.Independent data duplication
B.Transaction management
C.Manual file organization
D.Unstructured storage
Correct Answer: Transaction management
Explanation:
Transaction management supports all-or-nothing operations, helping preserve consistency when related updates occur.
Incorrect! Try again.
24A hospital system allows doctors, nurses, and billing staff to view different parts of a patient's record. Which database benefit is being applied?
Importance and Applications
Medium
A.Physical data isolation
B.Random file allocation
C.Role-based data access
D.Unrestricted data sharing
Correct Answer: Role-based data access
Explanation:
Role-based access grants permissions according to a user's responsibilities, protecting sensitive information.
Incorrect! Try again.
25A social networking application stores users, friendships, and frequently changing relationships. Which database type is generally most suitable for efficiently traversing these connections?
Types of Databases
Medium
A.Graph database
B.Hierarchical database
C.Flat-file database
D.Columnar archive database
Correct Answer: Graph database
Explanation:
Graph databases represent entities as nodes and relationships as edges, making relationship traversal efficient.
Incorrect! Try again.
26An analytics platform stores sales records in columns and frequently calculates totals for selected attributes. Which database type is likely to provide the greatest advantage?
Types of Databases
Medium
A.Column-oriented database
B.Document-only database
C.Network file system
D.Hierarchical database
Correct Answer: Column-oriented database
Explanation:
Column-oriented databases read only the required columns and often compress repeated values, benefiting analytical queries.
Incorrect! Try again.
27A product catalog contains records with different attributes for different product categories. Which database type can naturally accommodate this variation?
Types of Databases
Medium
A.Hierarchical database
B.Relational database with no schema
C.Document database
D.Fixed-record file
Correct Answer: Document database
Explanation:
Document databases commonly support flexible structures, allowing documents in the same collection to have varying fields.
Incorrect! Try again.
28In a three-schema architecture, which level describes the complete logical structure of the database for the organization?
Database Architecture
Medium
A.Conceptual level
B.Storage level
C.Internal level
D.External level
Correct Answer: Conceptual level
Explanation:
The conceptual schema presents the overall logical organization of data independently of individual user views and storage details.
Incorrect! Try again.
29A change in file organization should not require changes to user applications. Which data independence principle does this illustrate?
Database Architecture
Medium
A.Logical data independence
B.Physical data independence
C.View-level independence
D.Application independence
Correct Answer: Physical data independence
Explanation:
Physical data independence allows storage structures and access methods to change without altering the logical schema or applications.
Incorrect! Try again.
30In a three-tier database application, which layer normally processes business rules between the user interface and the database server?
Database Architecture
Medium
A.Presentation layer
B.Application layer
C.Storage layer
D.External schema layer
Correct Answer: Application layer
Explanation:
The application layer implements business logic and coordinates communication between the interface and database.
Incorrect! Try again.
31A database administrator creates a rule requiring every employee record to contain a unique employee number. Which database component enforces this requirement?
Database Components
Medium
A.Transaction log
B.Query optimizer
C.Backup manager
D.Primary key constraint
Correct Answer: Primary key constraint
Explanation:
A primary key constraint enforces uniqueness and prevents null values for the identifying attribute.
Incorrect! Try again.
32A query runs slowly because the system scans every row to find matching customer IDs. Which database component can improve this operation?
Database Components
Medium
A.Database index
B.Presentation controller
C.Recovery manager
D.Data dictionary
Correct Answer: Database index
Explanation:
An index provides an access path that can reduce the number of rows examined during searches.
Incorrect! Try again.
33After a power failure, the database restores committed changes and removes incomplete transactions. Which component is primarily responsible?
Database Components
Medium
A.Schema editor
B.Report generator
C.Recovery manager
D.Query parser
Correct Answer: Recovery manager
Explanation:
The recovery manager uses logs and other mechanisms to restore the database to a consistent state after failures.
Incorrect! Try again.
34A database schema is changed to add a new attribute to the CUSTOMER table, while existing customer rows remain stored. What does the schema represent?
Introduction to Database Schemas
Medium
A.The active transaction list
B.The database structure
C.The current query result
D.The physical backup copy
Correct Answer: The database structure
Explanation:
A schema defines the organization, relationships, constraints, and types of data in a database.
Incorrect! Try again.
35A payroll clerk is allowed to see employee names and salaries but not medical information. Which schema concept best supports this requirement?
Introduction to Database Schemas
Medium
A.Backup schema
B.External schema
C.Storage schema
D.Internal schema
Correct Answer: External schema
Explanation:
An external schema defines a particular user's or group's view of the database and can hide unauthorized data.
Incorrect! Try again.
36A company models each department as having many employees, while each employee belongs to one department. Which data model is most directly suited to representing these entities and relationships?
Types of Data Models
Medium
A.Document storage model
B.Key-value model
C.File processing model
D.Entity-relationship model
Correct Answer: Entity-relationship model
Explanation:
The entity-relationship model represents entities, attributes, and relationships such as one-to-many associations.
Incorrect! Try again.
37A database represents data as tables connected through keys and uses relational algebra for querying. Which data model is being used?
Types of Data Models
Medium
A.Relational model
B.Object-only model
C.Graph model
D.Hierarchical model
Correct Answer: Relational model
Explanation:
The relational model organizes data into relations, commonly displayed as tables, with keys linking related records.
Incorrect! Try again.
38During which design stage would an analyst identify entities such as STUDENT and COURSE and define their enrollment relationship?
Conceptual, Logical, and Physical Database Design
Medium
A.Storage optimization
B.Conceptual design
C.Physical design
D.Logical design
Correct Answer: Conceptual design
Explanation:
Conceptual design captures major entities, attributes, and relationships without committing to a specific database technology.
Incorrect! Try again.
39An ER diagram is converted into relations with primary keys, foreign keys, and normalized attributes. Which design stage is this?
Conceptual, Logical, and Physical Database Design
Medium
A.User-interface design
B.Logical design
C.Physical design
D.Conceptual design
Correct Answer: Logical design
Explanation:
Logical design transforms the conceptual model into a DBMS-independent structure such as normalized relational tables.
Incorrect! Try again.
40A database designer chooses indexes, partitioning methods, and storage file organizations for a selected DBMS. Which stage is being performed?
Conceptual, Logical, and Physical Database Design
Medium
A.Physical design
B.Requirements analysis
C.Conceptual design
D.Logical design
Correct Answer: Physical design
Explanation:
Physical design determines how the logical database will be stored and accessed efficiently in a particular DBMS.
Incorrect! Try again.
41Two concurrent programs update account balances stored in shared files. Each program validates the invariant that the total balance remains constant, yet interleaving writes can violate it. Which database capability most directly addresses this problem?
Overview of Databases
Hard
A.Data replication with asynchronous update propagation
B.Schema documentation with application-level data validation
C.File compression with synchronized operating-system clocks
D.Transaction isolation with centralized concurrency control
Correct Answer: Transaction isolation with centralized concurrency control
Explanation:
Concurrency control isolates transactions and prevents unsafe interleavings that can violate cross-record invariants.
Incorrect! Try again.
42A payment API may receive the same request repeatedly because clients retry after timeouts. Which database design most reliably prevents the payment from being recorded twice?
Importance and Applications
Hard
A.Generate a new sequence value for every retry
B.Store an idempotency key under a unique constraint
C.Cache each successful response in application memory
D.Increase the transaction timeout for payment inserts
Correct Answer: Store an idempotency key under a unique constraint
Explanation:
A database-enforced unique idempotency key atomically rejects duplicate requests, including retries handled by different application instances.
Incorrect! Try again.
43During a network partition, a replicated database must preserve linearizable reads and reject conflicting writes, even if some reachable replicas cannot process requests. Under the CAP trade-off, which property is being sacrificed?
Types of Databases
Hard
A.Durability
B.Availability
C.Partition tolerance
D.Consistency
Correct Answer: Availability
Explanation:
When a partition occurs, preserving linearizable consistency requires some replicas to reject or delay requests, sacrificing availability.
Incorrect! Try again.
44Administrators replace heap files with indexed storage and reorganize disk pages without changing conceptual relations or user views. Which architectural property does this demonstrate?
Database Architecture
Hard
A.External schema isolation
B.Logical data independence
C.Physical data independence
D.Location data transparency
Correct Answer: Physical data independence
Explanation:
Physical data independence allows internal storage structures to change without altering the conceptual or external schemas.
Incorrect! Try again.
45After a crash, committed updates must survive while incomplete transactions must leave no effects. Assuming write-ahead logging, which DBMS component primarily coordinates the required redo and undo operations?
Database Components
Hard
A.Query optimizer
B.Authorization manager
C.Recovery manager
D.Metadata catalog
Correct Answer: Recovery manager
Explanation:
The recovery manager uses log records to redo committed work and undo incomplete work, preserving durability and atomicity.
Incorrect! Try again.
46A relation named Enrollment is defined with attributes, domains, a composite primary key, and a foreign-key constraint. Its rows change every semester, but the definition remains unchanged. What does the stable definition represent?
Introduction to Database Schemas
Hard
A.The physical access path
B.The database state or extension
C.The transaction execution plan
D.The database schema or intension
Correct Answer: The database schema or intension
Explanation:
The schema, also called the intension, defines structure and constraints; the changing rows form the database state or extension.
Incorrect! Try again.
47An application stores entities with varying properties and frequently evaluates variable-length relationship traversals such as friends-of-friends. Which data model is the most natural fit?
Types of Data Models
Hard
A.Strict relational model
B.Flat key-value model
C.Property graph model
D.Multidimensional cube model
Correct Answer: Property graph model
Explanation:
A property graph directly represents entities, relationships, and flexible properties while supporting efficient path-oriented traversal.
Incorrect! Try again.
48In an ER model, Dependent is a weak entity identified by owner entity Employee and partial key DependentName. What should identify a dependent after mapping this design to relations?
Conceptual, Logical, and Physical Database Design
Hard
A.The combination of every attribute in Dependent
B.The combination of EmployeeID and DependentName
C.A foreign key containing only EmployeeID
D.The value of DependentName without the owner key
Correct Answer: The combination of EmployeeID and DependentName
Explanation:
A weak entity is identified by its owner's primary key together with its own partial key.
Incorrect! Try again.
49A ternary relationship Supply(Supplier, Part, Project) has no additional cardinality constraints or functional dependencies. Which relational mapping preserves each relationship occurrence without inventing information?
Conceptual, Logical, and Physical Database Design
Hard
A.Embed the supplier key only in the part relation
B.Create Supply with all three foreign keys as its key
C.Create three binary relations, one for each entity pair
D.Embed the project key only in the supplier relation
Correct Answer: Create Supply with all three foreign keys as its key
Explanation:
A general ternary relationship requires a relation containing all participating keys; pairwise relations can introduce spurious combinations.
Incorrect! Try again.
50An Orders table is commonly queried by broad OrderDate ranges and occasionally by exact CustomerID. Only one clustered index is allowed. Which physical design best matches this workload?
Conceptual, Logical, and Physical Database Design
Hard
A.Cluster on CustomerID; index OrderDate separately
B.Cluster on an unrelated surrogate key without indexes
C.Cluster on OrderDate; index CustomerID separately
D.Cluster on a hash of OrderDate and CustomerID
Correct Answer: Cluster on OrderDate; index CustomerID separately
Explanation:
Clustering by OrderDate keeps range-matched rows physically close, while a separate index supports exact customer lookups.
Incorrect! Try again.
51A browser must not connect directly to the database, and all clients must share the same authorization and business rules. In a three-tier architecture, where should those rules primarily execute?
Database Architecture
Hard
A.In the presentation tier
B.In the storage engine only
C.In each client-side cache
D.In the application tier
Correct Answer: In the application tier
Explanation:
The application tier centralizes business logic and mediates access between presentation clients and the database server.
Incorrect! Try again.
52A distributed relation is horizontally fragmented using mutually exclusive predicates whose disjunction covers every valid tuple. Which operation reconstructs the original relation while preserving duplicate tuples?
Types of Databases
Hard
A.UNION ALL of every fragment
B.NATURAL JOIN of every fragment
C.UNION of every fragment
D.INTERSECT of every fragment
Correct Answer: UNION ALL of every fragment
Explanation:
Complete, disjoint horizontal fragments are reconstructed by bag union. UNION ALL preserves duplicates that ordinary UNION could remove.
Incorrect! Try again.
53A DBA adds a secondary index and changes table partitioning. Existing applications and logical queries continue unchanged. Which statement best characterizes these modifications?
Database Architecture
Hard
A.They are conceptual-schema changes hidden by logical independence
B.They are internal-schema changes hidden by physical independence
C.They are external-schema changes hidden by view independence
D.They are transaction changes hidden by isolation guarantees
Correct Answer: They are internal-schema changes hidden by physical independence
Explanation:
Indexes and partitioning belong to the internal schema, and physical data independence shields higher levels from such changes.
Incorrect! Try again.
54Product records have deeply nested structures, optional attributes that differ by category, and are usually retrieved as complete aggregates. Which model minimizes impedance between stored and application-visible structure?
Types of Data Models
Hard
A.Document data model
B.Flat key-value model
C.Normalized relational model
D.Hierarchical cube model
Correct Answer: Document data model
Explanation:
A document model naturally represents nested, heterogeneous aggregates and permits flexible attributes across product categories.
Incorrect! Try again.
55An EER specialization of Employee into Manager and Engineer is declared total and overlapping. Which population is valid?
Conceptual, Logical, and Physical Database Design
Hard
A.Some employees are in neither subtype, and none are in both
B.Every employee is in exactly one of the two subtypes
C.Only employees with identical subtype attributes may be classified
D.Every employee is in at least one subtype, and some are in both
Correct Answer: Every employee is in at least one subtype, and some are in both
Explanation:
Total specialization requires membership in at least one subtype; overlapping specialization permits membership in multiple subtypes.
Incorrect! Try again.
56Let have functional dependencies and . It is decomposed into and . Which assessment is correct?
Conceptual, Logical, and Physical Database Design
Hard
A.The decomposition is lossy and not dependency-preserving
B.The decomposition is lossless and dependency-preserving
C.The decomposition is lossless but not dependency-preserving
D.The decomposition is lossy but dependency-preserving
Correct Answer: The decomposition is lossless and dependency-preserving
Explanation:
The common attribute determines through , making the decomposition lossless, and each original dependency appears in one component.
Incorrect! Try again.
57A large table supports frequent predicates of the form , ordered scans, and occasional inserts. Which access structure is generally most appropriate?
Conceptual, Logical, and Physical Database Design
Hard
A.An unordered heap without an index
B.A bitmap on row identifiers
C.A B+ tree on
D.A hash index on
Correct Answer: A B+ tree on
Explanation:
A B+ tree maintains key order and supports efficient range searches, ordered scans, and dynamic updates.
Incorrect! Try again.
58After data distribution changes substantially, the DBMS repeatedly chooses a nested-loop join although a hash join would be cheaper. Which component most directly makes the incorrect plan choice?
Database Components
Hard
A.The lock manager
B.The recovery manager
C.The query optimizer
D.The authorization manager
Correct Answer: The query optimizer
Explanation:
The query optimizer selects physical plans using cardinality and cost estimates; stale statistics can therefore produce a poor join choice.
Incorrect! Try again.
59An organization needs historical trend analysis over billions of sales records, with infrequent bulk loads and aggregation-heavy queries. Which database design is most suitable?
Types of Databases
Hard
A.A column-oriented analytical warehouse
B.An in-memory session key-value store
C.A graph database optimized for traversals
D.A row-oriented transactional database
Correct Answer: A column-oriented analytical warehouse
Explanation:
Column-oriented warehouses efficiently scan and aggregate selected attributes across large historical datasets.
Incorrect! Try again.
60Several autonomous, heterogeneous databases retain local control but must appear through a unified query interface. Which database approach best describes this arrangement?
Types of Databases
Hard
A.A centralized relational system
B.A standalone embedded database
C.A single-schema replicated system
D.A federated database system
Correct Answer: A federated database system
Explanation:
A federated system integrates autonomous and potentially heterogeneous databases while allowing each source to retain local control.
Incorrect! Try again.
Did this save you a night before the exam?
LPU Notes is free, and it stays free. Ads cover part of the server bill.
The rest comes out of a student's own pocket: the domain, the storage,
and keeping the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason.
to try again.
Nothing here is ever locked, and nothing unlocks. Chip in only if it was worth it.
What it pays for →