Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

1.

The type of memory assignment used in Intel processors is _____(a) Little Endian(b) Big Endian(c) Medium Endian(d) None of the mentionedThis question was posed to me during an interview.The origin of the question is Memory Locations and Addresses topic in chapter Machine Instructions and Programs of Computer Architecture

Answer»

Right OPTION is (a) Little Endian

Best EXPLANATION: The method of address ALLOCATION to DATA to be stored is called as memory ASSIGNMENT.

2.

If the subroutine exceeds the private space allocated to it then the values are pushed onto _________(a) Stack(b) System heap(c) Reserve Space(d) Stack frameI have been asked this question by my college professor while I was bunking the class.My question is based upon Parameter Passing and Stack Frame in chapter Machine Instructions and Programs of Computer Architecture

Answer»

Correct ANSWER is (a) Stack

To EXPLAIN: If the ALLOCATED work SPACE is exceeded then the data is pushed onto the system stack.

3.

When dealing with the branching code the assembler ___________(a) Replaces the target with its address(b) Does not replace until the test condition is satisfied(c) Finds the Branch offset and replaces the Branch target with it(d) Replaces the target with the value specified by the DATAWORD directiveI got this question by my college professor while I was bunking the class.This interesting question is from Assembly Language topic in division Machine Instructions and Programs of Computer Architecture

Answer»

Right answer is (c) Finds the Branch offset and REPLACES the Branch target with it

Easiest explanation: When the assembler comes ACROSS the branch CODE, it immediately finds the branch offset and replaces it with it.

4.

If a system is 64 bit machine, then the length of each word will be _______(a) 4 bytes(b) 8 bytes(c) 16 bytes(d) 12 bytesThe question was posed to me during an online exam.This interesting question is from Memory Locations and Addresses in chapter Machine Instructions and Programs of Computer Architecture

Answer»

Correct ANSWER is (b) 8 bytes

The best I can explain: A 64 BIT SYSTEM means, that at a time 64 bit INSTRUCTION can be executed.

5.

In the implementation of a Multiplier circuit in the system we make use of _______(a) Counter(b) Flip flop(c) Shift register(d) Push down stackI got this question during an internship interview.Query is from Numbers and Arithmetic Operations topic in section Machine Instructions and Programs of Computer Architecture

Answer»

The CORRECT answer is (c) Shift register

The EXPLANATION is: The shift registers are USED to STORE the multiplied answer.

6.

When we perform subtraction on -7 and 1 the answer in 2’s complement form is _________(a) 1010(b) 1110(c) 0110(d) 1000This question was posed to me in exam.My doubt stems from Numbers and Arithmetic Operations topic in division Machine Instructions and Programs of Computer Architecture

Answer»

Right choice is (d) 1000

Best explanation: First the 2’s complement is found and that is ADDED to the NUMBER and the overflow is IGNORED.

7.

In the case of, Zero-address instruction method the operands are stored in _____(a) Registers(b) Accumulators(c) Push down stack(d) CacheThis question was addressed to me in homework.My query is from Addressing Modes topic in division Machine Instructions and Programs of Computer Architecture

Answer»

Correct ANSWER is (c) PUSH down stack

Explanation: In this case, the OPERANDS are implicitly LOADED onto the ALU.

8.

The location to return to, from the subroutine is stored in _______(a) TLB(b) PC(c) MAR(d) Link registersThis question was posed to me by my college director while I was bunking the class.This intriguing question originated from Subroutines and Nesting in division Machine Instructions and Programs of Computer Architecture

Answer»

The CORRECT choice is (d) Link registers

For EXPLANATION: The registers store the return address of the routine and is POINTED to by the PC.

9.

_____ method is used to map logical addresses of variable length onto physical memory.(a) Paging(b) Overlays(c) Segmentation(d) Paging with segmentationThe question was asked in an interview for internship.I'd like to ask this question from Memory Locations and Addresses in portion Machine Instructions and Programs of Computer Architecture

Answer»

The correct option is (c) Segmentation

Explanation: Segmentation is a process in which memory is DIVIDED into GROUPS of variable LENGTH called SEGMENTS.

10.

The assembler directive EQU, when used in the instruction: Sum EQU 200 does ________(a) Finds the first occurrence of Sum and assigns value 200 to it(b) Replaces every occurrence of Sum with 200(c) Re-assigns the address of Sum by adding 200 to its original address(d) Assigns 200 bytes of memory starting the location of SumThe question was asked in an interview for job.My enquiry is from Assembly Language in division Machine Instructions and Programs of Computer Architecture

Answer»

The CORRECT OPTION is (b) REPLACES every occurrence of Sum with 200

Easy explanation: This basically is USED to REPLACE the variable with a constant value.

11.

The addressing mode/s, which uses the PC instead of a general purpose register is______(a) Indexed with offset(b) Relative(c) Direct(d) Both Indexed with offset and directThe question was asked in an international level competition.This intriguing question comes from Addressing Modes in chapter Machine Instructions and Programs of Computer Architecture

Answer»

Correct OPTION is (b) Relative

The BEST I can EXPLAIN: In this, the contents of the PC are directly INCREMENTED.

12.

The effective address of the following instruction is MUL 5(R1,R2).(a) 5+R1+R2(b) 5+(R1*R2)(c) 5+[R1]+[R2](d) 5*([R1]+[R2])The question was asked during an interview.The question is from Addressing Modes in chapter Machine Instructions and Programs of Computer Architecture

Answer»

The CORRECT option is (c) 5+[R1]+[R2]

The best I can explain: The addressing mode USED is base with OFFSET and index.

13.

The collection of the above mentioned entities where data is stored is called ______(a) Block(b) Set(c) Word(d) ByteThis question was addressed to me during an internship interview.The question is from Memory Locations and Addresses in section Machine Instructions and Programs of Computer Architecture

Answer» RIGHT option is (c) Word

Explanation: Each READABLE part of the data is CALLED blocks.
14.

An 24 bit address generates an address space of ______ locations.(a) 1024(b) 4096(c) 2^48(d) 16,777,216This question was addressed to me in homework.The query is from Memory Locations and Addresses topic in division Machine Instructions and Programs of Computer Architecture

Answer»

Right ANSWER is (d) 16,777,216

Easiest EXPLANATION: The number of addressable LOCATIONS in the SYSTEM is called as address space.

15.

When we subtract -3 from 2 , the answer in 2’s complement form is _________(a) 0001(b) 1101(c) 0101(d) 1001The question was asked during an online interview.This interesting question is from Numbers and Arithmetic Operations in division Machine Instructions and Programs of Computer Architecture

Answer» CORRECT CHOICE is (c) 0101

Easiest explanation: First the 2’s complement is FOUND and that is added to the number and the OVERFLOW is ignored.
16.

In the following indexed addressing mode instruction, MOV 5(R1), LOC the effective address is ______(a) EA = 5+R1(b) EA = R1(c) EA = [R1](d) EA = 5+[R1]I got this question in an international level competition.My doubt is from Addressing Modes topic in division Machine Instructions and Programs of Computer Architecture

Answer»

Correct CHOICE is (d) EA = 5+[R1]

For EXPLANATION: This instruction is in BASE with offset addressing mode.

17.

The directive used to perform initialization before the execution of the code is ______(a) Reserve(b) Store(c) Dataword(d) EQUThe question was asked by my college professor while I was bunking the class.This key question is from Assembly Language topic in chapter Machine Instructions and Programs of Computer Architecture

Answer»

The correct ANSWER is (c) Dataword

To explain I WOULD say: None.

18.

In case of nested subroutines the return addresses are stored in __________(a) System heap(b) Special memory buffers(c) Processor stack(d) RegistersI have been asked this question during an online interview.This interesting question is from Subroutines and Nesting in portion Machine Instructions and Programs of Computer Architecture

Answer»

Correct OPTION is (c) Processor stack

Explanation: In this case, there will be more NUMBER of RETURN addresses it is stored on the processor stack.

19.

The Instruction fetch phase ends with _________(a) Placing the data from the address in MAR into MDR(b) Placing the address of the data into MAR(c) Completing the execution of the data and placing its storage address into MAR(d) Decoding the data in MDR and placing it in IRI have been asked this question during an interview.This key question is from Instructions and Instruction Sequencing in division Machine Instructions and Programs of Computer Architecture

Answer»

Correct answer is (d) Decoding the data in MDR and placing it in IR

Best explanation: The fetch ENDS with the instruction getting DECODED and being PLACED in the IR and the PC getting incremented.

20.

To get the physical address from the logical address generated by CPU we use ____________(a) MAR(b) MMU(c) Overlays(d) TLBThis question was posed to me at a job interview.The question is from Memory Locations and Addresses in division Machine Instructions and Programs of Computer Architecture

Answer»

The correct ANSWER is (B) MMU

To explain I would say: Memory Management Unit, is used to add the offset to the logical address GENERATED by the CPU to GET the physical address.

21.

The smallest entity of memory is called _______(a) Cell(b) Block(c) Instance(d) UnitI have been asked this question in my homework.The origin of the question is Memory Locations and Addresses in division Machine Instructions and Programs of Computer Architecture

Answer»

The correct CHOICE is (a) Cell

The best I can explain: Each DATA is MADE up of a number of UNITS.

22.

If we want to perform memory or arithmetic operations on data in Hexa-decimal mode then we use _________ symbol before the operand.(a) ~(b) !(c) (dollarSign)(d) *I had been asked this question in an international level competition.My question is from Memory Operations and Management in section Machine Instructions and Programs of Computer Architecture

Answer» RIGHT CHOICE is (C) $

To ELABORATE: NONE.
23.

The most Flexible way of logging the return addresses of the subroutines is by using _______(a) Registers(b) Stacks(c) Memory locations(d) None of the mentionedThe question was asked in class test.My doubt stems from Subroutines and Nesting in chapter Machine Instructions and Programs of Computer Architecture

Answer»

Correct ANSWER is (b) STACKS

Explanation: The stacks are used as Logs for RETURN ADDRESSES of the subroutines.

24.

The transfer of large chunks of data with the involvement of the processor is done by _______(a) DMA controller(b) Arbitrator(c) User system programs(d) None of the mentionedThis question was posed to me in a national level competition.This question is from Memory Operations and Management topic in portion Machine Instructions and Programs of Computer Architecture

Answer»

Correct answer is (a) DMA controller

Explanation: This mode of transfer involves the transfer of a LARGE BLOCK of DATA from the memory.

25.

_____ directive is used to specify and assign the memory required for the block of code.(a) Allocate(b) Assign(c) Set(d) ReserveThe question was asked by my college director while I was bunking the class.My query is from Assembly Language in portion Machine Instructions and Programs of Computer Architecture

Answer»

The correct choice is (d) Reserve

The BEST I can explain: This INSTRUCTION is used to allocate a BLOCK of memory and to store the OBJECT code of the PROGRAM there.

26.

In a system, which has 32 registers the register id is __________ long.(a) 16 bit(b) 8 bits(c) 5 bits(d) 6 bitsI got this question during an interview.My question comes from Instructions and Instruction Sequencing topic in chapter Machine Instructions and Programs of Computer Architecture

Answer»

Right option is (C) 5 bits

To elaborate: The ID is the name tag GIVEN to each of the registers and used to IDENTIFY them.

27.

The processor keeps track of the results of its operations using flags called ________(a) Conditional code flags(b) Test output flags(c) Type flags(d) None of the mentionedThis question was posed to me by my school principal while I was bunking the class.The above asked question is from Numbers and Arithmetic Operations in chapter Machine Instructions and Programs of Computer Architecture

Answer» CORRECT ANSWER is (a) Conditional CODE FLAGS

To elaborate: These flags are used to indicate if there is an overflow or carry or ZERO result occurrence.
28.

The register used to store the flags is called as _________(a) Flag register(b) Status register(c) Test register(d) Log registerThis question was posed to me during a job interview.My query is from Numbers and Arithmetic Operations in portion Machine Instructions and Programs of Computer Architecture

Answer»

Correct choice is (B) Status register

To EXPLAIN: The status register stores the condition CODES of the SYSTEM.

29.

The addressing mode, where you directly specify the operand value is _______(a) Immediate(b) Direct(c) Definite(d) RelativeI have been asked this question in homework.I want to ask this question from Addressing Modes in portion Machine Instructions and Programs of Computer Architecture

Answer» RIGHT ANSWER is (a) Immediate

To EXPLAIN: NONE.
30.

The most efficient method followed by computers to multiply two unsigned numbers is _______(a) Booth algorithm(b) Bit pair recording of multipliers(c) Restoring algorithm(d) Non restoring algorithmThe question was posed to me in an international level competition.I'd like to ask this question from Numbers and Arithmetic Operations topic in division Machine Instructions and Programs of Computer Architecture

Answer»

The correct answer is (b) Bit PAIR RECORDING of multipliers

For explanation I WOULD SAY: None.

31.

______ pointer is used to point to parameters passed or local parameters of the subroutine.(a) Stack pointer(b) Frame pointer(c) Parameter register(d) Log registerThis question was posed to me in exam.My enquiry is from Parameter Passing and Stack Frame in section Machine Instructions and Programs of Computer Architecture

Answer»

The correct CHOICE is (b) Frame pointer

The EXPLANATION is: This pointer is used to track the current POSITION of the STACK being used.

32.

_____ directive specifies the end of execution of a program.(a) End(b) Return(c) Stop(d) TerminateI had been asked this question in an interview.My question is from Assembly Language in chapter Machine Instructions and Programs of Computer Architecture

Answer»

Right CHOICE is (B) Return

The explanation is: This instruction DIRECTIVE is used to terminate the PROGRAM EXECUTION.

33.

The private work space dedicated to a subroutine is called as ________(a) System heap(b) Reserve(c) Stack frame(d) AllocationThis question was addressed to me in an international level competition.This interesting question is from Parameter Passing and Stack Frame in section Machine Instructions and Programs of Computer Architecture

Answer»

Right OPTION is (c) Stack frame

Explanation: This WORK space is where the intermediate VALUES of the SUBROUTINES are stored.

34.

Does the Load instruction do the following operation/s?(a) Loads the contents of a disc onto a memory location(b) Loads the contents of a location onto the accumulators(c) Load the contents of the PCB onto the register(d) None of the mentionedThe question was posed to me during an online exam.My question is based upon Memory Operations and Management topic in portion Machine Instructions and Programs of Computer Architecture

Answer»

Correct option is (b) Loads the contents of a location ONTO the accumulators

The EXPLANATION is: The load INSTRUCTION is basically used to load the contents of a MEMORY location onto a register.

35.

For the addition of large integers, most of the systems make use of ______(a) Fast adders(b) Full adders(c) Carry look-ahead adders(d) None of the mentionedThe question was posed to me during an online exam.My doubt stems from Numbers and Arithmetic Operations in division Machine Instructions and Programs of Computer Architecture

Answer»

Right CHOICE is (c) Carry look-ahead adders

Explanation: In this method, the CARRIES for each step are GENERATED first.

36.

The Flag ‘V’ is set to 1 indicates that _____________(a) The operation is valid(b) The operation is validated(c) The operation has resulted in an overflow(d) None of the mentionedThis question was addressed to me by my school teacher while I was bunking the class.Origin of the question is Numbers and Arithmetic Operations in division Machine Instructions and Programs of Computer Architecture

Answer» CORRECT option is (c) The operation has resulted in an overflow

To explain: This is USED to CHECK the overflow OCCURS in the operation.
37.

The private space gets allocated to each subroutine when _________(a) The first statement of the routine is executed(b) When the context switch takes place(c) When the routine gets called(d) When the Allocate instruction is executedI had been asked this question in an interview for job.The above asked question is from Parameter Passing and Stack Frame topic in chapter Machine Instructions and Programs of Computer Architecture

Answer»

Right ANSWER is (c) When the routine gets called

For explanation: When the CALL STATEMENT is executed, simultaneously space ALSO gets allocated.

38.

_____ the most suitable data structure used to store the return addresses in the case of nested subroutines.(a) Heap(b) Stack(c) Queue(d) ListI got this question in an internship interview.Origin of the question is Parameter Passing and Stack Frame in division Machine Instructions and Programs of Computer Architecture

Answer» CORRECT CHOICE is (B) Stack

Easiest EXPLANATION: NONE.
39.

The reserved memory or private space of the subroutine gets deallocated when _______(a) The stop instruction is executed by the routine(b) The pointer reaches the end of the space(c) When the routine’s return statement is executed(d) None of the mentionedThis question was addressed to me during an online exam.This interesting question is from Parameter Passing and Stack Frame topic in chapter Machine Instructions and Programs of Computer Architecture

Answer»

Right answer is (C) When the routine’s return STATEMENT is executed

Explanation: The work space ALLOCATED to a subroutine gets deallocated when the routine is COMPLETED.

40.

The BOOT sector files of the system are stored in ___________(a) Harddisk(b) ROM(c) RAM(d) Fast solid state chips in the motherboardThis question was posed to me in a job interview.My doubt stems from Memory Operations and Management topic in portion Machine Instructions and Programs of Computer Architecture

Answer»

The correct CHOICE is (B) ROM

To elaborate: The files which are required for the STARTING up of a system are STORED on the ROM.

41.

The assembler stores the object code in______(a) Main memory(b) Cache(c) RAM(d) Magnetic diskThe question was asked in quiz.This intriguing question comes from Assembly Language topic in section Machine Instructions and Programs of Computer Architecture

Answer»

Right OPTION is (d) MAGNETIC disk

For explanation I would say: After compiling the object code, the assembler STORES it in the magnetic disk and waits for further EXECUTION.

42.

The instruction, Add R1,R2,R3 in RTN is _______(a) R3=R1+R2+R3(b) R3

Answer»

Correct answer is (d) R3<-[R1]+[R2]

For explanation: In RTN the first operand is the destination and the SECOND operand is the SOURCE.

43.

Complete the following analogy:- Registers are to RAM’s as Cache’s are to ___________(a) System stacks(b) Overlays(c) Page Table(d) TLBI had been asked this question in examination.Asked question is from Memory Operations and Management in section Machine Instructions and Programs of Computer Architecture

Answer» CORRECT CHOICE is (d) TLB

The EXPLANATION is: NONE.
44.

The unit which acts as an intermediate agent between memory and backing store to reduce process time is ___________(a) TLB’s(b) Registers(c) Page tables(d) CacheThis question was addressed to me during an interview for a job.My query is from Memory Operations and Management in chapter Machine Instructions and Programs of Computer Architecture

Answer»

Correct option is (d) CACHE

To elaborate: The cache’s HELP in data transfers by storing most RECENTLY USED memory pages.

45.

When generating physical addresses from a logical address the offset is stored in __________(a) Translation look-aside buffer(b) Relocation register(c) Page table(d) Shift registerThis question was posed to me during a job interview.My doubt is from Memory Operations and Management in division Machine Instructions and Programs of Computer Architecture

Answer»

Right CHOICE is (B) Relocation register

To EXPLAIN I would say: In the MMU the relocation register stores the OFFSET address.

46.

Which method/s of representation of numbers occupies a large amount of memory than others?(a) Sign-magnitude(b) 1’s complement(c) 2’s complement(d) 1’s & 2’s complimentThe question was asked in an international level competition.Enquiry is from Numbers and Arithmetic Operations in portion Machine Instructions and Programs of Computer Architecture

Answer»

Correct option is (a) SIGN-magnitude

To elaborate: It TAKES more memory as ONE bit USED up to store the sign.

47.

The data structure suitable for scheduling processes is _______(a) List(b) Heap(c) Queue(d) StackI got this question in an interview for internship.My question is from Parameter Passing and Stack Frame in portion Machine Instructions and Programs of Computer Architecture

Answer»

The CORRECT CHOICE is (c) Queue

Easiest explanation: The Queue data structure is generally used for SCHEDULING as it is TWO directional.

48.

The stack frame for each subroutine is present in ______(a) Main memory(b) System Heap(c) Processor Stack(d) None of the mentionedI have been asked this question by my college director while I was bunking the class.This is a very interesting question from Parameter Passing and Stack Frame in portion Machine Instructions and Programs of Computer Architecture

Answer»

Right option is (c) Processor STACK

The BEST I can explain: The memory for the work SPACE is ALLOCATED from the processor stack.

49.

The technique used to store programs larger than the memory is ____________(a) Overlays(b) Extension registers(c) Buffers(d) Both Extension registers and BuffersI had been asked this question during an internship interview.The above asked question is from Memory Operations and Management in chapter Machine Instructions and Programs of Computer Architecture

Answer»

Correct choice is (a) Overlays

To EXPLAIN: In this, only a PART of the program getting EXECUTED is STORED on the memory and later swapped in for the other part.

50.

The instruction, Add Loc,R1 in RTN is _______(a) AddSetCC Loc+R1(b) R1=Loc+R1(c) Not possible to write in RTN(d) R1

Answer» CORRECT ANSWER is (d) R1<-[LOC]+[R1]

Explanation: None.