Database Concepts using LibreOffice Base Class 12 IT (Commerce) Chapter 5 Question Answer Maharashtra Board — Complete, latest-syllabus-verified MSBSHSE Balbharati textbook exercise solutions (स्वाध्याय) for HSC Commerce Information Technology. This study guide covers Key Database Terms & Data Types, Fill in the Blanks, True or False, MCQs (1, 2, and 3 Correct Options), Match the Following, Rearrange Sequences, Brief Answers, LibreOffice Base SOP Practical Steps, escaped HTML5/PHP & SQL database examples, and FAQs.
1. Key Terms, Objects & Data Types – Database Concepts using LibreOffice Base
Chapter 5 introduces Commerce students to Relational Database Management Systems (RDBMS) using LibreOffice Base. Understanding tables, fields, records, keys, data types, relationships, and the four core database objects is essential for scoring full marks in both the online HSC board exam and Skill-Oriented Practicals (SOPs):
| Term / Object / Data Type | Category | Definition & Practical Role in LibreOffice Base |
|---|---|---|
| Database | Core Concept | An organized collection of related data stored electronically so it can be easily accessed, managed, updated, and retrieved. |
| DBMS / RDBMS | Software System | Database Management System; LibreOffice Base is a Relational DBMS (RDBMS) that stores data in related tables. |
| .odb | File Extension | Standard file extension of a saved LibreOffice Base database file (OpenDocument Database). |
| Table | Database Object | The fundamental building block of a database that stores raw data systematically in rows (records) and columns (fields). |
| Field (Column) | Table Structure | A vertical column in a table representing one specific attribute of an entity (e.g., rollno, studname, dob). |
| Record (Row) | Table Data | A horizontal row (tuple) in a table containing a complete set of field values for one single entity or transaction. |
| Primary Key | Constraint / Key | A field (or combination of fields) that uniquely identifies each record in a table; it cannot contain duplicate or NULL values. |
| Foreign Key | Constraint / Key | A field in one table that refers to the Primary Key of another table to link two tables together. |
| Query | Database Object | Used to retrieve, filter, sort, and display specific information from one or more tables based on user-defined criteria. |
| Form | Database Object | A user-friendly front-end interface used to collect, enter, edit, and view data stored in underlying tables. |
| Report | Database Object | Presents summarized and formatted data retrieved from tables or queries in a clean, printable layout. |
| Text [VARCHAR] | Data Type | Stores alphanumeric characters such as names, addresses, and class names of variable length. |
| Integer [INTEGER] | Data Type | Stores whole numbers without decimal places, such as rollno, age, or item quantity. |
| Decimal / Numeric | Data Type | Stores numbers with fractional decimal values, suitable for prices, fees, and accounting totals. |
| Date [DATE] | Data Type | Stores calendar dates such as date of birth (dob), invoice date, or admission date. |
| Yes/No [BOOLEAN] | Data Type | Stores logical binary values such as True/False or Yes/No (e.g., Fees Paid status). |
| Relationships | Table Linking | Logical connections between tables using keys: One-to-One (1:1), One-to-Many (1:M), and Many-to-Many (M:M). |
2. Balbharati Textbook Exercise Solutions – Commerce Ch 5 Database Concepts using LibreOffice Base
Below are the complete, accurate solutions to the MSBSHSE Balbharati Class 12 Information Technology (Commerce) Chapter 5 textbook exercise questions.
Q.1 Fill in the Blanks (Balbharati Textbook Exercise)
| Q. No. | Textbook Statement | Correct Answer |
|---|---|---|
| 1 | ________ is a collection of related data. | Database |
| 2 | Queries are used to ________ information from database. | retrieve (or display) |
| 3 | The representation of data in printed form is called as ________. | Report |
Q.2 State True or False (Balbharati Textbook Exercise)
| Q. No. | Textbook Statement | Answer & Explanation |
|---|---|---|
| 1 | Form is used to collect the data from the user. | True. A Form acts as an interactive front-end screen where users can enter, modify, and view records easily without directly editing raw table grids. |
| 2 | Menu bar is present below Title bar. | True. In the LibreOffice Base window layout, the Menu bar (File, Edit, View, Insert, Tools, Window, Help) appears directly below the Title bar. |
| 3 | Columns are called as records. | False. Vertical columns in a database table are called fields (or attributes), whereas horizontal rows are called records. |
Q.3 Multiple Choice Questions – Select 1 Correct Option (Balbharati Textbook Exercise)
| Q. No. | Question & Options | Correct Answer & Explanation |
|---|---|---|
| 1 | Rows in Base are called as ________. a) records b) fields c) table d) database |
a) records Each horizontal row in a table represents one complete record, while each vertical column represents a field. |
| 2 | File extension of Base is ________. a) .odt b) .ods c) .odb d) .odp |
c) .odb LibreOffice Base saves database files with the .odb extension (whereas .odt is Writer, .ods is Calc, and .odp is Impress). |
Q.4 Match the Following (Core Base Objects)
| Column A (Object) | Column B (Options) | Correct Match |
|---|---|---|
| 1. Table | a) Retrieves filtered data based on conditions | 1 → c) Stores raw data in rows and columns |
| 2. Query | b) Provides a front-end interface for data entry | 2 → a) Retrieves filtered data based on conditions |
| 3. Form | c) Stores raw data in rows and columns | 3 → b) Provides a front-end interface for data entry |
| 4. Report | d) Presents summarized data in printable form | 4 → d) Presents summarized data in printable form |
Q.5 Answer in Brief (Balbharati Textbook Exercise)
1) Define database.
Answer: A database is an organized collection of related, structured data stored electronically in a computer system. It enables users and organizations to store, access, manage, update, search, and control large volumes of information efficiently. In LibreOffice Base, data is organized inside tables consisting of fields (columns) and records (rows).
2) What is a query?
Answer: A query is a database object used to retrieve, filter, sort, and manipulate specific data from one or more tables based on defined conditions or criteria. Instead of viewing an entire large table, users run a query (created via Design View, Wizard, or SQL) to extract only the matching records they need.
3) Define report.
Answer: A report is a database object used to organize, summarize, and present data retrieved from tables or queries in an attractive, structured, and printable format. In Commerce workflows, reports are commonly used to print invoices, student mark lists, sales summaries, and account statements.
4) Explain the working area of Base.
Answer: When you create or open a .odb file in LibreOffice Base, the main application window displays the following working components:
- Title Bar & Menu Bar: The Title bar at the top shows the current database filename, and the Menu bar directly below it provides commands like File, Edit, View, Insert, Tools, Window, and Help.
- Standard Toolbar: Located below the Menu bar with quick-access icons such as New, Open, Save, Copy, Paste, and Sort.
- Database Pane (Left Panel): Lists the four core database objects—Tables, Queries, Forms, and Reports. Selecting any icon updates the Tasks and Objects panes.
- Tasks Pane (Top-Center/Right Area): Displays creation shortcuts and wizards for the active object (for example, Create Table in Design View or Use Wizard to Create Table).
- Objects List / Preview Pane (Lower Area): Lists all existing tables, queries, forms, or reports in the database along with an optional preview and description area.
- Status Bar: Appears at the bottom edge of the window and shows database connection details (such as Embedded HSQLDB database status).
3. HSC Board Exam Practice: 1, 2 & 3-Correct MCQs & Rearrange Questions
The Maharashtra HSC online IT (Commerce) board paper includes 1-correct, 2-correct, and 3-correct MCQs as well as sequence-rearranging questions. Practice these syllabus-aligned exam sets for Chapter 5:
Practice Set A: Multiple Choice Questions (1, 2 & 3 Correct Options)
| Type | Question & Options | Correct Answer(s) |
|---|---|---|
| 1 Correct | Which key uniquely identifies every record in a database table and does not allow NULL or duplicate values? a) Foreign Key b) Primary Key c) Alternate Field d) Report Key |
b) Primary Key Every table has one primary key constraint to guarantee unique row identification. |
| 1 Correct | Which data type is most suitable for storing a student’s Date of Birth (dob) in LibreOffice Base?a) INTEGER b) BOOLEAN c) DATE d) VARCHAR |
c) DATE The Date data type stores valid day, month, and year values. |
| 2 Correct | Which two statements are true about a Primary Key in LibreOffice Base? a) It uniquely identifies each record b) It allows duplicate values c) It cannot be left NULL d) A table can have five separate primary keys |
a) It uniquely identifies each record and c) It cannot be left NULL |
| 2 Correct | Which two objects in LibreOffice Base are primarily used for data input and formatted printed output respectively? a) Form b) Macro c) Report d) Extension |
a) Form and c) Report |
| 3 Correct | Select three valid database objects shown in the Database Pane of LibreOffice Base: a) Tables b) Queries c) Forms d) Slides e) Worksheets f) Animations |
a) Tables, b) Queries, and c) Forms (along with Reports) |
| 3 Correct | Select three valid relationship types supported in an RDBMS: a) One-to-One b) One-to-Many c) Many-to-Many d) Zero-to-Null e) Single-to-Plain f) Text-to-Print |
a) One-to-One, b) One-to-Many, and c) Many-to-Many |
| 3 Correct | Select three valid LibreOffice Base field data types: a) Text [VARCHAR] b) Integer [INTEGER] c) Date [DATE] d) Hyperlink Tag e) Slide Transition f) CSS Margin |
a) Text [VARCHAR], b) Integer [INTEGER], and c) Date [DATE] |
Practice Set B: Rearrange the Sequence
| Task | Jumbled Steps | Correct Sequential Order |
|---|---|---|
| Create Table in Design View | A) Set Primary Key on unique field | B) Open LibreOffice Base and select Create Table in Design View | C) Save table with a meaningful name and enter records | D) Enter Field Names and select appropriate Field Types | 1. Open Base & Design View (B) → 2. Enter Field Names & Types (D) → 3. Set Primary Key (A) → 4. Save Table & Enter Records (C) |
| Generate a Report via Wizard | A) Choose grouping, sorting, and layout options | B) Select source Table or Query and add required fields | C) Click Reports in Database Pane and choose Use Wizard to Create Report | D) Save and view the printable Report | 1. Launch Report Wizard (C) → 2. Choose Source & Fields (B) → 3. Set Grouping & Layout (A) → 4. Save & View Report (D) |
4. Short Notes, SOP Practical Guide & Solved Database Code Examples
SOP Practical Walkthrough: Student Table, Form, Query & Report in LibreOffice Base
In the Class 12 IT (Commerce) Skill-Oriented Practicals (SOPs) for Chapter 5, students build a working database in LibreOffice Base using a Student table. Follow these clean exam steps:
- Create Database: Open LibreOffice Base → choose Create a new database → click Next → Finish and save the file as
StudentDB.odb. - Create Table in Design View: In the Database Pane, click Tables → Create Table in Design View. Define fields with accurate types:
rollno(INTEGER),studname(VARCHAR),address(VARCHAR),class(VARCHAR),div(VARCHAR), anddob(DATE). - Assign Primary Key & Save: Right-click the row selector next to
rollno→ select Primary Key (a small key icon appears). Save the table asStudentand enter at least 5–8 student records. - Create Form for Data Entry: Click Forms → Use Wizard to Create Form → select table
Student→ move all fields to the form → choose layout and style → save and open to add or navigate records. - Create Query to Filter Records: Click Queries → Create Query in Design View → add table
Student→ double-click required fields → set criterion (for example,'12'underclassor'A'underdiv) → run the query (F5) and save. - Generate Printable Report: Click Reports → Use Wizard to Create Report → select the
Studenttable or saved query → choose fields, labels, sorting order, and tabular layout → finish to produce the formatted printable report.
Difference Between Primary Key and Foreign Key
| Basis | Primary Key | Foreign Key |
|---|---|---|
| Purpose | Uniquely identifies every row in its own table. | Links a child table to the Primary Key of a parent table. |
| Duplicates & NULL | Cannot contain duplicate values or NULL values. | Can contain duplicate values (in One-to-Many relationships). |
| Count per Table | Only one Primary Key per table (single or composite). | A table can have multiple Foreign Keys referencing other tables. |
Solved Code Example 1: Escaped HTML5 Student Record Entry Form
This HTML5 form mirrors the structure of a LibreOffice Base Student table form (with fields rollno, studname, class, div, and dob) for web-to-database data collection:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Student Database Entry Form</title>
</head>
<body>
<h2>Student Record Entry</h2>
<form action="save_student.php" method="post">
Roll No: <input type="number" name="rollno" required><br><br>
Student Name: <input type="text" name="studname" required><br><br>
Class: <input type="text" name="class" value="12" required><br><br>
Division: <input type="text" name="div" maxlength="2" required><br><br>
Date of Birth: <input type="date" name="dob" required><br><br>
<button type="submit">Save Record</button>
</form>
</body>
</html>
Solved Code Example 2: Escaped PHP & SQL Query Preview for Base Concepts
In relational databases, every query retrieves filtered rows using SQL logic. Below is an escaped PHP and SQL snippet showing how records from a Student table are validated and queried:
<?php
if ($_SERVER["REQUEST_METHOD"] === "POST") {
$rollno = (int) $_POST["rollno"];
$studname = htmlspecialchars(trim($_POST["studname"]));
$div = htmlspecialchars(trim($_POST["div"]));
// Conceptual SQL INSERT & SELECT statements matching LibreOffice Base Query logic
$sqlInsert = "INSERT INTO Student (rollno, studname, div) VALUES ($rollno, '$studname', '$div');";
$sqlQuery = "SELECT rollno, studname, class, div FROM Student WHERE div = 'A' ORDER BY rollno ASC;";
echo "Prepared Insert: " . $sqlInsert . "<br>";
echo "Filter Query: " . $sqlQuery;
}
?>
Frequently Asked Questions – Commerce Ch 5 Database Concepts using LibreOffice Base
What is the file extension of a LibreOffice Base database and what are its four main objects?
A LibreOffice Base database file is saved with the .odb extension. Its four main database objects listed in the Database Pane are Tables (for storing raw data), Queries (for retrieving filtered data), Forms (for user-friendly data entry), and Reports (for summarized printable output).
What is the difference between a Field (Column) and a Record (Row) in a database table?
A Field is a vertical column that stores one specific attribute for every entry (such as studname or dob), whereas a Record is a horizontal row that holds all field values belonging to a single entity (such as one complete student entry).
Can a table in LibreOffice Base have more than one Primary Key?
No. A table can have only one Primary Key. However, if a single column cannot uniquely identify every row, two or more columns can be combined together to act as a single Composite Primary Key.