Professional Documents
Culture Documents
Half Yearly Exam: 2021-22
Half Yearly Exam: 2021-22
PART – I
Answer all questions.
While answering questions in this Part, indicate briefly your working and reasoning, Wherever
required.
Q:1
(a) Draw the logic diagram and truth table for 2 input XNOR gate. (01)
(b) State the De-Morgan’s law and verify it, using the truth table. (01)
(c) Draw a logic circuit for (A+B).(C+D).C (01)
(d) If (~P =>Q ) then write its: (i) Inverse (ii) Converse (01)
(e) State the difference between functions int nextInt() and boolean hasNextInt(). (01)
Q:2
(a) What is Interface? (02)
(b) Write an example of Compare To() function with return data type. (02)
(c) What is a Constructor? Explain with example. (02)
(d) Verify the following proposition with the help of a truth table:
(P∧Q)∨(P∧~Q) = P (02)
(e) Convert the following function into its Canonical Sum of Product form.
F(X,YZ)= (0,1,4,7) (02)
Q:3
(a) The following function Mystery( ) is a part of some class. What will the function
Mystery( ) return when the value of num=43629, x=3 and y=4 respectively? Show
the dry run/working (05)
PART – II
Answer seven questions in this part, choosing two questions from
Section A, two section from Section B and one from Section C.
SECTION : A (Any Two )
Q:4
(a) Given the Boolean function F(A,B,C,D) = ⅀(0, 2, 3, 4, 5, 8, 10, 11, 12, 13)
(i) Reduce the above expression by using 4-variable Karnaugh Map,
Showing the various groups (i.e octal,quads,and pairs). (04)
(ii) Draw the logic gate diagram for reduced expression. Assume that the
Variables and their components are available as inputs. (01)
(b) Given the Boolean function P(A,B,C,D) = π(0, 1, 2, 8, 9, 11, 13, 15)
(i) Reduce the above expression by using 4-variable Karnaugh Map, Showing
the various groups (i.e octal,quads,and pairs). (04)
(ii) Draw the logic gate diagram for reduced expression.Assume that
the Variables and their components are available as inputs. (01)
Q:5
(a) With the help of a logic diagram and truth table explain a Decimal to Binary Encoder. (05)