# CS101 Assignment 1 Solution Fall 2021 - VU Answer

Provide Current CS101 Assignment 1 Solution Fall 2021. Easy to See Proper Step by Step CS101 Assignment 1 Solution 2021 Download PDF File Below.

## CS101 ASSIGNMENT 1 SOLUTION FALL 2021

Total Marks: 20

Due Date: 14 Dec 2021

Submit assignment only .doc or .docx format.

Objectives:

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

2. To understand the concept of Addition in binary Boolean Logical Operations.

3. To understand the basic concept of Boolean Logical Operations.

Question 1:

Hint: Use the following 8-bit floating-point notation to convert these values. Part A:

Encode the following decimal fractional value to binary floating-point notation using the 8-bit floating-point format.

-3.5

Solution:

The number is negative so sign bit notation is 1. o First convert 3.5 into a Binary of 3.5

 2 3 0.5 * 2 = 1 1 1 1 1 11

3.5 = 011.1

Mantissa field: 0111 radix in .0111 must be moved 3-bit to the right to obtain 011.1 So exponent is positive 3

The final 8-bit floating-point notation is

 1 1 1 1 0 1 1 1

3.5 decimal fractional value is using 8-bit floating-point notation is -11110111

Part B:

Decode the following 8-bit floating point binary value to decimal fractional value.

00101100

Solution:

The mantissa is: .1100

Exponent: 010 It is in 3-bit excess notation-4

-2 Exponent is negative so shift radix (.1100) left.

001100 Convert it into decimal fractional value .001100 is equal to .0011.

 . 2-1 2-2 2-3 2-4 . ½ ¼ 1/8 1/6 . 0 0 1 1

0 + 0 + 1/8 + 1/6

=0.1875

Question 2:

Perform the binary addition on the following decimal numbers:

4638 and 9278

Solution:

Convert into binary

4638=101110.0110

9278=1011100.1110

1+0=1

1+1=0 (1 carry)

1+1+1=1(1 carry)

0+1=1

 1 0 1 1 1 0 0 . 0 1 1 0 0 1 0 1 1 1 0 . 1 1 1 0 + + 1 0 0 0 1 0 1 1 . 0 1 0 0

=10001011.0100

Question 3:

The logical operations (AND, OR, NOT, and XOR etc.) discussed in the video lessons can be combined to perform some specific operations. Two such operations (circuits) are depicted in the first column “Circuits” of the following table. You are required to determine the output of each of the following circuits for the input values given in column 2 and column 3.

Solution:

 Circuits What would be the output when the upper input is 1 and the lower input is 0? What would be the output when upper input is 0 and the lower input is 1? INPUTS                                 OUTPUT Output   0 Output 0 INPUT OUTPUT Output 0 Output 1

Check Also:

CS101 Midterm Past Papers Solved

CS101 Solved Midterm Papers by Moaaz

CS101 Short Notes Midterm and Final term

Updated CS101 Handouts PDF