Unit 2 Binary System
Unit 2 Binary System
Q.1. What is meant by Number System? Write in decimal, binary, and hexadecimal the time of
Ans: A number system is a set of symbols or digits which your:
is used to count things or to represent numbers and
quantities. •arrival at school •Lunch •playing
Q.2. What is Decimal Number System?
Ans: The Decimal Number System has base 10as it uses Decimal Binary Hexadecimal Decimal Binary Hexadecimal
10 digits [o to 9]. It is also called positional number 0 0 0
system. In this system 864 can be written as 1 1 1 11 1011 B
468= 4x 102 + 6 x 101 + 4 x 100
2 10 2 12 1100 C
1247= 1x 103+2x 102 + 4 x 101 + 7 x 100 3 11 3 13 1101 D
Decimal Number system is also called Hindu-Arabic or 4 100 4 14 1110 E
Arabic, number System in mathematics. 5 101 5 15 1111 F
Q.3. What is Binary Number System? 6 110 6 16 10000 10
Ans: It uses only two digits 0 and 1 due to which it is 7 111 7 17 10001 11
known as binary number system. It has base 2. Every 8 1000 8 18 10010 12
binary digit is called Bit. In this number system binary 9 1001 9 19 10011 13
value of the letter „A‟ is 01000001 is decimal value is 65. 10 1010 A 20 10100 14
Q.4. What is Hexadecimal Number System?
Ans: This system has sixteen digits (0,1,…9, ,A,B,C,D,E
& F ) where A=11, B=12, C=13, D=14,E=15 and F=16.
This system has base 16. Q.7. How Decimal number is converted to
Q.5. How Decimal number is converted to Binary Hexadecimal number? 16 69610
number? Ans: Divide decimal number
2 156 16 4350 - -A
Ans: Divide decimal number by 16 and take quotient and
2 78 - -0 remainder. Dividing the 16 271- -E
by 2 and take quotient and
remainder. Dividing the 2 39- -0 quotient by 16 until 0 16 16- -F
quotient by 2 until 0 2 19- -1 remainder achieved. Write all 16 1- -0
remainder achieved. Write all 2 remainders in reverse order to 16 0- -1
9- -1
remainders in reverse order to 2 obtain the binary number.
4- -1
obtain the binary number. Here remainder A represent 10, E to 14 and F to 15
2 2- -0 So (69610)10 = (10FEA)16
2 1- -0 Q.8. How Hexadecimal number is converted to
156 10 = 100111002.
2 0- -1 Decimal number?
Step 1. Write hexadecimal number.
Q.6. How Binary number is converted to Decimal Step 2. List the power of sixteen from right to left starting
number? with 0.
Ans: Step 3. Multiply 16‟s corresponding powers to each
Step 1. Write binary number. hexadecimal value .
Step 2. First multiply each bit by 2 and put the + sign in Step 4. Compute each value.
between them. Step 5. Add all the values.
Step 3. Starting from 0 write the power from right to left Step 6. Write the answer along with its base.
on each multiplied 2. Convert )C921) 16 to decimal
Step 4. Compute each value. = C X 163 +9 X 162+2 X 161+1X160
Step 5. Add all the values. = 12 X 163 + 9 X 162+2 X 161+1X160
Step 6. Write the answer along with its base subscript. = 12 X 4096 + 9 X 256 + 2 X 16 + 1 X 1
Convert )1000001(2 to decimal = 49152+2304+32+1
6 5 4 3 2 1 0 = (51489)10
= 1x2 +0x2 +0x2 +0x2 +0x2 +0x2 +1x2
= 64+0+0+0+0+0+1 Q.9. How Hexadecimal number is converted to
= (65)10 Binary number?
Ans: Step 1. Write each hexadecimal digit separately.
Step 2. Put suitable binary code against each digit using
the table
.
Abdul Rehman S.S.T(I.T)
Govt. Jamia Qasim-Ul-Uloom H/S Sargodha
1
Unit No. 2 Binary System Computer Science 9th
Q.19. What are Internal & External Storage devices? Q.25. What are truth Values?
External Storage Internal Storage Ans: Every proposition takes one of two values true or
1. It is a plug and play 1. It is not a plug and play false, each value is called truth value. For Example;
device. device. P= “ Islamabad is a Capital of Pakistan ” True value is
2. After connecting to assigned to P. Q = “ Sun rises in west ” false value is
2. After connecting to
computer there is need to
computer no need to turn assigned to Q
turn off the computer to use
off the computer to use it. Q.26. What is Truth Table?
it.
3. These are not connected 3. These are connected to Ans: The Truth Table shows all the possible results of
to fixed slot. some fixed slots proposition as true or false.
4. Example USB, External 4. Examples Hard disk, Q.27. What are Logical operations?
Hard disk etc. RAM etc Ans: Logical operators are the symbols / operators which
perform logical operation on proposition.
Q.20. Differentiate between Memory & Storage. Q.28. Write a note on AND Operator.
Ans: Ans: AND operator is used Truth Table of AND
Memory Storage for logical multiplication. It X Y X AND Y
1. Place where an 1. Usually the place where is represented by a dot (.). If 0 0 0
application loads its data data is stored for long or the entire propositions are 0 1 0
during processing. short term. True (1) then it displays the 1 0 0
2. Temporary storage 2. Permanent storage output True (1). If just single 1 1 1
device device proposition is False (0) it
3. lesser in size 3. Greater in size displays the output False (0).
4. High accessing speed 4. Low accessing speed Q.29. Write a note on OR Operator.
5. it is called Primary 5. It is called Secondary Ans: OR operator is used for logical addition. It is
Memory Memory represented by a plus sign Truth Table of OR
(+). If just single proposition X Y X OR Y
Q.21. How the size of computer memory is measured? is True (1) then it displays 0 0 0
Ans: the output True (1). If the 0 1 1
entire propositions are False 1 0 1
(0) then it displays the output 1 1 1
False (0).
Q.30. Write a note on NOT Operator.
Ans: NOT operator is used to find Truth Table of
complement of proposition. It is NOT
represented by a dash (-) sign at the X Not (X)
top of the variable. It reverses the 0 1
proposition result, means 0 into 1 and 1 0
1 into 0.
Q.31. What are Logical Expressions?
Ans: A logical operator when applied to some Boolean
Q.22. What is Boolean Algebra? propositions logical expression is achieved. Like
Ans: In 1854 English mathematician George Boole ( )
introduced a type of algebra which was very simple and Q.32. Make a Truth Table for Complex Boolean
easy for human being. It uses symbols to represent logical expression?
statements instead of words. Ans: Complex
Q.23. What is Boolean Proposition? X Y NOT (X) NOT (X) AND Y
boolean
Ans: A sentence that can be true or false. For Example; T T F F
expression can
“ I play chess ”, “ I will get A+ grade in board exam ” are be made by T F F F
propositions but “ How are you ? ” & “ Close the Door ” combining F T T T
are not the propositions. logical F F T F
Q.24. What is Compound Proposition? operators. Like;
Ans: Combination of more than one proposition with
logical operators is called compound proposition.