Set 2
Set 2
PAPER 1 (THEORY)
PART I
Question 1
F = (A + B').(B + CD),
F (P,Q,R) = 1t (1,3)
( -p => q) /\ P = (p /\ -q) V (p /\ q)
(i) (N + 1).B
(ii) (A + B')'
Question 2
INPUT OUTPUT
x y B D
0 0 0 0
0 1 1 1
1 0 0 1
1 1 0 0
Answer the following questions:
(i) Write the SOP expression for D.
(ii) Write the POS expression for B.
(iii) Draw a logic diagram for the SOP expression derived for
D, using only NAND gates.
c. From the logic circuit diagram given below, name the outputs (I),
(2) ~nd (3). 14) Finally derive the Boolean expression and simplify
it to show that it represents a logic gate. Name and draw the
logic gate.
Question 8
An emirp number is a number which is prime backwards and
forwards.
Example: 13 and 31 are both prime numbers.
the original number and the reverse number are prime. by invoking
Question 9
Some of the data members and member functions are given below:
Member functions:
Define the main( )function to create an object and call the functions
Question 10
n]. The 1101 maximum value possible for both om' and 'n' is Design
class Matrix to find the difference of the two matrices. The details
Member functions:
the task.
SECTION –C
Question 11
Member functions:
Member functions:
Question 12
A doubly queue is a linear data structure which enables the user to
add and remove [101 integers from either ends, i.e. from front or
rear. Define a class Dequeue with the following details:
Member functions:
lim=l; front=rear=O
void addfront(int val): to add integer from the front if possible else