Inter Part II Short Questions Notes
Inter Part II Short Questions Notes
CHAPTER NO.2
Q. What is entity? Give an example:
Ans: An Entity is anything about which information is stored in the Database.
Example: STUDENT, TEACHER, COLLEGE are examples of entities.
Q. Define the term Table (Relation).
Ans: A two-dimentional array of data that consists of rows and columns is known as Table or
Relation. These relations are used to store information about an entity.
Q. Write four properties of a relation.
Ans:
No duplicate rows exist.
The order of rows is insignificant
The order of columns is insignificant
All columns/rows are atomic
Q. Describe the basic purpose of using views.
Ans: A view is a virtual table that displays data from one or more tables. The basic purpose of
using views is to keep data safe and secure from un-authorized and illegal user.
Q. What is key?
Ans: A key is an attribute or set of attributes that uniquely identifies a row (record) in a relation.
Example: Student Registration Number is called Key.
Q. Define Primary Key.
Ans: An attribute or set of attributes that uniquely identifies a row or record in a relation is called
primary key.
Example: Student Roll No. and Registration Number are examples of primary keys.
Q. Write three important characteristics of primary key.
Ans:
A relation can have only one primary key.
Each value in the primary key attribute must be unique.
Primary key cannot contain Null values.
Q. What is secondary key?
Ans: An attribute or set of attribute that can be used to access records is called Secondary Key.
Secondary key values may not be unique.
Example: Student Name is an example of Secondary Key.
Q. Define Composite Key / concatenate key.
Ans: A primary key that consists of two or more attributes is known as composite key.
Q. Define Candidate Key.
Ans: An attribute or set of attribute that can be used as primary key is called candidate key.
Q. Define Alternate Key.
Ans: The candidate keys that are not selected as primary key are called alternate keys.
Q. Define foreign key.
Ans: A foreign key is an attribute or combination of attribute whose values match a primary key
in another relation.
Q. Who is database administrator (DBA)/ What are responsibilities of DBA?
Ans: Database Administrator (DBA) is a person who is responsible for design, implementation,
operation and maintenance of database. He must be technically competent and a good manager.
Ans:
Primary Key Candidate Key
An attribute or set of attributes that uniquely An attribute or set of attribute that can be used
identifies a row or record in a relation is called as primary key is called candidate key
primary key
There is only one primary key in every table There may be many candidates key in a table
Example: Roll No. Example: Student B-form number
Q. Who is end-user?
Ans: End user is the person who directly interacts with the database system. End user may not
have the technical knowledge of database system.
Q. State the use of index in FMS.
Ans: An index is a data structure that is used to locate a particular record in a file more quickly.
Indexes are used to speed up the sorting and searching process.
Q. Who is Data Administrator?
Ans: A Data Administrator is a person who is responsible for entire data of an organization. He
normally develops overall functional requirements for database. He controls and manages the
whole database system.
Q. Define attribute. Give an example.
Ans: The characteristics of an entity are called attributes. An entity may have many attributes.
Example: STUDENT entity have attributes Student Roll No, student name, address and marks.
Q. Define sorting.
Ans: The process of arranging data in a sequence is known as Sorting.
CHAPTER NO.7 (2nd Year)
Q. List some uses of Form.
Ans:
Form is used to manipulate data in database.
Form is used to enter, delete, update data in the database
Q: What is a string?
A collection of characters written in double quotation is called string. Character variable are used
to store a string. The length of string given in brackets in declaration statement such as char
book [20];