google.com, pub-3534375712831849, DIRECT, f08c47fec0942fa0 CS101 Assignment 1 Solution Spring 2022 Download Free in PDF with Concept also paid services
Latest Updates
Loading...

CS101 Assignment 1 Solution Spring 2022 Download Free in PDF with Concept also paid services





CS101 Assignment Solved by Abdul Hadi E Services

Get Paid Assignment click

Questions No. 01                                                                                                                                              Marks (12)

Alice and Bob are playing a game by encoding their messages in an 8-bit binary. Trudy wants to understand or modify their messages. You have to help Trudy to convert encoded messages into a readable format by performing the following operations.



·         Note:  Perform all the required steps in detail for each operation.

 

(a)    Convert the above 8-digit binary numbers into decimals.                              (6 marks)

(b)   Convert the 8-digit binary into hexadecimal.                                                     (3 marks)

(c)    Decode the 8-digit binary in textual form. (Hint: using the ASCII table).       (3 marks)




Solution:

 

(a)             Convert the above 8-digit binary numbers into decimals.                              (6 marks)

 

 

Q

128

64

32

16

8

4

2

1

 

1

0

1

0

0

1

0

0

0

Ans

 

0+

64+

0+

0

8+

0+

0+

0

72

Q

0

1

1

0

1

0

0

1

Ans

2

0

64+

32+

0+

8+

0+

0+

1

105

Q

0

0

1

0

1

1

0

0

Ans

3

0+

0+

32+

0+

8+

4+

0+

0+

44

 

(b)            Convert the 8-digit binary into hexadecimal.                                                 (3 marks)

01001000      

 

01101001      

 

00101100      

 

(c ) Decode the 8-digit binary in textual form. (Hint: using the ASCII table).           (3 marks)

Binary

Step 1 (Decimal)

ASCII Code

01001000

72

H

01001000

105

i

00101100

44

,

 

 



 

 

Questions No 02                                                                                                                                               Marks (04)

The diagram below shows a circuit with four gates and four inputs (A, B, C and D).    

If the final output is 0, what are the possible states of inputs A, B, C and D?

 

A

1

B

1

C

1

D

1

 

Questions No. 03                                                                                                                                              Marks (04)

 

The following table lists the extensions of some file formats used by the website of “Virtual University of Pakistan”. Match each extension to an example of data that it can store:

Extension

Example

Answer

.mp3

The logo of the Virtual University of Pakistan

The audio tracks of programming talk-throughs.

.zip

The photo of the Rector on the faculty page.

A compressed folder of admission documents.

.gif

The audio tracks of programming talk-throughs.

The logo of the Virtual University of Pakistan

.jpeg

A compressed folder of admission documents.

The photo of the Rector on the faculty page.

 

 

 

 

 





Download Question File and Solution

Download File Now 

 

Get Paid Services (Word Ready File)

 

Want more info, please press the below button




`

Post a Comment

0 Comments