CS401 Midterm Online Quiz

0%

CS401-Midterm

1 / 50

The execution of the instruction “mov word [ES : 0], 0x0741” will print character “A” on screen, color of the character will be

2 / 50

The execution of the instruction “mov word [ES : 160], 0x1230” will print a character “0” on the screen at

3 / 50

8088 is a 16bit processor with its accumulator and all registers of __________.

4 / 50

All the addressing mechanisms in iAPX88 return a number called _____________ address.

5 / 50

After the execution of instruction “RET 2”

6 / 50

Code Segment is associated to _______ register by default.

7 / 50

When a 16 bit number is divided by an 8 bit number, the quotient will be in

8 / 50

one Only ___________ instructions allow moving data from memory to memory.

9 / 50

To transfer control back the RET instruction take

10 / 50

An offset alone is not complete without

11 / 50

The first instruction of “COM” file must be at offset:

12 / 50

When an item is pushed on the decrementing stack, the top of the stack is

13 / 50

The routine that executes in response to an INT instruction is called

14 / 50

When two 16bit numbers are added the answer can be 17 bits long, this extra bit that won’t fit in the target register is placed in the where it can be used and tested

15 / 50

The prevalent convention in most high level languages is stack clearing by the

16 / 50

Which bit of the attributes byte represents the blue component of foreground color

17 / 50

The physical address of the stack is obtained by

18 / 50

decrements SP (the stack pointer) by two and then transfers a word from the source operand to the top of stack

19 / 50

When a 32 bit number is divided by a 16 bit number, the quotient is of

20 / 50

JC and JNC test the ____________ flag.

21 / 50

All the addressing mechanisms in iAPX88 return a number called _____________ address.

22 / 50

if ax contains decimal -2 and BX contains decimal 2 then after the execution of instructions: CMP AX, BX ,JA label

23 / 50

After the execution of “PUSH AX” statement

24 / 50

Each screen location corresponds to a word, the lower byte of this word contains ____

25 / 50

One screen location corresponds to a

26 / 50

Execution of the instruction “mov word [ES : 0], 0x0741” will print

27 / 50

In assembly the CX register is used normally as a ______________register.

28 / 50

When a 32 bit number is divided by a 16 bit number, the quotient will be stored in

29 / 50

After execution of JCXZ instruction CX will changed with flag affect.

30 / 50

“mov byte [num1], 5” is _________ instruction.

31 / 50

The basic function of SCAS instruction is to

32 / 50

Which bit of the attributes byte represents the red component of background color ?

33 / 50

The instruction ADC has________ Operand(s)

34 / 50

RETF will pop the offset in the

35 / 50

Stack is a ______ that behaves in a first in last out manner.

36 / 50

In the instruction MOV AX, 5 the number of operands are

37 / 50

After the execution of REP instruction CX will be decremented then which of the following flags will be affected?

38 / 50

allow changing specific processor behaviors and are used to play with it.

39 / 50

To transfer control back the RET instruction take

40 / 50

The basic function of SCAS instruction is to

41 / 50

assembly the CX register is used normally as a ______________register.

42 / 50

| 0 |--›| 1 | 1 | 0 | 1 | 0 | 0 | 0 | --›| C | is a example of ______

43 / 50

The iAPX88 processor supports ___________ modes of memory access.

44 / 50

After the execution of STOSW, the CX will be

45 / 50

“mov byte [num1],5” is _______ instruction.

46 / 50

Which is the unidirectional bus ?

Control Bus

(II) Data Bus

(III) Address Bus

47 / 50

“Far” jump is not position relative but is _______________

48 / 50

When a 16 bit number is divided by an 8 bit number, the dividend will be in

49 / 50

After the execution of SAR instruction:

50 / 50

In assembly the CX register is used normally as a ______________register.

Your score is

The average score is 64%

0%

Qunoot e Nazilah
Dua e Hajat
4 Qul
6 Kalma
Dua-e-Akasha
Darood Akbar
Surah Fatiha
Dua-e-Ganj Ul Arsh
Dua-e-Jamilah
Ayat-ul-Kursi