Solution file below in this page 


Introduction to Computing (CS101)

Assignment # 01

Spring 2022


Total marks = 20                                                                               


Deadline Date
June 17, 2022


Please carefully read the following instructions before attempting the assignment.



It should be clear that your assignment would not get any credit if:

The assignment is submitted after the due date.

The submitted assignment does not open or the file is corrupt.

Strict action will be taken if the submitted solution is copied from any other student or the internet.


You should consult the recommended books to clarify your concepts as handouts are not sufficient.

You are supposed to submit your assignment in Doc or Docx format.

Any other formats like scan images, PDF, ZIP, RAR, PPT, BMP, etc. will not be accepted.



· To understand the practical implementation of Number System and learn how to convert numbers from binary to decimal and hexadecimal.

· To learn about the ASCII encoding system.

· To understand the basic concept of Boolean Logical Operations.

· To learn about the common file formats.




No assignment will be accepted after the due date via email in any case (whether it is the case of load shedding or internet malfunctioning etc.). Hence refrain from uploading assignments in the last hour of the deadline. It is recommended to upload the solution file at least two days before its closing date.


If you people find any mistake or confusion in the assignment (Question statement), please consult with your instructor before the deadline. After the deadline, no queries will be entertained in this regard.

For any query, feel free to email at:





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.






72 ans













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



split into 2 groups

0100     1000

4            8



split into 2 groups

0110     1001

6                9                 =6916



split into 2 groups

0010    1100

2            c

2c16 ans


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

Solution file

Spring 2022_CS101_1 Spring 2022_CS101_1 solution