www.vustudents.ning.com

We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.

# CS101 Assignment 01 Spring 2021 Solution / Discussion Due Date: 24-05-2021

CS101 Assignment 01 Spring 2021 Solution / Discussion Due Date: 24-05-2021

Views: 1080

### Replies to This Discussion

Is there anyone here who actually knows how the answers of Question 1 are achieved. I see all of them wrong. Open for discussion

Course Code: CS101

Student ID: BC200403365

Solution

1. Determine the contents of register 1 when the machine halts.

ANS = 15

1. Write down the bit pattern (in hexadecimal) at memory address F3 when the Halt instruction is executed.

ANS=0705

1. How many times the machine instruction at address EE is executed before the machine halts.

ANS = 6

1. Determine the contents of register 0 after the instruction at address EC is executed.

ANS=00

1. Determine the contents of register 2 when the instruction at address F0 is

ANS=07

Question No.2

1. Perform binary addition on given numbers:

20 161 and 7 14.

1. Convert the following binary number into ASCII code and then into its equivalent decimal representation.

01001001010000010100110101011100

Part (a)

 24 23 22 21 20 Radix 2-1 2-2 2-3 2-4 16 8 4 2 1 ½ ¼ 1/8 1/18 1 0 1 0 1 1 0 1 0

Ans== 10101.1010

 22 21 20 Radix 2-1 2-2 4 2 1 ½ ¼ 1 0 1 1 0

Ans== 101.10

10101.1010

101.10

100101.0010

Part (b)

 27 26 25 24 23 22 21 20 Answer 128 64 32 16 8 4 2 1 0 1 0 0 1 0 0 1 73 0 1 0 0 0 0 0 1 65 0 1 0 0 1 1 0 1 77 0 1 0 1 1 1 0 0 92

73 = I

65 = A

77 =M

92 = /

IAM/= 01001001010000010100110101011100  ANS

The solution required CS-101 Assignment No 02Spring%202021_CS101_2.pdf

1

2

3

4

5

## VIP Member Badge & Others

------------------------------------

## Latest Activity

19 minutes ago
39 minutes ago
Mr. Khan! liked ＋ ꜞꜞ STrAnGEr ꜞꜞ ＋'s discussion must read
39 minutes ago
39 minutes ago
39 minutes ago
+Ðêå†h†å§†ï¢+ and Mr Siren Head are now friends
1 hour ago
Elegant left a comment for Aleena Malik
2 hours ago
Elegant liked Aleena Malik's profile
2 hours ago