0% found this document useful (0 votes)
113 views31 pages

Important Bits and Answers For CSC

The document contains a collection of questions and answers related to computer science concepts like gates, memory, microprocessors, and assembly language instructions. Specifically, it includes questions about converting OR gates to NAND functions, memory addressing, push/pop operations in stacks, program counter functions, flag registers, interrupts, and instructions for 8085, 8051, and 8086 microprocessors.

Uploaded by

baapek
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
113 views31 pages

Important Bits and Answers For CSC

The document contains a collection of questions and answers related to computer science concepts like gates, memory, microprocessors, and assembly language instructions. Specifically, it includes questions about converting OR gates to NAND functions, memory addressing, push/pop operations in stacks, program counter functions, flag registers, interrupts, and instructions for 8085, 8051, and 8086 microprocessors.

Uploaded by

baapek
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 31

Important Bits for CSC Company

Click to edit Master subtitle style

- baapek 4/28/12

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) NOR d) XOR
4/28/12

4/28/12

4/28/12

For 1MB memory, the number of address lines required There is a circuit using 3 nand gates with 2 inputes and 1 output,f ind the output.

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

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


4/28/12

.what is done for push operation a) SP is incremented and then the value is stored. b) PC is incremented and then the value is stored. c) PC is decremented and then the value is stored. d) SP is decremented and then the value is stored. 4/28/12

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.

4/28/12

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. 4/28/12

In 8085 which is called as High order / Low order Register?Flag is called as Low order register & Accumulator is called as High order Register.

4/28/12

What happens when HLT instruction is executed in processor?-

The Micro Processor enters into HaltState and the buses are tri-stated. Stack pointer is a special purpose 16bit register in the Microprocessor, which holds the address of the top of 4/28/12 the stack.

Which interrupt is not levelsensitive in 8085?-

RST 7.5 is a raising edge-triggering interrupt.


In 8085 ,three RST pins are available, such as RST 7.5 ,RST 6.5 , RST 5.5. RST represents Restart Interrupts. These are 4/28/12 vectored interrupts that transfer the

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)

4/28/12

In 8051microcontroller ,------has a dual function. a) port 3 b) port 2 c) port 1 d) port 0


4/28/12

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

4/28/12

A positive going pulse which is always generated when 8085 MPU begins the machine cycle. when a ----- instruction of 8085 MPU is fetched , its second and third bytes are placed in the W and Z registers.

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

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


4/28/12

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

4/28/12

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

LXI B, AEC4H MOV A,C ADD B HLT a) S = 1, CY = 0, P = 0 , AC = 1 b) S =0 , CY = 1, P = 0,AC = 1 4/28/12

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 towards completion.

a) dead lock b) busy waiting c) trap door


4/28/12

d) none.

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.

4/28/12

conditional results after execution of an instruction in a microprocess is stored in register accumulator flag register flag register part of PSW (program status word)

a) b) c) d)

4/28/12

In 8085 MPU what will be the status of the flag after the execution of the following chunk of code.

MVI B,FFH MOV A,B CMA HLT a)S = 1, Z = 0, CY = 1 4/28/12 Z = 1, CY = 0 b)S = 0,

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

4/28/12

.what will be the value of the accumalator having AAH after executing RLC instruction twice? a.55h b.abh c.bah d.aah

4/28/12

List the branch related addressing mode: Intra segment Direct Intra segment Indirect Inter segment Direct Inter Segment Indirect

4/28/12

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

4/28/12

Write any two advantages of segment registers in 8086 a. It allows the memory capacity to be 1MB even though the address associated with individual instructions are 16 bits wide. b. It allows the instruction,data, or stack portion of a program to be more

4/28/12

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.

4/28/12

Define XLAT instruction used in 8086.

It translates a byte in AL using a table in memory. The offset address is calculated by adding the 8 bit contents of the AL register and the contents of BX register. BX register contains the starting offset address of the Lookup table. After execution , corresponding data memory contents of the lookup table
4/28/12

are loaded into the AL register.

What is difference between DIV and IDIV instruction in 8086 ? DIV : It operates only on unsigned number. IDIV : It operates only on signed numbers.

4/28/12

What is the value of AL after executing the following instructions. MOV AL,35H ADD AL,49H DAA Ans : AL= 84

4/28/12

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.

4/28/12

You might also like