Professional Documents
Culture Documents
COMPUTER ORGANISATION
Que : 1 . Cached and interleaved memories are ways of speeding up memory access
between CPU' s and slower RAM.
Which memory models are best suited (i.e. improves the performance most) for which
programs ?
i) Cached memory is best suited for small loops.
ii) Interleaved memory is best suited for small loops
iii) Interleaved memory is best suited for large sequential code.
iv) Cached memory is best suited for large sequential code.(J-2012)
1.
2.
3.
4.
Computer Organisation
accessed infrequently . There is something called temporal licality and spatial licality also
which we need to know when we talk about cache. But cache memory is ideally suited for
small loops.
Interleaved memory is a technique for increaseing the speed of RAM. Here multiple memory
chips are grouped together to form what are known as banks . Each of them take turns for
supplying data . An interleaved memory with n banks is said to be n-way interleaved.
Macintose systems are considered to be one using memory interleaving.
1.
Internal
2.
External
3.
Hardware
4.
Software
Computer Organisation
1.
Microprocessor
2.
Memory
3.
Peripheral equipment
4.
1.
Hard disk
2.
Floppy disk
3.
CPU chip
4.
Memory chip
Computer Organisation
Explanation
Option 3 is Correct Answer.
Every things computer does, is controlled by its Central Processing Unit (CPU).
The CPU is the brain of the Computer.
Sometimes refereed to simply as the Central processor.
In terms of computing power , the CPU is the most important element of a computer system.
It add and compare its data in CPU chip.
A CPU or processors of all computers, weather micro, mini or mainframe must have three
element or parts primary storage, arithmetic logic Unit (ALU), and Control Unit(CU) -decodes
the program instruction.
1.
instruction execution
2.
instruction prefetch
3.
instruction decoding
4.
instruction manipulation
Computer Organisation
In an assembly unit every stage has one and only one activity to do.
It keeps repeating them again and again.
In the same way in a instruction pipeline at every instruction has multiple stages.
Say at the first clock cycle first step of instruction 1 is performed.
At the second clock cycle the second step of instruction 1 and 1st step of the instruction 2
would be performed and so on.
so pipelining is called instruction prefetch.
Que : 6 . Identify the addressing modes of below instructions and match them :
a) ADI
1) Immediate addressing
b) STA
2) Direct addressing
c) CMA
3) Implied addressing
d) SUB
4) Register addressing
1.
1234
2.
2143
3.
3214
4.
4321
(J-2012 III)
Computer Organisation
The Instruction ADI adds some content to the accumlator.
It is an immediate addressing mode instruction.
The STA instruction stores the contents of the accumulator in the particular memory location
specified as operand.
CMA instruction takes complement of the contents of the accumulator.
SUB instructions substract the content of the register to the contents of the accumulator.
Que : 7 . If an instruction takes 's' microseconds and a page fault takes an additional 'j'
microseconds. The effective instruction time, if on the average a page fault occurs every k
instructions, is (J-2012 III)
1.
i + j/k
2.
i+j*k
3.
(i + j)/k
4.
(i + j) * k
Que : 8 . A CPU generally handles an interrupt by executing an interrupt service routine (J2012 III)
Page
6
Computer Organisation
1.
2.
3.
instruction
4.
by checking the interrupt register after finishing the executing the current
by checking the interrupt register at fixed time intervals
i) USART
ii) Micro controller
a) 8251
b) 8051
d) 8257
(J-2012 III)
Page
7
Computer Organisation
1.
a) i b) ii c) iii d) iv
2.
a) ii b) i c) iv d) iii
3.
a) iii b) iv c) i d) ii
4.
a) iv b) i c) ii d) iii
Computer Organisation
without any interference from the CPU. The device requests the CPU (through a DMA
controller) to hold its data, address and control bus, so that the device may transfer data
directly to/from memory. The DMA data transfer is initiated only after receiving HLDA signal
from the CPU. Intels 8257 is a four channel DMA controller designed to be interfaced with
their family of microprocessors.
The 8257, on behalf of the devices, requests the CPU for bus access using local bus request
input i.e. HOLD in minimum mode.
In maximum mode of the microprocessor RQ/GT pin is used as bus request input.
Que : 10 . Suppose that a given application is run on a 64-processor machine and that 70
percent of the application can be parallelized. Then the expected performance improvement
using Amdahls law is(J-2012 III)
1.
4.22
2.
3.22
3.
3.32
4.
3.52
Computer Organisation
= 1/0.3 + 0.0109375
= 1/0.31093
= 3.215
= 3.22
Que : 11 . In which addressing mode, the effective address of the operand is generated by
adding a constant value to the contents of register?(D-2012 II)
1.
Absolute
2.
Indirect
3.
Immediate
4.
Index
Computer Organisation
Que : 12 . The efficiency (E) and speed up (sp) for Multiprocessor with p processors satisfies :
(D 2012 III)
1.
E P and sp P
2.
E 1 and sp P
3.
E and sp 1
4.
E 1 and sp 1
Que : 13 . Which of the following flags are set when 'JMP' instruction is executed ? (D-2012
III)
1.
SF and CF
2.
AF and CF
3.
All flags
4.
No flag is set
Page
11
Computer Organisation
Please Select Ans Options .
Explanation
Option 4 is Correct Answer.
JMP instruction executed the noflag is set.
1.
1.62
2.
1.55
3.
1.85
4.
1.285
Computer Organisation
New time taken = ((3x/1.1) + (4x/1.2))/5 = 8x/(1.32 * 5)
So, speed up = (7 * 1.32)/8 = 1.155
Page
13
Computer Organisation
Que : 15 . Suppose a processor does not have any stack pointer registers, which of the
following statements is true ? (D-2012 III)
1.
2.
3.
4.
Que : 16 . Which one of the following is not an addressing mode? (J-2013 III)
1.
Register indirect
2.
Auto increment
3.
Relative indexed
4.
Immediate operand
Page
14
Computer Organisation
Please Select Ans Options .
Explanation
Option 3 is Correct Answer.
1) Immediate Mode
The operand is an immediate value is stored explicitly in the instruction: Example: SPIM
( opcode dest, source)
2) Index Mode
The address of the operand is obtained by adding to the contents of the general register
(called index register) a constant value. The number of the index register and the constant
value are included in the instruction code.
3) Indirect Mode
The effective address of the operand is the contents of a register or main memory location,
location whose address appears in the instruction.
Indirection is noted by placing the name of the register or the memory address given in the
instruction in parentheses.
The register or memory location that contains the address of the operand is a pointer.
4) Absolute (Direct) Mode
The address of the operand is embedded in the instruction code.
5) Register Mode
The name (the number) of the CPU register is embedded in the instruction. The register
contains the value of the operand. The number of bits used to specify the register depends on
the total number of registers from the processor set.
6) Displacement Mode
Similar to index mode, except instead of a index register a base register will be used. Base
register contains a pointer to a memory location. An integer (constant) is also referred to as a
displacement.
Page
15
Computer Organisation
The address of the operand is obtained by adding the contents of the base register plus the
constant.
The difference between index mode and displacement mode is in the number of bits used to
represent the constant. When the constant is represented a number of bits to access the
memory, then we have index mode. Index mode is more appropriate for array accessing;
displacement mode is more appropriate for structure (records) accessing.
7) Autoincrement /Autodecrement Mode
A special case of indirect register mode. The register whose number is included in the
instruction code, contains the address of the operand. Autoincrement Mode = after operand
addressing , the contents of the register is incremented. Decrement Mode = before operand
addressing, the contents of the register is decrement.
1.
2.
3.
4.
zero address, one address, two address and three address instructions
Page
16
Computer Organisation
Que : 18 . Which is not a typical program control instruction? (J-2013 III)
1.
BR
2.
JMP
3.
SHL
4.
TST
Que : 19 . Interrupt which arises from illegal or erroneous use of an instruction or data is (J2013 III)
1.
Software interrupt
2.
Internal interrupt
3.
External interrupt
Page
17
Computer Organisation
4.
Que : 20 . ______ refers to the discrepancy among a computed, observed or measured value
and the true specified or theoretically correct values. (Sep-2013)
1.
Fault
2.
Failure
3.
Defect
4.
Error
Computer Organisation
In some usages, an error is synonymous with a mistake, though in technical contexts the two
are often distinguished.
For instance, in statistics "error" refers to the difference between the value which has been
computed and the correct value.
In statistics, an error (or residual) is not a "mistake" but rather a difference between a
computed, estimated, or measured value and the accepted true, specified, or theoretically
correct value.
Page
19