Professional Documents
Culture Documents
Document45 PDF
Document45 PDF
Question 1. (6+4=10)
Part (a). Decimal to Binary Conversion: There are four letters A, B, C & D given
below:
A = Your Roll Number + 400
B = Your Date of Birth + 500
C = Your Month of Birth + 600
D = Last two Digits of Your Year of Birth + 700
Calculate values of these letters A, B, C & D Then Convert those Decimal Values
into Binary Numbers. (Note: Attach your CNIC or Matriculation Certificate’s image
for Date of Birth Proof.)
Part (b). Then Apply Operators on A, B, C & D according to condition of your Roll
Number such that Students with
Odd Roll Numbers Apply “OR” Operator Even Roll Numbers Apply “AND”
Operator
For Example: If Aslam’s Roll number is 2020-CS-017 & Date of Birth is 21-12-2002,
then A=417, B=521, C=612 & D=702 and Aslam’s roll number is odd so he will
apply OR operator.
Question 2. (6+4=10)
Part (a). Suppose you have a 8192MB of RAM. 4GB of RAM is required by an
Operating System, 1450 + 𝒙𝟏 MB is required to run an Antivirus Application, 1450
+ 𝒙𝟐 MB is required by a Chrome Browser, 1024 + 𝒙𝟑 MB is required by an
Accounting software & 512 + 𝒙𝟒 MB is required by a video editing software. All
these applications are running simultaneously
𝒙𝟏 = Your Roll Number
𝒙𝟐 = Your Date of Birth
𝒙𝟑 = Your Month of Birth
𝒙𝟒 = Your Year of Birth
Part (b). Then Convert these storage terms of “total Required RAM” & “Additional
Required RAM” according to condition of your roll number such that Students
with
Odd Roll numbers convert MBs into TBs
Even Roll numbers convert MBs into Bytes
For Example: If Aslam’s Roll number is 2020-CS-017 & Date of Birth is 21-12-2002,
then 𝑥1=17, 𝑥2=21, 𝑥3=12 & 𝑥4=2002 and His roll number is odd so he will
convert MBs into TBs.
Question 3. (6+4=10)
Question 3. (6+4=10) Part (a). Below is the list of types of Computer Networks:
0. Personal Area Network
1. Local Area Network
2. Wireless Local Area Network
3. Campus Area Network
4. Metropolitan Area Network
5. Wide Area Network
6. System Area Network
Discuss on how Large Scale that network can work and what are its limitations?
Give at least one example of that Network by yourself.
Odd Roll numbers write about Client & Server Network Architecture
Even Roll numbers write about Peer-to-Peer Network Architecture
For Example: If Aslam’s Roll number is 2020-CS-017 then he will discuss 7.
Wireless Personal Area Network of Computer Networks and Aslam’s Roll number
is Odd so he will write about Client & Server Network Architecture
Question 4. (6+4=10)
Part (a). Entity Relationship Diagram:
Given above is the Entity Relationship Diagram for patients came to clinic for their
regular checkups.
Write attributes only for Patients & Doctors according to the condition of your
roll number, such thaT
If last digit of your roll is below 5, then Number of Attributes = Last Digit of your
Roll Number + 7
If last digit of your roll number is 5 or above, then Number of Attributes = Last
Digit of your Roll Number + 5
Also Construct Database Model – Relational (table) with included Attributes
NAME: NOMAN KHAN ROLL NO: CS20F-212 SECTION: E
FINAL
For example: If Aslam’s Roll number is 2020-CS-017 so he will write 13 Attributes
for Patient and 13 Attributes for Doctor.
Question 5. (6+4=10)
Part (a). Storage Devices: There are four letters W, X, Y & Z given below: