0% found this document useful (0 votes)
21 views4 pages

12th Computer CHP 2

The document discusses various concepts related to file management systems, including data handling, fixed and variable-length fields, tables, entities, and keys in databases. It defines terms such as primary key, foreign key, and the roles of users and database administrators. Additionally, it covers the properties of relations and the responsibilities of a database administrator.

Uploaded by

zukihusnain
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)
21 views4 pages

12th Computer CHP 2

The document discusses various concepts related to file management systems, including data handling, fixed and variable-length fields, tables, entities, and keys in databases. It defines terms such as primary key, foreign key, and the roles of users and database administrators. Additionally, it covers the properties of relations and the responsibilities of a database administrator.

Uploaded by

zukihusnain
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/ 4

Short Questions

0.1. How is data handled in file management system?


management system uses files to handle data. The files contain records that
The file starting address. The starting address
fields. Each field in the record has a
consist of related
each field and its length is used to identify its storage location. The field name is used
of data.
name reference to store and retrieve length field?
fixed-length field and variable
0.2. What is the difference between
result in
fixed-length field contains predefined number of characters (bytes). It maynumber of
A
storage space. A variable-length field does not contain predefined
the wastage of space according to the data entered by the user.
characters (bvtes). It occupies the
e Q.3. Define the term table or relation. as table
array of data that consists of rows and columns is known
A two-dimensional entity.
used to store information about an
or relation. The relations are
Q.4. What is entity?
about which information is stored in the database. An entity may
An entity is anvthing
names.
have many attributes with unique
database?
Q.5. How a relation is formed in entity about which information
according to the attributes of
The relations are formed entity become the fields of the relation. The nane of the
the
is to be stored. The attributes ofrelation.
entity becomes the name of the
relation.
Q.6. List any four properties of a of rows is insignificant. Thirdly,
Secondly, the order
Firstly,no duplicate rows exist. Fourthly, the columns/attributes are all elenental or
insignificant.
the order of columns is
atomic.
more Q.9. more view.Q7.
Q.8. Define 36
refer record.
The unique.
Q.17. alternate smoothly.
relation Q.15.
o.16. Q.14. Q.12.
Q.13. Define Q.11.
key. speedperformance Q.10.tables.
retrieve or Q.19. key. Q.18. users.
egal d
to How n
What The HowA A
Write Define
The Different List The Why A upThe What quickly. An What TheViewsflexibility The What
many anA Differentiate A Primary is key View
secondarykey selected relation relation relation known key, the index CREATE
Secondary
records. many attribute different They keys
are indexes from is
is
attribute three issorting is of is are are unauthonbasic
records. secondary composite
primary an the views the is
can key can types are are keys database
the Indexes
is and a
candidate can primary important as attribute purpose advantage a created Purpose
view A virtual
basic
between have cannot have primary or also defined
types defined and are data VIEW created? security
set of
or
have combination key. of
or stored isare purpose table
iskey?
only keys only keys ofused searching structure by can of
key contain concatenate or improvedof command
attribute many characteristics key. used keys. to in in set used of using in
key attributes candidate one one index
in displaying alsousing that
to can createtablestables? of /ndex of
values identifyattributes primary in index that
primary
be null of attributesoperations. a displayviews usingdisplavs
or attributes databases relationship to
file? with to of
ombination that key definedvalues. key, file. speed is in SQL SQL
may the access is
or and key. key. of sort these used FMS query. data.records views! to the IT
that Database up is
not records can set a and
by used keep data Series
primary
be Primary in Each primary that orare indexes.
be of control
primary between or
uniquely thDBMS
e
used table? a DBMS? A
unique. of attributes in value uniquely sequence to
vi ew
from data from ’
the management sorting create
attributes as key. key key. to
relation in
key different identifies
key, can multiple safe one Computer
Accessan
primary cannot locate
One that primary identifies and the VieW. or
secondary and be arnd
dary that more
foreign stored a created tables.secure
can
becomes key can contain tables. a system particular
searching Science
keyattribute a tuple tables.
uniquely is
be row data
null
key. key, from The (MS
key used primarycalled
or
in uses
value to values. record candidate quickly relation. a process.record views
this
must
ina
candikev.didatente ify
na."c es na an tile pr
Th f
Q.records.
25. to
Q.24. jdentify which .22. nowns s .21. ecord Basic2»
he .20. Chapter
Q27. Q26. ensure
Q.23.In alternate primary same
able 2:Table 1: STUDENT;
FROMCREATE
SELECT
Col1,
Col5 The answer.
A Define What
A Differentiate
has A
The Let The Identify Consider as secondary
ldentify Col3 , field each
composite primary Acandidate relationcombination
primary uniqueness keys. key. a
you
primary do
unique
RollNo VIEW Col4, names tuple composite
have 02 RollNo the the The may you
primary condition key Conceptsand
Foreign
None
Key:RollNo
aryPrimary Key: key primary or
attribute mean value. between key
Col5). key are following inrow key that key. contain
this of is
RNo,
and TableName1 StudentView relation a is
key Create UmairShahid Name in is consists key The byvalues. It a
Key: foreign 3 1RNo created you field
RegistrationNo. key situation. the /
candidate candidate
or is secondary
and Name, concatenate key? many
lNo, City STUDENT a and
figure relation. need combination unique aThe Terminology or of
key foreign AS view of
Saleem in attributes set
total ClassID Ayesha AsifAliName and two primary
(lt are a to keys key
identifier ofkey
ject) on LahoreLahore Address A create or
rs as key first inThe number indicate relation fields
follows combination more and and
f ro m your and 10
11 10ClassID that of or key
o and total composite
attributes attributes
combination alternate for primary for Databases
PhoneNo of DeplD. the when are is
following
RollNo database
last number 45627123567 th e whicha
attributes Field not
ute 1 4DeplD 4 of a row field
attribute The
two
selected th at key? more key.
of names single key is
such next known can of
in or
in Table 2
Subject ta bl e attributes in or in aset than
of 101-Reg-2023
102-Reg-2023
RegistrationNo the three more attributes
as table
fable as and attribute be of
structures. STUDENT. relation? a as primary used fields one
!)
STUDENT following rows records. attributes composite
Marks are records
cannot asthat for
five. indicate key
primary
table. Justify can which
(Coll, is key are havemay
uniquely
required be
three known key used every
Col2, your
37
is
38
IT Series ’ Computer Science (MS Access
Q.28. From the
anndn
information given below, construct a table and find a suitable
PHYSICIAN (Ph_ Code, Ph Name, Address, Mobile No, Age) primary k
Ph_ Code Ph_Name Address Mobile_No Age
Ph001 Ali Lahore 123567 51
Ph002 Hassan Islamabad 45627 55
Primary Key: Ph_Code
Q.29. Define foreign key.
A foreign key is an attribute or combination of attributes in a relation whose
match a primary key in another relation. valug
as dependent table. The table to which theThe table in which foreign key is created is know
foreign key refers is known as parent table.
Q.30. What are dependent and parent
relations?
The relation in which foreign key is
relation to which the foreign key refers is created is known as dependent relation. Th
Q.31. Distinguish between primary key known as parent relation.
A primary key uniquely
and foreign key.
primary key in another relation. identifies each row in a relation. A foreign key
refers toi
have nullvalue. A relation can Primary key cannot accept null values but
Q.32. Who is the user or end
have only one primary key but can foreign key ca
user? have many foreign keys.
A user or end user is a
have a moderate person who uses computers for his
knowledge
does not need to know of computers, computer science and specific needs. He migh
Q.33. VWho is a data knowledge of computer system. information technology. He
in-depth
A data
administrator?
He normally administrator is a person who is
develops the overall functional responsible for entire data of an
office. He controls
O.34. VWrite three
and manages the whole requirements
database
for the database
system. beingorganization
used in the
Three responsibilities of a database
administrator.
responsibilities
different users to use database,of a
database
occur in the database system. monitoring ofadministrator include assigning
database system and solving the permission to
O.35. How many fields and
records does the problems tha
RollNo Name following table contain?
2341
Shaheer Subject Class
4500
Saima English 2nd year
The table contains four Maths 1st Year
fields and two records.

Multiple Choice Questions


1, The number of
a. Constant characters in fixed-length field is:
b. Variable
The number of
2.
a. Constant characters in c. 10
variable-length field is:
b. Variable d. 100

You might also like