LMSWITHHAMZA

VU

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.

 

RULES FOR MARKING

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.

 

Objectives:

· 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.

 

 

NOTE

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:

CS101@vu.edu.pk

 

 

 

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.

 

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

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

Solution file

Spring 2022_CS101_1 Spring 2022_CS101_1 solution