2019-BCA-digital Logic
2019-BCA-digital Logic
a) Convert the decimal number (FB17) 16 into m) What do you mean by trigger?
octal number. n) Write the advantage of using K-map.
b) Draw the two exclusive gates. o) Find 10's complement of (216)10.
c) What is the use of don't care condition? 2. Answer any five questions: 2×5=10
d) How many flip flops are required to design a a) Implement Ex-OR gate using only NAND
mod-8 counter? gates.
e) Subtract-45 from 36 using 2's complement. b) Implement F=(A+B). BC using basic gates
f) Multiply the binary number (1011) 2 with except OR gates.
(101) 2. c) How does an encoder differ from decoder?
8 2 3 ^ / 2 3 * + 5 1 * – V(G) = {1, 2, 3, 4, 5, 6}
E(G) = {(1, 2), (2, 3), (3, 4), (5, 1),
Note that ^ is the exponentiation operator. What
(5, 6), (2, 6), (1, 6), (4, 6), (2, 4)}
will be the top two elements of the stack after
the first * is evaluated? h) What is stable sorting?
3. Answer any two questions from the following:
e) What is a circular linked list? What is the
5×2=10
advantage of a circular queue?
a) Write down the algorithm/pseudocode for
f) Find the pre-order, in-order and post-order
selection sort. Write down the C code for
traversals of the following binary tree. deleting the last element of a singly linked list.
2+3
A
b) Implement the ENQUEUE and DEQUEUE
operations of a queue. State an application of
B C queue. 4+1
c) The in-order and pre-order traversals of a
binary tree are:
D E
In-order: 4 5 6 3 1 8 7 9 11 10 12
Pre-order: 1 3 5 4 6 7 8 9 10 11 12
F
Construct the binary tree from the given
G
information and find the post-order traversal.
4+1
H I —————