Important Bits and Answers for CSC

download Important Bits and Answers for CSC

of 31

Transcript of Important Bits and Answers for CSC

  • 8/3/2019 Important Bits and Answers for CSC

    1/31

    Important Bits and Answers

    for CSC

    - baapek

  • 8/3/2019 Important Bits and Answers for CSC

    2/31

    The OR gate can be converted to the NAND function by

    adding----gate(s)to the input of the OR gate.

    a) NOT

    b) AND

    c) NORd) XOR

  • 8/3/2019 Important Bits and Answers for CSC

    3/31

  • 8/3/2019 Important Bits and Answers for CSC

    4/31

  • 8/3/2019 Important Bits and Answers for CSC

    5/31

    For 1MB memory, the number of address lines

    required

    a)12 b)16 c)20 d)32

    There is a circuit using 3 nand gates with 2

    inputes and 1 output,f ind the output.

    a) AND b) OR c) XOR d) NAND

  • 8/3/2019 Important Bits and Answers for CSC

    6/31

    .what is done for push operation

    a) SP is incremented and then the value isstored.

    b) PC is incremented and then the value isstored.

    c) PC is decremented and then the value is

    stored. d) SP is decremented and then the value is

    stored.

    http://www.freshersworld.com/placementweek/showpaper.asp?cid=224&pid=12555&pgcount=1&prio=3http://www.freshersworld.com/placementweek/showpaper.asp?cid=224&pid=12555&pgcount=1&prio=3
  • 8/3/2019 Important Bits and Answers for CSC

    7/31

    Memory allocation of variables declared in a

    program is ------

    a) Allocated in RAM

    b) Allocated in ROM

    c) Allocated in stack

    d) Assigned in registers.

  • 8/3/2019 Important Bits and Answers for CSC

    8/31

    purpose of PC (program counter)in a

    microprocessor is ----

    a) To store address of TOS(top of stack)

    b) To store address of next instructions to be

    executed

    c) count the number of instructions d) to store the base address of the stack.

  • 8/3/2019 Important Bits and Answers for CSC

    9/31

    In 8085 which is called as High order / Loworder Register? -

    Flag is called as Low order register &

    Accumulator is called as High order Register.

  • 8/3/2019 Important Bits and Answers for CSC

    10/31

    What happens when HLT instruction is

    executed in processor? -

    The Micro Processor enters into Halt-State and

    the buses are tri-stated.

    Stack pointer is a special purpose 16-bit register

    in the Microprocessor, which holds the

    address of the top of the stack.

  • 8/3/2019 Important Bits and Answers for CSC

    11/31

    Which interrupt is not level-sensitive in 8085? -

    RST 7.5 is a raising edge-triggering interrupt.

    In 8085 ,three RST pins are available, such as RST 7.5 ,RST6.5 , RST 5.5. RST represents Restart Interrupts. These arevectored interrupts that transfer the program control tospecific memory locations. They have higher priorities

    than the INTR interrupt. Among these three, the priorityorder is

    7.5,6.5,5.5.

  • 8/3/2019 Important Bits and Answers for CSC

    12/31

    conditional results after execution of an

    instruction in a microprocess is stored in

    a) register b) accumulator c) flag register d)

    flag register part of PSW (program status

    word)

  • 8/3/2019 Important Bits and Answers for CSC

    13/31

    In 8051microcontroller ,------

    has a dual function.

    a) port 3

    b) port 2

    c) port 1

    d) port 0

  • 8/3/2019 Important Bits and Answers for CSC

    14/31

    What are Hardware interrupts?

    - TRAP, RST7.5, RST6.5, RST5.5, INTR.

    Which interrupt has the highest priority? - TRAP

    has the highest priority.

    What is clock frequency for 8085? -

    3 MHz is the maximum clock frequency for 8085.

  • 8/3/2019 Important Bits and Answers for CSC

    15/31

    A positive going pulse which is always

    generated when 8085 MPU begins the

    machine cycle.

    a) RD b) ALE c) WR d) HOLD

    when a ----- instruction of 8085 MPU is

    fetched , its second and third bytes are placed

    in the W and Z registers.

    a) JMP b) STA c) CALL d) XCHG

  • 8/3/2019 Important Bits and Answers for CSC

    16/31

    what is defined as one subdivision of the

    operation performed in one clock period.

    a) T- State b) Instruction Cycle c) Machine Cycle

    d) All of the above

  • 8/3/2019 Important Bits and Answers for CSC

    17/31

    At the end of the following code, what is thestatus of the flags.

    LXI B, AEC4H

    MOV A,CADD B

    HLT

    a) S = 1, CY = 0, P = 0 , AC = 1

    b) S =0 , CY = 1, P = 0,AC = 1c) S = 0, CY = 1, P = 0 , AC = 1

    d) S = 0, CY = 1, P = 1 , AC = 1

  • 8/3/2019 Important Bits and Answers for CSC

    18/31

    The repeated execution of a loop of code while

    waiting for an event to occur is called ---------.The cpu

    is not engaged in any real productive activity during

    this period,and the process doesnt progress towardscompletion.

    a) dead lock

    b) busy waiting

    c) trap door

    d) none.

  • 8/3/2019 Important Bits and Answers for CSC

    19/31

    microprocessor is ----

    a) To store address of TOS(top of stack)

    b) To store address of next instructions to be executed

    c) count the number of instructions

    d) to store the base address of the stack.

  • 8/3/2019 Important Bits and Answers for CSC

    20/31

    conditional results after execution of an

    instruction in a microprocess is stored in

    a) register

    b) accumulator

    c) flag register

    d) flag register part of PSW (program statusword)

  • 8/3/2019 Important Bits and Answers for CSC

    21/31

    In 8085 MPU what will be the status of the flagafter the execution of the following chunk ofcode.

    MVI B,FFHMOV A,B

    CMA

    HLTa)S = 1, Z = 0, CY = 1 b)S = 0, Z = 1, CY = 0c) S = 1, Z = 0, CY = 0 d)S = 1, Z = 1 ,CY = 1

  • 8/3/2019 Important Bits and Answers for CSC

    22/31

    which of the following instruction is used to

    load 2050h address toHL register pair?

    a.LOD H 2050H

    B.LOAD H 2050H

    C.LXIH 2050H

    D.LDAH 2050H

  • 8/3/2019 Important Bits and Answers for CSC

    23/31

    .what will be the value of the accumalator

    having AAH after executing RLC instruction

    twice?

    a.55h

    b.abh

    c.bah

    d.aah

  • 8/3/2019 Important Bits and Answers for CSC

    24/31

    List the branch related addressing mode:

    Intra segment Direct

    Intra segment Indirect Inter segment Direct

    Inter Segment Indirect

  • 8/3/2019 Important Bits and Answers for CSC

    25/31

    List the functions of Bus Interface Unit in

    8086.

    Sends out addresses

    Fetches instructions from memory

    Reads data from ports and memory

    Writes data to port and memory

  • 8/3/2019 Important Bits and Answers for CSC

    26/31

    Write any two advantages of segment registers in8086

    a. It allows the memory capacity to be 1MB eventhough the address

    associated with individual instructions are 16 bitswide.

    b. It allows the instruction,data, or stack portionof a program to be more

    than 64KB long by using more than one code,data, or stack segment

  • 8/3/2019 Important Bits and Answers for CSC

    27/31

    Define Inter segment addressing mode:

    It replaces the contents of IP with part of the

    instruction and the contents

    of CS with another part of the instruction.

  • 8/3/2019 Important Bits and Answers for CSC

    28/31

    Define XLAT instruction used in 8086.

    It translates a byte in AL using a table in memory. Theoffset address is

    calculated by adding the 8 bit contents of the AL registerand the contents of

    BX register. BX register contains the starting offsetaddress of the Lookup table.

    After execution , corresponding data memory contentsof the lookup table

    are loaded into the AL register.

  • 8/3/2019 Important Bits and Answers for CSC

    29/31

    What is difference between DIV and IDIV

    instruction in 8086 ?

    DIV : It operates only on unsigned number.

    IDIV : It operates only on signed numbers.

  • 8/3/2019 Important Bits and Answers for CSC

    30/31

    What is the value of AL after executing the

    following instructions.

    MOV AL,35H

    ADD AL,49H

    DAA

    Ans : AL= 84

  • 8/3/2019 Important Bits and Answers for CSC

    31/31

    Define LAHF and SAHF instructions in 8086.

    LAHF : Load the 8085 equivalent flags into the

    AH register.

    SAHF: Store the AH register into the low order

    byte of the flag register.