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 device that connects computer networks
B. A program used only for calculations
C. A language used to design web pages
D. An organized collection of related data

2 Which 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

3 What 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

4 Which 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

5 Which 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

6 Which 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

7 Which 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

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

9 Which 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

10 How 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

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

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

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

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

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

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

14 What 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

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. Hierarchical model
B. Physical model
C. Entity-relationship model
D. Network model

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

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

18 Which 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

19 Which 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

20 Which 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

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

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

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

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

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. Graph database
B. Hierarchical database
C. Flat-file database
D. Columnar archive 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. Hierarchical database
B. Relational database with no schema
C. Document database
D. Fixed-record file

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

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

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

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

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. Report generator
C. Recovery manager
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 current query result
D. The physical backup copy

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. Backup schema
B. External schema
C. Storage schema
D. Internal 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. Document storage model
B. Key-value model
C. File processing model
D. Entity-relationship 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. Relational model
B. Object-only model
C. Graph model
D. Hierarchical 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. Storage optimization
B. Conceptual design
C. Physical design
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. Physical design
D. Conceptual 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. Physical design
B. Requirements analysis
C. Conceptual design
D. Logical design

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. 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

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. 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

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

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

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

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

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. 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

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

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

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

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 lossless and dependency-preserving
C. The decomposition is lossless but not dependency-preserving
D. The decomposition is lossy but 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. An unordered heap without an index
B. A bitmap on row identifiers
C. A B+ tree on
D. A hash index on

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 recovery manager
C. The query optimizer
D. The authorization 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 centralized relational system
B. A standalone embedded database
C. A single-schema replicated system
D. A federated database system