Aspire's Library

A Place for Latest Exam wise Questions, Videos, Previous Year Papers,
Study Stuff for MCA Examinations

UGC NET Computer Science Previous Year Questions (PYQs)

UGC NET Computer Science Structure Of Instructions In CPU PYQ


UGC NET Computer Science PYQ

Which type of addressing mode requires the least number of memory references?






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2019 (Paper II) PYQ

Solution

In implied addressing mode, the operand is already implied in the instruction.

So, there is no need to specify any operand address separately.

Therefore, implied addressing mode requires the least number of memory references.


UGC NET Computer Science PYQ

A computer uses a memory unit of $512K$ words of $32$ bits each. A binary instruction code is stored in one word of the memory. The instruction has four parts: an addressing mode field to specify one of the two-addressing mode $($direct and indirect$)$, an operation code, a register code part to specify one of the $256$ registers and an address part. How many bits are there in addressing mode part, opcode part, register code part and the address part?






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science Dec 2019 (Paper II) PYQ

Solution

Memory size is $512K$ words.

$512K=512\times 1024=2^9\times 2^{10}=2^{19}$

So, address part requires $19$ bits.

There are $2$ addressing modes, direct and indirect.

So, addressing mode part requires:

$\log_2 2=1$ bit

There are $256$ registers.

So, register code part requires:

$\log_2 256=8$ bits

Total instruction size is $32$ bits.

Opcode bits:

$32-(1+8+19)$

$=32-28$

$=4$

So, bits are:

$1,4,8,19$


UGC NET Computer Science PYQ

Consider the following statements:

$(i)$ Auto increment addressing mode is useful in creating self-relocating code.
$(ii)$ If auto increment addressing mode is included in an instruction set architecture, then an additional ALU is required for effective address calculation.
$(iii)$ In auto increment addressing mode, the amount of increment depends on the size of the data item accessed.

Which of the above statements is/are true?






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science Dec 2018 (Paper II) PYQ

Solution

Statement $(i)$ is false.

Self-relocating code is mainly supported by relative addressing, not by auto increment addressing.

Statement $(ii)$ is false.

Auto increment addressing does not necessarily require an additional ALU. The increment can be handled by the processor hardware.

Statement $(iii)$ is true.

In auto increment addressing mode, the register is incremented according to the size of the data item accessed.

For example, if byte is accessed, increment may be $1$. If word is accessed, increment may be more.

Therefore, only statement $(iii)$ is true.


UGC NET Computer Science PYQ
A computer uses a memory unit with $256K$ words of $32$ bits each. A binary instruction code is stored in one word of memory. The instruction has four parts: an indirect bit, an operation code and a register code part to specify one of $64$ registers and an address part. How many bits are there in the operation code, the register code part and the address part?





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science Dec 2018 (Paper II) PYQ

Solution

Memory size is

$256K=256\times 1024=2^8\times 2^{10}=2^{18}$ words

So, address part requires

$18$ bits

Number of registers is

$64=2^6$

So, register code requires

$6$ bits

Instruction size is

$32$ bits

Indirect bit requires

$1$ bit

So, operation code bits are

$32-1-6-18=7$

Therefore, operation code, register code and address part are

$7,6,18$


UGC NET Computer Science PYQ
Match List I with List II
 List I

 List II

A. DAA
I. Program Control Instruction
B. LXI
II. Interrupt instruction 
 C. RST
 III. Data Movement Instruction
 D. JMP

IV. Arithmetic Instruction






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science Dec 2022 Shift I (Paper II) PYQ

Solution

DAA means Decimal Adjust Accumulator, so it is an Arithmetic Instruction.

LXI means Load register pair immediate, so it is a Data Movement Instruction.

RST is a Restart instruction, so it is an Interrupt instruction.

JMP is a Jump instruction, so it is a Program Control Instruction.

So,

A → IV
B → III
C → II
D → I

Correct option is:

$\boxed{(b)\ A-IV,\ B-III,\ C-II,\ D-I}$


UGC NET Computer Science PYQ
An instruction is stored at location $500$ with its address field at location $501$. The address field has the value $400$. A processor register $R_1$ contains the number $200$. Match the addressing mode $($List-I$)$ given below with effective address $($List-II$)$ for the given instruction:
List-I Addressing Mode List-II Effective Address
(a) Direct (i) 200
(b) Register indirect (ii) 902
(c) Index with $R_1$ as the index register (iii) 400
(d) Relative (iv) 600





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science Dec 2019 (Paper II) PYQ

Solution

Direct addressing:

$EA=400$

So, (a) $\rightarrow$ (iii)

Register indirect addressing:

$EA=R_1=200$

So, (b) $\rightarrow$ (i)

Index addressing:

$EA=Address+R_1$

$EA=400+200=600$

So, (c) $\rightarrow$ (iv)

Relative addressing:

Instruction is stored at location $500$, address field is at $501$, so next instruction location is $502$.

$EA=PC+Address$

$EA=502+400=902$

So, (d) $\rightarrow$ (ii)

Hence, correct matching is:

$(a)-(iii),\ (b)-(i),\ (c)-(iv),\ (d)-(ii)$


UGC NET Computer Science PYQ
Which of the following is not an example of pseudo-instruction?





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science Nov 2021 (Paper II) PYQ

Solution

Pseudo-instructions are assembler directives.

They guide the assembler but are not executed directly by the CPU.

$ORG$, $DEC$ and $END$ are pseudo-instructions.

$HLT$ is an actual machine instruction used to halt the processor.

So, $HLT$ is not a pseudo-instruction.

UGC NET Computer Science PYQ
Match List-I and List-II
 List-I

List-II 

 a. Direct Addressing
I. MVI A, FFH
 
 b. Indirect addressing
 II. MOV A, B
 c. Register Addressing
 III. STA, FFFFA
 d. Immediate addressing

 IV. MOV A, M

 Choose the correct answer from the options given below:






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science Dec 2022 Shift II (Paper II) PYQ

Solution

Direct Addressing:

In direct addressing, the memory address is directly given in the instruction.

So, STA, FFFFA is direct addressing.

a → III

Indirect Addressing:

In indirect addressing, the memory address is given indirectly through a register pair.

In MOV A, M, M represents the memory location pointed by HL register pair.

b → IV

Register Addressing:

In register addressing, operands are registers.

MOV A, B uses registers A and B.

c → II

Immediate Addressing:

In immediate addressing, data is directly given in the instruction.

MVI A, FFH means FFH is directly loaded into A.

d → I

Correct matching:

a-III, b-IV, c-II, d-I



UGC NET Computer Science


Online Test Series,
Information About Examination,
Syllabus, Notification
and More.

Click Here to
View More

UGC NET Computer Science


Online Test Series,
Information About Examination,
Syllabus, Notification
and More.

Click Here to
View More

Limited Seats
× Aspire MCA Promotion

Game Changer NIMCET Test Series 2026

Boost your preparation with mock tests, analysis and rank-focused practice.

JOIN NOW
Ask Your Question or Put Your Review.

loading...