Thursday, April 21, 2011

Re: ::::|| VU ||:::: Spring_2011_CS302_01_Solution_By_VU

plz share CS304 idea solution

On Thu, Apr 21, 2011 at 12:50 PM, ..::ISHFAQ::.. <mc100402092@vu.edu.pk> wrote:

اسلام علیکم ورحمتہ اللہ و برکاتہ

Spring_2011_CS302_01_Solution_By_VU

Problem Statement:

 

1)    Convert 10101100 binary numbers to its decimal equivalent. (2 Marks)

 

Solution:

 

10101100 = 1x27 + 0x26 + 1x25 + 0x24 + 1x23+ 1x22 + 0x21 + 0x20

    = 1x128 + 0x64 + 1x32+ 0x16 + 1x8 + 1x4 + 0x2 + 0x1

    = 128+0+32+0+8+4+0+0

    = 172

 

2)    Convert decimal number 374 to octal number. (2 Marks)

 

Solution:

 

 

We will use repeated division method.

 

8

374

8

46 – 6

8

5 – 6

 

0 - 5

 

Now writing the reminders in the reverse order 566.

 

3)    Convert the following 0110100000111001 (BCD) in to decimal number. (2 Marks)

 

Solution:

We first of all with will write 0110100000111001 in the groups of four bits, and then will write down the decimal equivalent of each group.

 

= 0110 1000 0011 1001

     6      8       3       9

        

Our required decimal number is 6839

 

4)    Convert B2A16 to Octal (2 Marks)

Solution:

First we will convert B2A to Binary

 

1011 0010 1010

 

Now grouping into 3 bit

 

101 100 101 010

 5      4     5    2

 

We will get  5452

 

5)    Convert decimal number 3085 to hex

Solution:

 

 

16

3085

16

192 – 13

16

12 – 0

16

0 – 12

 

 

 

 

 

 

 

12   0   13

C       0      D

 

We will get C0D16

Best Wishes,
"...SUBHANALLAHI WABI HAMDIHI...SUBHANALLAH IL AZEEM..."
Muhammd Ishfaq
MCS 2nd Semester (PakPattan)

--
For study materials, past papers and assignments,
Join VU School at www.VusCool.com
and www.VUGuys.com
CoooL Virtual University Students Google Group.
To post to this group, send email to coool_vu_students@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/coool_vu_students?hl=en



--






-----------



I Can't Promise To Solve Your All Problems

But I Can Promise That You Would Not Have To Face 

Them Alone…



--
For study materials, past papers and assignments,
Join VU School at www.VusCool.com
and www.VUGuys.com
CoooL Virtual University Students Google Group.
To post to this group, send email to coool_vu_students@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/coool_vu_students?hl=en

No comments:

Post a Comment