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 Name: Muhammad Ahsan

Student ID: BC200403365

Solution

Answers of Questions No.1

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

Answer of Question.2

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

Binary addition

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

How to Get This Badge at Your Profile DP

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

Management: Admins ::: Moderators

Other Awards Badges List

## Latest Activity

Naveed Ahmad Shah posted a status
"when admission will start for autumn 2021"
23 minutes ago
Naveed Ahmad Shah joined + M.Tariq Malik's group

### CS101 Introduction to Computing

25 minutes ago
Naveed Ahmad Shah updated their profile
27 minutes ago
Dimple Girl posted discussions
37 minutes ago
Mr R updated their profile
44 minutes ago
50 minutes ago
51 minutes ago
52 minutes ago

© 2021   Created by + M.Tariq Malik.   Powered by