COMPUTERSCIENCE
ICS – 1st Year
Section-A
Question No. 1 [15 Marks]
A College Management System has numbers of Students. A database table ‘Student ‘stores
the personal information about student. Part of this table is given showing S_ID, Name,
Class, Marks, DOB.
S_ID DOB
Name Section Marks
212 Ali XI-A 97 15-1-2005
2003 Ahmed XII-A 31 18-6-2003
135 Hamza XI-A 50 11-5-2006
1945 Uzair XII-A 78 21-9-2004
2190 Awais XI-A 44 8-12-2005
255 Naveed XII-A 60 20-8-2004
323 Umer XI-A 42 4-10-2003
i. State the number of records and fields in the table.
Number of Fields: _______5 Number of Records: _______ 7
ii. Suggest the name of field that should be used for Primary Key. [1]
S_ID
iii. Complete the table to represent the most appropriate data type for any four (04) fields
based on the data shown. [2]
Fieldname Datatype
S_ID Number
Name Short Text
DOB Date
Marks Number
4
COMPUTERSCIENCE
ICS – 1st Year
iv. List the output that would be generated by the following Query design. [4]
Field: S_ID DOB
Name Section Marks
Table: Student Student Student Student Student
Sort:
Show: √ √ √ √
Criteria: >”50”
Or:
Output :
S_ID DOB
Name Section Marks
212 Ali XI-A 97 15-1-2005
1945 Uzair XII-A 78 21-9-2004
255 Naveed XII-A 60 20-8-2004
v. Fill the following Query design to display all Students of Section XII-A .[4]
Field: DOB
S_ID Name Section Marks
Table: Student Student Student Student Student
Sort:
Show: √ √ √ √ √
Criteria: =’XII_A”
Or:
5
COMPUTERSCIENCE
ICS – 1st Year
i. Write the Data types of the following label Form design: [2]
1. Auto Number
2. Number
3. Short Text
4. Long Text
6
COMPUTERSCIENCE
ICS – 1st Year
Section-B
Question No. 2
[10 Marks]
i. Define Joystick also write the name of components of Joystick labeled in the
following diagram [4]
1 4
Joystick:
Joystick is hand held input device commonly used for gaming purpose. It has
triggers, buttons, controllers which are commonly used for controlling or
pointing. These sticks has trackballs which monitors the motion. User can intract
by using the buttons on the track ball.
1. Left Stick
2. Left Trigger
3. D-Pad
4. Face Buttons
7
COMPUTERSCIENCE
ICS – 1st Year
ii. Define Magnetic Tape also write the name of different parts of Magnetic
Tape labeled in the following diagram. [4]
3.
4.
1.
2.
Magnetic Tape:
Magnetic Tape is a plastic strip with a magnetic coated material. Bits are recorded
as magnetic spots on the tape. Usually 7 or 9 bits are recorded to form a
character. Read/write heads are mounted in each track so that data can be
recorded and read in a sequence of chracters.
Magnetic Tape
Label Name Of Magnetic Tape Label Name Of Magnetic Tape
(1) Supply Reel (2) Guide Roller
(3) Write-Protect Tab (4) Takeup Reel
8
COMPUTERSCIENCE
ICS – 1st Year
iii. Fill the following table by identifying input devices and output devices. [2]
Name Input devices Output Devices
Scanner Input
Plotter Output
Touch Screen Input
Joystick Input
Modem Output
Speaker Output