web viewname some word processing operations? ... shl ax. [ax=1001] ... & numerical skills [3 *...

13

Click here to load reader

Upload: lydung

Post on 28-Feb-2018

215 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: Web viewName some word processing operations? ... SHL AX. [AX=1001] ... & Numerical skills [3 * 2 = 6M] Do the following number base conversions

المملكــــــــــة العربيــــــــــةالسعوديــــــــــة

وزارة التعليـــــــــــــــــــــــــمجامعة األمير سطام بن عبد العـزيز

كليـــة اآلداب والعلــوم بـواديالدواســـر

قسم علوم الحاسبوالمعلومات

النهائياالختبار للعام الجامعيلثانىللفصل الدراسي ا

1436/1435CS-225 Computer Organization & Assembly

Language المقرر:931الزمن: ساعتان الشعبة:

50الدرجة العظمي: 4 المستوي: درجة

Note: Answer all questions

Part A: Knowledge Base Questions [10*2=20M]

1. Differentiate between computer architecture and computer organization?

Answer: Computer Architecture: Refers to specification of the relationship between

different hardware components of a computer system. It defines high and low level of

abstractions. At high level CPU is presented and low level its parts like ALU,MU,CU

represented

Computer Organization: Organization is how features are implemented

Control signals, interfaces, memory technology.e.g. Is there a hardware multiply unit or is

it done by repeated addition.Computer organization is a study of a Computer Architecture.

E.g. Memory, Registers, RAM, ROM, CPU, ALU, 16 bit/ 32 bit/ 64 bit architecture, what

different parts makes a computer, etc.

2. Define the following terms

a. Programming Languages & its types. Types of programming language’s like high level,

middle level, low level and assembly level programming languages. The main purpose of

programming languages to solve a problem.

b. Compiler & Interpreter: It is used to translate the High-level language (English

statements) to low level language (1 ‘0’s).Compile entire program one at time. E.g. Pascal,

Basic, FORTRAN and so on.

Interpreter: Used to translate the program high level language into low level language. It

translates instruction by instruction.eg. Java.

3. Write the full form of the following instructions

1 | P a g e

Page 2: Web viewName some word processing operations? ... SHL AX. [AX=1001] ... & Numerical skills [3 * 2 = 6M] Do the following number base conversions

a. S.P. :Stack Pointer

b. I.P.: Instruction Pointer

c. A.F.: Auxiliary Flag

d. C.F.: Carry Flag.

4. Memorize types of memories?

Answer:

5. Sketch computer bus architecture?

Answer:

Figure 1.3. Single-bus structure.

MemoryInput Output Processor

6. Name some word processing operations?

Answer: Crating new document, saving the document, modifications, templates, inserting

graphics, several of data, forms reports generations.

7. Draw the truth tables for logical AND & logical OR operations?

Answer:

Logical AND Logical OR

8. State following statements are true or false

a. Computer is an electro-mechanical device. [ True]

b. Computer bus used to transfer the data between input & output peripherals of

Computers. [True]

2 | P a g e

Page 3: Web viewName some word processing operations? ... SHL AX. [AX=1001] ... & Numerical skills [3 * 2 = 6M] Do the following number base conversions

c. All special purpose registers are 16 bit registers [False]

d. Registers are memory devices . [True]

9. List few data moving instructions?

Answer: register- register, register- memory, memory –memory, memory- register.

MVI AX, 05, MOV AX, BX, IN, OUT, PUSH, POP, and so on.

10. Recall the concept of instruction cycle?

Answer: Fetch instruction from memory to IR ,Decode ,Execute (all data in CPU registers)

PART B: Interpersonal Skills & Responsibility [ 4*3=12M ]

11. Show the diagram for von man Neumann machine?

Answer:

12. Illustrate the neat architecture of Intel X 86 IBM PC?

Answer:

3 | P a g e

Page 4: Web viewName some word processing operations? ... SHL AX. [AX=1001] ... & Numerical skills [3 * 2 = 6M] Do the following number base conversions

13. Show the use of following below instructions sets?

a. ADD AX,BX Before AX=15 BX=02

AX AX+BX After AX 17

b. SHL AX Shift Left AX

c. INC AX,DEC AX

INC AX before AX =4 AX AX+1 After AX5;

d. ROL & ROR Left Rotate & Right Rotate.

14. Sketch the neat architecture for register direct & register indirect addressing modes?

Answer:

4 | P a g e

Page 5: Web viewName some word processing operations? ... SHL AX. [AX=1001] ... & Numerical skills [3 * 2 = 6M] Do the following number base conversions

PART C: Cognitive skills [ 4*3=12M ]

15. Interpret following instruction and write the result

a. SHL AX. [AX=1001]

10010

b. INC AX & DEC AX

INC AX before AX =4 AX AX+1 After AX5;

c. XCHG AL, BL. [AL =3, BL =5].

Xchange the values of AL, BL and after AL=5 BL=3

16. Create a stack which starts at location 100H and indicate the stack pointer SP, then

perform the operations for PUSH and POP operations by using the registers

AX,BX,CX with a neat architecture?

Offset Address

00F2

00F4SP

00F6

00F8 AX

5 | P a g e

0100

1234

Page 6: Web viewName some word processing operations? ... SHL AX. [AX=1001] ... & Numerical skills [3 * 2 = 6M] Do the following number base conversions

00FA BX

00FC

00FE

0100 S.P

Answer: After PUSH AX

Offset Address

00F2

00F4SP

00F600F8 AX

00FA BX00FC

00FE SP

0100

After Push BX

Offset Address

6 | P a g e

5678

1234

0100

5678

1234

Page 7: Web viewName some word processing operations? ... SHL AX. [AX=1001] ... & Numerical skills [3 * 2 = 6M] Do the following number base conversions

00F2

00F4SP

00F6

00F8 AX

00FA BX

00FC SP

00FE

0100

POP CX

Offset Address

00F2

00F4SP

00F6

00F8 CX

00FA BX

00FC

00FE SP

0100

POP CX

Offset Address

00F2

7 | P a g e

5678

1234

0100

1234

5678

5678

1234

00FE

5678

0001

Page 8: Web viewName some word processing operations? ... SHL AX. [AX=1001] ... & Numerical skills [3 * 2 = 6M] Do the following number base conversions

00F4SP

00F6

00F8 CX

00FA DX

00FC

00FE

100

17. Design the multiple procedures CALL & RET with a neat architecture?

Answer:

8 | P a g e

5678

1234

0100

1234

5678

Page 9: Web viewName some word processing operations? ... SHL AX. [AX=1001] ... & Numerical skills [3 * 2 = 6M] Do the following number base conversions

18. Sketch the architecture for slice coding interfaces with languages such as supreme

language CNN?

Answer:

9 | P a g e

Page 10: Web viewName some word processing operations? ... SHL AX. [AX=1001] ... & Numerical skills [3 * 2 = 6M] Do the following number base conversions

PART D: Communication, Information Technology & Numerical skills [3*2=6M]

19. Do the following number base conversions

a. (20)10+(10)10 =(X)2

0001 0100

+0000 1010

---------------

11111

(FFFF)16=(X)2 =(1111 1111 1111 1111)2

20. Determine the transfer rate in Mbytes/s for a hard disk drive, given rational

speed=7200rpm, sectors per track=30, data per sector =512 bytes =0.5Kbytes?

Answer:

10 | P a g e

Page 11: Web viewName some word processing operations? ... SHL AX. [AX=1001] ... & Numerical skills [3 * 2 = 6M] Do the following number base conversions

21. If a magnetic disc has 100 cylinders, each containing 10 tracks of 10 sectors, and each sector

can contain 128 bytes, what is the maximum capacity of the disk in bytes show with the help

of a neat architecture?

Course Instructor Supervisor of Department

Lecturer: Mujthaba Gulam Muqeeth Dr. Saied M. Abd –El –atty

Signature: ……………. Signature: …………….

11 | P a g e