CS101 Assignment 1 Solution Spring 2022

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:

  1. To understand the practical implementation of Number System and learn how to convert numbers from binary to decimal and hexadecimal.
  2. To learn about the ASCII encoding system.
  3. To understand the basic concept of Boolean Logical Operations.
  4. 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.

01001000       01101001       00101100
Encoded Message
BOB
Alice
Trudy

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

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

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

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

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
B
C
D

 

 

 

 

 

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:

ExtensionExampleAnswer
.mp3The logo of the Virtual University of Pakistan
.zipThe photo of the Rector on the faculty page.
.gifThe audio tracks of programming talk-throughs.
.jpegA compressed folder of admission documents.

 

 

 

 

 

 

 

 

Introduction to Computing CS101 Assignment 1 Solution

Download Here

Leave a Reply

Your email address will not be published. Required fields are marked *