Self Studies

Digital Electronics Test 6

Result Self Studies

Digital Electronics Test 6
  • 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
    1 / -0

    After an arithmetic operation, the flag register of 8085 μP has the following contents.

    D7

    D6

    D5

    D4

    D3

    D2

    D1

    D0

    1

    0

    X

    1

    X

    0

    X

    1

     

    The contents of accumulator after operation maybe 
    Solution

    Concept:

    Flag Register is an 8-bit flag register out of which only 5 bits are used as shown:

    D7

    D6

    D5

    D4

    D3

    D2

    D1

    D0

    Sign Flag

    Zero Flag

    ×

    Auxiliary Carry Flag

    ×

    Parity Flag

    ×

    Carry Flag

     

    D2 (Parity Flag) is set when the result contains an even number of 1’s.

    Application:

    D7

    D6

    D5

    D4

    D3

    D2

    D1

    D0

    S

    Z

    X

    AC

    X

    P

    X

    CY

    1

    0

    X

    1

    X

    0

    X

    1

     

    For the given flag register, we have S = 1 and P = 0 (Odd Parity)

    Since MSB bit (D7) of the accumulator is ‘1’, the result has to have odd parity, i.e. odd number of 1’s.

    We can now analyse the options as shown:

    7E : (0 1 1 1 1 1 1 0)2 : Even number of 1’s

    6C: (0 1 1 0 1 1 0 0)2: Even number of 1’s

    DB: (1 1 0 1 1 0 1 1)2 : Even number of 1’s

    B6: (1 0 1 1 0 1 1 0)2 : Odd number of 1‘s

    ∴ Option (4) is the only possible result
  • Question 2
    1 / -0
    To address the memory, 11 bits are used. Then what is the address of the last memory location.
    Solution

    Memory size = 211× 8

    = 2 × 210 × 8

    = 2 × 1024 × 8

    = 2048 Bytes

    i.e., 0th byte to 2047th byte.

    Address of the last memory location is 2047.
  • Question 3
    1 / -0

    Consider the following representation of codes.

    (R) means the content of register R

    ((R)) means the content of the memory location pointed to be R.

    PC means Program Counter

    SP means Stack Pointer

    When a CALL Addr instruction is executed, which of the following sequential operations is carried out by the CPU internally:
    Solution

    Concept:

    CALL Addr performs the following operations:

    1. Save (store) the contents of PC into the stack.

    Note: In PUSH operation, the stack pointer is decremented and then data is stored at the address location of SP

    2. The address is stored in PC

    Application:

    Now, the sequential operation involved in the execution of “CALL Addr” instruction are:

    (SP) decremented

    ((SP)) ← (PC)

    (PC) ← Addr
  • Question 4
    1 / -0

    Consider the following set of instructions

    MVI

    A, BYTE1

    RLC

     

    MOV

    B, A

    RLC

     

    RLC

     

    ADD

    B

     

    If BYTE1 = 7H, then the content of A, after the execution of the program will be 

    Solution

    The operation for the given instruction set is as explained:

    MVI A, 07 H

    :

    A = 0 0 0 0 0 1 1 1

    RLC

    :

    A = 0 0 0 0 1 1 1 0

    MOV B, A

    :

    A → B = 0 0 0 0 1 1 1 0

    RLC

    :

    A = 0 0 0 1 1 1 0 0

    RLC

    :

    A = 0 0 1 1 1 0 0 0

    ADD B

    :

    A + B → A = 0 1 0 0 0 1 1 0 = 46 H

  • Question 5
    1 / -0

    A number 96 is stored at location 2501 and the following instructions are added

    LDA   2501 H

    CMA

    ADI 01 H

    STA   2502 H

    HLT

    The number stored at location 2502 H is

    Solution

    The number 96, 8-bit format is stored at 2501. The instructions executed are

    LDA 2501 H;   loads the data 96 H in A from 2501 H

    CMA;               Complements the contents of A

    ADI 01 H;        Adds 01 H to A to find 2’s complement

    STA 2502H;    stores the 2’s complement at 2502H

    HLT;                 Halts the execution of program

    ∴ The contents of 2502 H is 2’s complement 8-bit number representing 96, i.e. 10100000.

    96H=1001 0110 binary..A's

    1s complement is complement of 96h ie= 69H 69H= 0110 1001 in binary.

    adding one to it becomes 6A H=0110 1010 in binary

    OR Simply 2s complement of 96h is 0110 1010.

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