Electronics and Communication Engineering (ECE) Exam  >  Electronics and Communication Engineering (ECE) Tests  >  GATE ECE (Electronics) Mock Test Series 2025  >  Test: Microprocessors - 2 - Electronics and Communication Engineering (ECE) MCQ

Test: Microprocessors - 2 - Electronics and Communication Engineering (ECE) MCQ


Test Description

20 Questions MCQ Test GATE ECE (Electronics) Mock Test Series 2025 - Test: Microprocessors - 2

Test: Microprocessors - 2 for Electronics and Communication Engineering (ECE) 2024 is part of GATE ECE (Electronics) Mock Test Series 2025 preparation. The Test: Microprocessors - 2 questions and answers have been prepared according to the Electronics and Communication Engineering (ECE) exam syllabus.The Test: Microprocessors - 2 MCQs are made for Electronics and Communication Engineering (ECE) 2024 Exam. Find important definitions, questions, notes, meanings, examples, exercises, MCQs and online tests for Test: Microprocessors - 2 below.
Solutions of Test: Microprocessors - 2 questions in English are available as part of our GATE ECE (Electronics) Mock Test Series 2025 for Electronics and Communication Engineering (ECE) & Test: Microprocessors - 2 solutions in Hindi for GATE ECE (Electronics) Mock Test Series 2025 course. Download more important topics, notes, lectures and mock test series for Electronics and Communication Engineering (ECE) Exam by signing up for free. Attempt Test: Microprocessors - 2 | 20 questions in 60 minutes | Mock test for Electronics and Communication Engineering (ECE) preparation | Free important questions MCQ to study GATE ECE (Electronics) Mock Test Series 2025 for Electronics and Communication Engineering (ECE) Exam | Download free PDF with solutions
Test: Microprocessors - 2 - Question 1

If the memory chip size is 256 x 1 bits, the no. of chips required to make up 1 K (1024) bytes of memory are ____

Detailed Solution for Test: Microprocessors - 2 - Question 1

Therefore required number of chips

Test: Microprocessors - 2 - Question 2

The memory map of a 4 K(4096) byte memory chip begins at the location 2000 H. What will be the last address location on the chip.

Detailed Solution for Test: Microprocessors - 2 - Question 2

Address of last memory location can always be find using this formula last location’s address
= Initial address + Hexadecimal equivalent of memory size - (0001 )H

1 Crore+ students have signed up on EduRev. Have you? Download the App
Test: Microprocessors - 2 - Question 3

Q.

In the given figure address range of memory chip will be

Detailed Solution for Test: Microprocessors - 2 - Question 3

Test: Microprocessors - 2 - Question 4

Q.

If in the previous question if input to NAND gate is given directly without using NOT gate then what will be the address range.

Detailed Solution for Test: Microprocessors - 2 - Question 4

Test: Microprocessors - 2 - Question 5

MOV B, M

the addressing mode and number of T-states required for execution of above instruction is

Detailed Solution for Test: Microprocessors - 2 - Question 5

This is a indirect addressing mode because the address of the data which is to be transferred to register B is given by register pair HL.
It’s execution involves 2 machine cycles opcode fetch cycle and memory read cycle and total 7-T states.

Test: Microprocessors - 2 - Question 6

Status of flags after execution of SUB A

Detailed Solution for Test: Microprocessors - 2 - Question 6

SUB A when this instruction is executed content of A is subtracted from content of A so content of accumulator after execution of this instruction is

So

Test: Microprocessors - 2 - Question 7

3000 : MVI D, 30H

3002 : MVI E, 01H

3004    : LDAX D

3005    : CPI 40H

3007 : HLT

When above instructions (program) is executed what will be content of A and status of flag CY and Z.

Detailed Solution for Test: Microprocessors - 2 - Question 7

therefore, CY = 1,Z = 0 and in compare instruction content of accumulator remains unchanged. Therefore content of A = (30)H.
So, correct option is (c).

Test: Microprocessors - 2 - Question 8

Mathematical function performed by the following instructions:

MVI A, 07H

RLC

MOV B,

A RLC

RLC

ADD B

Detailed Solution for Test: Microprocessors - 2 - Question 8

Initial content of A = (07)H = (7)10. So this set of instructions multiply the content of A by 10.

Test: Microprocessors - 2 - Question 9

What will be content of accumulator after execution of following instructions. Also what will be sign and carry flag.

MVI A, 79H

ANI A,

FOH

RRC

RRC

RRC

RRC

Detailed Solution for Test: Microprocessors - 2 - Question 9

Before execution first RRC,

Test: Microprocessors - 2 - Question 10

In which case RLC and RAL will give the same result

Detailed Solution for Test: Microprocessors - 2 - Question 10

In both cases D7 becomes carry flag, but in case of RAL carry before execution of this instruction goes to D0 while in case of RLC, D7 goes to D0. So when D7 and CY will be same then D0 in both cases will be same and result will be same.

Test: Microprocessors - 2 - Question 11

Specify the accumulator content and flag status (S, Z, CY) as the following instructions are executed.
XRA A

MVI B, 4AH

SUI 4FH

ANAB

HLT

Detailed Solution for Test: Microprocessors - 2 - Question 11

Test: Microprocessors - 2 - Question 12

20FC : MVIB,

20H 20FE : MVI C, FFH

2100 : LDAXB

ADD C

JC display

MOV A, C

OUT 01H

HLT

display : OUT 01H

Detailed Solution for Test: Microprocessors - 2 - Question 12


Now LDXA B → load the accumulator by the content at memory location pointed by BC register pair.
i.e. loaded by content at memory location
BC = 20FFH

Carry flag is set because carry is generated at MSB of the addition. Now conditional jump instruction JC display will be satisfied (condition is true) so control goes to display.
Therefore, output at port 01H = (FE)H.

Test: Microprocessors - 2 - Question 13

MVI A, 17H

LOOP:ORA A

RRC

JNC  LOOP

How many times the loop will be executed in above program,

Detailed Solution for Test: Microprocessors - 2 - Question 13

the conditional jump JNC LOOP will transfer the control to LOOP if condition is true i.e. carry CY = 0. But there CY = 1 so condition is false so it comes out of loop. So loop will be executed only once.

Test: Microprocessors - 2 - Question 14

LXI SP, 209FH

MVI C, OOH

PUSH B P

OPPSW

RET

Q.

The function of above subroutine is

Detailed Solution for Test: Microprocessors - 2 - Question 14

So function of above subroutine is to reset all the flags.

Test: Microprocessors - 2 - Question 15

LXI SP, 209FH

MVI C, OOH

PUSH B P

OPPSW

RET

Q.

What will be the stack pointer after the execution of given subroutine in previous question?

Detailed Solution for Test: Microprocessors - 2 - Question 15

Since push instruction decreamented the stack pointer by 2. While POP operation increamented the stack pointer by 2.
Since there are one PUSH and one POP so overall effect is cancelled and content of SP remains unchanged.
SP = 209F

Test: Microprocessors - 2 - Question 16

Call location of TRAP the nonmaskable interrupt is

Detailed Solution for Test: Microprocessors - 2 - Question 16

For finding call location we treat it as RST 4.5.
So, call location = Hexadecimal equivalent of 8 x4.5
= (36)10 = (0024)H

Test: Microprocessors - 2 - Question 17

Given:
MVI A, OEH

SIM

In above subroutine which one of the following interrupt is enabled?

Detailed Solution for Test: Microprocessors - 2 - Question 17

SIM instruction interprets the accumulator content as

 

Test: Microprocessors - 2 - Question 18

Initially the memory is given as above.

LX I SP, 30FAH

POP D

LHLD 30FCH

SPHL

LDAXD

MOVC, A

INXD

LDAXD

MOV B, A

HLT

After the execution of following program which of the following is true.

Detailed Solution for Test: Microprocessors - 2 - Question 18

 

LDAX D → load accumualtor indirect by the content at memory location pointed by DE pair.

Test: Microprocessors - 2 - Question 19

LX I B,2384H
LOOP:    DCX B    Clock frequency
MOV A, C               is 2 MHz.
ORAB

JNZ LOOP

The delay provided by above set of instructions, neglecting delay due to LXI instruction is    _____________msec

Detailed Solution for Test: Microprocessors - 2 - Question 19

The loop includes four instructions DCX, MOV, ORA, and JNZ takes 24 clocks (6 + 4 + 4 + 10) for execution. The loop is repeated 2384H times. Which is converted to decimal as

it will be executed 2383H times completely and 1 time partially as condition becomes false f = 2 MHz.

 

Test: Microprocessors - 2 - Question 20

Identify the contents of the memory location XX65H and the status of the flags S, Z, CY when the instruction INR M is executed.

LX I H,XX65H

MVI M, FFH

INR M

HLT

Detailed Solution for Test: Microprocessors - 2 - Question 20

LXI H, XX65H → HL = XX65H MVI M, FFH
Memory location pointed by HL pair will be loaded by the immediate data that is data at

INR M    data at memory location pointed by HL pair is increamented by 1 so it becomes

25 docs|263 tests
Information about Test: Microprocessors - 2 Page
In this test you can find the Exam questions for Test: Microprocessors - 2 solved & explained in the simplest way possible. Besides giving Questions and answers for Test: Microprocessors - 2, EduRev gives you an ample number of Online tests for practice

Top Courses for Electronics and Communication Engineering (ECE)

Download as PDF

Top Courses for Electronics and Communication Engineering (ECE)