Self Studies
Selfstudy
Selfstudy

Digital Logic Test 1

Result Self Studies

Digital Logic Test 1
  • Score

    -

    out of -
  • Rank

    -

    out of -
TIME Taken - -
Self Studies

SHARING IS CARING

If our Website helped you a little, then kindly spread our voice using Social Networks. Spread our word to your readers, friends, teachers, students & all those close ones who deserve to know what you know now.

Self Studies 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
    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 4
    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 5
    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 6
    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 7
    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 8
    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 9
    2 / -0.33

    The minimum number of NAND gates required to implement the Boolean function \(A +A\bar B+AB\bar C\) is equal to

    Solution

    \(A +A\bar B+AB\bar C = A(1+\bar B+B\bar C) = A.1 =A\)

    Hence we can simply take A as output and ignore all other inputs.

  • Question 10
    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 11
    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 12
    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 13
    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
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