LMSWITHHAMZA

# VU

## School&CLG 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.

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

Solution:

01001000

0×27+1×26+0×25+0×24+1×23+0×22+0×21+0×20

0+64+0+0+8+0+0+0

72 ans

01101001

0×27+1×26+1×25+0×24+1×23+0×22+0×21+1×20

0+64+32+0+8+0+0+1

105Ans

00101100

0×27+0×26+1×25+0×24+1×23+1×22+0×21+0×20

0+0+32+0+8+4+0+0

44ans

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

Solution:

01001000

split into 2 groups

0100     1000

4            8

4816

01101001

split into 2 groups

0110     1001

6                9                 =6916

00101100

split into 2 groups

0010    1100

2            c

2c16 ans

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

Solution:

01001000       01101001       00101100

Aschii code 72 105 44

H i ,

Answer in texual form is=  Hi,

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 .gif .zip The photo of the Rector on the faculty page. .jpeg .gif The audio tracks of programming talk-throughs. .mp3 .jpeg A compressed folder of admission documents. .zip

cs101 assignment 1 solution,cs101 assignment 1 solution 2022,cs101 assignment 1 solution spring 2022,cs101 assignment 1,cs101 assignment 1 solution 2021,cs101 assignment no 1 solution 2022,cs101 assignment 1 solution spring 2021,cs101 assignment solution 2022,cs101 assignment solution 2021,cs101 assignment solution spring 2022,cs101 assignment 2 solution 2021,assignment solution,assignment solution spring 2022,cs101 assignment 2 solution