Unit 1: Basics of Database - Practice Quiz

CAP570 — Advanced Database Techniques 60 Questions
0 Correct 0 Wrong 60 Left
0/60

1 What is a database?

Overview of Databases Easy
A. A program used only for calculations
B. A language used to design web pages
C. An organized collection of related data
D. A device that connects computer networks

2 Which software is primarily used to create and manage databases?

Overview of Databases Easy
A. Network Protocol
B. Spreadsheet Formula
C. Operating System
D. Database Management System

3 What is a major benefit of using a database?

Importance and Applications Easy
A. Permanent elimination of network failures
B. Efficient data storage and retrieval
C. Automatic replacement of computer hardware
D. Direct conversion of data into electricity

4 Which application commonly uses a database to store account and transaction information?

Importance and Applications Easy
A. Media player
B. Banking system
C. Screen saver
D. Text editor

5 Which type of database organizes data into tables containing rows and columns?

Types of Databases Easy
A. Hierarchical database
B. Graph database
C. Document database
D. Relational database

6 Which type of database stores data in a tree-like parent-child structure?

Types of Databases Easy
A. Graph database
B. Document database
C. Hierarchical database
D. Relational database

7 Which database type is designed to represent highly connected data using nodes and edges?

Types of Databases Easy
A. Graph database
B. Relational database
C. Flat-file database
D. Hierarchical database

8 In a client-server database architecture, what does the client usually do?

Database Architecture Easy
A. Replaces the database administrator
B. Stores every database backup
C. Controls the server hardware directly
D. Sends requests to the server

9 Which layer of a three-tier architecture contains the user interface?

Database Architecture Easy
A. Database layer
B. Presentation layer
C. Application layer
D. Storage layer

10 How many main layers are present in a three-tier database architecture?

Database Architecture Easy
A. Three layers
B. Five layers
C. Two layers
D. Four layers

11 Which database component contains the actual stored facts, such as customer names and addresses?

Database Components Easy
A. User
B. Hardware
C. Procedure
D. Data

12 Who is mainly responsible for database security, backup, and maintenance?

Database Components Easy
A. Network customer
B. Application user
C. Database administrator
D. Graphic designer

13 Which language is commonly used to query a relational database?

Database Components Easy
A. XML
B. CSS
C. SQL
D. HTML

14 What does a database schema describe?

Introduction to Database Schemas Easy
A. The physical appearance of a computer
B. The speed of an internet connection
C. The structure and organization of a database
D. The schedule of database employees

15 In 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

16 Which data model represents information using entities, attributes, and relationships?

Types of Data Models Easy
A. Entity-relationship model
B. Network model
C. Physical model
D. Hierarchical model

17 In the relational data model, what is a single row commonly called?

Types of Data Models Easy
A. Schema
B. Tuple
C. Attribute
D. Domain

18 Which design stage identifies high-level entities and relationships without focusing on implementation details?

Conceptual, Logical, and Physical Database Design Easy
A. Physical design
B. Logical design
C. Interface design
D. Conceptual design

19 Which design stage converts a conceptual model into tables, keys, and relationships?

Conceptual, Logical, and Physical Database Design Easy
A. Interface design
B. Physical design
C. Logical design
D. Conceptual design

20 Which design stage determines storage structures, indexes, and file organization?

Conceptual, Logical, and Physical Database Design Easy
A. Conceptual design
B. Physical design
C. Interface design
D. Logical design

21 A 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 stores information without any structure
B. It manages related data with controlled access
C. It eliminates the need for application programs
D. It guarantees that all data is entered correctly

22 An organization replaces separate spreadsheets with a database system. Which problem is most directly reduced by this change?

Overview of Databases Medium
A. The need for users to interpret reports
B. The need to define business requirements
C. The possibility of all hardware failures
D. Data redundancy across independent files

23 A 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. Transaction management
B. Unstructured storage
C. Independent data duplication
D. Manual file organization

24 A 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. Unrestricted data sharing
B. Physical data isolation
C. Role-based data access
D. Random file allocation

25 A 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. Columnar archive database
B. Graph database
C. Hierarchical database
D. Flat-file database

26 An 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

27 A product catalog contains records with different attributes for different product categories. Which database type can naturally accommodate this variation?

Types of Databases Medium
A. Relational database with no schema
B. Document database
C. Fixed-record file
D. Hierarchical database

28 In a three-schema architecture, which level describes the complete logical structure of the database for the organization?

Database Architecture Medium
A. Storage level
B. Conceptual level
C. Internal level
D. External level

29 A change in file organization should not require changes to user applications. Which data independence principle does this illustrate?

Database Architecture Medium
A. Physical data independence
B. View-level independence
C. Application independence
D. Logical data independence

30 In 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

31 A 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. Backup manager
B. Query optimizer
C. Primary key constraint
D. Transaction log

32 A 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. Data dictionary
C. Presentation controller
D. Recovery manager

33 After a power failure, the database restores committed changes and removes incomplete transactions. Which component is primarily responsible?

Database Components Medium
A. Schema editor
B. Recovery manager
C. Report generator
D. Query parser

34 A 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 physical backup copy
D. The current query result

35 A 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. Storage schema
B. External schema
C. Internal schema
D. Backup schema

36 A 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. Key-value model
B. Entity-relationship model
C. File processing model
D. Document storage model

37 A 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. Object-only model
B. Hierarchical model
C. Relational model
D. Graph model

38 During 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. Physical design
B. Conceptual design
C. Storage optimization
D. Logical design

39 An 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. Conceptual design
D. Physical design

40 A 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. Logical design
B. Physical design
C. Conceptual design
D. Requirements analysis

41 Two 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. Transaction isolation with centralized concurrency control
B. Data replication with asynchronous update propagation
C. File compression with synchronized operating-system clocks
D. Schema documentation with application-level data validation

42 A 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. Increase the transaction timeout for payment inserts
B. Generate a new sequence value for every retry
C. Store an idempotency key under a unique constraint
D. Cache each successful response in application memory

43 During 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. Partition tolerance
B. Durability
C. Consistency
D. Availability

44 Administrators 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. Location data transparency
B. External schema isolation
C. Physical data independence
D. Logical data independence

45 After 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. Metadata catalog
C. Authorization manager
D. Recovery manager

46 A 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

47 An 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. Multidimensional cube model
C. Flat key-value model
D. Property graph model

48 In 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 EmployeeID and DependentName
B. The value of DependentName without the owner key
C. A foreign key containing only EmployeeID
D. The combination of every attribute in Dependent

49 A 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. Create three binary relations, one for each entity pair
B. Create Supply with all three foreign keys as its key
C. Embed the supplier key only in the part relation
D. Embed the project key only in the supplier relation

50 An 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 an unrelated surrogate key without indexes
B. Cluster on OrderDate; index CustomerID separately
C. Cluster on CustomerID; index OrderDate separately
D. Cluster on a hash of OrderDate and CustomerID

51 A 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 each client-side cache
B. In the presentation tier
C. In the application tier
D. In the storage engine only

52 A 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. NATURAL JOIN of every fragment
B. UNION of every fragment
C. INTERSECT of every fragment
D. UNION ALL of every fragment

53 A 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

54 Product 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

55 An 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. Only employees with identical subtype attributes may be classified
B. Some employees are in neither subtype, and none are in both
C. Every employee is in at least one subtype, and some are in both
D. Every employee is in exactly one of the two subtypes

56 Let 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 lossy but dependency-preserving
C. The decomposition is lossless but not dependency-preserving
D. The decomposition is lossless and dependency-preserving

57 A 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. A B+ tree on
B. A hash index on
C. A bitmap on row identifiers
D. An unordered heap without an index

58 After 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 query optimizer
C. The authorization manager
D. The recovery manager

59 An 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

60 Several 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 standalone embedded database
B. A federated database system
C. A centralized relational system
D. A single-schema replicated system