0% found this document useful (0 votes)
12 views

Grade 10- Part B - Unit 3 (Database Management System)

Uploaded by

ammu11440
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views

Grade 10- Part B - Unit 3 (Database Management System)

Uploaded by

ammu11440
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

Previous Years Question Papers

Part B – Unit 3
Multiple Choice Questions
1. In Base, the relationship applied on the tables can be removed with the help of _________
option. [ d ]
a. Clear b. Remove c. Drop d. Delete
2. In SQL, the keyword to display records in ascending order is ___________. [ c ]
a. Asce b. Incr c. Asc d. High
3. _________ is a numeric data type which can store Yes/No type values in the form of 0 or 1 in
Base table. [ a ]
a. Boolean b. Char c. Binary d. Other Object
4. Which of the following statement retrieves zero or more rows from one or more database tables
or database views? [ c ]
a. UPDATE b. DELETE c. SELECT d. DISPLAY
5. Which datatype will be appropriate to store information as Salary, Fees, Price etc. [ a ]
a. Numeric Datatypes b. Binary Datatypes
c. Alphanumeric Datatypes d. Date Time
6. Roshni has created a table Customer in SQL and wants to store photograph image of every
customer under Cust photo field. Suggest a suitable data type from the options given below.
[ c ]
a. Image b. Picture c. LongVarBinary d. Graphic
7. The ____________________ should be chosen such that its attributes are never or very rarely
changed. [ c ]
a. Candidate Key b. Super Key c. Primary Key d. Foreign Key
8. By default, all the fields in OpenOffice Base will have _________ datatype. [ c ]
a. Int (Tiny) b. Boolean c. Text (Varchar) d. Text (Char)
9. Which one of the following is not an example of DBMS? [ d ]
a. PostgreSQL b. SQLite c. FoxPro d. Impress
10. Databases have the ability to ________________________. [ b ]
a. Spell check, perform calculations, library of mathematical functions, replication
b. Store a large amount of data in a structured format, easy update, sort quickly, production
of reports.
c. Rotate images, Copy and Paste, Fill scale
d. None of the above
11. A _________ is an interface in a user specified layout that lets users to view, enter and change
data directly in database objects such as tables. [ b ]
a. Frame b. Form c. Relation d. Report
12. Which one of the following is used to define the structure of the relation, deleting relations and
relating schema? [ c ]
a. Relational Schema b. DML (Data Manipulation Language)
c. DDL (Data Definition Language) d. Query
13. Which of the following is expanded form of SQL? [ b ]
a. Systematic Query Language
b. Structured Query Language
c. Software Query Language
d. Structural Query Language
14. Which of the following is not the advantage of database? [ a ]
a. Increase Data Consistency b. Data Security
b. Reduce Data Redundancy d. Sharing of data
15. Binary data types in a database can be used for storing. [ a ]
a. Photos, music files etc
b. Integer values
c. Only image files
d. Only video files
16. An SQL INSERT statement adds _____________ records to any single table in a relational
database. [ c ]
a. Only Two b. One c. One or More d. None of these
17. ___________ clause can be used with the SELECT statement in SQL to specify which rows to
retrieve from the table. [ a ]
a. WHERE b. GROUP c. SAME d. SIMILAR
18. Identify the property which help to set the number of characters in text / varchar type field of a
table in DBMS. [ b ]
a. Entry Required b. Length c. Default Value d. Size
19. A _________ is a database object that provides a systematic way to accept data from the user
and store it in a table of a database. [ d ]
a. Query b. Form c. Report d. Table
20. The details associated with an entity are called ________________. [ d ]
a. Records b. Tables c. Primary Key d. Attributes
21. Primary Keys are also _________ in the database, making it faster for the database to search for
a record. [ a ]
a. Indexed b. Defined c. Duplicated d. Replicated
22. The __________________ has evolved since the 1960 to ease increasing difficulties in designing,
building and maintaining complex information system. [ c ]
a. Forms Concept b. Knowledge Concept
c. Database Concept d. Formula
23. Record uniqueness in a table helps to avoid accidental _________ of records caused by user or
computer error. [ a ]
a. Duplication b. Key c. Deletion d. Removal
24. GUI act as front end and database server act as _________________. [ a ]
a. Backend b. End c. Container d. None of these
25. Data in RDBMS is organized in _________. [ b ]
a. Files b. Tables
c. Text related Only d. linked through network
26. In the relationship design screen, the relationship between the two tables is done using
__________ operation. [ a ]
a. Drag and Drop b. Click c. Double Click d. Right Click
27. Binary data types are used for storing data in _________. [ d ]
a. Integer Format b. Character Format
c. Text Format d. Binary Format
28. _____________________ are the ways to produce the data stored in databases and tables in a
printed form. [ a ]
a. Report b. Form c. Query d. Data
29. _________ means that the query uses criteria you provide to hide some data and present only
what you want to see. [ c ]
a. Indexing b. Sorting c. Filtering d. Relating
30. _______ command is used to restore database to original since the last commit. [ a ]
a. Rollback b. Select c. Review d. None of these
Subjective Type Questions
Answer the following questions in 20 – 30 words.
1. Give any two benefits of creating relationships between tables in a database.
A. Benefits of creating relationships between tables are:
Saves time as there is no need to enter the same data in separate tables.
 It helps in summarizing data from related tables.
 It reduces data redundancy
 It reduces data inconsistency
 It maintains data integrity
 It allows data sharing among all database users
 It allows centralized control of data
2. What are the different options needed to choose to maintain Referential Integrity?
A. The different options needed to choose to maintain Referential Integrity are:

No action: This is the default option. This option states that a user should not be allowed to
update or delete any record in the master table if any related record exists in the transaction
table.

Update cascade: This option allows the user to delete or update the referenced field but along
with it all the related records in any of the transaction tables will also be deleted or updated.

Set NULL: This option assigns NULL value to all the related fields if the master record is deleted
or updated.

Set default: This option assigns any fixed default value to all the related fields if the master record
is deleted or updated.

3. Explain any two types of relationship that can be created in tables.


A. There are three types of relationships which can be created in tables:
1. ONE to ONE
2. ONE to MANY or MANY to ONE
3. MANY to MANY

One to One Relationship: In this relationship, both the tables must have primary key columns.

One to Many Relationship: In this relationship, one of the tables must have primary key column.
It signifies that one column of primary key table is associated with all the columns of associated
table.
Many to One Relationship: In this relationship, one of the tables must have primary key column.
It signifies that all the columns of primary key table are associated with one column of associated
table.

4. What is Candidate key and Alternate key?


A. Candidate Key: All the field values that are eligible to be the primary key are the candidate keys
for that table. Such fields can neither be left blank nor can have duplicate values. So in the table
Student Marks, Enrollment Number and Roll Number both are candidate keys.
Alternate Key: Out of the candidate keys, one or two are made as primary keys. The others are
the alternate keys. Hence, if Roll Number is made as the primary key, Admission Number is the
Alternate key.
5. What is the difference between form and reports?
A. Form: A form provides the user a systematic way of collecting information for a database.
Reports: A report helps to display the data in a summarized manner.
6. Identify any 2 column names/attributes and their data types from a given table: PLAYER
PID PNAME RUNS GENDER DOB
P101 Sachin 13000 M 10-04-2001
P102 Kapil 7000 M 12-02-1998
P103 Saurabh 12000 M 13-04-2001
P104 Virat 12500 M 17-03-2005

A. PID  CHAR / VARCHAR / TEXT


PName  CHAR / VARCHAR / TEXT
Runs  INTEGER / INT / TINYINT / SMALLINT / MEDIUMINT / BIGINT / NUMBER
Gender  CHAR / VARCHAR / TEXT
DOB  DATE / DATETIME
7. Explain the RDBMS terms:
a. Entity
b. Field / Column
c. Data Values
A. Entity: It is a real world object about which information is to be stored in a database. The details
associated with the entity are called attributes. Each entity is a collection of these attributes
associated with it. These attributes are represented in the form of columns.
Field / Column: A field is the smallest entity in the database. A collection of fields makes a record,
a collection of records makes a table and a collection of tables make a database. Fields are
individual record characteristics and are presented as columns within a table. Data values are
stored in a database as fields. A field holds the data values of one type of data for several persons.
Data Values: Data values are the raw data represented in numeric, character or alpha numeric
form.

Answer the following questions in 50 – 80 words.

1. In context of Base, explain the concept and significance of the following:


(a) Forms
(b) Reports.
A. Forms: A database form provides the user a systematic and interactive way of storing
information into the database. It is an interface in a user-specified layout that lets users view,
enter and change data directly in database objects such as tables.
Reports: A database report is the formatted and presentable result of data retrieved from
database objects like tables or queries. A report helps to display the data in a summarized
manner. It is used to generate the overall work outcome in a clear format.
2. What is Data Model. Explain different types of data models.
A. A database can be designed in different ways depending on the data being stored. This structure
of database is known as data model that describes the manner in which data will be stored and
retrieved. A data model consists of components for describing the data, relationships among
them and the constraints that hold data. There are different data models such as hierarchical
data model, network data model and relational data model.
Hierarchical Data Model: In this model the data is organized into a tree like structure. The data
is stored in the form of records. A record is a collection of fields and its data values. All these
records are linked to each other at various levels, thereby forming a hierarchy.
Network Data Model: In this model, multiple records are linked to same master file. It is also
considered as an inverted tree where master is present in the bottom of the tree and the
branches contain information linked to the master.
Relational Data Model: This data model is based on the principle of setting relationships
between two or more tables of the same database. It is the most commonly used database
model.
3. Consider the table Product and write SQL queries for the following:
Table: Product

(a) To display names of all products whose category is ‘‘domestic’’.


(b) To display product name and price whose quantity is less than 50.
(c) To display price and quantity of Laptop.
(d) To display name and quantity of those products whose price is above 5000.

A. a) SELECT PNAME FROM PRODUCT WHERE CATEGORY = ’DOMESTIC’;

b) SELECT PNAME, PRICE FROM PRODUCT WHERE QUANTITY < 50;

c) SELECT PRICE, QUANTITY FROM PRODUCT WHERE PNAME = ‘LAPTOP’;

d) SELECT PNAME, QUANTITY FROM PRODUCT WHERE PRICE > 5000;

4. What is a datatype. Explain different types of datatypes.


A. A data type refers to the type of data that will be stored in that particular field. The memory size
of a field varies according to its data type.
Text Data Type: The text data is a combination of letters, numbers or special characters. No
arithmetic calculations can be performed on text data. The various text data types are
LongVarChar, Char, Varchar.
Numeric Data Type: Numeric data types consists of numbers. The numbers can be integer or real
numbers on which any type of arithmetic calculations can be performed. The various numeric
data types are TinyInt, SmallInt, Integer, BigInt, Numeric, Decimal, Float, Real, Double.
Currency Data Type: The currency data type indicates the monetary values and can be stored
using currencies of various countries.
Date Data Type: This data type is used to indicate dates and time. The various date data types
are Date, Time, Timestamp.
Boolean Data Type: In Boolean data type there can be only two values- True or False. This also
can be given in multiple formats like Yes/No, True/False, On/Off.
Binary Data Type: The Binary data type used to store digitized images and sounds that comes as
long string of zeros and ones.
5. Consider the following table: STUDENT

Write SQL Commands:


a) To display the details of all students of GREEN HOUSE.
b) To increase the marks by 5 whose ADMNO is 1005.
c) To display the details of all students whose MARKS are less than 80.
d) Display the list of all students in descending order of MARKS.
A. a) SELECT * FROM STUDENT WHERE HOUSE = “GREEN”;
b) UPDATE STUDENT SET MARKS=MARKS+5 WHERE ADMNO=1005;
c) SELECT * FROM STUDENT WHERE MARKS <80;
d) SELECT * FROM STUDENT ORDER BY MARKS DESC;

You might also like