CS101 Assignment 1 Solution 2021 - Introduction to Computing Assignment

 

CS101 Assignment 1 Solution 2021


We Provide you here CS101 Assignment 1 Solution 2021. View your Latest Assignment Solution and Download your Solution File Easily. Get to View CS101 Assignment 1 Solution Spring 2021.


First Check Here


Latest Complete CS101 Assignment 1 Solution 2022



 CS101 ASSIGNMENT 1 SOLUTION SPRING 2021



SUBMIT ASSIGNMENT FORMAT


Submit your assignment in .doc or Docx format only.



QUESTION NO 1:


Given is a snapshot of memory addresses E2 to F4 and CPU registers 0 to F. All bit patterns in the memory cells are represented in hexadecimal notation.

Download CS101 Assignment 1 Solution 2021
CS101 Assignment 1 2021



Assume that the Program Counter has E2 as its initial value. Using the information provided in the above Figure 1, answer the following questions. 


Note: Use the table provided in Appendix C on page 581 of the book.


SOLUTION:

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

ANSWER:

15


Q.2) Write down the bit pattern (in hexadecimal) at memory address F3 when the halt instruction is executed.

ANSWER: 

0705

Q.3) How many times the machine instruction at address EE is executed before the machine halts

ANSWER: 

6


Q.4) Determine the contents of register 0 after the instruction at address EC is executed.

ANSWER:

91


Q.5) Determine the contents of register 2 when the instruction at address F0 is executed.

ANSWER:

07






QUESTION NO 2:


a. Perform binary addition on given numbers: 


SOLUTION:


Find 20116


24

23

22

21

20

Radix

2-1

2-2

2-3

2-4

16

8

4

2

1


12

14

18

116

1

0

1

0

0


0

0

0

1

The final Answer is 20 116=10100.0001



Find 714

22

21

20

Radix

2-1

2-2

4

2

1


12

14

1

1

1


0

1

The final Answer is 7 14=111.01


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


01001001010000010100110101011100



SOLUTION:

Divide from left in 8 Characters

01001001

01000001

01001101

01011100

27

26

25

24

23

22

21

20


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 =\

So

01001001010000010100110101011100 = IAM/s



DOWNLOAD SOLUTION FILE






PLEASE NOTE:

Don't copy-paste the same answer.

Make sure you can make some changes to your solution file before submitting copy-paste solution will be marked zero.

If you found any mistake then correct yourself and inform me.

Before submitting an assignment check your assignment requirement file.

If you need some help and question about files and solutions.


CS101 Assignment 1 Solution 2021

Download CS101 Assignment 1 Solution 2021

CS101 Assignment 1 Solution Spring 2021



Post a Comment

1 Comments