Latest Activity In Study Groups

Join Your Study Groups

VU Past Papers, MCQs and More

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

Views: 1095

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

RSS

Looking For Something? Search Below

Top Trends 

Latest Activity

Hania Khalid Shariff is now a member of Virtual University of Pakistan
9 hours ago
saba zulfqar and Mr Siren Head are now friends
12 hours ago
Zeeshan Riaz left a comment for Saima
18 hours ago
Profile IconShehzad Ali, Sehar and Saima joined Virtual University of Pakistan
yesterday
Mr Siren Head replied to Mani Siddiqui's discussion مشکل پاسورڈ
Wednesday
Mr Siren Head replied to Mani Siddiqui's discussion مشکل پاسورڈ
Wednesday
+ I A commented on + M.Tariq Malik's page Chit Chat Wall
Wednesday
Mr Siren Head commented on + M.Tariq Malik's page Chit Chat Wall
Wednesday

VIP Member Badge & Others

How to Get This Badge at Your Profile DP

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

Management: Admins ::: Moderators

Other Awards Badges List Moderators Group

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

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service