Number System Boolean Algebra
Number System Boolean Algebra
INFO@AMIESTUDYCIRCLE.COM
WHATSAPP/CALL: 9412903929
AMIE(I) STUDY CIRCLE(REGD.)
COMPUTING AND INFORMATICS
NUMBER SYSTEM AND BOOLEAN ALGEBRA A Focused Approach
OCTAL SYSTEMS
Binary system is very convenient system for the present computers as they deal in terms of 0’s and 1’s. The
representation of binary numbers to external world can be made compact with the help of octal and
hexadecimal systems. A group of 3 bits will be able to represent 23 = 8 different possibilities. We can use eight
symbols say 0,1,2,3,4,5,6 & 7 to represent these sequences of 3 bits. Such a system of eight symbols is called
octal system. Similarly, a group of 4 bits will be representing 24 = 16 combinations. To represent 16
sequences of 4 bit each we can use 16 symbols say 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E & F. decimal system
equivalent of A is 10, B is 11, c is 12, D is 13, E is 14 and F is 15. A number system with 16 symbols is
known as hexadecimal are also positional number systems.
SECOND FLOOR, SULTAN TOWER, ROORKEE – 247667 UTTARAKHAND PH: (01332) 266328 Web: www.amiestudycircle.com 1/48
AMIE(I) STUDY CIRCLE(REGD.)
COMPUTING AND INFORMATICS
NUMBER SYSTEM AND BOOLEAN ALGEBRA A Focused Approach
Octal to Decimal. To convert as octal number to a decimal number we use the polynomial but this time the
radix will be 8. For example, 234 in octal is 2x82+ 3x81+ 4x80 = 128 + 24 + 4 = 156 in decimal. Octal number
15.24 is 1x81+ 5x80+ 2x8-1+ 4x8-2= 8 + 5 +2/8 + 4/64 = 13.3125 in decimal.
Binary to Octal. Since 3 bits are taken at a time is one octal digit, a given binary number can be directly
converted in octal by making group of three size bits each starting from octal point. For instance, 101011 in
binary is 53 in octal, 1110001 in binary is 161 in octal (add two leading zeros to complete the last group of 3
bits), (1110100.0100111 in binary is 164.234 in octal.
Octal to Binary. An octal number can be converted into its binary equivalent by replacing each octal digit with
its three-bit binary equivalent. We take the three-bit equivalent because the base of the octal number system is 8
and it is the third power of the base of the binary number system, i.e. 2. All we have then to remember is the
three-bit binary equivalents of the basic digits of the octal number system. (i) Create a look up table with 8
entries and their corresponding 3 bit binary code (ii) separate each octal digit from the given number and using
look up table find binary value and print it (iii) repeat step (ii) until all the digits are converted into binary.
HEXADECIMAL NUMBERS.
In principal, Hexadecimal numbers work in the exact same way as decimal numbers do. Nearly all the same
rules apply. The main difference is that there are more symbols. In the case of Hexadecem, Latin for 16, there
are 16. The first ten are old faithful 0, 1, 2, 3, 4, 5, 6, 7, 8 and 9. The six new ones are A, B, C, D, E, F. Just like
we made a little counting table for Decimal, we can make one for Hexadecimal as well:
0 1 2 3 4 5 6 7 8 9 A B C D E F
10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F
20 21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F
Apart from the difference in the symbols and the different number of them, the Math rules in Hexadecimal,
which we will from now on simply call Hex, are the same as the rules in Decimal. In Hexadecimal math, 4+1=5
and 6 + 3 = 9 and 9 + 3 = C. As in Decimal math, you add an MSD to the left in Hex when you run out of
Symbols, example in Hex: C +5 = 11 and Hex 11 + 3C = 4D. Although this sounds simple and logical, our
brain has trouble with it since we are trained in decimal!
Following table shows equivalences between hexagonal, binary and decimal digits.
Decimal Binary Hexagonal
0 0000 0
1 0001 1
2 0010 2
3 0011 3
4 0100 4
SECOND FLOOR, SULTAN TOWER, ROORKEE – 247667 UTTARAKHAND PH: (01332) 266328 Web: www.amiestudycircle.com 2/48
AMIE(I) STUDY CIRCLE(REGD.)
COMPUTING AND INFORMATICS
NUMBER SYSTEM AND BOOLEAN ALGEBRA A Focused Approach
5 0101 5
6 0110 6
7 0111 7
8 1000 8
9 1001 9
10 1010 A
11 1011 B
12 1100 C
13 1101 D
14 1110 E
15 1111 F
Hexadecimal Arithmetic. Covert hexadecimal number to binary number and then apply arithmetic operations.
RADIX
The total number of digits applicable to any system is called its radix. It is always one more than the highest
digit of the system. The digits of various types of number system are as under:
1. Binary system 0,1
2. Octal system 0, 1, 2, 3, 4, 5, 6, 7
3. Decimal system 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
4. Hexa-Decimal system 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F.
CONVERSION OF NUMBERS
Conversion of a number from any system to decimal system
Let us study the formation of the number 1970 in decimal system.
(1970)10 1x103 9 x102 7 x101 0 x100
1000 900 70 0 1970
(i) Convert binary number (111)2 into decimal system.
(111) 2 1x 22 1x 21 1x 20 4 2 1 (7)10
(ii) Convert octal number (1654)8 into decimal system
(1654)8 1x 83 6 x 82 5 x 81 4 x 80 512 384 40 4 (940)10
(iii) Convert Hexa-decimal number (123)16 to decimal system
(123)16 1x162 2 x161 3 x160 256 32 3 (291)10
SECOND FLOOR, SULTAN TOWER, ROORKEE – 247667 UTTARAKHAND PH: (01332) 266328 Web: www.amiestudycircle.com 3/48
AMIE(I) STUDY CIRCLE(REGD.)
COMPUTING AND INFORMATICS
NUMBER SYSTEM AND BOOLEAN ALGEBRA A Focused Approach
Conversion of a number from decimal system to other systems
The number of any system, may be converted to decimal system by the following two methods.
1. Remainder method
2. Power method
These methods will be discussed in the classified examples.
Example
Remainder Method
The radix of binary system is 2.
2 940
2 470 0
2 235 0
2 117 1
2 58 1
2 29 0
2 14 1
2 7 0
2 3 1
2 1 1
i.e. (940)10 = (1110101100)2
Example
Remainder Method
The radix of octal system is 8.
8 2040
8 255 0
8 31 7
3 7
i.e. (2040)10 = (3770)8 .
SECOND FLOOR, SULTAN TOWER, ROORKEE – 247667 UTTARAKHAND PH: (01332) 266328 Web: www.amiestudycircle.com 5/48
AMIE(I) STUDY CIRCLE(REGD.)
COMPUTING AND INFORMATICS
NUMBER SYSTEM AND BOOLEAN ALGEBRA A Focused Approach
Example
Remainder Method
The radix of hexa-decimal system is 16.
16 2040
16 127 8
7 15 = F
i.e. (2040)10 = (7F8)16.
Example
Remainder Method
Radix of the octal system is 8.
8 3964
8 495 4
8 61 7
7 5
i.e. (3964)10 = (7574)8.
Example
Power Method
Here radix of binary system is 2.
SECOND FLOOR, SULTAN TOWER, ROORKEE – 247667 UTTARAKHAND PH: (01332) 266328 Web: www.amiestudycircle.com 6/48
AMIE(I) STUDY CIRCLE(REGD.)
COMPUTING AND INFORMATICS
NUMBER SYSTEM AND BOOLEAN ALGEBRA A Focused Approach
28 27 26 25 24 23 22 21 20
256 128 64 32 16 8 4 2 1
We note that 256 is the highest number which is less than 300, the given number
300 28 = 1 x 28
- 256
44
- 32 25 = 1 x 25
12
-8 23 = 1 x 23
4
-4 22 = 1 x 22
0
7 6 4 1 0
As powers of 2 , 2 , 2 , 2 , 2 are not represented, these values may be placed in their respective places after
multiplying with zero i.e.
1 x 28, 0 x 27, 0 x 26, 1 x 25, 0 x 24, 1 x 23, 1 x 22, 0 x 21, 0 x 20
i.e. (300)10 = (100101100).
Example
Power Method
The radix is 8
85 84 83 82 81 80
32768 4096 512 64 8 1
2
We note that 256 is the highest number i.e., 4 x 8 .
300 4 x 82
- 256
44
- 40 5 x 81
4
-4 4 x 80
0
i.e. (300)10 = (454)8.
SECOND FLOOR, SULTAN TOWER, ROORKEE – 247667 UTTARAKHAND PH: (01332) 266328 Web: www.amiestudycircle.com 7/48
AMIE(I) STUDY CIRCLE(REGD.)
COMPUTING AND INFORMATICS
NUMBER SYSTEM AND BOOLEAN ALGEBRA A Focused Approach
Example
Power Method
First convert the given number to decimal system.
Then, convert the number from decimal system to binary system.
i.e. (1654)8 = 1 x 83 + 6 x 82 + 5 x 81 + 4 x 80
= 512 + 348 + 40 + 4
= (940)10
Now, convert (940)10 to binary system as in example 1.1.
i.e. (1654)10 = (940)10 = (1110101100)2
Conversion of fractions of decimal system to other systems
Example
0.25 x 2 = 0.50 I0 = 0
0.50 x 2 = 1.00 I2 = 1
(0.25)10 = (0.01)2
Example
SECOND FLOOR, SULTAN TOWER, ROORKEE – 247667 UTTARAKHAND PH: (01332) 266328 Web: www.amiestudycircle.com 8/48
AMIE(I) STUDY CIRCLE(REGD.)
COMPUTING AND INFORMATICS
NUMBER SYSTEM AND BOOLEAN ALGEBRA A Focused Approach
0.125 x 8 = 1.0 1
i.e. Octal equivalent = (1172.51)8
Conversion of a fraction of any system with radix R to the decimal system
Example
Radix is 8.
(0.135)8 = 1x 81 3 x 82 5 x 83
1 3 2 93
= (0.1816406)10
8 64 512 512
Example
SECOND FLOOR, SULTAN TOWER, ROORKEE – 247667 UTTARAKHAND PH: (01332) 266328 Web: www.amiestudycircle.com 9/48
AMIE(I) STUDY CIRCLE(REGD.)
COMPUTING AND INFORMATICS
NUMBER SYSTEM AND BOOLEAN ALGEBRA A Focused Approach
Problem (AMIE WINTER 98)
Convert
(i) 01011.101 binary to decimal
(ii) 22.75 decimal to binary
Answer: (i) 11.625 (ii) 1 0110.11
Direct method of conversion the number from one system to the other
For Converting the digits of decimal system into binary system, use Table 1.
Table 1
Decimal digit Binary equivalent
0 0000
1 0001
2 0010
3 0011
4 0100
5 0101
6 0110
7 0111
8 1000
9 1001
From the above table, it is evident that a decimal digit may have at the most four bits.
For converting the digits of binary system into-decimal system, use Table 2
Table 2
Decimal Binary Hexa-decimal
0 0000 0
1 0001 1
2 0010 2
3 0011 3
4 0100 4
5 0101 5
6 0110 6
7 0111 7
8 1000 8
9 1001 9
10 1010 A
11 1011 B
12 1100 C
13 1101 D
14 1110 E
15 1111 F
For converting the digits of binary system into octal system, use the Table 3
SECOND FLOOR, SULTAN TOWER, ROORKEE – 247667 UTTARAKHAND PH: (01332) 266328 Web: www.amiestudycircle.com 10/48
AMIE(I) STUDY CIRCLE(REGD.)
COMPUTING AND INFORMATICS
NUMBER SYSTEM AND BOOLEAN ALGEBRA A Focused Approach
Table 3
Octal Binary
0 000
1 001
2 010
3 011
4 100
5 101
6 110
7 111
Example
Example
Solution
Example
Solution
Radix 8 = 23
SECOND FLOOR, SULTAN TOWER, ROORKEE – 247667 UTTARAKHAND PH: (01332) 266328 Web: www.amiestudycircle.com 11/48
AMIE(I) STUDY CIRCLE(REGD.)
COMPUTING AND INFORMATICS
NUMBER SYSTEM AND BOOLEAN ALGEBRA A Focused Approach
001 010 011 001 101 100 100
1 2 3 1 5 4 4
(001010011001.101100100)2 = (1231.544)8
Give an algorithm to convert an octal number into a binary number. Using an example, explain how the
algorithm works.
Solution
(ii) Separate each octal digit from the given number and using look up table, find binary value and print
it.
(iii) Repeat (ii) until all the digits are converted into binary.
Example: (642.71)8 = (110100010.111001)2
Write an algorithm to convert the decimal numbers into binary numbers. Explain your algorithm.
Solution
SECOND FLOOR, SULTAN TOWER, ROORKEE – 247667 UTTARAKHAND PH: (01332) 266328 Web: www.amiestudycircle.com 12/48
AMIE(I) STUDY CIRCLE(REGD.)
COMPUTING AND INFORMATICS
NUMBER SYSTEM AND BOOLEAN ALGEBRA A Focused Approach
Step 2: Divide the quotient by 2
Step 3: Repeat the step 2 until we get quotient equal to zero.
Equivalent binary number would be remainders of each step in the reverse order.
Decimal to binary conversion with example:
For example we want to convert decimal number 25 in the binary.
Step 1: 25 / 2 Remainder : 1 , Quotient : 12
Step 2: 12 / 2 Remainder : 0 , Quotient : 6
Step 3: 6 / 2 Remainder : 0 , Quotient : 3
Step 4: 3 / 2 Remainder : 1 , Quotient : 1
Step 5: 1 / 2 Remainder : 1 , Quotient : 0
So equivalent binary number is: 11001
That is (25)10 = (11001)2
Write an algorithm to convert the binary numbers into octal numbers. Explain your algorithm.
Solution
SECOND FLOOR, SULTAN TOWER, ROORKEE – 247667 UTTARAKHAND PH: (01332) 266328 Web: www.amiestudycircle.com 13/48
AMIE(I) STUDY CIRCLE(REGD.)
COMPUTING AND INFORMATICS
NUMBER SYSTEM AND BOOLEAN ALGEBRA A Focused Approach
Step 2: 1 3 2 5 1 5
So (1011010101001101)2 = (132515)8
Problem
Problem
Problem
Solution
1011112 = 4710
1101012 = 5310
Their sum
47 + 53 = 100
Result in binary form
10010 = 11001002
Subtraction
Example
SECOND FLOOR, SULTAN TOWER, ROORKEE – 247667 UTTARAKHAND PH: (01332) 266328 Web: www.amiestudycircle.com 14/48
AMIE(I) STUDY CIRCLE(REGD.)
COMPUTING AND INFORMATICS
NUMBER SYSTEM AND BOOLEAN ALGEBRA A Focused Approach
Solution
Multiplication
Example
Solution
1112 = 710
1012 = 510
Their product
7 x 5 = 35
Result in binary form
3510 = 1000112
Problem
Example
Solution
1000112 = 3510
1012 = 510
35/5 = 7
Result in binary form
710 = 1112
Problem
SECOND FLOOR, SULTAN TOWER, ROORKEE – 247667 UTTARAKHAND PH: (01332) 266328 Web: www.amiestudycircle.com 15/48
AMIE(I) STUDY CIRCLE(REGD.)
COMPUTING AND INFORMATICS
NUMBER SYSTEM AND BOOLEAN ALGEBRA A Focused Approach
Answer: 1101
Solution
To find BCD form of a decimal number convert each digit of the decimal number into its 4 bit binary form
(1782)10 = (0001 0111 1000 0010)BCD
Solution
SECOND FLOOR, SULTAN TOWER, ROORKEE – 247667 UTTARAKHAND PH: (01332) 266328 Web: www.amiestudycircle.com 16/48
AMIE(I) STUDY CIRCLE(REGD.)
COMPUTING AND INFORMATICS
NUMBER SYSTEM AND BOOLEAN ALGEBRA A Focused Approach
N m x 10 e
Hexadecimal system
N m x 16e
Binary system
N m x 2e
For example, decimal numbers 0.0003754 and 3754 will be represented in floating-point notation as 3.754 ×
10-4 and 3.754 × 103 respectively. A hex number 257.ABF will be represented as 2.57ABF × 162. In the case of
normalized binary numbers, the leading digit, which is the most significant bit, is always ‘1’ and thus does not
need to be stored explicitly.
Also, while expressing a given mixed binary number as a floating-point number, the radix point is so shifted as
to have the most significant bit immediately to the right of the radix point as a ‘1’. Both the mantissa and the
exponent can have a positive or a negative value.
The mixed binary number (110.1011)2 will be represented in floating-point notation as .1101011 × 23 =
.1101011e + 0011. Here, .1101011 is the mantissa and e+0011 implies that the exponent is +3.
The IEEE-754 floating point is the most commonly used representation for real numbers on computers
including Intel-based personal computers, Macintoshes and most of the UNIX platforms. It specifies four
formats for representing floating-point numbers. These include single-precision, double-precision, single-
extended precision and double-extended precision formats. Of the four formats mentioned, the single-precision
and double-precision formats are the most commonly used ones. The single-extended and double-extended
precision formats are not common.
Following figure shows the basic constituent parts of the single precision format. As shown in the figure, the
floating-point numbers, as represented using these formats, have three basic components including the sign, the
exponent and the mantissa.
Single precision
For example, if we want to represent +10.25 in IEEE 754 format, the following steps will be used:
Step 1: Convert 10.25 in binary.
SECOND FLOOR, SULTAN TOWER, ROORKEE – 247667 UTTARAKHAND PH: (01332) 266328 Web: www.amiestudycircle.com 17/48
AMIE(I) STUDY CIRCLE(REGD.)
COMPUTING AND INFORMATICS
NUMBER SYSTEM AND BOOLEAN ALGEBRA A Focused Approach
(10.25)10 1010.01
Step 2: Normalise by bringing decimal point in front of first non zero bit
1010.01 1.01001 x 23
Step 3: Now mantissa is 01001 and exponent is 3
Step 4: Add 127 to exponent to get exponent in excess 127 format
127 3 30 (10000010) 2
1 8 23
0 10000010 01001000000000000000000
Sign Exponent Mantissa
Example
What is a sign bit ? If sign bit contains the binary digit 0 then the integer represents is either positive or
negative. Give reason.
Answer
Sign bit is used to represent the sign (+ or -) of a binary number inside computer memory. It normally precedes
the binary sequence of the number. e.g., 0, 1000000 represents + 64 in decimal. e.g., 1,1100 can represent -12
in decimal when 0 represents positive sign, it is known a positive logic. It can also represent negative sign in
negative logic. In 2’s complementation notation, it can be act both positive and negative inorder to remove the
ambiguity of zero magnitude represent (when preceded by 0) in signed magnitude numbers.
Example
Why do suppose people adopted the decimal the decimal number system for everyday use ? If you have to
propose another number system so as to facilitate arithmetic computations, which radix would choose ? Justify
your answer. What radix would you recommend for a computer ?
Answer
The decimal number system must have been adopted due to ten figures (including two thumbs) in two hands of
humans. This led to convenience in counting also. It is sure that the decimal number system is the most
appropriate owing to ease in arithmetic computation by people. However, one can use any of 2, 8 or 16 as radix
SECOND FLOOR, SULTAN TOWER, ROORKEE – 247667 UTTARAKHAND PH: (01332) 266328 Web: www.amiestudycircle.com 18/48
AMIE(I) STUDY CIRCLE(REGD.)
COMPUTING AND INFORMATICS
NUMBER SYSTEM AND BOOLEAN ALGEBRA A Focused Approach
to facilitate the arithmetic computations. Justification goes to these radices towards the inter-convertibility in a
convenient way.
For a computer based switching circuits, the number system with radix 2 is the most suitable and is to be
recommended. However, it depends upon the potential technology which might allow other radix systems.
Example
Answer
Bit : Short form of Binary digit. A binary digit is one of the two digits, represented by 0 and 1, that are used in
the binary number system.
Byte : A group of eight bits, which forms the smallest portion of memory that an 8-bit CPU can recall from, or
store in memory.
Explain ASCII code? How many bits per character dose ASCII code use ?
Answer
The American standards Institution has evolved a standard code to represent characters to be stored and
processed by computers. This code, called ASCII, uses 7 bits to represent each character. The ASCII
code(American Standard Code for Information Interchange)defines codes for English letters (capital and
small), decimal digits, 32 special characters and codes for a number of symbols used to control the operation
of a computer. The symbols used for control are non-printable.)
Explain EBCDIC ?
Answer
In addition to the ASCII, another code known as Extended Binary Coded Decimal Interchange Code
(EBCDIC) is used in computers manufactured by International Business machines Corporation (IBM). This
code uses 8 bits per character and is thus capable of representing 256 characters. If data coded in ASCII is to
SECOND FLOOR, SULTAN TOWER, ROORKEE – 247667 UTTARAKHAND PH: (01332) 266328 Web: www.amiestudycircle.com 19/48
AMIE(I) STUDY CIRCLE(REGD.)
COMPUTING AND INFORMATICS
NUMBER SYSTEM AND BOOLEAN ALGEBRA A Focused Approach
be used in a computer which codes data in EBCDIC, it is necessary to transform ASCII code to EBCDIC code.
A special ready made electronic circuit is available for carrying out this transformation.
Example
Solution
Boolean Algebra
IMPORTANT THEOREMS AND EXPRESSIONS
1. A 0 A
2. A.1 A
3. A 1 1
4. A.0 0
5. A A A
6. A.A A
7. A A 1
8. A.A 0
SECOND FLOOR, SULTAN TOWER, ROORKEE – 247667 UTTARAKHAND PH: (01332) 266328 Web: www.amiestudycircle.com 20/48
AMIE(I) STUDY CIRCLE(REGD.)
COMPUTING AND INFORMATICS
NUMBER SYSTEM AND BOOLEAN ALGEBRA A Focused Approach
9. A.(B C) A.B A.C
10. A B.C (A B).(A C)
11. A A.B A
12. A.(A B) A
13. A AB A B
14. A.(A B) A.B
Example
Prove that
(i) A.(A B) A
(ii) A A.B A B
(iii) A.B A.C (A C).(A B)
Solution
= BC ABC ABC
SECOND FLOOR, SULTAN TOWER, ROORKEE – 247667 UTTARAKHAND PH: (01332) 266328 Web: www.amiestudycircle.com 21/48
AMIE(I) STUDY CIRCLE(REGD.)
COMPUTING AND INFORMATICS
NUMBER SYSTEM AND BOOLEAN ALGEBRA A Focused Approach
= C(B AB) ABC
= C(B A) ABC [ Theorem 13]
= CB CA ABC
= B(C AC) AC
= B(C A) AC [ Theorem 13]
= BC AB AC AA
= C(A B) A(A B)
= (A C)(A B)
Example
Solution
A B . A C . B C = B A B C A C (rearranging)
= (B AC) A C (Theorem 10)
= B A C AC A C
= AB BC AC
= AB BC AC AA
=A AC B AC
= A B A C
Example
SECOND FLOOR, SULTAN TOWER, ROORKEE – 247667 UTTARAKHAND PH: (01332) 266328 Web: www.amiestudycircle.com 22/48
AMIE(I) STUDY CIRCLE(REGD.)
COMPUTING AND INFORMATICS
NUMBER SYSTEM AND BOOLEAN ALGEBRA A Focused Approach
(d) Y ABCD ABCD ABCD ABCD
Solution
= BC AB AC
(d) Y ABCD ABCD ABCD ABCD
= BC(AD AD AD AD)
= BC[A.1 A.1]
= BC(A A)
= BC.1 BC
Problem
= AB A A BC
= (A A)(A B) Distributive
= (A B)
Example
Obtain sop and pos expressions for the truth table of table.
Decimal
A B C Y Minterm Maxterm
Eq.
0 0 0 0 0 ABC ABC
0 0 1 1 1 ABC ABC
0 1 0 2 0 ABC ABC
0 1 1 3 1 ABC ABC
1 0 0 4 0 ABC ABC
1 0 1 5 1 ABC ABC
SECOND FLOOR, SULTAN TOWER, ROORKEE – 247667 UTTARAKHAND PH: (01332) 266328 Web: www.amiestudycircle.com 24/48
AMIE(I) STUDY CIRCLE(REGD.)
COMPUTING AND INFORMATICS
NUMBER SYSTEM AND BOOLEAN ALGEBRA A Focused Approach
1 1 0 6 0 ABC ABC
1 1 1 7 1 ABC
ABC
From above table picking up the minterms corresponding to Y = 1 in the truth table, we can write
Y A B C A B C A B C A B C ; pos form
We observed that
Y Y 1
So while that minterms which correspond to 1 outputs constitute sop, the complimentary minterms which
correspond to 0 outputs, their sop would then constitute Y i.e.
similarly for maxterms the outputs corresponding to 1 outputs would constitute Y i.e.
Y A BC A BC A BC A BC
Example
Find the equivalent product-of-sums expression of the sum-of products (SOP) expression
A.B A.B
Solution
= 0 A.B B. A 0
= A.B A.B
The dual of ( A.B A.B) ( A B ).( A B)
SECOND FLOOR, SULTAN TOWER, ROORKEE – 247667 UTTARAKHAND PH: (01332) 266328 Web: www.amiestudycircle.com 25/48
AMIE(I) STUDY CIRCLE(REGD.)
COMPUTING AND INFORMATICS
NUMBER SYSTEM AND BOOLEAN ALGEBRA A Focused Approach
Draw the truth table for the boolean function ABC ABC AB .
Solution
LOGIC GATES
A logic gate is an electronic circuit, which accepts a binary input and produces a binary output namely 0 and 1.
The inverter (NOT) logic gate has one input and one output, but a logic gate in general accepts one or more
inputs and produces one output. Apart from the NOT gate there are six other types of logic gates.
Input to a gate will be designated by binary variables A, B, C etc. and the output will be indicated by binary
variable Y. As stated earlier, a binary variable can take on values 0 and 1 which are electronically represented
by LOW and HIGH voltage levels. In terms of boolean algebra the function of a logic gate will be represented
by a binary expression.
SECOND FLOOR, SULTAN TOWER, ROORKEE – 247667 UTTARAKHAND PH: (01332) 266328 Web: www.amiestudycircle.com 26/48
AMIE(I) STUDY CIRCLE(REGD.)
COMPUTING AND INFORMATICS
NUMBER SYSTEM AND BOOLEAN ALGEBRA A Focused Approach
AND Gate
In this gate, output will be HIGH only if both the inputs are HIGH and so both diodes are OFF. Such a logic
operation is called AND and is represented by the Boolean expression.
Y = A AND B = A.B
wherein dot indicates ANDing.
NOT Gate
A NOT gate is a one-input, one-output logic circuit whose output is always the complement of the input. That
is, a LOW input produces a HIGH output, and vice versa. When interpreted for a positive logic system, a logic
‘0’ at the input produces a logic ‘1’ at the output, and vice versa. It is also known as a ‘complementing circuit’
or an ‘inverting circuit’. Following figure shows the circuit symbol and the truth table.
The NOT operation on a logic variable X is denoted as X or X’ . That is, if X is the input to a NOT circuit,
then its output Y is given by X or X’ and reads as Y equals NOT X. Thus, if X = 0, Y = 1 and if X = 1, Y = 0.
OR Gate
The output will be HIGH, if A or B (or both) are HIGH. Such a logic operation is called OR and is expressed
by the Boolean expression
Y = A OR B = A + B
SECOND FLOOR, SULTAN TOWER, ROORKEE – 247667 UTTARAKHAND PH: (01332) 266328 Web: www.amiestudycircle.com 27/48
AMIE(I) STUDY CIRCLE(REGD.)
COMPUTING AND INFORMATICS
NUMBER SYSTEM AND BOOLEAN ALGEBRA A Focused Approach
The symbolic representation of OR and its truth table are given in Figs. (a) and (b).
NAND Gate
It is an AND gate followed by a NOT gate and is represented by a symbol as shown in figure (a). Its truth table
is given in figure (b). A small circle in its symbol shows NOT operation. Its Boolean expression is
NOR Gate
Logically a NOR gate is expressed as
Y NOT (A OR B) A B; complement of Or
Its symbol and truth table are shown in figures (a) and (b).
SECOND FLOOR, SULTAN TOWER, ROORKEE – 247667 UTTARAKHAND PH: (01332) 266328 Web: www.amiestudycircle.com 28/48
AMIE(I) STUDY CIRCLE(REGD.)
COMPUTING AND INFORMATICS
NUMBER SYSTEM AND BOOLEAN ALGEBRA A Focused Approach
Consider the NAND gate of figure (a) with input A at both ports.
Then
Y A.A A NOT A
Similarly for NOR gate
Y A A A NOT A
OR Realization by NAND/NOR
Consider following circuit which shows OR realization by NAND gates.
Y A.B A B A OR B
SECOND FLOOR, SULTAN TOWER, ROORKEE – 247667 UTTARAKHAND PH: (01332) 266328 Web: www.amiestudycircle.com 29/48
AMIE(I) STUDY CIRCLE(REGD.)
COMPUTING AND INFORMATICS
NUMBER SYSTEM AND BOOLEAN ALGEBRA A Focused Approach
NAND Latch
The circuit shown below is a basic NAND latch. The inputs are generally designated "S" and "R" for "Set" and
"Reset" respectively. Because the NAND inputs must normally be logic 1 to avoid affecting the latching action,
the inputs are considered to be inverted in this circuit.
The outputs of any single-bit latch or memory are traditionally designated Q and Q'. In a commercial latch
circuit, either or both of these may be available for use by other circuits. In any case, the circuit itself is:
For the NAND latch circuit, both inputs should normally be at a logic 1 level. Changing an input to a logic 0
level will force that output to a logic 1. The same logic 1 will also be applied to the second input of the other
NAND gate, allowing that output to fall to a logic 0 level. This in turn feeds back to the second input of the
original gate, forcing its output to remain at logic 1.
Applying another logic 0 input to the same gate will have no further effect on this circuit. However, applying a
logic 0 to the other gate will cause the same reaction in the other direction, thus changing the state of the latch
circuit the other way.
Note that it is forbidden to have both inputs at a logic 0 level at the same time. That state will force both
outputs to a logic 1, overriding the feedback latching action. In this condition, whichever input goes to logic 1
first will lose control, while the other input (still at logic 0) controls the resulting state of the latch. If both
inputs go to logic 1 simultaneously, the result is a "race" condition, and the final state of the latch cannot be
determined ahead of time.
SECOND FLOOR, SULTAN TOWER, ROORKEE – 247667 UTTARAKHAND PH: (01332) 266328 Web: www.amiestudycircle.com 31/48
AMIE(I) STUDY CIRCLE(REGD.)
COMPUTING AND INFORMATICS
NUMBER SYSTEM AND BOOLEAN ALGEBRA A Focused Approach
SR Flip Flop(Latch)
To serve the purpose of storing desired bits in flip flops, two input NAND or NOR gates are used as shown in
following figure. This way we get an S-R flip flop.
Set state: When S = 1 and R = 0, A1 becomes 0, making Q = 1. So, Q 1.1 0. This input condition sets the
flip flop( Q 1, Q 0 ); so it is called set state.
Reset state: When S = 0 and R = 1,A2 becomes 0, making Q 1 and Q 1.1 0 . This input condition resets
the flip flop( Q 0, Q 1 ); so it is called reset state.
No change: When S R 0, Q 1.Q Q and Q 1.Q Q . The flip flop remains in whatever state it is in.
Race: When S = R = 1, A1 and A2 both become 0. So Q Q 1 . This is an undesired output state because if S
and R now change to 0, A1 and A2 will be 1, both Q and Q will try to become 0. The actual state of the flip
flop depends on the relative delays of the two gates. If N2 is faster, Q will become 1.1 0 first and will make
Q =1. Similarly if N1 is faster, Q will become 0 first and will make Q 1 . This is called race condition. Here
the state of the flip flop is uncertain, so this condition is not allowed.
This circuit is called an SR flip flop. It is an asynchronous circuit because the output changes with changes as
and when the S, R input change. If we want synchronous operation, a clock pulse can be introduced at the
inputs as discussed below.
SECOND FLOOR, SULTAN TOWER, ROORKEE – 247667 UTTARAKHAND PH: (01332) 266328 Web: www.amiestudycircle.com 32/48
AMIE(I) STUDY CIRCLE(REGD.)
COMPUTING AND INFORMATICS
NUMBER SYSTEM AND BOOLEAN ALGEBRA A Focused Approach
Clocked SR Flip Flop(Latch)
The SR flip flop modified to include clock(CK) pulses is drawn in following figure.
Symbol clocked SR
JK FLIP FLOP
As discussed earlier, in SR flip flop, the input combination S = R =1 is not allowed because its output is
uncertain. This uncertainty may cause problems in a digital system. So, we need a one bit memory cell which
has its outputs well defined for all possible input combinations.
One such device is JK flip flop with inputs J and K. Also, let this flip flop have the same truth table as the SR
flip flop except for the condition when J = K = 1. Since Q n 1 Q n ,1, 0 are already occurring in the truth table of
SECOND FLOOR, SULTAN TOWER, ROORKEE – 247667 UTTARAKHAND PH: (01332) 266328 Web: www.amiestudycircle.com 33/48
AMIE(I) STUDY CIRCLE(REGD.)
COMPUTING AND INFORMATICS
NUMBER SYSTEM AND BOOLEAN ALGEBRA A Focused Approach
the SR flip flop, let Q n 1 Q n for the new condition (J = K = 1). Following table gives the combined truth table
of SR/JK flip flops.
Combined truth table of SR/JK flip flops
J K Qn Qn+1 S R Comment
0 0 0 0 0 0/1 Inactive state
0 0 1 1 1/0 0 Qn+1 = Qn
0 1 0 0 0 0/1 Reset state
0 1 1 0 0 1 Qn+1 = 0
1 0 0 1 1 0 Set state
1 0 1 1 1/0 0 Qn+1 = 1
1 1 0 1 1 0 Toggle state
1 1 1 0 0 1 Qn+1 = Qn
The K- maps with S and R as outputs, and taking J, K and Qn as inputs are shown below.
S J.Q n
JK
00 01 11 10
Qn
0 0 0 1 1
1 x 0 0 x
R K.Q n
JK
00 01 11 10
Qn
0 x x 0 0
1 0 1 1 0
Thus we have a simple way of designing a JK flip flop from the SR flip flop. The circuit corresponding to K
maps given earlier is drawn below.
SECOND FLOOR, SULTAN TOWER, ROORKEE – 247667 UTTARAKHAND PH: (01332) 266328 Web: www.amiestudycircle.com 34/48
AMIE(I) STUDY CIRCLE(REGD.)
COMPUTING AND INFORMATICS
NUMBER SYSTEM AND BOOLEAN ALGEBRA A Focused Approach
This circuit can be simplified to following circuit.
SECOND FLOOR, SULTAN TOWER, ROORKEE – 247667 UTTARAKHAND PH: (01332) 266328 Web: www.amiestudycircle.com 35/48
AMIE(I) STUDY CIRCLE(REGD.)
COMPUTING AND INFORMATICS
NUMBER SYSTEM AND BOOLEAN ALGEBRA A Focused Approach
When the clock is HIGH(CK = 1, Pr = 1, Cr = 1), the master is enables, while the slave is disabled as CK 0 ).
So, the master functions like a JK flip flop and its output appears at the input (S,R) of the slave. Since CK is
LOW, the slave is inactive. Thus Q remains unchanged for the duration of the clock pulse tp.
When the clock goes LOW, the slave functions like an SR flip flop and its output changes to QM, which also
appears at the input of the master. Since the clock is LOW, the master is inactive so that QM( and so S and R)
remains unchanged as long as the clock remains LOW.
Thus, when the clock is HIGH, QM changes according to JK flip flop logic and it is transferred to Q when the
clock goes LOW(negative edge transition). This eliminates the race around condition as the output remains
constant for the duration of one clock pulse. The truth table of this flip flop is shown below.
Truth table of MS JK flip flop
Pr Cr CK J K Qn+1 States
0 0 x x x ? Not desired
0 1 x x x 1 Preset
1 0 x x x 0 Clear
1 1 x 0 0 Qn Inactive
1 1 0 1 0 Zero
1 1 1 0 1 One
1 1 1 1 Qn Toggle
D FLIP FLOP
Truth table of D flip flop
In a D flip flop the output follows the input whenever the flip flop is D Qn+1
triggered. This can be achieved by means of a JK/SR flip flop. A D flip using
JK/SR flip flop along with its truth table is shown below. 0 0
1 1
SECOND FLOOR, SULTAN TOWER, ROORKEE – 247667 UTTARAKHAND PH: (01332) 266328 Web: www.amiestudycircle.com 36/48
AMIE(I) STUDY CIRCLE(REGD.)
COMPUTING AND INFORMATICS
NUMBER SYSTEM AND BOOLEAN ALGEBRA A Focused Approach
D flip flop from JK flip flop D flip flop from SR flip flop
Here the output follows the input, when the flip flop is triggered. If the flip flop is edge triggered the output is
the same as the input, but is delayed by one clock pulse. Owing to this property, the D flip flop is used as a
delay device. Its function is illustrated by following waveform.
T FLIP FLOP
A T flip flop can be realized by JK flip flop. T flip flop using JK flip flop along with truth table is given below.
T flip flop
Truth table of T flip flop
T J K Qn+1
0 0 0 Qn
1 1 1 Qn
SHIFT REGISTER
Shift registers store as well as manipulate data. Following figure shows a 4-bit shift register.
SECOND FLOOR, SULTAN TOWER, ROORKEE – 247667 UTTARAKHAND PH: (01332) 266328 Web: www.amiestudycircle.com 37/48
AMIE(I) STUDY CIRCLE(REGD.)
COMPUTING AND INFORMATICS
NUMBER SYSTEM AND BOOLEAN ALGEBRA A Focused Approach
SECOND FLOOR, SULTAN TOWER, ROORKEE – 247667 UTTARAKHAND PH: (01332) 266328 Web: www.amiestudycircle.com 38/48
AMIE(I) STUDY CIRCLE(REGD.)
COMPUTING AND INFORMATICS
NUMBER SYSTEM AND BOOLEAN ALGEBRA A Focused Approach
Arithmetic Circuits
A logic gate is an electronic circuit, which accepts a binary input and produces a binary output namely 0 and 1.
The inverter (NOT) logic gate has one input and one output, but a logic gate in general accepts one or more
inputs and produces one output. Apart from the NOT gate there are six other types of logic gates.
Input to a gate will be designated by binary variables A, B, C etc. and the output will be indicated by binary
variable Y. As stated earlier, a binary variable can take on values 0 and 1 which are electronically represented
by LOW and HIGH voltage levels. In terms of boolean algebra the function of a logic gate will be represented
by a binary expression.
HALF ADDER
This circuit adds two binary variables, yields a carry but does not accept carry from another circuit(adder). The
truth table of half adder is given in below.
A B S C
0 0 0 0
0 1 1 0
1 0 1 0
1 1 0 1
From this table
S AB AB A B
C AB
Half adder logic circuit is shown in given figure.
SECOND FLOOR, SULTAN TOWER, ROORKEE – 247667 UTTARAKHAND PH: (01332) 266328 Web: www.amiestudycircle.com 39/48
AMIE(I) STUDY CIRCLE(REGD.)
COMPUTING AND INFORMATICS
NUMBER SYSTEM AND BOOLEAN ALGEBRA A Focused Approach
Here S S AB AB (A B) (A B)
FULL ADDER
This circuit can add two binary numbers, accept a carry and yield a carry. Such a circuit can easily be
visualized by means of two half adders(HA) and an OR as in given figure.
SECOND FLOOR, SULTAN TOWER, ROORKEE – 247667 UTTARAKHAND PH: (01332) 266328 Web: www.amiestudycircle.com 40/48
AMIE(I) STUDY CIRCLE(REGD.)
COMPUTING AND INFORMATICS
NUMBER SYSTEM AND BOOLEAN ALGEBRA A Focused Approach
Using AND OR INVERT(AOI) gates, equations (3) and (4) are implemented in figure given, which gives
outputs S and C0.
Full Adder
4 -bit parallel binary adder(cascaded)
SECOND FLOOR, SULTAN TOWER, ROORKEE – 247667 UTTARAKHAND PH: (01332) 266328 Web: www.amiestudycircle.com 41/48
AMIE(I) STUDY CIRCLE(REGD.)
COMPUTING AND INFORMATICS
NUMBER SYSTEM AND BOOLEAN ALGEBRA A Focused Approach
ASSIGNMENT
NUMBER SYSTEM
Q.1. (AMIE, S08, 8 marks): Give an algorithm to convert an octal number into a binary number. Using an example, explain how the
algorithm works.
Q.2. (AMIE, W01, 5 marks): Perform following operation using 2’s complement representation
-53 + 25 [ Given numbers are decimal]
Answer: (-28)10
Q.3. (AMIE, W01, 5 marks): Convert following hexadecimal number to octal number C005A
Answer: (3000132)8
Q.4. (AMIE, S01): Convert the following numbers as indicated against each:
(?)16 = (285.48)10 = (?)8 = (?)2
Answer: (11D.7AE147)16 = (285.48)10 = (435.365605)8 = (100011101.111101)2
Hint: (285.48)10 = (?)16
Integer part (285)10 = (11D)16
16 285 13=D
16 17 1
16 1 1
Fractional part = (0.48)10
Fractional part x 16 Remainder Integer
0.48 x 16 7.68 7
0.68 x 16 10.88 10 = A
0.88 x 16 14.08 14 = E
0.08 x 16 1.28 1
0.28 x 16 4.48 4
0.48 x 16 7.68 7
and so on.
(0.48)10 = (0.7AE147)16 approx.
SECOND FLOOR, SULTAN TOWER, ROORKEE – 247667 UTTARAKHAND PH: (01332) 266328 Web: www.amiestudycircle.com 42/48
AMIE(I) STUDY CIRCLE(REGD.)
COMPUTING AND INFORMATICS
NUMBER SYSTEM AND BOOLEAN ALGEBRA A Focused Approach
(iv) (573)8 = ( )16
(v) (1100100110)2 = ( )8
Answer: (i) (10101001101)2 (ii) (2667)8 (iii) (296)16 (iv) (17B)16 (v) (1446)8
Q.8. (AMIE W07, 12 marks): Convert the following integers into its equivalent form as specified. Specify all the steps.
(i) 245610 to its equivalent octal
(ii) 12678 to its equivalent binary
(i) AE2916 to its equivalent decimal
(ii) 110111001012 to its equivalent hexadecimal number
Answer: (i) (4739)8 (ii) (1010110111)2 (iii) (44585)10 (iv) (6E5)16
Q.9. (AMIE S09, 6 marks): Convert the following two hexadecimal numbers into binary and decimal numbers (i) 9F (ii) E7
Answer: (i) (159)10 (ii) (231)10
Q.10. (AMIE S09, 6 marks): Perform the following hexagonal operations (i) 5F + AB (ii) CD + BE
Answer: (i) 1 OC (ii) 18 B
Q.11. (AMIE W09, 8 marks): (i) Convert the binary real number 1101.1010 to a equivalent decimal number.
(ii) Convert the decimal fraction 0.62 to its equivalent hexagonal fraction
(i) Convert the octal number 365 to its equivalent decimal number
(ii) (iv) Convert the octal number 536 to its equivalent hexadecimal number.
Answer: (i) 13.625 (ii) (0.9EB851...)16 (iii) 240 (iv) (15 E)16
Q.12. (AMIE W09, 4 marks): (i) Perform following addition 1010111 + 1011010
(ii) Perform following subtraction 1101011 – 1010110
Answer: (i) 0110001 (ii) 0010101
Q.13. (AMIE S10, 6 marks): Convert the following binary numbers into hexadecimal numbers: (i) 101101.0101 (ii) 1010.0111
Answer: (i) 2D.5 (ii) A.7
Q.14. (AMIE W10, 6 marks): Convert the following binary numbers to their equivalent hexadecimal numbers:
(i) (111100110.101011)2 (ii) (111010100011.01010110)2
Answer: 1E6.AC, EA3.56
Q.15. (AMIE W10, 8 marks): Find the values of the following binary arithmetic operations:
(i) Divide (100101100)2 by (1010)2
(ii) Multiply (11101)2 by (11011)2
Answer: (i) 11110 (ii) 1100001111
Q.16. (AMIE W10, 6 marks): How many bits are required to represent the following decimal numbers as unsigned/binary integers:
(i) 384 (ii) 147
Answer: (i) 384 = 110000000 (i.e. 9 bits) (ii) 147 = 10010011 (i.e. 8 bits)
Q.17. (AMIE W11, 5 marks): (a) Convert 211.25 in decimal to binary (b) Convert 211.25 in decimal to octal
Answer: (i) (11010011.01)2 (b) 10001001.010101
Q.18. (AMIE S12, 6 marks): Convert the following octal number into its binary equivalent: 735
Answer: 111011101
Q.19. (AMIE S12, 6 marks): Convert the following hexadecimal number into its octal equivalent: AFB8
SECOND FLOOR, SULTAN TOWER, ROORKEE – 247667 UTTARAKHAND PH: (01332) 266328 Web: www.amiestudycircle.com 43/48
AMIE(I) STUDY CIRCLE(REGD.)
COMPUTING AND INFORMATICS
NUMBER SYSTEM AND BOOLEAN ALGEBRA A Focused Approach
Answer: 127670
Q.20. (AMIE S12, 8 marks): How a floating point number represented in a computer?
Q.21. (AMIE W12, 4 marks): Find the hexadecimal equivalent of (0.3)10.
Answer: (4CC)H
Q.22. (AMIE W12, 4 marks): Find the octal equivalent of the decimal fraction 0.789.
Answer: (0.6237)8
Q.23. (AMIE S13, 10 marks): Convert the following two binary numbers into Hex and Octal numbers: 01101010 and 01011011
Answer: (6A)16, (152)8; (5B)16, (133)8
Q.24. (AMIE S15, 10 marks): Convert the following numbers:
(i) (723)8 = (?)2
(ii) (10001010101)16
(iii) (285.48)10 = (?)16
(iv) (0.8125)10 = (?)2
Answer: (i) 1110100112 (ii) 45616 (iii) (11D.7AE1)16 (iv) 0.110011…2
Q.25. (AMIE W15, 6 marks): Convert the following numbers as directed:
(i) (253.65)10 = (?)2
(ii) (325.62)8 = (?)2
Answer: (i) (1111101.101001…..) (ii) 011010101110010
Q.26. (AMIE S16, 6 marks): Convert the following numbers into appropriate base as directed:
(i) (475.66)10 = (?)2
(ii) (638.12)10 = (?)8
(iii) (10110101011)2 = (?)16
Answer: (i) 111011011.101010001 (ii) (1176.0753412)8 (iii) (5AB)16
Q.27. (AMIE W16, 20 marks): Answer the following:
(i) Find the hexadecimal equivalent of (41819.5625)10
(ii) Find the octal equivalent of (D6C1)16
(iii) Find the binary equivalent of (37.8125)10
(iv) Find the binary equivalent of (727)8
(v) What do you understand by the acronym MOSFET and list the purpose of logic gate in MOSFET.
(i) A B A B A
(ii) AB AC BC AC BC
SECOND FLOOR, SULTAN TOWER, ROORKEE – 247667 UTTARAKHAND PH: (01332) 266328 Web: www.amiestudycircle.com 44/48
AMIE(I) STUDY CIRCLE(REGD.)
COMPUTING AND INFORMATICS
NUMBER SYSTEM AND BOOLEAN ALGEBRA A Focused Approach
(iii) (A B)(B C)(C A) AB BC CA
(iv) (A B)(A C) AC AB
Q.30. (AMIE S02, 8 marks): Simplify the following Boolean equations using rules of Boolean algebra.
(i) X (A BC)(B C)
(i) X .Y X .Z Y .Z X .Y X .Y .Z X .Z
(ii) ( X .Y ).( X .Z Z ).( X .Z Y ) 0
Q.38. Describe various logic gates.
Q.39. What do you understand by Flip flop. describe SR flip flop and clocked SR flip flop.
Q.40. (AMIE W14, 7 marks): Explain with the truth table, the working of RS flip flops.
Q.41. (AMIE S13, 10 marks): What is flip flop? For what purpose it is used for? Explain how a flip flop can be realised using
NAND gates.
Q.42. (AMIE S05, 14 marks): Show that only 2 input NAND gates can be used to implement each of the following logic gates:
(i) 2 input OR gates
(ii) 2 input AND gates
(iii) 2 input Ex-OR gate
(iv) NOT gate
Q.43. (AMIE W07, 8 marks): Draw logic diagram that use only 2 input NOR gates to implement each of the following logic gates:
(i) 2 input OR
(ii) 2 input AND
(iii) NOT
SECOND FLOOR, SULTAN TOWER, ROORKEE – 247667 UTTARAKHAND PH: (01332) 266328 Web: www.amiestudycircle.com 45/48
AMIE(I) STUDY CIRCLE(REGD.)
COMPUTING AND INFORMATICS
NUMBER SYSTEM AND BOOLEAN ALGEBRA A Focused Approach
(iv) 2 input EX-OR
Answer:
(i)
(ii)
(iii)
(iv)
Q.44. (AMIE W08, 4 marks): Draw the logic circuit for the following Boolean expression:
P = AB + BC + AC
Q.45. (AMIE S10, 10 marks): Write the truth table of Boolean expression Z (a b).c . Also draw logic circuit for the Boolean
function part.
Q.46. (AMIE S11, 6 marks): Draw truth table for the Boolean function
f ( A, B, C ) A B C
Q.47. (AMIE W11, 5 marks): Draw the truth table for the Boolean expression ab bc ac
Q.48. (AMIE S07, 6 marks): How an EX-NOR gate works? What is its truth table.
Q.49. (AMIE S12, 7 marks): Briefly explain by using suitable diagrams, how various basic logic gates can be realised using NOT
gate.
Q.50. (AMIE S05, W10, 6 marks): Construct an R-S flip flop using NOR gates only.
Q.51. (AMIE W05, 10 marks): Why is NAND gate considered as a universal gate? Implement an EX-OR (2 input) logic using
NAND gates.
Q.52. (AMIE W09, 3 marks): Why are NAND and NOR gates are called universal gates?
Q.53. (AMIE W14, 6 marks): Construct the truth table for NAND and NOR gates.
Q.54. (AMIE S14, 8 marks): What do you mean by universal logic gates? Design a full adder using a universal gate.
Q.55. (AMIE S11, 8 marks): Explain the working of NAND latch with a diagram.
Q.56. (AMIE S09, 7 marks): What is a flip flop? Draw the logic gate representation of a flip flop. How is flip flop useful?
Q.57. (AMIE W15, 7 marks): What is a flip flop? Write the truth tables for different types of flip-flops.
Q.58. (AMIE W05, 6 marks): What is a D-type flip flop? Construct a D type latch using RS inputs.
SECOND FLOOR, SULTAN TOWER, ROORKEE – 247667 UTTARAKHAND PH: (01332) 266328 Web: www.amiestudycircle.com 46/48
AMIE(I) STUDY CIRCLE(REGD.)
COMPUTING AND INFORMATICS
NUMBER SYSTEM AND BOOLEAN ALGEBRA A Focused Approach
Q.59. (AMIE S12, 7 marks): What is D flip flop? By using an approximate diagram, briefly explain how a shift register can be
realised using D flip flop?
Q.60. (AMIE S06, 4 marks): Specify the structure of JK flip flop using RS flip flop.
Q.61. (AMIE S16, 10 marks): What are disadvantages of using S-R flip flop? Explain how J-K flip flop overcomes these issues.
Draw the basic block structure and the truth table of a J-K flip flop.
Q.62. (AMIE W15, 7 marks): What do you mean by a master-slave flip flop? Explain your answer with a proper diagram.
Q.63. (AMIE S06, 6 marks): What are the advantages of master slave JK flip flop? How can it be built using ordinary JK flip flop
and associated logic gates?
Q.64. (AMIE S07, 6 marks): What is a JK flip flop? Write the truth table and show how it can be converted into a T Flip flop.
Q.65. (AMIE S10, 5 marks): Draw the logic circuit of a J-K flip flop.
Q.66. (AMIE W07, 10 marks): Specify the structure of a bidirectional 4 bit shift register built using JK flip flop and logic gates.
Depending on user input, one should be able to shift left or right the stores data.
Q.67. (AMIE W15, 6 marks): Write the truth table, Boolean expression and the logic circuit diagram of a half adder.
Q.68. (AMIE S06, 10 marks): Construct a 1 bit half adder that accepts two one bit operand ai and bi and produces the carry out ci
and the summation si. Use optimum number of gates.
Q.69. (AMIE S07, 16, W12, 6 marks): Draw a schematic diagram of a full adder and show the truth table.
Q.70. (AMIE S10, 14, 5 marks): Distinguish between a combinational logic circuit and a sequential circuit.
Q.71. (AMIE W10, 6 marks): Realize the digital circuit for the boolean function
z b.c a.b a.c z
by using AND and OR gates.
Answer:
Q.72. (AMIE S15, 6 marks): Design a logic circuit to add two positive numbers that are each 2 bits long.
Q.73. (AMIE W14, 14 marks): Implement the following:
(i) Y ( A C )( A D ')( A B C ') using NOR gates.
(ii) Y ( AB BC )C using NAND gates.
Answer:
(i)
SECOND FLOOR, SULTAN TOWER, ROORKEE – 247667 UTTARAKHAND PH: (01332) 266328 Web: www.amiestudycircle.com 47/48
AMIE(I) STUDY CIRCLE(REGD.)
COMPUTING AND INFORMATICS
NUMBER SYSTEM AND BOOLEAN ALGEBRA A Focused Approach
(ii)
Q.74. (AMIE S16, 6 marks): Draw logic diagrams for the following: (i) EX-OR (ii) NOR (iii) AND.
(For online support such as eBooks, video lectures, audio lectures, unsolved papers, online objective questions,
test series and course updates, visit www.amiestudycircle.com)
SECOND FLOOR, SULTAN TOWER, ROORKEE – 247667 UTTARAKHAND PH: (01332) 266328 Web: www.amiestudycircle.com 48/48