# Essay about Unit 1 Labs JS

Submitted By Jin-Situ
Words: 691
Pages: 3

Lab 1.1:
1. 103 102 101 100

1000 100 10 1 * * * * 2 9 3 1

2000 + 900 + 30 + 1 = 2931
2. 22 21 20

4 2 1 * * * 1 1 0

4 + 2 + 0 = 6
3. 21 20

2 1 * * 1 1

2 + 1 = 3
4. 24 23 22 21 20

16 8 4 2 1 * * * * * 1 0 0 1 0

16 + 0 + 0 + 2 + 0 = 18
5. 27 26 25 24 23 22 21 20

128 64 32 16 8 4 2 1 * * * * * * * * 1 1 1 0 0 0 1 0

128 + 64 + 32 + 0 + 0 + 0 + 2 + 0 = 226
6. 156/2=78 (0)
78/2=39 (0)
39/2=19...1(1)
19/2=9….1(1)
9/2=4…...1(1)
4/2=2 (0)
2/2=1 (0)
1/2=0 (1)
156 = 10011100

7. 255/2=127..1(1)
127/2=63…1(1)
63/2=31…..1(1)
31/2=15…..1(1)
15/2=7……1(1)
7/2=3……..1(1)
3/2=1……..1(1)
1/2=0 (1)
255 = 11111111

8. 200/2=100 (0)
100/2=50 (0)
50/2=25 (0)
25/2=12…..1(1)
12/2=6 (0)
6/2=3 (0)
3/2=1……..1(1)
1/2=0……..1(1)
200 = 11001000

9.

10.

11.

12. Lab 1.2:
1. 110 +1001 =110110
2. 110 +101
=11110
3. 111 +111 =110001
4. 100
011
=111
5. 111
100
=100
6. 1001 = 0110
7. 1010 +10 =10100 It auto 2 become 1.
8. 1100
+1111
=1100
The produces a value of true if both of its operands are true.
9. 1100
1111
=1111 The produces a value of true if at least one of its operands is true. Both 0 or 1.

Lab 1.3:
1. 255, 65535.
2. 6633
Start from the 2^7 and 2^8.
3. 122880 bytes
4. 16G*1024MB*1024KB*1024 bits/32 bits = 4026531840
5. 110110 = 011 & 110 = 36
6. f = 15, 6 = 6
6*16^0+ f*16^1=246
Lab 1.4:
1. 0000
Because it part of the ASCII hexadecimal code and it is important for the text to show some space for it.

2.

3. K = 4b b*16^0+4*16^1=75 75/2=37…….(1)
37/2=18…….(1)
18/2=9……...(0)
9/2=4……….(1)
4/2=2……….(0) 2/2=1……….(0) 1/2=0……….(1)
Decimal: 75
Binary: 1001011
4. Because Xerox, Apple and other software makers composed of Unicode Union in 1988. The former developed ISO / IEC 10646 project, which