Grade 10-Part B - Unit 3-Database Management System
Grade 10-Part B - Unit 3-Database Management System
Part B – Unit 3
Multiple Choice Questions
1. It enables users to view, enter, and change data directly in database objects. [ c ]
a. Report b. Query c. Form d. Report
2. There are _______ types of Relationships in a table of a database. [ b ]
a. One b. Three c. Four d. Many
3. A Relational database uses _____________ commands which is a standard user application that
provides an easy programming interface for database interaction. [ c ]
a. Access b. Python c. SQL d. Protocol
4. When you define a field for a table, ___________ are the names given to the column in a table.
[ d ]
a. Datatype b. Field type c. Description d. Field Name
5. Suraj wants to create a database for his clients. For this purpose, he needs to store the Email IDs
of his clients. Which datatype should he use to accomplish this purpose. [ b ]
a. Numeric b. Varchar c. Binary d. Boolean
6. ________________ is used to define the structure of your tables and other objects in the
database. [ c ]
a. DML b. DCL c. DDL d. None of these
7. Geet has written a SQL query in SQL view. But he doesn’t know how to execute the query using
keyboard keys. Suggest him the shortcut key to complete the task. [ d ]
a. Enter b. Ctrl + E c. Space bar d. F5
8. Memo datatype is used ______________________. [ b ]
a. To store objects created in other programs b. For long text entries
b. To add table d. For short text entries
9. A table can have only _________ primary key in a database. [ a ]
a. One b. Two c. Three d. Many
10. Which of the following is not the binary datatypes? [ c ]
a. Varbinary b. Binary c. Charbinary d. Longvarbinary
11. The details associated with an entity are called ____________. [ b ]
a. Table b. Attributes c. Records d. Primary Key
22. In base data can be linked between two or more tables with the help of _______. [ a ]
a. Primary Key & Foreign Key b. Primary Key
b. Foreign Key d. None of these
23. The length of the field value of text data type is _____ characters by default in DBMS.
[ d ]
a. 10 b. 25 c. 20 d. 50
24. ______________ store data in a single table which is suitable to store less amount of data.
[ c ]
a. Single File b. Mini File c. Flat File d. Relational File
25. Identify the mode, where we can modify in the structure of table? [ b ]
a. Datasheet View b. Design View
c. Structure View d. All of the above
26. _________________ determines the range of field values. [ a ]
a. Field Size b. Field Name c. Datatype d. Description
27. __________ store data in a single table which is suitable to store less amount of Data.
[ a ]
a. Flat File b. Relational File c. Mini File d. Single File
28. Which of these can be specified while creating a report in Report Wizard? [ d ]
a. Grouping of data b. Sorting data
b. Choosing Layout d. All of these
29. ___________ database is a type of database that stores data in several tables. [ b ]
a. Flat b. Relational c. Both a & b d. None of them
30. _____________ is an interactive tool for creating forms through steps arranged on multiple
screens. [ b ]
a. Forms Tab b. Forms Wizard c. Table Wizard d. Tools Menu
31. In database _________ helps us to retrieve the filtered data based upon some conditions.
[ c ]
a. Forms b. Reports c. Queries d. Table
32. Rudraksh wants that the name column of a table must not be left blank. Help him to identify the
field property for this purpose. [ c ]
a. Length b. Default c. Entry Required d. Format
33. ___________ can be set for a field if the user doesn't provide any value while entering the values
in the table. [ b ]
a. Required b. Default c. Primary Key d. Format
34. Field is the individual sub component of one _______________. [ c ]
a. Data b. Column c. Record d. None of these
35. Aadya wants to create a connection between two or more tables. Suggest her the option to
accomplish the task. [ c ]
a. Table b. Form c. Relationships d. Sorting
36. _____________ data type takes the values in the form of 0 and 1 in the database. [ c ]
a. Integer b. Text c. Boolean d. Memo
37. ____________statement is used to retrieve records in a database. [ c ]
a. Alter b. Update c. Select d. Create
38. TIMESTAMP belongs to __________________ field type in Base. [ b ]
a. Time b. Date / Time c. Integer d. Text
39. ___________ represents a single, data item in a table. [ a ]
a. Row b. Column c. Datatype d. Primary Key
40. What is the purpose of the description column in Table Design View? [ b ]
a. To enter lookup data that the field should refer to.
b. To describe the data that should be entered in each field.
c. To define the data type applied to each field within the table.
d. None of these
1. Explain with example any two commands each of DDL and DML.
A. DDL commands
CREATE: It is used to create an object like table in database.
DROP: It is used to delete database objects.
DML commands
SELECT: It is used to retrieve data from the database Table.
INSERT INTO: It is used to insert a line of new data fields into a Table.
2. Explain the term “Referential Integrity”. Why is it important in a database?
A. Referential Integrity is used to maintain the accuracy and consistency of data in a relationship. In
Base, data can be linked between two or more tables with the help of primary key and foreign
key constrains.
Referential Integrity is important in DBMS as:
• It prevents the entry of duplicate data.
• It prevents one table from pointing to a nonexistent field in another table.
• It prevents consistency between “Partnered” tables.
• It prevents the deletion of a record that contains a value referred to by a foreign key in another
table.
• It prevents the addition of a record to a table that contains a foreign key unless key unless there
is primary key in the linked table.
3. Consider the following Vendor table and write the queries for the following:
Table: DateSheet
i) Write a SQL command to display the records in ascending order by date of exam.
ii) Write a query to display the above date sheet.
iii) Write a query to display the subject name and date of the exam held on ‘Monday’
iv) Write a SQL command to display the date of exam and Sub_Name of Science Subject.
A. i) Select*from Datesheet order by DateofExam
ii) Select*from Datesheet
iii) Select Sub_Name, DateofExam from Datesheet where Days= ‘Monday’
iv) Select Sub_Name, Date of Exam from Datesheet where Sub_Name = ‘Science’
4. Consider the following table: Employee
Employee Table
Emp_id Name Salary Designation
E01 Kajal 78000 Manager
E02 Rahul 50000 Sales Executive
E03 Tarun 55000 Clerk
(a) You are tasked with designing a new employee database for your company. Based on the
given table structure, identify the fields that would be necessary to store key information about
each employee.
(b) As a database administrator, you need to ensure each employee has a unique identifier.
Which field in the table would you choose as the primary key, and why?
(c) During a review of the employee database, you realize there could be another field apart from
the primary key that can uniquely identify a record. Identify the field and justify why it could
serve as an alternate key.
(d) You are integrating the employee table with another table that stores department details.
Explain how you would use the primary key from the employee table & a foreign key in the
department table to establish a relationship between the two tables.
Illustrate with an example.
A. a. Emp_id, Name,Salary, Designation
b. Emp_id
c. Combination of Emp_id and Name
d. Primary Key: Unique identifier for each row in a table, cannot be NULL.
Example:
Emp_id in Employees.
Foreign Key: Links to a primary key in another table, establishing relationships.
Example:
Emp_id in Orders referencing Emp_id in Employees
5. Consider the following table: Sales
i. Display the total amount of each item. The amount must be calculated as the price multiplied
by quantity for each item.
ii. Display the details of items whose price is less than 50.
A. a. Itemno integer 10
Iname varchar 15
Price decimal 5,2
Quantity integer 3
b. i. Select price * quantity from item;
ii. Select * from item where price < 50;
10. (a) Write a Query to create a Table with the following structure
Table: Product
Field Datatype
PID Char(4)
Pname Varchar(20)
Description Varchar(40)
Price Decimal
(b) Consider the following Vendor table and write the queries
Table: Vendor
VendorID VName DateofRegistration Location
V001 Mother Diary 20-01-2009 Delhi
V002 Havmor 01-04-2015 Gujarat
V003 Amul 12-05-2012 Kolkata
V004 Kwality Walls 15-10-2013 Mumbai
i. Write a Query to display all records
ii. Write a Query to add a new row with the following details
(„V005‟, „Vadilal‟, „2010-03-20‟, „Pune‟)
iii. Write a query to modify the location of V003 from Kolkata to Gujrat
A. (a) Create table Product (PID Char(4), Pname Varchar(20), Description Varchar(40), Price
Decimal);
(b) (i) Select * from Vendor;
(ii) Insert into Vendor values („V005‟, „Vadilal‟, „2010-03-20‟, „Pune‟);
(iii) Update Vendor Set location= „Gujrat‟ Where location= „Kolkata‟;
11. Write command to create a table named ‘BOOK’ with following fields:
BOOK ID Char(4)
Bname Varchar(15)
Author Varchar(20)
Price Decimal
a. Identify the primary key of the ‘Book’ Table, also mention the suitable reason for choosing
it as a Primary Key
b. Differentiate between
(i) char and varchar datatype
(ii) DDL and DML
A. Create table BOOK (BOOK_ID char(4), Bname varchar(15), Author varchar(20), Price Decimal );
(a) Book_id may be chosen as the Primary key because every book has a unique id that may be
used to identify the book.
(i) Char and Varchar
Char Varchar
Stores exactly the length specified by It Stores up to the specified length.
user in field definition.
Pads with trailing spaces for shorter No padding with extra spaces.
strings.
12. Write the SQL Commands to answer the queries based on Fabric Table