Self Studies

Digital Logic Test 1

Result Self Studies

Digital Logic Test 1
  • Score

    -

    out of -
  • Rank

    -

    out of -
TIME Taken - -
Self Studies
Weekly Quiz Competition
  • Question 1
    2 / -0.33
    The Boolean expression A̅⋅B + A.B̅ + A.B is equivalent to
    Solution

    A̅⋅B + A.B̅ + A.B

    = A̅ . B + A(B̅ + B)

    ∵ B̅ + B = 1

    = A̅.B + A

    ∵ x + yz = (x + y).(x + z)

    = (A + A̅).(A + B)

    = (A + B)

    A̅⋅B + A.B̅ +A.B is equivalent to (A + B)
  • Question 2
    2 / -0.33

    Which of the following set of components is sufficient to implement any arbitrary boolean function?

    Solution
    • Functionally complete operations set is a set of logic functions from which any arbitrary Boolean logic function can be realized.
    • Examples of functionally complete operation set are:
    1. OR gate, NOT gate 
    2. AND gate, NOT gate
    3.  NOR gate
    4. NAND gate
    5.  2:1 MUX
    • Any super-set of the above examples will also form a functionally complete operations set.

    Explanation:

    Option 2: AND gates, XOR gates and 1

    A ⊕ B = AB̅ + A̅.B

    F(A, B) = AB̅ + A̅.B 

    By taking  B = 1

    F(A, 1) = A1̅  + A̅.1 = A̅ 

    AND gate, NOT gate are functionally complete operations set.

    Functionally complete operations set is sufficient to implement any arbitrary Boolean function

  • Question 3
    2 / -0.33

    Consider a carry look-ahead adder for adding two n-bit integers, built using gates of fan-in at most two. The time to perform addition using this adder is:

    Solution

    Look-ahead carry generator gives output in constant time if the fan in = number of inputs.  

    For example, it will take  O(1) to calculate 

    If the OR gate with 5 inputs is present.

    If we have 8 inputs, and OR gate with 2 inputs, to build an OR gate with 8 inputs, we will need 4 gates in level-1, 2 in level-2 and 1 in level-3. Hence 3 gate delays, for each level.

    Similarly, an n-input gate constructed with 2-input gates, the total delay will be O(log n).

    Hence answer is option B.

  • Question 4
    2 / -0.33
    The minimum number of bits required to represent -12810 in 2's complement form and signed form respectively are:
    Solution

    Concept:

    Range of numbers in 2’s complement form with n bit: - 2n-1 to + (2n-1 - 1)

    Range of numbers in signed form with n bit: (- 2n-1  - 1) to + (2n-1 - 1)

    Calculation:

    For 2’s complement

    - 2n-1 ≤ -128

     2n-1 ≥ 128 

    2n-1= ≥ 27

    n ≥ 7 + 1 ≥ 8

    minimum value of n is 8.

    For signed form:

    - (2n-1 - 1) ≤ -128

     2n-1 ≥ 128  + 1 ≥  129

    n ≥ 9

    Therefore the minimum number of bits required to represent -12810 in 2's complement form and signed form respectively are

  • Question 5
    2 / -0.33
    If there are p input lines and q output lines for a decoder that is used to uniquely address a byte-addressable 64 KB RAM, then the minimum value of p + q is ______.
    Solution

    Concept: 

    A decoder with k input lines has 2k output lines.

    Calculation:

    The memory is byte-addressable. So 64 KB = 216 B.

    16 × 216 decoders.

    So, the number of input lines (p) = 16

    Number of output lines (q) = 2p = 216 = 65536

    ∴ p + q = 16 + 65536 = 65552 

  • Question 6
    2 / -0.33
    The representation of the value of a 32 bit unsigned integer X in hexadecimal number system is ABCDEF98. The representation of the value of X in octal number is
    Solution

    Decimal conversion → binary → Hexadecimal (4 bit)

    Decimal

    0

    1

    2

    3

    4

    5

    6

    7

    8

    9

    10

    11

    12

    13

    14

    15

    Binary

    0000

    0001

    0010

    0011

    0100

    0101

    0110

    0111

    1000

    1001

    1010

    1011

    1100

    1101

    1110

    1111

    Hex

    0

    1

    2

    3

    4

    5

    6

    7

    8

    9

    A

    B

    C

    D

    E

    F

     

    Decimal conversion → binary → Octal (3 bit)

    Decimal

    0

    1

    2

    3

    4

    5

    6

    7

    Binary

    000

    001

    010

    011

    100

    0101

    110

    111

    Octal

    0

    1

    2

    3

    4

    5

    6

    7

     

    (ABCDEF98)16 = (1010 1011 1100 1101 1110 1111 1001 1000)2

    (010 101 011 110 011 011 110 111 110 011 000)2 = (25363367630)8

  • Question 7
    2 / -0.33

    Consider the binary number in 32-bit (single precision) IEEE-754 format:

    00110010001101100000000000000000

    What is the decimal value closest to the above given floating-point number?
    Solution

    Concept:

    32-bit floating-point representation of a binary number in IEEE- 754 is

    Sign (1 bit)

    Exponent (8 bit)

    Mantissa bit (23 bits)


    Calculation:

    Binary number is

    0 0110010 01101100000000000000000

    Here, sign bit is 0. So, number is positive.

    0

    01100100

    011011000000000000000000


    Exponent bits = E = 01100100 = 100 (in decimal)

    Mantissa bits M = 01101100000000000000000

    In IEEE-754 format, 32-bit (single precision)

    (-1)s × 1.M × 2E – 127

    = (-1)0 × 1. 011011 × 2100 – 127

    = 1. 011011 × 2-27

    = (1 + 2-2 + 2-3 + 2-5 + 2-6) × 2-27

    = 1.421875 × 2-27

    = 22.75 × 2-31

  • Question 8
    2 / -0.33
    If F(P, Q) = \(\overline {P + \bar Q + PQ} \) then what is the value of F(F(M, N̅), M + N)
    Solution

    \(\overline {P + \bar Q + PQ} = \overline {{\rm{P}} + \left( {{\rm{\bar Q}} + {\rm{Q}}} \right).\left( {{\rm{\bar Q}} + {\rm{P}}} \right)} \)

    \({\rm{F}}\left( {{\rm{P}},{\rm{\;Q}}} \right) = \overline {{\rm{P}} + {\rm{\bar Q}} + {\rm{P\;}}} = {\rm{\bar P}}.{\rm{Q}}\)

    \({\rm{F}}\left( {{\rm{M}},{\rm{\;\bar N}}} \right) = {\rm{\bar M}}.{\rm{\bar N\;}}\)

    \({\rm{F}}\left( {{\rm{\bar M}}.{\rm{\bar N}},{\rm{\;M}} + {\rm{N}}} \right) = \overline {{\rm{\bar M}}.{\rm{\bar N}}} .\left( {{\rm{M}} + {\rm{N}}} \right) = \left( {{\rm{M}} + {\rm{N}}} \right)\left( {{\rm{M}} + {\rm{N}}} \right) = {\rm{M}} + {\rm{N}}\)
  • Question 9
    2 / -0.33
    Which of the following is not equivalent to (a ⊕ b) if ⊕ and ⊙ denote the Exclusive OR and Exclusive NOR operation respectively?
    Solution

    a ⊙ b = a̅b̅ + ab

    a ⊕ b = a̅b + ab̅

    a̅ ⊕ b̅ = ab̅ + a̅b = a ⊕ b

    a ⊙ b̅ = a̅b + ab̅ = a ⊕ b

    a̅ ⊙ b = ab̅ + a̅ b = a ⊕ b

    a ⊕ b̅ = a̅b̅ + ab = a ⊙ b

    ∴ option 4 is not equivalent to a ⊕ b
  • Question 10
    2 / -0.33

    Consider an eight-bit ripple-carry adder for computing the sum of A and B, where A and B are integers represented in 's complement form. If the decimal value of A is one, the decimal value of B that leads to the longest latency for the sum to stabilize is ___________

    Solution

    In case of -1  we get bit sequence 11111111 adding this we get a carry upto carry flag,so largest time to ripple !

  • Question 11
    2 / -0.33

    The Boolean function with the Karnaugh map is:

    Solution

    K – map:

    Let f(A, B, C, D) = B + AD + CD

    f(A, B, C, D) = B + (A + C)D

    ∴ f(A, B, C, D) = (A + C)D + B

  • Question 12
    2 / -0.33
    Consider the equation (146)b​ + (313)​b-2​ = (246)8. Which of the following is the value of b?
    Solution

    (146)b + (313)b-2 = (246)8

    b2 + 4b + 6 + 3(b-2)2 + (b-2) + 3 = 2× 82 + 4×8 + 6

    4b2 – 7b + 19 = 166

     4b2 – 7b – 147 = 0

    4b2 – 28b + 21b – 147 = 0

    4b(b –  7) + 21(b – 7) = 0

    (b – 7).(4b + 21) = 0

    ∴ b = 7 or b = -21 ÷ 4

    Since b cannot be negative or in fraction

    ∴ b = 7

    Alternate Method:

    Substitute and check the result

    b = 7

    (146)7 + (313)7-2 = (246)8

    LHS = (146)7 + (317)7-2

     (146)7 = 1 × 72 + 4 ×71 + 6 × 70 = 49 + 28 + 6 = (83)10

    (313)5 = 3 × 52 + 1 × 5 + 7× 50 = 75 + 5 + 3 = (83)10

    LHS = (83)10 + (83)10 = (166)10  

    RHS = (246)8

    = 2 × 82 + 4 ×81 + 6 × 80

    = 128 + 32 + 6 = (166)10  

    LHS = RHS equal only if b is 7.
  • Question 13
    2 / -0.33

    An N-bit carry lookahead adder, where N is a multiple of 4, employs ICs 74181 (4 bit ALU) and 74182 (4 bit carry lookahead generator).

    The minimum addition time using the best architecture for this adder is

    Solution

    For N = 64 bits

    Suppose you want to build a 64 bit adder then you need 16 4-bit ALU and 16 4-bit carry generator, at this point there will be 16 carries that will ripple through these 16 ALU modules, to speed up the adder we need to get rid of these 16 rippling carries, now we can again use 4 4-bit carry generator to generate these 16 carries, now we have only 4 carries to ripple through, again we can use the same trick to minimize the rippling of these 4 carries, we can use an additional 4-bit carry generator which will generate these carry and we are done :) there will be no more propagation of carry among the ALU modules.

    So the we have used 3 level of 4-bit carry generator, and the time taken to add 64 bits will be proportional to 3 which is log464.

    So in general to add N-bits it takes Log4N time.

  • Question 14
    2 / -0.33

    The number of full and half-adders required to add 16-bit numbers is:

    Solution

    For LSB addition we do not need a full adder for addition of subsequent bits we need full adders since carry from previous addition has to be fed into the addition operation

  • Question 15
    2 / -0.33

    The following circuit compares two 2-bit binary numbers, X and Y represented by X1X0 and Y1Y0 respectively. (X0 and Y0 represent Least Significant Bits)

    Under what condition Z will be 1?

    Solution

    Let’s name the circuit for our convenience.

    A, B, C, and D are assumed output of the above given gates:

    A = X1.Y̅1

    B = XY

    C = X0.Y̅0

    D = B.C

    Z = A + D

    Truth table

    X1

    X0

    Y1

    Y0

    A

    B

    C

    D

    Z

    0

    0

    0

    0

    0

    1

    0

    0

    0

    0

    0

    0

    1

    0

    1

    0

    0

    0

    0

    0

    1

    0

    0

    0

    0

    0

    0

    0

    0

    1

    1

    0

    0

    0

    0

    0

    0

    1

    0

    0

    0

    1

    1

    1

    1

    0

    1

    0

    1

    0

    1

    0

    0

    0

    0

    1

    1

    0

    0

    0

    1

    0

    0

    0

    1

    1

    1

    0

    0

    0

    0

    0

    1

    0

    0

    0

    1

    0

    0

    0

    1

    1

    0

    0

    1

    1

    0

    0

    0

    1

    1

    0

    1

    0

    0

    1

    0

    0

    0

    1

    0

    1

    1

    0

    1

    0

    0

    0

    1

    1

    0

    0

    1

    0

    1

    0

    1

    1

    1

    0

    1

    1

    0

    0

    0

    1

    1

    1

    1

    0

    0

    1

    1

    1

    1

    1

    1

    1

    1

    0

    1

    0

    0

    0

     

    As it can be seen, wherever X > Y, Z = 1.

  • Question 16
    2 / -0.33

    A 4-bit carry look ahead adder, which adds two 4-bit numbers, is designed using AND, OR, NOT, NAND, NOR gates only.Assuming that all the inputs are available in both complemented and uncomplemented forms and the delay of each gate is one time unit, what is the overall propagation delay of the adder? Assume that the carry network has been implemented using two-level AND-OR logic.

    Solution


    XOR can be implemented in 2 levels; level-1 ANDs and Level-2 OR. Hence it would take 2 time units to calculate  Pi and Si 

    Level-2 we get the carries by computing the disjunction (OR).

    3. (2 time units) Finally we compute the Sum in 2 time units, as its an XOR operation.

    Hence the total is 2 + 2 + 2 = 6 time units.

  • Question 17
    2 / -0.33

    The maximum gate delay for any output to appear in an array multiplier for multiplying two-bit numbers is:

    Solution

    In a N X M array multiplier we have N * M AND gates and (M-1) N bit adders used.

    Total delay in N X M (N>=M) array multiplier due to AND gate in partial products at all level is just 1 unit AND gate delay as the operation is done parallel wise at each step. Now delays at level 1 to (M-1) is = (M-1)*delay due to 1 unit of N bit adder.  Therefore the maximum gate delay is O(M) but here M=N therefore O(N).

  • Question 18
    2 / -0.33

    Consider three registers R1, R2 and R3 that store numbers in IEEE-754 single precision floating point format. Assume that R1 and R2 contain the values (in hexadecimal notation) 0x42200000 and 0xC1200000, respectively.

    If R3 \(= \frac{{R1}}{{R2}},\) what is the value stored in R3?

    Solution

    Concept:

     In IEEE- 754 single precision format, a floating-point number is represented in 32 bits.

    Sign bit (MSB)

    Biased Exponent (E’)

    (8 bits)

    Normalized Mantissa (M’) (23 bits)

     

    Sign bit value 0 means positive number, and 1 means a negative number.

    The floating-point number can be obtained by formula: ± 1. M × 2(E-127)

    Data:

    Content of R1: 0x 42200000               (0x means Hexadecimal notation)

    Content of R2: 0x C1200000

    Calculation:

    Content of R1 in Hex (0x) is 42200000. After converting into binary, it can be represented in IEEE- 754 format as:

    0

    100 0010 0

    010 0000 0000 0000 0000 0000

     

    Sign bit is 0 i.e. the number is positive

    Biased Exponent (E’) = 100 0010 0 = 132

    Normalized Mantissa (M) = 010 0000 0000 0000 0000 0000 = .25

    Therefore, the number in register R1 = + 1.25 * 2(132-127) = 1.25 × 32 = 40

    Content of R2 in Hex (0x) is C1200000. After converting into binary, it can be represented in IEEE- 754 format as:

    1

    100 0001 0

    010 0000 0000 0000 0000 0000

     

    Sign bit is 1 i.e. the number is negative

    Biased Exponent (E’) = 100 0001 0 = 130

    Normalized Mantissa (M) = 010 0000 0000 0000 0000 0000 = .25

    Therefore, the number in register R1 = - 1.25 * 2(130-127) = -1.25 * 8 = -10

    R3 = R1/R2 = 40/-10 = -4

    Since the number is negative, Sign bit (MSB) = 1

    Converting 4 into binary of a floating point gives: (100.0)2

    Representing it into normalized form gives:  (1.000000….) × 22

    Therefore, Mantissa is 23 bits of all 0s

    Biased Exponent (E’) = E+ 127 = 2+127 = 129 = (10000001)2

    It can be represented in IEEE- 754 format as:

    1

    100 0000 1

    000 0000 0000 0000 0000 0000

     

    Converting it into Hex format gives: 0x C0800000

  • Question 19
    2 / -0.33

    Consider an array multiplier for multiplying two n bit numbers. If each gate in the circuit has a unit delay, the total delay of the multiplier is:

    Solution

    Take A = A1 A2 A3 A4
    B =   B1 B2 B3 B4 

    Now to multiply these two numbers.  
    1 and gate require b1 multiply with a1 a2 a3 a4. 
    1 and gate require b2 multiply with a1 a2 a3 a4. 
    1 and gate require b3 multiply with a1 a2 a3 a4.
    1 and gate require b4 multiply with a1 a2 a3 a4.  
     Now 3 or gate require.

    Total 7 gates are required for 4 bit take n bit u find 2n-1.
    So time complexity will be = ϴ(n)

  • Question 20
    2 / -0.33

    The total number of Boolean functions which can be realised with four variables is:

    Solution

    A Boolean function of 4 variables is a function from a set 24 = 16 of elements (all combinations of 4 variables) to a set of 2 ({0, 1}) elements. So, number of such functions will be 216 = 65,536

  • Question 21
    2 / -0.33

    The next state table of a 2-bit saturating up-counter is given below.

    Q1

    Q0

    \({Q_{1}^{+}}\)

    \({Q_{0}^{+}}\)

    0

    0

    1

    0

    0

    1

    0

    1

    1

    0

    1

    0

    1

    1

    0

    1


    The counter is built as a synchronous sequential circuit using T flip-flops. The expressions for T1 and T0 are

    Solution

    Concept:

     Output of T flip flop will change when T = 1 and remain same when T = 0

    Excitation table for T flip flop

    Q1

    Q0

    \(Q_{1}^{+}\)

    \(Q_{0}^{+}\)

    T1

    T0

    0

    0

    1

    0

    1

    0

    0

    1

    0

    1

    0

    0

    1

    0

    1

    0

    0

    0

    1

    1

    0

    1

    1

    0


    From this table, 

    T0 = 0

    T1 = Q̅1.+ Q1Q= Q⊙ Q0

  • Question 22
    2 / -0.33

    The simultaneous equations on the Boolean variables x, y, z and w,

    have the following solution for x, y, z and w, respectively:

    Solution

  • Question 23
    2 / -0.33
    How many pulses are needed to change the contents of a n-bit upcounter from x10 to y10 if x > y and x is less than 2n?
    Solution

    n bit Up-counter counts from 0 to 2n – 1

    x > y

    From x to 2n – 1 number of pulses needed = (2n – 1) – x

    From 2n – 1 to 0 number of pulses needed = 1

    From 0 to y umber of pulses needed = y – 0 = y

    Total number of pulses needed = 2n – 1 – x + 1 + y = 2n + y - x
  • Question 24
    2 / -0.33

    Consider the Boolean operator # with the following properties :

    Solution

  • Question 25
    2 / -0.33

    What is the final value stored in the linear feedback shift register if ⊕ is XOR and the input is 1101101?

    Solution

    Clocks

    Initial

    1

    0

    0

    1

    1

    1

    1

    0

    1

    0

    0

    1

    2

    0

    1

    0

    1

    0

    0

    3

    1

    1

    1

    0

    1

    0

    4

    1

    1

    1

    1

    0

    1

    5

    0

    1

    1

    1

    1

    0

    6

    1

    1

    1

    1

    1

    1

    7

    1

    0

    1

    1

    1

    1

Self Studies
User
Question Analysis
  • Correct -

  • Wrong -

  • Skipped -

My Perfomance
  • Score

    -

    out of -
  • Rank

    -

    out of -
Re-Attempt Weekly Quiz Competition
Self Studies Get latest Exam Updates
& Study Material Alerts!
No, Thanks
Self Studies
Click on Allow to receive notifications
Allow Notification
Self Studies
Self Studies Self Studies
To enable notifications follow this 2 steps:
  • First Click on Secure Icon Self Studies
  • Second click on the toggle icon
Allow Notification
Get latest Exam Updates & FREE Study Material Alerts!
Self Studies ×
Open Now