www.vustudents.ning.com

 www.bit.ly/vucodes + Link For Assignments, GDBs & Online Quizzes Solution www.bit.ly/papersvu + Link For Past Papers, Solved MCQs, Short Notes & More

# cs101 assignmnt solution

CS101

ASSIGNMENT NO 1

Q no 1 solution:

Convert the decimal no into binary and then again into binary:

i)4789

Conversion into binary:

 Deviser Dividend Reminder 2 4789 1 2 2394 0 2 1197 1 2 598 0 2 299 1 2 149 1 2 74 0 2 37 1 2 18 0 2 9 1 2 4 0 2 2 0 2 0 1

4789=(1001010110101)2

Binary to decimal no:

(1001010110101)2=1.212+0.211+0.210+1.29+0.28+1.27+0.26+1.25+1.24+0.23+1.22+0.21+1.20

(1001010110101)2=4096+0+0+512+128+0+32+16+0+4+0+1

(1001010110101)2=4789

ii)8735

 Deviser Dividend Reminder 2 8735 1 2 4367 1 2 2183 1 2 1091 1 2 545 1 2 272 0 2 136 0 2 68 0 2 34 0 2 17 1 2 8 0 2 4 0 2 2 0 2 0 1

_8735=(10001000011111)2

Binary to decimal:

(10001000011111)2=1.214+0.213+0.212+0.211+1.210+0.29+0.28+0.27+0.26+1.25+1.24+1.23+1.22+1.21+1.20

(10001000011111)2=_(8192+0+0+0+512+0+0+0+0+16+8+4+2+1)

(10001000011111)2=_8735

Q NO2 SOLUTION:

Solve Boolean expression:

[(A⊕D).(A+B)].[( B ̅+C ̅) ⊕(B+C+D)]

 A B C D 0 0 0 0 0 0 1 0 1 0 0 0 0 0 1 1 0 1 1 0 0 0 0 0 1 0 0 0 1 1 0 0 0 0 0 1 1 1 0 1 1 0 0 0 0 1 0 0 0 1 1 1 0 0 0 0 1 0 1 1 1 1 1 0 1 0 0 1 1 0 0 1 0 1 1 0 0 0 1 1 1 1 1 0 1 1 1 1 1 0 0 0 1 1 1 0 1 1 1 1 0 0 1 0 1 1 1 0 0 0 1 0 1 0 0 1 1 1 0 0 0 1 0 1 1 0 1 1 1 0 0 0 1 1 0 0 1 1 1 0 1 1 1 1 1 0 1 0 1 1 1 0 0 0 1 1 1 0 1 1 0 1 1 1 1 1 1 1 1 0 1 0 1 1 0 0

+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

Views: 487

1

2

3

4

5

## Latest Activity

Muhammad Zeeshan Fayyaz and Salaar joined Virtual University of Pakistan
41 minutes ago
42 minutes ago
42 minutes ago
+ M.Tariq Malik added a discussion to the group PSY632 Theory & Practice of Counseling

### PSY632 Theory & Practice of Counseling Assignment No 02 Fall 2020 Solution / Discussion

44 minutes ago
49 minutes ago
Muniba shahid, H@di_a and 2 other members joined + M.Tariq Malik's group

### CS411 Visual Programming

50 minutes ago
Saba Shahzadi joined + M.Tariq Malik's group

### PSY515 Cross Cultural Psychology

55 minutes ago
1 hour ago
+ M.Tariq Malik added a discussion to the group CS625 Professional Practices

1 hour ago