Addressing Modes in Computer Architecture
Addressing Modes in Computer Architecture
sanfoundry.com
Answer: b
Explanation: The instruction is using immediate addressing
mode hence the value is stored in the location 45 is added.
1 of 5 3/19/18, 1:43 PM
Addressing Modes - Computer Organization Que... about:reader?url=https://www.sanfoundry.com...
b) Accumulators
c) Push down stack
d) Cache
View Answer
Answer: c
Explanation: In this case the operands are implicitly loaded
onto the ALU.
Answer: b
Explanation: None.
Answer: a
Explanation: In this addressing mode, the value of the
2 of 5 3/19/18, 1:43 PM
Addressing Modes - Computer Organization Que... about:reader?url=https://www.sanfoundry.com...
Answer: d
Explanation: This instruction is in Base with offset
addressing mode.
Answer: b
Explanation: In this the contents of the PC are directly
incremented.
3 of 5 3/19/18, 1:43 PM
Addressing Modes - Computer Organization Que... about:reader?url=https://www.sanfoundry.com...
a) 1, 2, 3
b) 2
c) 1, 3
d) 2, 3
View Answer
Answer: d
Explanation: In case of, auto increment the increment is
done afterwards and in auto decrement the decrement is
done first.
Answer: a
Explanation: None.
Answer: c
Explanation: The addressing mode used is base with offset
and index.
4 of 5 3/19/18, 1:43 PM
Addressing Modes - Computer Organization Que... about:reader?url=https://www.sanfoundry.com...
Answer: a
Explanation: The relative addressing mode is used for this
since it directly updates the PC.
5 of 5 3/19/18, 1:43 PM
Computer Organization Aptitude Test - Sanfoundry about:reader?url=https://www.sanfoundry.com...
sanfoundry.com
Answer: a
Explanation: It takes more memory as one bit used up to
store the sign.
1 of 6 3/19/18, 1:43 PM
Computer Organization Aptitude Test - Sanfoundry about:reader?url=https://www.sanfoundry.com...
Answer: c
Explanation: The two’s compliment form is more suitable to
perform arithmetic operations as there is no need to involve
the sign of the number into consideration.
Answer: a
Explanation: One is positive and one for negative.
Answer: d
Explanation: First the 2’s compliment is found and that is
added to the number and the overflow is ignored.
2 of 6 3/19/18, 1:43 PM
Computer Organization Aptitude Test - Sanfoundry about:reader?url=https://www.sanfoundry.com...
a) 11110
b) 1110
c) 1010
d) 0010
View Answer
Answer: b
Explanation: First the 2’s compliment is found and that is
added to the number and the overflow is ignored.
Answer: c
Explanation: First the 2’s compliment is found and that is
added to the number and the overflow is ignored.
Answer: a
Explanation: These flags are used to indicate if there is a
overflow or carry or zero result occurrence.
3 of 6 3/19/18, 1:43 PM
Computer Organization Aptitude Test - Sanfoundry about:reader?url=https://www.sanfoundry.com...
Answer: b
Explanation: The status register stores the condition codes
of the system.
Answer: c
Explanation: This is used to check the overflow occurrence
in the operation.
Answer: a
4 of 6 3/19/18, 1:43 PM
Computer Organization Aptitude Test - Sanfoundry about:reader?url=https://www.sanfoundry.com...
Answer: b
Explanation: None.
Answer: c
Explanation: In this method the carries for each step are
generated first.
5 of 6 3/19/18, 1:43 PM
Computer Organization Aptitude Test - Sanfoundry about:reader?url=https://www.sanfoundry.com...
Answer: d
Explanation: None.
Answer: c
Explanation: The shift registers are used to store the
multiplied answer.
Answer: d
Explanation: None.
6 of 6 3/19/18, 1:43 PM
Memory Locations & Addresses - Computer Org... about:reader?url=https://www.sanfoundry.com...
sanfoundry.com
Answer: a
Explanation: Each data is made up of a number units.
1 of 5 3/19/18, 1:48 PM
Memory Locations & Addresses - Computer Org... about:reader?url=https://www.sanfoundry.com...
View Answer
Answer: c
Explanation: Each readable part of data is called as blocks.
Answer: d
Explanation: The number of addressable locations in the
system is called as address space.
Answer: b
Explanation: A 64 bit system means, that at a time 64 bit
instruction can be executed.
2 of 5 3/19/18, 1:48 PM
Memory Locations & Addresses - Computer Org... about:reader?url=https://www.sanfoundry.com...
c) Medium Endian
d) None of the mentioned
View Answer
Answer: a
Explanation: The method of address allocation to data to be
stored is called as memory assignment.
Answer: a
Explanation: None.
Answer: b
Explanation: Memory Management Unit, is used to add the
offset to the logical address generated by the CPU to get
the physical address.
3 of 5 3/19/18, 1:48 PM
Memory Locations & Addresses - Computer Org... about:reader?url=https://www.sanfoundry.com...
Answer: c
Explanation: Segmentation is a process in which memory is
divided into groups of variable length called segments.
Answer: d
Explanation: None.
Answer: a
Explanation: None.
4 of 5 3/19/18, 1:48 PM
Memory Locations & Addresses - Computer Org... about:reader?url=https://www.sanfoundry.com...
5 of 5 3/19/18, 1:48 PM
Memory Operations & Management Questions ... about:reader?url=https://www.sanfoundry.com...
sanfoundry.com
Answer: a
Explanation: This performs operations in binary mode
directly.
1 of 5 3/19/18, 1:48 PM
Memory Operations & Management Questions ... about:reader?url=https://www.sanfoundry.com...
the operand.
a) ~
b) !
c) $
d) *
View Answer
Answer: c
Explanation: None.
Answer: b
Explanation: In the MMU the relocation register stores the
offset address.
Answer: a
Explanation: In this, only a part of the program getting
executed is stored on the memory and later swapped in for
2 of 5 3/19/18, 1:48 PM
Memory Operations & Management Questions ... about:reader?url=https://www.sanfoundry.com...
Answer: d
Explanation: The cache’s help in data transfers by storing
most recently used memory pages.
Answer: b
Explanation: The load instruction is basically used to load
the contents of a memory location onto a register.
3 of 5 3/19/18, 1:48 PM
Memory Operations & Management Questions ... about:reader?url=https://www.sanfoundry.com...
Answer: d
Explanation: None.
Answer: b
Explanation: The files which are required for the starting up
of a system are stored on the ROM.
Answer: a
Explanation: This mode of transfer involves the transfer of a
large block of data from the memory.
4 of 5 3/19/18, 1:48 PM
Memory Operations & Management Questions ... about:reader?url=https://www.sanfoundry.com...
Answer: c
Explanation: In this method only when the routine is
required is loaded and hence saves memory.
5 of 5 3/19/18, 1:48 PM
Computer Organization Questions for Campus I... about:reader?url=https://www.sanfoundry.com...
sanfoundry.com
Answer:a
Explanation: This is the way of writing the assembly
language code with the help of register notations.
1 of 5 3/19/18, 1:49 PM
Computer Organization Questions for Campus I... about:reader?url=https://www.sanfoundry.com...
Answer:d
Explanation: None.
Answer:c
Explanation: You cannot perform addition on three
operands simultaneously because the third operand is
where the result is stored.
Answer:d
Explanation: In RTN the first operand is the destination and
the second operand is the source.
2 of 5 3/19/18, 1:49 PM
Computer Organization Questions for Campus I... about:reader?url=https://www.sanfoundry.com...
View Answer
Answer:c
Explanation: The ID is the name tag given to each of the
registers and used to identify them.
Answer:b
Explanation: First, the instructions are fetched and decoded
and then they’re executed and stored.
Answer:d
Explanation: The fetch ends with the instruction getting
decoded and being placed in the IR and the PC getting
incremented.
3 of 5 3/19/18, 1:49 PM
Computer Organization Questions for Campus I... about:reader?url=https://www.sanfoundry.com...
a) TestAndSet
b) Branch
c) TestCondn
d) None of the mentioned
View Answer
Answer:b
Explanation: Branch instruction is used to check the test
condition and to perform the memory jump with help of
offset.
Answer:a
Explanation: None.
Answer:c
Explanation: This condition flag is used to check if the
arithmetic operation yields a zero output.
4 of 5 3/19/18, 1:49 PM
Computer Organization Questions for Campus I... about:reader?url=https://www.sanfoundry.com...
5 of 5 3/19/18, 1:49 PM
Assembly Language - Computer Organization Q... about:reader?url=https://www.sanfoundry.com...
sanfoundry.com
Answer: c
Explanation: The assembler is a software used to convert
the programs into machine instructions.
1 of 7 3/19/18, 1:49 PM
Assembly Language - Computer Organization Q... about:reader?url=https://www.sanfoundry.com...
Answer: a
Explanation: This OP – codes tell the system what
operation to perform on the operands.
Answer: b
Explanation: The ADDI instruction, means the addition is in
immediate addressing mode.
Answer: d
Explanation: The directives help the program in getting
compiled and hence wont be there in the object code.
2 of 7 3/19/18, 1:49 PM
Assembly Language - Computer Organization Q... about:reader?url=https://www.sanfoundry.com...
Answer: b
Explanation: This basically is used to replace the variable
with a constant value.
Answer: a
Explanation: This does the function similar to the main
statement.
3 of 7 3/19/18, 1:49 PM
Assembly Language - Computer Organization Q... about:reader?url=https://www.sanfoundry.com...
Answer: c
Explanation: None.
Answer: d
Explanation: This instruction is used to allocate a block of
memory and to store the object code of the program there.
Answer: b
Explanation: This instruction directive is used to terminate
the program execution.
4 of 7 3/19/18, 1:49 PM
Assembly Language - Computer Organization Q... about:reader?url=https://www.sanfoundry.com...
View Answer
Answer: d
Explanation: This enables the processor to load some other
process.
Answer: c
Explanation: When the assembler comes across the branch
code, it immediately finds the branch offset and replaces it
with it.
Answer: b
Explanation: The table where the assembler stores the
variable names along with their corresponding memory
locations and values.
5 of 7 3/19/18, 1:49 PM
Assembly Language - Computer Organization Q... about:reader?url=https://www.sanfoundry.com...
Answer: d
Explanation: After compiling the object code, the assembler
stores it in the magnetic disk and waits for further
execution.
14. The utility program used to bring the object code into
memory for execution is ______
a) Loader
b) Fetcher
c) Extractor
d) Linker
View Answer
Answer: a
Explanation: The program which is used to load the
program into memory.
Answer: d
6 of 7 3/19/18, 1:49 PM
Assembly Language - Computer Organization Q... about:reader?url=https://www.sanfoundry.com...
7 of 7 3/19/18, 1:49 PM
Subroutines & Nesting - Computer Organizatio... about:reader?url=https://www.sanfoundry.com...
sanfoundry.com
Answer: b
Explanation: The return address from the sub routine is
pointed to by the PC.
1 of 5 3/19/18, 1:49 PM
Subroutines & Nesting - Computer Organizatio... about:reader?url=https://www.sanfoundry.com...
c) MAR
d) Link registers
View Answer
Answer: d
Explanation: The registers store the return address of the
routine and is pointed to by the PC.
Answer: c
Explanation: None.
Answer: a
Explanation: That is the routine called first is returned first.
2 of 5 3/19/18, 1:49 PM
Subroutines & Nesting - Computer Organizatio... about:reader?url=https://www.sanfoundry.com...
Answer: c
Explanation: In this case, there will be more number of
return addresses it is stored on the processor stack.
Answer: d
Explanation: The pointers are used to point to the location
on the stack where the address is stored.
Answer: d
Explanation: In case of, parameter passing the data can be
stored on any of the storage space.
3 of 5 3/19/18, 1:49 PM
Subroutines & Nesting - Computer Organizatio... about:reader?url=https://www.sanfoundry.com...
Answer: a
Explanation: By using general purpose registers for the
parameter passing we make the process more efficient.
Answer: b
Explanation: The stacks are used as Logs for return
addresses of the sub routines.
4 of 5 3/19/18, 1:49 PM
Subroutines & Nesting - Computer Organizatio... about:reader?url=https://www.sanfoundry.com...
c) iv
d) iii and iv
View Answer
Answer: d
Explanation: None.
5 of 5 3/19/18, 1:49 PM
Computer Organization Questions for Entrance... about:reader?url=https://www.sanfoundry.com...
sanfoundry.com
Answer: c
Explanation: This work space is where the intermediate
values of the sub routines is stored.
1 of 5 3/19/18, 1:49 PM
Computer Organization Questions for Entrance... about:reader?url=https://www.sanfoundry.com...
d) Stack frame
View Answer
Answer: a
Explanation: If the allocated work space is exceeded then
the data is pushed onto the system stack.
Answer: b
Explanation: This pointer is used to track the current
position of the stack being used.
Answer: c
Explanation: The work space allocated to a sub routine gets
de allocated when the routine is completed.
2 of 5 3/19/18, 1:49 PM
Computer Organization Questions for Entrance... about:reader?url=https://www.sanfoundry.com...
Answer: c
Explanation: When the call statement is executed,
simultaneously the space also gets allocated.
Answer: b
Explanation: None.
Answer: a
Explanation: None.
3 of 5 3/19/18, 1:49 PM
Computer Organization Questions for Entrance... about:reader?url=https://www.sanfoundry.com...
______
a) Main memory
b) System Heap
c) Processor Stack
d) None of the mentioned
View Answer
Answer: c
Explanation: The memory for the work space is allocated
from the processor stack.
Answer: c
Explanation: The Queue data structure is generally used for
scheduling as it is two directional.
Answer: d
Explanation: The Sub routine service procedure is same as
4 of 5 3/19/18, 1:49 PM
Computer Organization Questions for Entrance... about:reader?url=https://www.sanfoundry.com...
5 of 5 3/19/18, 1:49 PM