Technical study of primary file allocation on disk, calculating average record lookup cost in blocks, linear scans, and binary searches on sorted blocks.
16 Questions16 MCQs0 Short Questions0 Long Questions
๐ฏ Exam Practice Papers
SEMESTER PASS
CS403 - Database Management Systems Examination Practice
Timed practice exam simulation for CS403 - Database Management Systems.
๐ VU MID TERM EXAMLectures 1 to 22
โฑ๏ธ 60 Mins
Mid Term Examination
Covers syllabus of Lectures 1 to 22 with 30 high-yield MCQs in a timed exam environment.
โ MCQ๐ CS403๐ Lec 35๐ท๏ธ 35.1. Introduction to ViewsMedium๐โญ๐ก๐๐VU๐๏ธVU
In relational database architectures, a View is a virtual table whose contents are defined by an underlying query. Under standard SQL definitions, a physical SQL table is classified as which of the following view types?
๐ป sql Snippet
CREATE VIEW Class_View AS
SELECT ClassID, CourseCode, Venue
FROM Class
WHERE Venue = 'A Block';
A.A virtual view, because it does not contain physical data of its own and depends on index files.
B.A base relation (or base table), which serves as the physical storage source upon which virtual views are constructed.
C.A materialized view, because its query results are cached on the disk and automatically recalculated using active triggers.
D.A dynamic view, because its schema definitions can be changed using DML commands during user transactions.
Which of the following is NOT a feature or characteristic of the Indexed Sequential file organization?
A.Records are physically stored in sequence and an index structure is maintained.
B.Dense and non-dense types of indexes are supported and maintained.
C.Track overflows and file overflow areas cannot be ensured or managed by the storage engine.
D.We choose a specific number of storage buckets to correspond to the number of search key values we will have stored.
Q7
โ MCQ๐ CS403๐ Lec 35๐ท๏ธ 35.1. Introduction to ViewsHard๐โญ๐ก๐๐๐VU๐๏ธVU
In database modeling, views are categorized into different types. Consider a view created using the SQL statement:
```sql
CREATE VIEW ActiveStudents AS
SELECT StudentID, StudentName, CGPA
FROM STUDENT
WHERE Status = 'Active';
```
What is the name of the physical table this view is based on, what type of view is this, and what are the main differences between Simple views, Complex views, and Materialized views?
๐ป sql Snippet
CREATE VIEW ActiveStudents AS
SELECT StudentID, StudentName, CGPA
FROM STUDENT
WHERE Status = 'Active';
A.Base Table: STUDENT. View Type: Simple View. Differences:
- Simple view: Queries a single base table, contains no aggregate functions, and is updateable.
- Complex view: Spans multiple tables (uses joins), contains aggregates, and is generally read-only.
- Materialized view: Physically caches query results on disk and must be periodically refreshed.
B.Base Table: ActiveStudents. View Type: Materialized View. Differences: Simple views are cached on disk, complex views are temporary sessions, and materialized views exist as pure metadata.
C.Base Table: StudentName. View Type: Complex View. Differences: Simple views are stored in the DRAM cache, complex views use SRAM, and materialized views require optical disks.
D.Base Table: Status. View Type: Dynamic View. Differences: Simple views are created using DML, complex views use DDL, and materialized views can never be updated.
Q8
๐ Short Q๐ CS403๐ Lec 35๐ท๏ธ 35.2. Sequential File OrganizationMedium๐โญ๐ก๐๐VU๐๏ธVU
Write down the properties, access advantages, and major limitations of Sequential File Organization.
Write down three physical factors or parameters that must be specified when defining a search key while designing an indexed sequential file structure.
Q10
๐ Short Q๐ CS403๐ Lec 35๐ท๏ธ 35.2. Sequential File OrganizationMediumโญ๐ก๐๐VU๐๏ธVU
Under physical file organization standards, write down three key properties and access characteristics of a Sequential File (or sequence file organization).