Q1. Give a good example of micro procedures, microinstruction, micro program, micro code.
Sol :- Pursuing are the examples of micro operations:-
- Bus and Recollection Transfers
- Arithmetic Microoperations
- Logic Microoperations
Example of Microinstruction:-
For Fetching Data:-
IF inter.
ELSE next
inst. map
Example of micro program :-
sp := sp + (-1);
mar := sp; mbr := ac; wr;
wr;
This pushes the AC value onto the stack
Example of Micro code:-
mar := sp; rd;
sp := sp + 1; rd;
ac := mbr;
Pop a number from the stack and stick it in the AC
Q2 How IT can be used for strategic advantages in business?
Ans - Globalisation- IT has not only brought the globe closer, but it offers allowed the world's market to become single interdependent system. We not only share information quickly and proficiently, but also bring down barriers of linguistic and geographic boundaries. The world is rolling out into a worldwide village because of the help of it allowing countries like Chile and Japan who are not only segregated by distance but also by words to shares ideas and information with one another.
Communication- With the help of information technology, communication in addition has become cheaper, quicker, and more efficient. We are able to now communicate with anyone around the globe by simply text messaging them or sending them a contact for an almost instantaneous response. The web has also exposed in person direct communication from different parts of the world thanks to the helps of training video conferencing.
Cost efficiency- Information technology has helped to computerize the business process thus streamlining businesses to make them extremely affordable money making machines. This in turn increases output which ultimately offers rise to earnings that means better pay and less intense working conditions.
More time - IT has made it easy for businesses to be open 24 x7 all over the world. This means that a company can be open anytime everywhere, making purchases from different countries easier and more convenient. It also means that you can have your goods supplied right to your doorstep with having to move a single muscle.
Q3. What Characteristics of software make it not the same as other executive products?
Ans :- Characteristics of software products :-
Software products may be
Generic - developed to be sold to a range of different customers.
Custom - developed for an individual customer according to their specification.
Q4. What are different addressing settings available?
Sol :- Various Addressing Modes are :-
(1) Immediate Handling Mode :-
- Immediate addressing is utilized to insert constants into registers and use constants as operands.
- The constant is part of the instruction word
- e. g. ADD 5
- Add 5 to material of accumulator
- 5 is operand
- Limited range
(2) Direct Addressing Setting :-
- With direct addressing the address is part of the instruction
- Usually the OpCode is one expression and address is the being successful expression or words. Effective address (EA) = address field (A)
- e. g. ADD A
- Add articles of cell A to accumulator
- Look in recollection at address A for operand
- Single memory mention of access data
- No additional calculations to work out effective address
- Limited address space
(3) Indirect Responding to Mode :-
- RegisterMemory cell pointed to by address field provides the address of (pointer to) the operand
- EA = (A)
Look in the, find address (A) and appearance there for operand
- e. g. ADD (A)
Add material of cell pointed to by items of A to accumulator
(4) Register Direct Addressing Setting :-
- Limited quantity of registers
- Very small address field needed
- Shorter instructions
- Faster education fetch
- No storage access
- Very fast execution
- Very limited address space
- Multiple registers helps performance
- Requires good set up coding or compiler writing
(5) Register Indirect Addressing Setting :-
- The training specifies a register which provides the address of the operand
MOVE #$1000, R7 ;R7 = $1000
- As there are usually only a little number of inner registers the address of the register is easily within the instruction phrase.
- It is effective and is very useful for dealing with arrays and ideas. Operand is organised in register named in address field EA = R
- If an array of quantities is stored at $1000, then can be accessed in sequence with the addition of 1 to the register after every access.
- Operand is within memory cell pointed to by details of register R
- Large address space (2n)
- One fewer recollection gain access to than indirect addressing
(6) Displacement (Indexed) Addresing Mode :-
- EA = A + (R)
- Address field keep two values
A = basic value
R = register that contains displacement
or vice versa
Q5 How will you differentiate b/w Arrays and Stacks?Explain giving an example.
Ans- An array can be defined as an infinite collection of homogeneous elements. A stack is a data structure in which all insertions and deletions are done at the same end called the very best. It is called last in first out (LIFO) data composition.
Q6. How translator is different from Complier?
Ans :- translator- it is just a device that changes a sentence from one vocabulary to another with no change of meaning.
Compiler :- It reads the complete program and changes it to the thing code. It provides errors not one line but mistakes of the whole program. It consumes little time for switching a source program to an thing program. Compilers are preferred when the space of the program is large. It provides security.
Q7 Out of Linear and Binary Search, which is preferred where and just why?
Ans- in linear search, we access each elemnt of array one at a time sequentially and in binary search we seach in minimal quantity of steps. in binary search elemnts have to be in the sorted form.
Binary search is recommended over linear search because time consumed is less.