Ch 35: File Organizations & Storage

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.

๐Ÿ“30 MCQs
โฑ๏ธ60 Minutes
๐Ÿ“— VU FINAL TERM EXAMLectures 23 to 45
โฑ๏ธ 90 Mins

Final Term Examination

Comprehensive semester exam preparation with 45 MCQs covering Lectures 23 to 45 with complete course coverage.

๐Ÿ“45 MCQs
โฑ๏ธ90 Minutes
Showing 1 โ€“ 10 of 16 Questions
Page 1 of 2
Q1
โ“ 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';
  1. A.A virtual view, because it does not contain physical data of its own and depends on index files.
  2. B.A base relation (or base table), which serves as the physical storage source upon which virtual views are constructed.
  3. C.A materialized view, because its query results are cached on the disk and automatically recalculated using active triggers.
  4. D.A dynamic view, because its schema definitions can be changed using DML commands during user transactions.
Q2
โ“ MCQ๐Ÿ“˜ CS403๐Ÿ“‘ Lec 35๐Ÿท๏ธ 35.3. Indexed Sequential File OrganizationMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which of the following is NOT a feature of Indexed sequential files?
  1. A.Records are stored in sequence and index is maintained.
  2. B.Dense and nondense types of indexes are maintained.
  3. C.Track overflows and file overflow areas can not be ensured.
  4. D.Cylinder index increases the efficiency
Q3
๐Ÿ“ Short Q๐Ÿ“˜ CS403๐Ÿ“‘ Lec 35๐Ÿท๏ธ 35.2. Sequential File OrganizationMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Write down the properties, access advantages, and limitations of a Sequential File (Sequence File Organization).
Q4
๐Ÿ“ Short Q๐Ÿ“˜ CS403๐Ÿ“‘ Lec 35๐Ÿท๏ธ 35.2. Sequential File OrganizationMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Write the properties of Sequence File.
Q5
โ“ MCQ๐Ÿ“˜ CS403๐Ÿ“‘ Lec 35๐Ÿท๏ธ 35.3. Indexed Sequential File OrganizationHard๐Ÿ”โญ๐Ÿ’ก๐ŸŒŸ๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which of the following is INCORRECT with respect to the physical file structure of Indexed Sequential Files?
  1. A.New records are added to an overflow file.
  2. B.The record in the main file that precedes a new record is updated to contain a pointer to the new record.
  3. C.The overflow data is merged with the main file during a batch update.
  4. D.Multiple indexes for the same key field cannot be setup.
Q6
โ“ MCQ๐Ÿ“˜ CS403๐Ÿ“‘ Lec 35๐Ÿท๏ธ 35.3. Indexed Sequential File OrganizationHard๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which of the following is NOT a feature or characteristic of the Indexed Sequential file organization?
  1. A.Records are physically stored in sequence and an index structure is maintained.
  2. B.Dense and non-dense types of indexes are supported and maintained.
  3. C.Track overflows and file overflow areas cannot be ensured or managed by the storage engine.
  4. 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';
  1. 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.
  2. 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.
  3. 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.
  4. 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.
Q9
๐Ÿ“ Short Q๐Ÿ“˜ CS403๐Ÿ“‘ Lec 35๐Ÿท๏ธ 35.3. Indexed Sequential File OrganizationHard๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
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).
๐Ÿ’ป text Snippet
-- Sequential File Representation on disk blocks:
-- [Record 1: Key 101] -> [Record 2: Key 102] -> [Record 3: Key 103]