0% found this document useful (0 votes)
29 views5 pages

Unit 2 Binary System

The document discusses different number systems including binary, decimal, and hexadecimal. It provides explanations and examples of how to convert between these number systems. Key questions and answers are provided about computer memory and ASCII codes for data representation.

Uploaded by

JAMIA QASIM
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views5 pages

Unit 2 Binary System

The document discusses different number systems including binary, decimal, and hexadecimal. It provides explanations and examples of how to convert between these number systems. Key questions and answers are provided about computer memory and ASCII codes for data representation.

Uploaded by

JAMIA QASIM
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Unit No.

2 Binary System Computer Science 9th

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

Step 3. Combine all binary Values . Q.11. What is Computer Memory?


Ans: Any physical device capable of storing data is called
Hexadecimal Binary computer memory. It has two types
0 0000 1. Volatile Memory
1 0001 2. Non-Volatile Memory
2 0010 Q.12. Write a note on Volatile Memory .
3 0011 Ans: A memory which holds data as long as power
4 0100
supplied to it and as the power supply is disconnected all
5 0101
data in it is cleared is
6 0110
called Volatile
7 0111
8 1000
memory (Primary
9 1001 Storage). Best
A 1010 example of it is
B 1011 RAM.
C 1100
D 1101 Q.13. Write a note on Non-volatile Memory.
E 1110 Ans: A memory which holds data even if it is no
F 1111
connected to power source
is called Non-volatile
Convert )A23(16 to Binary
Memory (Secondary
A = 1010
Storage). Hard drive, flash
2 = 0010
drive, and memory card are
3 = 0011
examples of it.
(101000100011)2
Convert (70C558)16 to Binary
Q.14. How data is represented in memory?
7 = 0111
Ans: Digital computer stores data in binary form. Data
0 = 0000
may be in the form of text, picture, movie or an
C = 1100
application. Computer stores it in 0s and1s form
5 = 0101
Q.15. Write a note on ASCII Code?
5 = 0101
Ans: All characters on keyboard have an associated code
8 = 1000
in binary. This code is called ASCII code. It is a de-facto
(01110001100010101011000)2
standard for data representation. For capital A is 65, for B
Q.10. How Binary number is converted to
is 66 for small a is 97 for small b is 98.
Hexadecimal number?
Q.16. What does ASCII Stands for?
Ans: Make pairs of each four bits from right to left of
Ans: ASCII stands for American Standard Code for
given binary numbers. Replace every pair to suitable
Information Interchange.
hexadecimal digit.
Q.17. Write an ASCII code for word “Pakistan”.
Convert (110001100010101011000)2 to hexadecimal
Ans:
number
110001100010101011000
0011 0001 1000 1010 0101 1000
For 0011 hexadecimal is 3
For 0000 hexadecimal is 0
For 1100 hexadecimal is C
For 0111 hexadecimal is 7
For 0101 hexadecimal is 5
For 0101 hexadecimal is 5
For 1000 hexadecimal is 8
So (110001100010101011000)2 in hexadecimal is Q.18. What is storage device?
(30C7558)16 Ans: A computer hardware used for storing, porting and
extracting data is called storage device. Storing may be
temporary or permanent.

Abdul Rehman S.S.T(I.T)


Govt. Jamia Qasim-Ul-Uloom H/S Sargodha
2
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.

Abdul Rehman S.S.T(I.T)


Govt. Jamia Qasim-Ul-Uloom H/S Sargodha
3
Unit No. 2 Binary System Computer Science 9th

Q.33. What is Commutative Law? EXERCISE


Ans: The order of application of two separate Choose the correct option.
prepositions is not important So, 1) Expression (A + B) . (A + C) is equal to………
A+B = B+A & A.B= B.A i A + (BC) ii A.B + A C
Truth Table of Truth Table of iii A.(B. C) iv A + (B + C)
A.B = B.A A+B = B+A 2) The order of application of two separate terms is
A B A.B B.A A B A+B B+A not important in……………...
0 0 0 0 0 0 0 0
0 1 0 0 0 1 1 1 i Associative Law ii Distributive Law
iii Commutative Law iv Identity Law
1 0 0 0 1 0 1 1 3) "Is it cold outside" is …………… proposition
1 1 1 1 1 1 1 1 i Boolean ii Categorical
Q.34. What is Associative Law? iii Moral iv None of above
Ans: According to this law there is no change in 4) Number "17" is equal to………. in binary system.
Ans:
results if a grouping of expression is changed. i 10000 ii 10110
iii 10001 iv 10100
A + (B + C) = (A + B) + C & A. (B.C) = (A.B) .C 5) Hexadecimal system has total……….numbers.
i 17 ii 16
A B C A.B (A.B).C B.C A.(B.C)
iii 18 iv 15
0 0 0 0 0 0 0
0 0 1 0 0 0 0 Fill in the blanks.
0 1 0 0 0 0 0 1) Temporary memory is………… and permanent
0 1 1 0 0 0 0 memory is ………….
1 0 0 0 0 0 0 2) Data to a processor is provided through…………
1 0 1 0 0 0 0 3) At least…………byte is required to store any piece of
1 1 0 1 0 0 0 information in a computer's memory.
1 1 1 1 1 1 1 4) ………… is used to assemble more than one
proposition into one proposition.
5) In primary and secondary storages, data is stored in
Q.35. What is Distributive Law?
the form of…………
6) According to…………law there is no change in
Ans: This law discussed in tow way i.e.
“ AND over OR ” A.(B + C) = A.B + A.C & results if priority of expressions is changed.
“ OR over AND ” A + (B.C) = (A + B).(A + C)
Answer the following questions.
A B C A.B A.C A.B+A.C B+C A.B+C
0 0 0 0 0 0 0 0 1) Convert (69610)10 to Hexadecimal.
0 0 1 0 0 0 1 0 Ans:
0 1 0 0 0 0 1 0
0 1 1 0 0 0 1 0
1 0 0 0 0 0 0 0
1 0 1 0 1 1 1 0
1 1 0 1 0 1 1 1
1 1 1 1 1 1 1 1

Q.36. What is Identity Law?

Ans: If a variable is OR ed with false , the


result always equal to variable & 2) Differentiate between volatile and non-volatile
If a variable is AND ed with True , the result memory
always equal to variable i.e. Ans: see question no. 12 & 13
A AND True = A & AOR false = A
A AND True 3) Store the word "Phone" in computer memory starting
A AOR false
from address 7003 where each letter needs one byte to
False False False store in the memory.
True True True
Abdul Rehman S.S.T(I.T)
Govt. Jamia Qasim-Ul-Uloom H/S Sargodha
4
Unit No. 2 Binary System Computer Science 9th

4) Differentiate between temporary and permanent


storage.
Ans: see question no. 20

5) Write the truth table for X AND Y where


X = It is sunny Y = Today is Monday

Perform the following conversions


(ABCD)16 to binary
(0010110010001101001)2 to hexadecimal
Teacher will display a chart where alphabets and their
codes are written. Class is divided into two groups and
each group writes at least 5 names in binary format. The
famous names are selected from Pakistan Independence
movement e.g., "Molana Muhammad Ali Johar". Both
groups exchange their data and produces original names.
The group which deciphers the code to actual names in
less time will win.

Abdul Rehman S.S.T(I.T)


Govt. Jamia Qasim-Ul-Uloom H/S Sargodha
5

You might also like