Professional Documents
Culture Documents
Data Representation Online
Data Representation Online
gle/GyrFE9hdU35FwYpL6
Theory
Distribution of marks
Practical
Learning Outcomes
• Computational thinking and Python 45 marks
• Basics
• Strings
• Lists
• Tuples
• Dictionary
• Sorting techniques
• Computer System Organisation 10 marks
• Data Representation
• Boolean Algebra
• Understanding of computer systems
• Society, Law and Ethics 15 marks
• NCERT (http://ncert.nic.in/textbook/textbook.htm?kecs1=0-11)
i) 122
ii) 65
Task: Convert from Decimal (122)10
• to Binary ()2
• to Hexadecimal ()16
• to Octal ()8
Task: Convert from Decimal (65)10
• to Binary ()2
• to Hexadecimal ()16
(65)10= (41)16
• to Octal ()8
Convert from Binary ()2 to Decimal ()10
(111001)2 = ()10
(11110011)2 = ()10
TASK:Convert from Binary ()2 to Decimal ()10
(11110011)2 = ()10
1x27+ 1x26+ 1x25+ 1x24 + 0x23 + 0x22 + 1x21 + 1x20
128+ 64 + 32 + 16 + 0 + 0 + 2 + 1
243
Hence, (11110011)2 = (243)10
Convert from Octal ()8 to Decimal ()10
(71)8 = ()10
7x81+ 1x80
56 + 1
57
Hence, (71)8 = (57)10
TASK: Convert from Octal ()8 to Decimal ()10
(363)8 = ()10
TASK: Convert from Octal ()8 to Decimal ()10
(363)8 = ()10
3x82 + 6x81+ 3x80
192 + 48 + 3
243
Hence, (363)8 = (243)10
Convert from Hexadecimal ()16 to Decimal ()10
(39)16 = ()10
3x161+ 9x160
48 + 9
57
Hence, (39)16 = (57)10
TASK:Convert from Hexadecimal ()16 to Decimal ()10
(F3)16 = ()10
TASK:Convert from Hexadecimal ()16 to Decimal ()10
(F3)16 = ()10
15x161+ 3x160
240 + 3
243
Hence, (F3)16 = (243)10
Decimal ()10 to Binary ()2 Number System
(57.639)10 = () 2
0.639 x 2 = 1.278 1
0.278 x 2 = 0.556 0
0.556 x 2 = 1.112 1
0.112 x 2 = 0.224 0
0.224 x 2 = 0.448 0
:
:
:
(57.639)10 = (111001.10100) 2
Task: Decimal ()10 to Binary ()2 Number System
(243.7832)10 = () 2
Task: Decimal ()10 to Binary ()2 Number System
(243.7832)10 = () 2
0.7832 x 2 = 1.5664 1
0.5664 x 2 = 1.1328 1
0.1328 x 2 = 0.2656 0
0.2656 x 2 = 0.5312 0
0.5312 x 2 = 1.0624 1
:
:
:
(243.7832)10 = (11110011.11001) 2
Decimal ()10 to Octal ()8 Number System
(57.85)10 = () 8
Decimal ()10 to Octal ()8 Number System
(57.85)10 = () 8
0.85 x 8 = 6.8 6
0.8 x 8 = 6.4 6
0.4 x 8 = 3.2 3
0.2 x 8 = 1.6 1
0.6 x 8 = 4.8 4
0.8 x 8 = 6.4 6
:
:
:
(57.85)10 = (71.663146) 8
TASK:Decimal ()10 to Hexadecimal ()16 Number System
(243.85)10 = () 16
Decimal ()10 to Hexadecimal ()16 Number System
(243.85)10 = () 16
(111001.10100)2 = ()10
1x25+1x24+1x23+0x22+0x21+1x20+ 1x2-1 + 0x2-2 + 1x2-3 + 0x2-4 + 0x2-5
32 + 16 + 8 + 0 + 0 + 1 + 0.5 + 0 + 0.125 + 0 + 0
57.625
Hence,
(111001.10100) 2 = (57.639)10
Convert from Octal ()8 to Decimal ()10
(71.663)8 = ()10
Convert from Octal ()8 to Decimal ()10
(71.663)8 = ()10
7x81+ 1x80 + 6x8-1 + 6x8-2 + 3x8-3
56 + 1 + 0.75 + 0.09375+ 0.005859375
57.84
Hence,
(71.663) 8 =(57.85)10
Hexadecimal ()16 to Decimal ()10 to Number System
(F3.D99) 16 = ()10
Hexadecimal ()16 to Decimal ()10 to Number System
(F3.D99) 16 = ()10
(F3.D99) 16 = (243.85)10
Binary ()2 to Octal ()8 Number System (8=23)
(111001.10100) 2 = ()8
X Y Z
Incomplete 0 0 0 0
group 0 0 1 1
111 001 . 101 00 0 1 0 2
0 1 1 3
111 001 . 101 000 4
1 0 0
1 0 1 5
7 1 . 5 0 1 1 0 6
1 1 1 7
2 6 0 2 7 1
8/2=4/2=2/2=1
2 3 1 2 3 1
1 1
Binary ()2 to Octal ()8 Number System
(111001.10100) 2 = ()8
X Y Z
Incomplete
0 0 0 0
111 001 . 101 00 group
1
0 0 1
111 001 . 101 000 0 1 0 2
0 1 1 3
1 0 0 4
7 1 . 5 0
1 0 1 5
Octal ()8 to Binary ()2 Number System
1 1 0 6
(7 1 . 5 0)8 to Binary Number()2 1 1 1 7
2 6 0 2 7 1
7 1 . 5 0 2 3 1 2 3 1
1 1
A : 65 0 : 48
B : 66 1 : 49
C : 67 :
: 9 : 57
Z : 90 Backspace : 8
a : 97 Carriage return: 13
b : 98
:
Out of 128, Ninety-five of the encoded characters are
z : 122 printable: these include the digits 0 to 9, lowercase
letters a to z, uppercase letters A to Z, and punctuation
symbols. In addition, the original ASCII specification
included 33 non-printing control codes
Encode the word DATA and convert the encoded value into binary values
which can be understood by a computer.
Encode the word DATA and convert the encoded value into binary values
which can be understood by a computer.
Riya sent the following message encoded in ASCII code to her friend Diya.
Diya is not able to decode the message….could you try!!
1001000 1000101 1001100 1010000
The following is the message encoded in ASCII code. What is the message?
72 69 76 80 Decimal Equivalents
The following is the message encoded in ASCII code. What is the message?
72 69 76 80 Decimal Equivalents
H E L P
ISCII
Indian Standard/Scripts Code for Information Interchange
• UTF-32 uses 32-bit values for each character. That allows them to use a fixed-width code for every
character.
• UTF-32 uses four bytes per character regardless of what character it is, so it will always use more
space than UTF-8 to encode the same string.
• UTF-16 uses 16-bit by default, but that only gives you 65k possible characters, which is nowhere near
enough for the full Unicode set.
>>> for i in range(2304,2388):
print(chr(i),end=' ')
ऀऀऀऀ ऄअआइईउऊऋऌऍऎएऐऑऒओऔकखगघङचछजझञटठडढणतथदधनऩपफबभमयरऱलळ
ऴ व श ष स ह ऀ ऀ ऀ ऽ ऀ िऀ ऀ ऀ ऀ ऀ ऀ ऀ ऀ ऀ ऀ ऀ ऀ ऀ ऀ ऀ ॎऀ ऀ ॐ ऀ ऀ ॓
ऀऀऀऀ ऄअआइईउऊऋऌऍऎएऐऑऒओऔकखगघङचछजझञटठडढणतथदधनऩपफबभमयरऱलळ
ऴ व श ष स ह ऀ ऀ ऀ ऽ ऀ िऀ ऀ ऀ ऀ ऀ ऀ ऀ ऀ ऀ ऀ ऀ ऀ ऀ ऀ ऀ ॎऀ ऀ ॐ ऀ ऀ ॓ ॔ ऀ ऀ ऀ क़ ख़ ग़ ज़ ड़ ढ़ फ़ य़ ॠ ॡ ऀ ऀ । ॥ ० १ २ ३ ४ ५
६७८९॰ॱॲॳॴॵॶॷॸॹॺॻॼॽॾॿ
ऀऀऀ ਅਆਇਈਉਊਏਐਓਔਕਖਗਘਙਚਛਜਝਞਟਠਡਢਣਤਥਦਧਨਪਫਬਭਮਯਰਲਲ਼
ਵ ਸ਼ ਸ ਹ ऀ ऀ ਿऀ ऀ ऀ ऀ ऀ ऀ ऀ ऀ ऀ ੑ ਖ਼ ਗ਼ ਜ਼ ੜ ਫ਼ ੦ ੧ ੨
੩੪੫੬੭੮੯ऀऀੲੳੴੵ੶
>>> for i in range(3328, 3328+128):
print(chr(i),end=' ')
ഀऀऀ ऀ അആഇഈഉഊഋഌഎഏഐഒഓഔകഖഗഘങചഛജഝഞടഠഡഢ
ണ ത ഥ ദ ധ ന ഩ പ ഫ ബ ഭ മ യ ര റ ല ള ഴ വ ശ ഷ സ ഹ ഺ ഻ ഼ ഽ ऀ ऀ ऀ ऀ ऀ ऀ ऀ െऀ േऀ ൈऀ
െऀ േऀ െऀ ऀ ऀ ൏ ൔ ൕ ൖ ऀ ൘ ൙ ൚ ൛ ൜ ൝ ൞ ൟ ൠ ൡ ऀ ऀ ൦ ൧ ൨ ൩ ൪ ൫ ൬ ൭
൮൯൰൱൲൳൴൵൶൷൸൹ൺൻർൽൾൿ
ADDITIONAL INFORMATION
BINARY ADDITION NOT IN SYLLABUS THIS YEAR
BINARY ADDITION
BINARY ADDITION
BINARY ADDITION
☺☺☺☺☺☺☺☺☺☺☺☺☺☺☺