CS401 QUIZ NO.2 SOLUTION 2024

0

     

Vu All Subjects Assignment Quiz GDB Handouts Available here


Aslam U Alaikum!

Quiz No. 1 (Graded) of CS401 will be opened from -------------------

This quiz will be from Lecture# 1 to 22 (1 to 8) and will be based on Multiple Choice Questions. It will be opened for 48 hours.

All the instructions for solving quiz will be provided in Quiz interface and you are required to make sure that you have read those instructions before attempting Quiz.

If any student fails to attempt the quiz within given time, then no re-take or offline quiz will be held.

The given instruction "SHR DL, 1" performs a right shift operation on the value stored in the DL register.

Move the rightmost bit into the carry flag.

What is the purpose of the following two instructions?

 Pointing ES to graphics base

Which of the following is an incorrect XOR operation?

XOR AX

REPNZ repeats the following instruction while the ________.

ZF is not a set

Which of the following is a program control instruction?

jne 0534

 

The basic function of register is to hold---------.

Oparands

 

A 16-bit processor has an accumulator of:

16 bit

REPE and REPNE prefixes are only meaningful with------------.

CMPS

 

Stack is a data structure that behaves in --------------manner.

LIFO

 

Which of the following is the general form of addressing?

Base + Index + Offset

 

All mathematical and logical operations are performed on the:

Accumulator

 

Which of the following register is used to hold the address of the next instruction to be executed?

Program Counter

 

Which of the following bit is dropped into the carry flag after the execution of “Shift Logical Right” operation?

Right most bit

 

How logical errors are different from syntax error?

Identifying syntax and logical errors it the responsibility of assembler and programmer respectively.

In operation, the output is 1 only if both inputs are 1.

AND

How jmp is different form jnz?

jmp is an unconditional jump, however jnz is a conditional jump

 

In Shift Logical Left (SHL), the bit is dropped into the carry flag. most significant In STOS, the implied source operand always resides in ------.

 

AL or AX

Which of the following is an illegal assembly instruction?

mov [num1], [num2]

 

sub sp, 2

The above instruction is used to perform a operation on stack.

PUSH

 

subtracts one from the operand.

DEC

 

STI stands for?

Set the Interrupt flag

RET instruction takes arguments(s).

0

 

A symbol associated to a point in the program is called a .

Or A symbol associated to an instruction in the program is known

as:

Label

 

In 8088, there is a stack.

decrementing

 

CX register is mostly used as a register.

Counter

There are byte(s) for each character on the screen.

2

 

Whenever an instruction needs a memory source, holds the pointer to it.

DS:SI

The maximum amount of memory accessible using 8085 processor is .

64 KB

In direct addressing, the memory address given in the instruction is :

fixed

What makes CMP different from SUB?

SUB is a destructive subtraction while CMP is a nondestructive subtraction. Both affect the flags.

Which of the following are the basic bitwise logical operations?

AND, OR, XOR, and NOT

To convert the case of character, we add or subtract from

it its ASCII code

0x20

When the RET instruction is executed, it recovers the value of

the from the stack.

instruction pointer

 

When the relative address stored with the instruction is in 16

bits, the jump is called a jump.

Near

 

Registers are storage cells .

inside the processor

 

Keeping in view the downward compatible between the two systems, the codes written for the intel iAPX88 are on the intel 386 processor.

valid

In multiplication algorithm, We take the first digit of the multiplier and multiply it with the .

multiplicand

 

Which of the following jump does not depend on flags register?

JCXZ

In --------- operation, a zero is inserted from the left and every bit moves one position to the right. The right most bit is dropped or down into the carry flag.

Shift Logical Right (SHR)

 

In case of DIV BX instruction, the quotient is stored in ------- register.

AX

Which of the following flags sets when a large number is subtracted from a smaller number?

CF

The ordering of a program’s instructions is ensured by the ---- register.

Program Counter

 

When an element is pushed on the stack, SP is decremented by …………..

Two

In iAPX88, flag is specifically related to string instructions.

direction

Which of following conditional jump is not dependant on any flag?

Or

 

A decrementing stack moves from -------- to ---------addresses as elements are added in it.

higher, lower

 

The most convenient place to store local variables is ----------.

stack

---------- can be used to check whether particular bits of a number are set or not.

AND

Which of the following operations is used to set any specific bit in a binary number?

OR

 Which of the following operations is used to clear any specific bit in a binary number?

AND

Which bit of attribute byte represents the blue component of foreground color?

0

The segment offset pair is called a/an --------- address.

logical      

 

The extra bit produced as a result of an arithmetic operation that does not fit in the target register is stored in:

carry flag

 

Cell width refers to the total number of bits in a memory cell while the total number of cells is called the ---------.

depth

 

Intel 8085 can access up to --------- of memory, whereas Intel 8088 can access up to ---------- of memory.

64 KB, 1 MB

Which of the following is the most illegal instruction?

Mov al, ax

In ADC instruction, there are -----------.

two operands and the CF

 

Call instruction takes a -------- as an argument.

Label

 

Or Call instruction takes -------- argument(s).

1

 

VGA stands for .

Video Graphics Adapter

 

When the control is transferred to a subroutine?

After the arguments are pushed on the stack

CS and IP are both-----------bit registers.

16

 

Registers are normally part of ----------.

CPU

The base pointer accesses local variables using ------- offsets.

negative

 

ASCII table is the contiguous arrangement of the uppercase alphabets (41-5A), the lowercase alphabets (61-7A), and the numbers ----------.

30-39

 

Which of the following string instructions is generally used in a loop instead of REP prefix?

LODS

 

The correct instruction to subtract with borrow is ---------.

SBB

mov [1234], ax is an example of ---------- addressing.

Direct

 

What the following piece of code does?

Shl word [multiplicand], 1

Rcl word [multiplicand+2], 1

Extended Shift left

 

Shift logical Left (SHL) moves all the bits one position to the --- and inserts a zero from the ---------.

left, right

 

In MUL instruction, if the source operand is a byte, then it is multiplied with ------------ register.

AL

 In MUL instruction, if the source operand is a word, then it is multiplied with ------------ register.

AX

When the operand of DIV instruction is in 16 bits, then the implied dividend will be in ----------.

DX:AX

 

What does the PUSH operation do?

its copies the operand on the stack

 

When the execution of Call instruction, the value of ------- is decremented by 2.

SP

Which of the following bus is used to inform the memory that whether processor wants to read data or write data?

Control Bus

In far jump,---------------.

both offset and segment are given

 

A value 0500 is stored in memory. If we transfer this value to a general-purpose register, then it will be shown as:

0005

In which of the following addressing, both registers are not constant?

Base + Index

 

The number of ------------ in a cell is called the cell width.

Bits

In extended multiplication, we store the multiplicand in ------ bits, and the result is stored in ------- bits.

32, 32

Synchronization between the processor and the memory for the read and write operations is done by the -----------.

Control bus

 

iAPX88 Architecture consists of:

14 Registers

 

---------- transfers the word at the top of stack (pointed to by SP) to the destination operand and then increments SP by two.

POP

Which of the following is an incorrect XOR operation?

XOR BX,AX

 

This jump is taken if the last arithmetic operation changed the sign unexpectedly.

JO

 

Which of the following jumps is taken if the last arithmetic operation did not changed the sign unexpectedly?

JNO

Which would be the output of MOV AX, BL?

Assembler will declare that this is an illegal instruction

 

------- or ------- are taken if the last arithmetic operation has produced a number in the destination that has add parity.

JNP, JNO

Group of bits processor uses to inform memory which element to read/write is collectively known as:

Address bus

MOVS is used to move a block of memory.

Move

Stack Pointer is ----------- when the ret instruction is executed.

Incremented by 2

 

---------- Instruction directs the flow of program.

Program Control

 

Which of the following instructions allows memory to memory movement of data?

MOVS

 

By default, IP is associated with -----------.

CS

After the execution of Shift Arithmetic Right instruction, the most significant bit -----------.

retains its original value

 

In case of DIV BX instruction, the quotient is stored in ------ register.

AX

 

Which part of B80500 (encoded instruction) is an opcode?

B8

 

The operand of ------- is called the source operand because the data moves to the stack from the operand.

PUSH

 

Which of the following jump is taken if the last arithmetic operation has produced a number in its destination that has even parity?

JPE

When there is a 16 bit operand with the DIV instruction, then the implied dividend will be in -------- bits.

32

EBCDIC, grey code and ASCII are the standards for --------- representation of characters.

Alpha-numeric

 

In ---------, a zero is inserted from the right and every bit moves one position to its left with the most significant bit dropped into the carry flag.

both SHL and SAL

 

Conditional jumps can only be ----------.

Short

 

BP stands for --------- pointer.

Base

In video memory, each screen location corresponds to ---bytes.

2

 

What makes CMP different from SUB?

SUB is a destructive subtraction while CMP is a nondestructive subtraction. Both affect the flags.

Which of the following registers is used as a counter?

CX

The memory on video controller is accessible to the processor by -------- bus.

System

Which of the following addressing scheme has been used in the instruction MOV [BX], AX?

Based Register Indirect

 

The multiplier is stored in ---- bits in Extended Multiplication.

16

Which part of machine code tells the central processor to perform a certain task?

Operation code

Which of the following elements will come out first using the POP instruction if 6,3,5,8,4,7 and 9 were pushed on the stack?

9

During program execution, if any change occurs in AH or AL, is also reflected in ----------.

AX

To modify the processor’s behavior, ---------- instructions are used.

special

Which of the following uses data segment by default?

Base register or BX

 

The operand of POP is called the --------- because the data is moving from the stack to the operand.

destination

 

In assembly language, the first executable instruction of the program should be placed at the offset ----------.

0x0100

 

Suppose, the current value of IP is 0x0129, and the relative address is 0x0012. What will be the new value of IP?

0x013B

In the instruction “mov word [es:0], 0x1230”, 12 refers to ------ color on -------- background.

green, blue

 

mov ax, [num1] is an example of ----------- bit move.

8

The physical memory address of 1234:5678 segment-offset pair is:

179B8

XOR can also be used as a --------- to invert selective bits.

masking operator

 

Call instruction fchanges the values of ----- and ---- registers.

IP, SP

 

There are ------- registers in iAPX88 architecture that can hold

address of data.

4

 

What does the given instruction do?

SHR DL, 1

Move the right most bit into the carry flag

 

In which of the following terms, a character is stored in memory while writing assembly language program?

ASCII code

 

Physical memory address is of:

20 bits

 

In 8088, there is a -------------stack.

decrementing

 

Which of the following is also called intro-segment cell?

Near call

 

Suppose BX=0x0120, CS=0x1000, and the memory under

consideration is [CS:BX+0x0880].

Which of the following will be the physical address?

109A0

Which of the following is the correct syntax for ‘OR’ operation

in assembly language?

or ax, bx

 

In assembly language, “DIV BL” instruction has an ------- bit operand.

8

Flags register is a special register in every architecture. It is also known as ---------.

program status word

 

An important role of the stack is in the creation of ----- variables that are only needed while the subroutine is in execution and not afterwards.

Local

Stack is a data structure that behaves in a First in Last …….. manner.

Out

We can convert a digit into its ASCII representation by adding to it.

0x30

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

Or

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

Push

 

The flag has a special role in debugging.

trap

 

IAPX88 stands for:

Intel Advanced Processor Extensions 88

 

In every bit moves one position to the right and the bit dropped from the right is inserted at the left. This bit is also copied into the carry flag.

Rotate Right (ROR)

 

Which of the following registers hold the address of data in Intel Boss?

BX, BP, SI and DI

 

Stack is:

a data structure

 

Constant can never be used as --------.

destination

 

SP is associated (by default) with ----------.

SS

Which bit of attribute byte represents the green component of foreground color?

1

 

BP stands for ---------- pointer.

Base

Shift logical Right (SHR) moves all the bits one position to the

 

--------- and inserts a zero from the ---------.

right, left

 

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

first, second

 

The stack of iAPX88 works on --------- sized elements.

word

 

MOVS is used to --------- a block of memory.

Move

 

Which bit of attribute byte represents the red component of foreground color?

2

----------- can also be used as a masking operation to invert selective bits.

XOR

 

What is the content of stack pointer?

Address of the top element of the stack

 

Far jump is not position relative rather ----------.

Absolute

 

In MUL instruction, if the source operand is a byte then the result is retuned in ------- and -------.

AH, AL

 

Which of the following are the two variants of STOS instruction?

STOSB and STOSW

 

---------- cannot appear as an operand in any instruction, it is used for accessing instructions.

IP

Which of the following instructions allows code reusability in 8088?

CALL

 

Which bit of the attribute byte represents the red component of foreground color?

2

In 8051, there is an ----------- stack.

incrementing

 

Shift logical Right (SHR) operation copies the ------ bit into the carry flag.

right most

 

Shift Arithmetic Right (SAR) shifts every bit one place to the right and places a copy of the ------- significant bit at the -----

significant place.

most, most

………… jump is absolute and not position relative.

Far

 

Which of the following directive is used to reserve an eight bits space in memory?

db

 

What makes db different from dw?

dw occupies 16 bits and db occupies 8 bits

 

The total numbers of symbols in extended ASCII are …….

256

 

……… is used for permanent diversion.

Jump

 

In MUL instruction, if the source operand is a word, then it is multiplied with ------------ register.

AX

 

The intent of the processor is carried to the memory for read/write operations through the…………

control bus

 

There are -------- columns per row on the screen.

80

 

In XOR operation, the output if 1 if both inputs are -------.

different

Which of the following is the extension of object file?

.exe

The stack pointer marks the --------- of stack.

top

Shifting the integer 5 left by 1 bit results in -------.

10

 

Program consists of -------- logical parts.

Two

 

In -------- operation, a carry flag is inserted from the left moving every bit one position to its right. The right most bit is dropped in the carry flag.

Rotate Through Carry Right (RCR)

 

Memory address always goes from ………

processor to memory

 

The unit of stack operations in iAPX88 is a …………

word

 

8088 is a ………. processor with its accumulator and all registers of ………..

16 bit, 16 bits

 

Which of the following keywords is used to define two bytes in memory?

DW

Quiz #1 (1 to ) Lectures❤

1.The programmable interval Timer (PTI) has input frequency of ______.

 1.19318MHZ ..confirm

2. Which of the following IRQs is used for sound card or network card or the modem?

 IRQ 5….confirm

3. Which of the following IRQ is used by the floppy disk drive?

 IRQ 6….confrim

4. Which of the following IRQ is used by the parallel port

 IRQ 7….confirm

5. Which of the following IRQ is derived by the keyboard when generates an interrupts

when a key is passed or released

 IRQ 1…..confirm

6. Which of the following IRQ is the cascading interrupt connected to the output of the

second 8451 in the machine.

 IRQ 2…..confirm

7. Which of the following IRQ is connected to serial port COM 2

 IRQ 3……confirm

8. Which of the following IRQ is connected to serial port COM 1?

 IRQ 4….confirm

9. Which of the following instructions is used to read a character from the keyboard port?

 in al, 0x60….confirm

 10. Which of the following instruction is the key left shift?

 cmp al, 0x2a…..confirm

11. Which of the following instruction is no, try next comparison?

 jne nextcmp….confirm

12. Which of the following instruction is used to point es to video memory?

 mov es, ax…confirm

13. Which of the following instruction is used to send EOI to PIC?

 out 0x20, al…..confrim

14. Which of the following instruction is used to point as to IVT base

 mov es, ax…..confirm

15. Which of the following instruction is used to disable interrupts?

 Cli ….confirm

16. Which of the following instruction is used to store offset at n*4?

 mov word [es:9*4], kbisr….confrim

17. Which of the following instruction is used to store segment at n*4+2?

 mov [es:9*4+2], cs….confirm

18. Which of the following instruction is used to enable interrupts?

 Sti…..conftim

19. All register and stack of a program are saved in___________.

 Multitasking…confirm from net

20. _____ is/are the port number(s) for parallel port

 378…confirm

21. ______is/are the port number(s) for keyboard

 60 to 64…confrim

22. ____is/are the port number(s) for PIC

20 and 21…confirm

23. Which of the following is the ACK pin in DB-25 connecter?

 10….confirm

24. IBM AT has __ Programmable Interrupt Controllers(PIC)

 2……confirm

25. Which of the following interrupts is of highest priority?

 Timer interrupt…..confirm

24. Which of the following is the source register in OUT instruction?

 AL or AX…..confrim

25. At the end of servicing an interrupt_________signal is used to inform the

Programmable Interrupt Controller (PIC) about it.

 EOI……confirm

26. The space where all registers of a task are stored is called______

 Process Control Block(PCB)

27. INT 08 that is saving and restoring the registers is called_____and the whole event is

called a ______________

 Schedule, context switch……confirm

28. __________ is used for exporting keyboard service.

 INT 16…confirm

29. _________ is used for exporting video services accessible

 INT 10…confirm

30._______is used for parallel port services and similarly others through different

interrupts.

 INT 17…confirm

31. ______just like a pin hole camera

INT 21…confirm

32. Which of the following are the data pins used to take data from the processor to the

devices connected through parallel port

 2 to 9….confrim

33. Which of the following the ACK, is normally used by the printer to acknowledge the

receipt of data and show the willingness to receive more data

 10…. confrim

34. Which of the following are ground and must be connected to the external circuit ground

to provide.

 18 to 25….confrim

35. Which of the following stands for TSR?

 Terminate and stay resident

36. The first parallel port LPT1 has ports designated from _ to ________.

 378, 37A..confrim

37. In intel 8088, there are a total of _______ possible interrupt vectors in an interrupt

Vector Table.

 256….confrim

38. A parallel port has ______views

 2…..confirm

39. The parallel port connector is called______.

 DB-25….confrim

40. Which of the following is the highest priority interrupt?

 INT 8…..confirm

41. iret returns on the basis of ____ and ________

 CS , IP……confirm

 42. When two devices in a system want to use the same interrupt Request (IRQ) line, is

referred as IRQ_________.

 Conflict……confirm

43. Which of the following interrupt request(IRQ) is derived by a timer device.

 IRQ 0……confrim

44. Which of the following interrupt request(IRQ) is derived by a keyboard.

 IRQ 1….confrim

45. Which of the following interrupt request(IRQ) is connected to serial port COM 2.

 IRQ 3…confirm

46. Changing and restoring the state of Central Processing Unit (CPU) is called

 Context switching…confirm from net

47. Which of the following is used for exporting parallel port services

 INT 17……confirm

48. The parallel port connector is called _________.

 DB-25….confrim

49. Port ____ is used to send an End Of interrupt(EOI) signal to the programmable

Interrupt Controller(PIC) after an interrupt has ended?

 0x20…confrim

50. Which of the following is the destination register in IN instruction?

 AL or AX…..confrim

51. _________is used in debugging along with the trap flag.

 INT 1…..confirm

52. An End of interrupt (EOI) signal is sent by the

 Programmable Interrupt controller…..confirm

 53. Each of the bits of port _______ corresponds to one of the interrupt request (IRQ) lines

 21…..confirm

54. The thread registration code initializes the Process Control Black (PCB) and adds it to

the linked list. The _________ then gives it a turn.

 Scheduler……confirm

55. Which of the following is BIOS interrupt providing keyboard services?

 Int 0x16…confirm

56. DOS has a single entry point to access all of its services through__________.

 INT 21……confirm

57. The output of programmable interval timer (PIT) is connected to the ___ line of

programmable interrupt controller (PIC).

 IRQ 0….confirm

58. Which of the following flags can be used in mathematical operations?

 Carry flag….confirm

59. Programmable Interrupt Controller (PIC) has _________ input signal(s) and ____

output signal(s).

 Eight, one…..confirm

60. Which of the following pins of DB-25 connector are ground?

 18-25……confirm

61. IF the _____ flag is set, then after every instruction, a type 1 interrupt will be generated Automatically

 Trap…..confirm

62. Which of the following interrupts plays the most significant part during single step debugging of a program?

 INT 1….confirm

 63. Which of the following flags is cleared with the help of stack?

 Interrupt flag

64. Programmable interrupt controller has ______ ports 20 and 21.

 2…..confrim

65. PCB stands for _________.

 Process Control Block…..confirm

66. Which of the following is correct regarding the input frequency of Programmable

interval Timer (PIT)?

 It is fixed……confirm

67. Which of the following is the order of pushing the contents on stack during the

execution of INT instruction?

 FLAGS CS and then IP….confirm

68. ___________ is a special type of interrupt that returns to the same instruction instead of

the next instruction

 Divide overflow interrupt….confrim

69. Which of the following instruction is used to disable all interrupts during the execution

of a program?

 cli…confirm

70. The offset address of an interrupt service routine “n” at _________.

 nx4……confirm

71. The offset address of the segment will be at________.

 nx4+2…..confirm

72. In intel 8088 the interrupt vector table occupies ______ of memory

 4 bytes

 73. _______ is a special type of interrupt that returns to the same instruction instead of the

next instruction.

 Divide overflow interrupt……..confrim

74. Which of the following interrupts is used for saving and restoring the register?

 INT 08……confirm

75. Which of the following instruction is used to return from an interrupt service routine?

 IRET…….confrim

76. Which of the following is the order of pushing the contents on stack during the

execution of IRET pops instruction?

 IP, CS, and then FLAGS…..confirm

77. Which of the following is the priority of interrupt Request(IRQ) 0?

 Highest……confirm

78. The number of ______ in a cell is called the cell width

 Bits….confirm

79. iAPXBB architecture consists of

 14 register….confirm

80. Synchronization between the processor and the memory for read and write operations

is done by the_________.

 Control bus….confirm

90. _______transfer the word at the top of the stock (pointed to by SP) to the destination

operand and increments SP by two.

 POP….confirm

91. In extended multiplication, we store the multiplicand in ______ bits, and the result is

stored in ____ bits

 32, 32…..confirm

 92. Suppose AX=5, BX=5, DX=0, CF=1, ZF=1, What will be the final value in AX register

after the execution of ADC, AX, BX?

 10….confirm

93. Shift logical left (SHL) moves of the bits one position to the ________ and inserts to zero

from the _________.

 Right, left…confirm

94. In MUl instruction, if the source operand is a byte, then it is multiplied with

________register.

 Al…..confirm

95. When the operand of DIV instruction is in 16 bits, then the implied dividend will be in

 DX:AX……confirm

96. We can convert a digit into its ASCII representation by adding _________ to it.

 0x30……confirm

97. Shifting the integer 5 left by 1 bit results in

 10….confirrm from net

98. Intel 8085 can access up to _____ of memory, whereas intel 8088 can access up to

________ of memory

 64KB , 1MB

99. The ordering of a program’s instruction is ensured by the ______ register

 Program counter….confirm

100. When the RET instruction is executed, it recovers the value of the _______ from the

stack.

 Instruction pointer…..confrim

101. If AND operation is performed between AX and BX, then how many AND operations

will be performed in total?

 16…..confirm

 102. Keeping in view the downward compatability between the two systems, the codes

written for the intel 8088 are _______ on the intel 386 processor.

 Valid…confirm

103. SP is associated (by default) with ________.

 SS….confrim

104. IP is associated (by default) with ________.

 CS….confirm

105. ASCII stands for ________.

 American Standard Code for information interchange

106. ___________ is used for permanent diversion.

 Jump…..confrim

107. Which of the following uses data segment by default?

 Base pointer….confirm

108. Which of the following is the number of operands for ADC (ADD with carry)

instruction

 3

109. Which of the following addressing scheme has been used in the instruction

MOV[BX],AX?

 Base register indirect…..confrom from net

110. Suppose AX=5, BX=5, DX=0, CF=1, ZF=1 and AF=1. What will be the final value in

AX register after the execution of ADC AX, BX?

 10… not sure

111. Suppose BX=0x0120, CS=0x1000, and the memory under consideration is

[CX:BX+0x0880]. Which of the following will be the physical address?

 11A00

 112. __________ transfer the word at the top of the stack (pointed to by SP) to the

destination operand, and increment SP by two

 POP

113. In extended multiplication, we store the multiplied in ______ bits, and the result is

stored in __________ bits.

 32, 32…..confrim

114. The number of ___ in a cell is called the cell width?

 Bits

115. iAPx88 architecture consist of

 14 registers

116. Synchronization between the processor and the memory for read and write operation

is done by the ________.

 Control bus…..confirm

117. What does the PUSH operation do

 It copies the operand on the stack…..confrim

118. Intel 8085 can access up to _ of memory, whereas intel 8088 can access up to ____ of

memory.

 64KB , 1MB …confirm

119. The basic function of register is to hold ________.

 Operand…confirm

120. Which of the following bus is used to inform the memory that whether process wants

to read data or write data?

 Control bus….confirm

121. In which of the following addressing, both register are not constant?

 Base + index

122. mov [1234], ax is an example of ________addressing.

 Direct….confirm

 123. What the following piece of code does?

 Shi word [multiplicand],1

 Rcl word[multiplicand +2], 1

 Extended shift left…..confirm

 

124. The correct instruction to subtract with borrow is ___________

 SBB…confirm

125. The correct instruction to subtract without borrow is _______.

 SUB…confirm

126. Which of the following string instructions is generally used in a loop instead of REP

prefix?

 LODs…confirm

127. With the execution of Call instruction, the value of ________ is decremented by 2

 SP…confirm

128. iAPX88 stands for ___________.

 Intel Advanced Processor Extension 88

129. In far jump ___.

 Both offset and segment are given

130. A value of 0500 is stored in memory. If we transfer this value to a general-purpose

register, then it will be shown as

 0005….confirm

131. Which of the following operations is used to set any specific bit in a binary number?

 AND….confirm from net

 132. The multiplier is stored in ______ bits in Extended Multiplication

 32…confirm

133. After the execution of Shift Arithmetic Right instruction, the most significant bit

__________.

 Is replaced by a 1

134. In multiplication algorithm, we take the first digit of the multiplier and multiply it

with the __________.

 Multiplicand….confirm

135. During program execution, if any change occurs in AH or AL is also reflected in

________.

 AX…..confrim

136. Which of the following jump does not depend on flogs register?

 JCXZ…confirm

137. RET instruction takes _______argument(s)

 0 …confirm

138. Shift logical Right(SHR) moves all the bits one position to the ______ and inserts a

zero from the ____.

 Left, right….confrim

139. Shift logical LEft(SHL) moves all the bits one position to the ______ and inserts a zero

from the ____.

 Rigt, left…..confrim

139. All mathematical and logical operations are performed on the _____.

 Accumulator….confrim

140. STI stands for?

 Set the interrupt flag….confirm

 141. What is the purpose of MOV AX, 0xFFFF?

 Mov AX into 0xFFFF…..confrim

142. An important role of the stack is in the creation of _______ variables that are only

needed while the subroutine is in execution and not afterwards.

 Local…confirm

143. _____decrements SP(the stack pointer) by two, and then transfers a word from the

source operation the top of the stack

 PUSH

144. Which of the following cannot be pushed on the stack?

 1 byte..confrim

145. The maximum parameters a subroutine can receive are ______ when all the general

purpose register are used

 7……confirm

146. The ________ flag has a special role in debugging.

 Trap…confirm

147. In the instruction mov word [es:0] 0x1230, 12 refers to ___ color on ____ background

 Green, blue…..confrim

148. In the instruction mov word [es:0] 0x0741, 12 refers to ___ color on ____ background

 White, black….confrim

149. In the instruction mov word [es:0] 0xb800, 12 refers to ___ color on ____ background

 White,black…confrim

150. Which of the following is a program control instruction?

 Jne 0534….confirm

151. Which of the following instruction allows memory to memory movement of data?

 MOVS….confrim

152._______can also be used as a masking operation to invert selective bits

XOR…confirm

153. Code size reduction and improvement in speed were the two reasons for introducing

block processing instructions in the ______processor

 8088….confrim

154. In assembly language, the first executable instruction of the program should be placed

at the offset.

 0x0100….confrim

155. BH register is a (an) _________ bit register.

 8…confirm

156. Which of the following instructions allows code reusability in 8088?

 Call…confrim

157. In ADC instruction, there are ________.

 Two operands and the CF….confriim

158. ¼ can be represented by ________ as a fractional binary number.

 0.01…confirm

159. _______subtracts one from the operand

 DEC

160. Stack is a data structure that behaves in ______ manner.

 Both LIFO and FIFO…confirm

161.How logical errors are different from syntax error?

 Identifying both types of errors is the responsibility of assembler….confrim

162. A symbol associated to a point in the program is called a______.

 Label…confirm

163. IN 8088, there is a ________stack.

 Decrementing

 164. CX register is mostly used as _________ register.

 Counter…confirm

165. There are__byte(S) for each character on the screen.

 1…confirm

166. During program execution if any change occurs in AH or AL is also reflected in

________.

 AX…confirm

167.Whenever on instruction needs a memory source ______ holds the pointer to it.

 DS:SI..confirm

168. How jmp is different fron jnz?

 Jnz permanently diverts the program flow, but jmp does not..confirm

169. What makes CMP different from SUB?

CMP is a non destructive subtraction that does not affect any flag. However SUB is a

destructive subtraction

170. The ordering of a program’s instructions is ensured by the _________ register.

 Program counter…confirm

171. When an element is pushed on the stack, Sp is decremented by _______.

 Two..confirm

172. Which of the following bus is used to inform the memory that whether processor

wants to read data or write data.

 Control bus..confirm

173. In ______ operation a zero is inserted from the left and every bit moves one position to

the right, the right most bit is allocated into the carry flag.

 Shift logical right….confirm

174. In iAPX88 ______ flag is specially related to the string instruction.

Direction…confirm

175. To convert the case of a character, we add or subtract _________ from the ASCII

code.

 0x20…confirm fron net

176. Which of the following flags sets when a larger number is subtracted from a smaller

number.

 CF…confirm

177. Which of the following is an illegal assembly instruction?

 Mov [num1],[num2]….confirm

178. mov ax,[num1] is an example of _bit move

 8.

179. Call instruction takes a __________ as an argument

 Label….confirm

180. Which of the following is the most illegal instruction?

 Mov ax, [num1]

181 When the control is transferred to a subroutine?

 After the arguments are pushed on the stack..confirm

182. CS and CP are both ________ bit register

 16…confirm

183. A decrementing stack moves from _____ to _______ addresses as elements are added

in it.

 Higher, lower…confirm

184. The most convenient place to store local variables is _____.

 Stack…confirm

185. ____can be used to check whether particular bits of a number are set or not.

 AND…confirm

 186. The segment offset pair is called a/an _________ address.

 Logical…confirm

7 – Blinking of foreground character

6 – Red component of background color

5 – Green component of background color

4 – Blue component of background color

3 – Intensity component of foreground color

2 – Red component of foreground color

1 – Green component of foreground color

0 – Blue component of foreground color

187. The ________ flag has a special role in debugging.

 Trap…confirm

188. The extra bit produced as a result of an arithmetic operation that does not fit in the

target register is stored in.

 Carry flag..confrim

189. Cell width refers to the total number of bits in a memory cell while the total number of

cells is called the _________.

 Cell width…confirm

190. Register are normally part of_________.

 CPU…confirm

191. When the relative address stored with the instruction is in 16 bits as in the last example the jump is called a _________ jump.

 Near..confrim

192. If the offset is stored in a single byte as in 75F2 with the opcode 75 and operand F2,the jump is called a ________jump.

Short…confirm

193. How jump is different from jnz?

 Jump is an unconditional jump, however jnz is a conditional jump…confirm

194. A 16-bit processor has an accumulator of _______.

 32 bits…confirm

195. REPE and REPNE prefixes are only meaningful with _______.

 CMPS or SCAS…both are confirm

196. Which of the following bit is dropped into the carry flag after the execution of ‘Shift

Logical Right’ operation

 Right most bit…confirm

197. In _______operation, the carry flag is inserted from the right causing every bit to

move one location to its left. The dropped bit from the left goes into the carry flag.

 Rotate through the Cary left…confirm

198. In _________ operation, the output is 1 only if both inputs are 1

 AND…confirm

199.In Shift Logical Left (SHL), the ________ bit is dropped into the carry flag.

 Most significant..confrim

200. In STOS, the implied source operand always resides in ________.

 AL,AX…..confrim

201. The maximum amount of memory accessible using 8085 processor is _____________-.

 64KB

202. sub sp,2. The above instruction is used to perform a _________ operation on stack.

 PUSH..confrim

203. In direct addressing the memory address given in the instruction is ______.

 Fixed….confrim

 204. Which of the following are the basic bitwise operations?

 AND, OR, XOR and NOT….confirm

205. Which of the following is also called intra-segment call?

 Far call….confrim

206. A/An ___ is an area of memory that holds all local variables and parameters.

 Stack…confirm

207. How many are the functions of a register?

 Four…confirm

208. The shift logical right operation inserts a zero from the left and moves every bit one

position to the right and copies the rightmost bit in the carry flag.

 True…confirm

209. The shift logical left zero bit is inserted from the right and every bit moves one

position to its left with the most significant bit dropping into the carry flag.

 Shift Logical Left (SHL) / Shift Arithmetic Left (SAL)

210. Shift arithmetic left is just another name for shift logical left.

 True

211. A signed number holds the sign in its most significant bit. If this bit was one a logical

right shifting will change the sign of this number because of insertion of a zero from the

left.

 Shift arithmetic Right(SAR)…confirm

212. The operation of shift arithmetic right is therefore to shift every bit one place to the

right with a copy of the most significant bit left at the most significant place. The bit

dropped from the right is caught in the carry basket.

 True..confirm

213. In the rotate right operation every bit moves one position to the right and the bit

dropped from the right is inserted at the left. This bit is also copied into the carry flag.

Rotate Right (ROR)…true confirm

214. In the operation of rotate left instruction, the most significant bit is copied to the carry

flag and is inserted from the right, causing every bit to move one position to the left

 Rotate Left(ROL)…confirm

215. In the rotate through carry right instruction, the carry flag is inserted from the left,

every bit moves one position to the right, and the right most bit is dropped in the carry flag.

 Rotate Through Carry Right(RCR)…confirm

216. The exact opposite of rotate through carry right instruction is the rotate through carry

left instruction. In its operation the carry flag is inserted from the right causing every bit to

move one location to its left and the most significant bit occupying the carry flag

 Rotate THorugh Carry Left…confirm

217. Register are storage cells ___________.

 Inside the processor…confirm

218. Which of the following is the meaning of partial pivoting while employing the row

transformations?

 Making the largest element as pivot…..confrim

219. In case of DIV BX instruction, the quotient is stored in _____ register

 AX…confirm

220. The base pointer accesses local variables using ______ offset

 Negative….confrim

221. The important thing to observe in the ASCII table is the contiguous arrangement of

the uppercase alphabets (41-5A), the lowercase alphabets (61-7A), and the numbers (30-

39).

 True

222. Which of the following registers hold the address of data in intel 8088?

 BX BP ST and ES…confirm fron net

223. Which of the following is the general form of addressing?

Base+index+offset…confirm

224. All mathematical and logical operations are performed on its.

 Arithemetic Logic Unit(ALU)….confrim fron net

225. Call instruction changes the values of ______ and ______ registers.

 IP,SP

226. Which of the following keywords is used to define two bytes in memory?

 DW….confrim

227. The stack pointer marks the _________ of stack.

 Top…confirm

228. The extra bit produced as a result of an arithmetic operation that does not fit in the

target register is stored in.

 Carry flag

229. Conditional jump can only be _______.

 Short…confirm from net

230. Which of the following is the correct syntax for ‘OR operation in assembly language?

 Or ax,bx and or bye[mem] 5…confirm

231. . Which of the following is the correct syntax for ‘AND operation in assembly

language?

 And ax, bx and ‘and byte [mem] ,5..confrim

232. . Which of the following is the correct syntax for ‘XOR operation in assembly

language?

 Xor ax,bx and xor byte [mem], 5…confirm

233. . Which of the following is the correct syntax for ‘NOT operation in assembly

language?

 Not ax, and not byte[mem]

 234. _______jump is absolute and not position relative.

 Far….confirm

235. Constant can never be used as _________.

 Destination…confirm

236. Call instruction takes _________argumetns

 1…confirm

237. Program consists of ____ logical parts

 Two….confrim

238. All the addressing mechanism in iApX88 return a number called the ______ address

 Effective….confirm

239. the physical memory address of 1234:5678 segment-offset pair is

 179B8

240. Which of the following gives the more logical view of the storage medium?

 DOS

241.If AX=00ff then which of the following instruction can be used to change the value of

AX to FF00.

 AND AX,FF00…confrim

 In programmable interrupt controller which of the following ports is referred as interruptmask register?

 21


 ___ is the highest priority interrupt in interrupt controller

  IRQ 0


 IRET returns on the basis of and

   CS, IP

 If is set, the after every instruction a type 1 interrupt will be automaticallygenerated.

 Trap flag

 

 The interrupt handler uses instruction to return back to the caller.

   IRET

   

Which of the following interrupt is used for Arithmetic overflow?

  INT 4

 During the execution of INT instruction, some contents are pushed on to the stack, the orderof pushing then is

  FLAGS register, CS and then IP


 Each of the bits at port _corresponding to one of the IRQ lines.

  21


 Which of the following pins of the parallel port connector are grounded?a. a) 10-18

 18-25


Which of the following interrupts plays the most significant part during step debugging of aprogram?

 INT 1

Which of the following IRQs is connected to serial port COM 2?

 IRQ 3

Which of the following IRQs is connected to serial port COM 1?

 IRQ 4


Which of the following IRQs is used by the parallel port?

 IRQ 7

In programmable interrupt controller which of the following ports is used to selectivelyenabling or disabling interrupts?

 21


The space where all the registers of task are stored is called

 Process control block

 

 Which of the following is the destination register in IN instruction?

 AL or AX

In multitasking environment, which of the following structure is used to maintain the ordering of active PCBs?

 Linked List


 In multitasking which of the following interrupts is used as scheduler during context switching?

 INT 8

 Which of the following are required for thread entry?

 CS and IP


The time interval between two timer tick is?

 55 ms

 Which of the following flag can be used for mathematical operations?

 Carry Flag


In multi-tasking, the process of saving and restoring to values of registers from a processcontrol block (PCB) is called

 Context switching


When two devices in a system want to use the same IRQ line, is referred as:

 IRQ Conflict


An End of Interrupt (EOI) signal is sent by

 Handler


Threads can have function calls, parameters and _ variables.

 Local


Which of the following arranges jobs in a sequence in order to be executed?

 Process control block

 

Which of the following flags cannot be cleared using an assembly instruction?

 Carry flag

 Which of the following is the highest priority interrupt?

 INT0

 At the end of servicing an interrupt, which of the following is used to inform tha PIC that it iscompleted?

 EOI


Which of the following interrupts is used for maintaining the system time?

 INT 8


Which of the following is used for exporting parallel port services?

 INT 17


In programmable interrupt controller which of the following ports is referred as a

controlport?

 20


_______is/are the port number(s) for parallel port.

 378

 

 The number of pins in a parallel port connector are?

 25

 

The offset address of an interrupt n will be at

 nx4

 

Programmable interrupt controller has two ports (20 and 21). Port 20 is the control port while port 21 is.

The interrupt mask register

Which of the following instruction selects memory address space?

 MOV


The thread registration code initializes the PCB and adds it to the linked list so that the will give it a turn.

 Scheduler


Which of the following instruction is used for disabling all the interrupts during a programexecution?

Cli


Programmable interrupt controller (PIC) has

 Eight input signals and one output signals


In 8088 processor, there can be totalpossible entries in an interrupt vector table.

 256


Each thread can have their own

 Stack


 The parallel port connector is called?

 DB-25

In 8088, the physical memory address for Interrupt Vector Table is fixed and the tableoccupies exactly of memory.

 1 KB


Which of the following interrupts is non maskable interrupt?

 INT 2


 Using OUT instruction on parallel data port results into a signal of for every 1 bit.

 5 V


PCB stands for?

Process Control Block


 Which of the following port number is used to send an end of interrupt (EOI) signal to thePIC after an interrupt is ended?

 0x20


 Which of the following instruction is used for reading a char from keyboard?

 in al, 0x60


 In PIC, which of the following port is used for selectively enabling or disabling interrupts?

 21


 DOS has single entry point to access all its services through interrupt

INT 21


Which of the following pins of parallel port are used to carry the data from processor to thedevice connected through parallel port?

 Pin 2 to pin 9


The input frequency of the programmable interval timer (PIT) is

 Fixed


 All registers of task are stored in space called

 Process control block

 

 Which of the following IRQ`s is derived by a key board

 IRQ 1


Changing and restoring the state of Control processing unit (CPU) is referred as

 Multitasking


 For the external hardware to generate an interrupt there are how many pins outside theprocessor?

 1

Which of the following instruction selects peripheral address space? 

IN

Which of the following is the most commonly used port with printer?

Parallel Port


allows us to execute one instruction at a time rather than the whole program at once

 INT 1


Which of the following is used for exporting keyboard services?

 INT 16


TSR stands for

 Terminate and Stay resident


Which of the following is the ACK pin in DB-25 Connector

10


Which of the following IRQs is a cascading interrupt?

IRQ 2


In interrupt masking, we use to get control from the program without letting the program know about it.

 IRQ 0


The output of programmable timer interval is connected to which line of the PIC?

 IRQ 0


 Which of the following IRQs is used for Floppy disk drive?

IRQ 6


74. In multitasking, each PCB requires bytes to store the values of registers.

28


 Which of the following IRQs is used for sound card or network card?

 IRQ 5


Programmable interrupt controller has ports.

 2

Which of the following bits of parallel control port enables the IRQ 7 triggering by the ACKpin?

 Bit 4

 

Which of the following IRQs is derived by a timer device?

IRQ 0


is a special type of interrupt that returns to the same instruction instead f the next instruction

Divide overflow


All the registers & stack are saved in

 Multitasking


 Which of the following is the source register in OUT instruction?

 AL or AX


Which of the following is the destination register in IN instruction?

AL or AX

The first instruction of COM file must be at offset:

0x0100 


The iAPX88 architecture consists of ___ registers.

14 


 When two 16-bit 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.

Carry flag 


 Only instruction allow moving data from memory to memory

string 

 

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

Special instructions 

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

16 bits 

In the instruction cmp ax,bx the contents of ___ are changed.

flag register 

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

Effective 

Mov byte[num1],5 is ___ instruction.

Legal 

The memory address always moves from

processor to memory 

An offset alone is not complete without

segment 

Code segment is associated to ___ register by default.

IP 


The iAPX88 processor supports ___ modes of memory access.


A 32-bit processor has accumulator of ___

32 bits 


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

None 

 Far jump is not position relative but is ___ memory

absolute 


If the address of memory location num1 is 0117 and its content is 0005 then after execution of the instruction mov bx, num1 bx will contain.

0005 

 Assembly the cx register is used normally as a ___ register.

counter 

Which is the unidirectional bus?

address bus 

 ___ register holds the address of next instruction is to be executed

program counter 

JC and JNC test the __

carry flag 

 Which bit sets the character ‘’blinking’’ on the screen?

 Mov ax, 5 has:

2 operands 


Index registers are used to store ___.

address 


The bits of the ___ work independently and individually.

flags register 


The operation of CMP is to:

subtract source from destination 

The registers IP, SP, BP, SI, DI and BX all can contain a ___ offset.

16 bits 

Regarding assembler, which statement is true:

assembler converts mnemonics to the corresponding OPCODE 

 

If BB is the OPCODE of the instruction which states to “move a constant value to ax register”, the hexadecimal representation (using little Endian notation) of the instruction mov ax, 336 (150 in hexadecimal number system) will be:

0XBB0150 

Assembly language is:

low level programming language 

There are ___ registers in iapx88 architecture that can hold address of data.

 Which part of this B80500 encoded instruction is an opcode?

opcode is B8 

 In ___ operation the carry flag is inserted from the right causing every bit to move one location to its left and the most significant bit occupying the carry flag.

Rotate through carry left(RCL) 

 In ___ operation, a carry flag is inserted from the left moving every bit one position to the right, with the right most bit is dropped in the carry flag.

RCR 

CS and IP are both ___ bit registers.

16 

 Motorola follows ___.

big endian


Intel follows ___.

Little endian 


The shift logical right operation inserts.

a zero from left 


Shifting the -15 two-bit SAR:

-7 

 In left shift operation the most left bit___

will go to CF 


To reserve 8-bits in memory ___ directive is used.

db 


In the mov ax, 5 5 is the ___ operand.

source 

Which flags are not used for mathematical operations?

direction, interrupt and trap flag 


The number of bits required to access 1MB of memory are

20 bits 

cx register is:


count register 


Which of the following is not true about registers?

intermediate results may also be stored in registers 


Types of jump are:

short, near, far 


8088 is a __ bit processor.

16 


 |0|->|1|1|0|1|0|0|0|->|C| is an example of:

SHR 


Memory is determined by ____ pair and not alone.

Segment-offset 


Question No: 1 ( Marks: 1 ) – Please choose one

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

0x0010

0x0100 (Page 19) 

0x1000

0x0000

Ref:-
The first instruction of a COM file must be at
offset 0100 (decimal 255) as a requirement.

Question No: 2 ( Marks: 1 ) – Please choose one

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

Black (Page 81) 

White

Red

Blue

Question No: 3 ( Marks: 1 ) – Please choose one

Advertisements

REPORT THIS AD

The iAPX888 architecture consists of _______ register.

12

14

16 (Page 15)

18

Question No: 4 ( Marks: 1 ) – Please choose one

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

Black

White (Page 81)

Red

Blue

Question No: 5 ( Marks: 1 ) – Please choose one

One screen location corresponds to a .

Byte

Word (Page 80)

Double byte

Double word

QQuestion No: 6 ( Marks: 1 ) – Please choose one

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

First decremented and then element copied on to the stack (Page 68) .

First incremented and then element copied on to the stack .

Decremented after the element copied on to the stack .

Incremented after the element copied on to the stack

Question No: 7 ( Marks: 1 ) – Please choose one

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

The character code (Page 81)

The attribute byte

The parameters

The dimensions

Question No: 8 ( Marks: 1 ) – Please choose one

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

Jump will be taken .

Zero flag will set .

ZF will contain value -4 .

Jump will not be taken (rr)

Question No: 9 ( Marks: 1 ) – Please choose one

If D is “35” is shift to left 2 bits the new value .

35 .

70 .

140 .

17

Question No: 10 ( Marks: 1 ) – Please choose one

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 .

carry flag (Page 16)

Parity Flag

Auxiliary Carry

Zero Flag

Question No:  11 ( Marks: 1 ) – Please choose one

Only instructions allow moving data from memory to memory.

string (Page 29) .

word .

indirect .

stack

Question No: 12 ( Marks: 1 ) – Please choose one

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

AL (Page 85) .

AX .

AH .

DX

Question No: 13 ( Marks: 1 ) – Please choose one

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

. 3

. 4

. 5

. 6 (Page 81)

Question No: 14 ( Marks: 1 ) – Please choose one | 0 |–›| 1 | 1 | 0 | 1 | 0 | 0 | 0 | –›| C | is a example of ______ .

Shl

.sar

.Shr (Page 52)

.Sal

Question No: 15 ( Marks: 1 ) – Please choose one

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

Special Instructions (Page 14) .

Data Movement Instructions .

Program Control Instructions .

Arithmetic and Logic Instructions

Question No: 16 ( Marks: 1 ) – Please choose one

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

.32 bits

.6 bits

.16 bits (Page 14)

.64 bits

Question No:  18. In instruction ADC the operands can be
o Two register only
o Two register and one memory location
o CF and two other operands (Page 57)
o ZF and two other operands

Question No:  19. After the execution of instruction “RET”
o SP is incremented by 2 (Page 66)
o SP is decremented by 2
o SP is incremented by 1
o SP is decremented by 1

Question No:  20. The extended ASCII has
o 64 characters
o 128 characters (Page 79)
o 256 characters
o 502 characters

Question No:  21. The second byte in the word designated for screen location holds
o The dimension of the screen
o Character position on the screen
o Character color on the screen (Page 81)
o ACSII code of the character

Question No:  22. REP will always
o Incremented CX by 1
o Incremented CX by 2
o Decremented CX by 1 (Page 92)
o Decremented CX by 2

Question No:  23. The routine that executes in response to an INT instruction is called
o ISR (Page 103)
o IRS
o ISP
o IRT

Question No:  25.The routine that executes in response to an INT instruction is called

o AX are changed
o BX are changed
o CX are changed
o Flag register are changed (Page 39)

Question No:  26. All the addressing mechanisms iniAPX88 return a number called ______ address.
o Effective (Page 33)
o faulty
o indirect
o direct

Question No:  27. The execution of the instruction “mov word [ES: DI], 0x0720”
o will clear next character on screen (Page 82)
o will print “20” at top left of the screen
o will print “20” at top right of the screen
o will move DI at location 0720 on the screen

Question No:  28. “mov byte [num1],5” is _______ instruction.
o legal
o illegal (Page 30)
o stack based
o memory indirect

Question No:  29. MOV instruction transfers a byte or word from which of the following source location.
o DS:DI
o ES:SI
o ES:DI (Page 92)
o DS:SI

 

Question No:  31. If AX contains FFFFh, then after execution of instruction “SAL ax, 3”, the result will be
o -3
o +3
o -8
o +8

Question No:  32. If the decimal number “35” is shifted by two bit to left, the new value will be
o 35
o 70
o 140
o 17

Question No:  33. While using STOBS, if DF=1 then
o The value of SI will be incremented by one
o The value of SI will be incremented by two
o The value of SI will be decremented by one
o The value of SI will be decremented by two

Question No:  34. After the execution of STOSW, the CX will be
o Decremented by 1
o Decremented by 2 (Page 92)
o Incremented by 1
o Incremented by 2

Question No:  35. The memory address always move from
o processor to memory
o memory to processor
o memory to peripheral
o peripheral to processor

Question No: 36. An offset alone is not complete without
o Segment (Page 34)
o code label
o index register
o data label

Question No:  37. Code Segment is associated to _______ register by default.
o IP (Page 34)
o SS
o BP
o CX

Question No: 38 ( Marks: 1 ) – Please choose one

After the execution of SAR instruction:

.MSB remain as it is

.MSB Will change

.MSB move to left (Page 52) .

No change will occur.

Question No: 39 ( Marks: 1 ) – Please choose one

ASCII stands for ____________. The screen is two dimensional space having:

.25 Rows and 25 Columns (Page 80)

.25 Rows and 80 Columns

.80 Rows and 80 Columns

.80 Rows and 25 Columns

Question No: 40 ( Marks: 1 ) – Please choose one

In the Rotate Right Operation every bit moves one position to right and the bit dropped from the right is inserted at the left and:

.Dropped in CF (Page 53)

.moves to AL

.Don’t go anywhere.

Question No: 41 ( Marks: 1 ) – Please choose one

____________ of the following flags will be affected by MOVSB?

.DF

.ZF

.PF

.No effect on flags.

Question No: 42 ( Marks: 1 ) – Please choose one

The iAPX88 processor supports ___________ modes of memory access.

.5

.6

.7 (Page 35)

Question No: 43 ( Marks: 1 ) – Please choose one

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

.Program

.data structure (Page 67)

.Heap

.None of the Given

Question No: 44 ( Marks: 1 ) – Please choose one

The physical address of the stack is obtained by

.SS:SI combination

.SS:SP combination (Page 68)

.ES:BP combination

.ES:SP combination

Question No: 45 ( Marks: 1 ) – Please choose one

Foreground and background parameter will be

.32bits

.16bits

.8bits

.4bits

Question No: 46 ( Marks: 1 ) – Please choose one

The clear screen operation initialize whole block of memory

.0741

.0417

.0714

.0174, 0720 (Page 91)

Question No: 47 ( Marks: 1 ) – Please choose one

In STOSB instruction, when DF is Set, SI is

.Incremented by 1

.Incremented by 2

.Decremented by 1 (Not confirmed)

.Decremented by 2

Question No: 48 ( Marks: 1 ) – Please choose one

Assembly language is:
.Low-level programming language Click here for detail .High-level programming language .Also known as machine language .Not considered closer to the computer

Question No: 49 ( Marks: 1 ) – Please choose one

A 32 Bit processor has accumulator of ———

.8 bit

.16 bit

.32 bit (Page 12)

.64 bit

Question No: 50 ( Marks: 1 ) – Please choose one

To transfer control back the RET instruction take

.1 argument

.1 argument

.3 arguments (Page 72)

.No arguments

Question No: 51 ( Marks: 1 ) – Please choose one

RET is executed, it recovers the values from

.Register

.Stack (Page 71)

.Data segment

.Code segment

Question No: 52 ( Marks: 1 ) – Please choose one

To convert any digit to its ASCII representation

.Add 0x30 in the digit (Page 80)

.Subtract 0x30 from the digit

.Add 0x61 in the digit

.Subtract 0x61 from the digit

Question No: 53( Marks: 1 ) – Please choose one

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

.Caller

.Callee (Page 74)

.RET

.Stack

Question No: 54 ( Marks: 1 ) – Please choose one

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

.CF

.OF

.DF

.None of Above (Page 43)

Question No: 55 ( Marks: 1 ) – Please choose one

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

. “A” appear on the top left of screen (Page 81)

. “A” appear on the top right of screen

. “A” appear on the center of screen

. “A” appear on the bottom left of screen

Question No: 56( Marks: 1 ) – Please choose one

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

.Jump will be taken

.Zero flag will set

.ZF will contain value -4

.Jump will not be taken

Question No: 57( Marks: 1 ) – Please choose one

Which of the following options contain the set of instructions to open a window to the video memory?

.mov AX, 0xb008 mov ES, AX

.mov AX, 0xb800 mov ES, AX (Page 81)

.mov AX, 0x8b00 mov ES, AX

.mov AX, 0x800b mov ES, AX

 No: 59( Marks: 1 ) – Please choose one

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

.Green

.White

.Red

.Black

Question No:  60( Marks: 1 ) – Please choose one

After the execution of SAR instruction

. The msb is replaced by a 0

. The msb is replaced by 1

. The msb retains its original value

. The msb is replaced by the value of CF

Question No:  61( Marks: 1 ) – Please choose one

RETF will pop the offset in the

. BP

. IP (Page 69)

. SP

. SI

Reference:
RETF will pop the offset in the instruction
Pointer followed by popping the segment in the code segment register.

Question No: 64 ( Marks: 1 ) – Please choose one

“Far” jump is not position relative but is _______________

. memory dependent

. Absolute (Page 46)
. Temporary

. indirect

Reference :-
Far jump is not position relative but is absolute.

Question No:  65 ( Marks: 1 ) – Please choose one

Only ___________ instructions allow moving data from memory to memory.

. string (Page 29) rep

. word

. indirect

. stack

Question No:  66 ( Marks: 1 ) – Please choose one

After the execution of instruction “RET 2”

. SP is incremented by 2
. SP is decremented by 2 (Page 66) rep

. SP is incremented by 4

. SP is decremented by 4

Question No:  67 ( Marks: 1 ) – Please choose one

DIV instruction has

. Two forms (Page 85)

. Three forms

. Four forms

. Five forms

Reference:
There are two forms of the
DIV instruction. The first form divides a 32bit number in DX:AX by its 16bit
operand and stores the 16bit quotient in AX and the 16bit remainder in DX.

Question No:  68 ( Marks: 1 ) – Please choose one

When the operand of DIV instruction is of 16 bits then implied dividend will be of

. 8 bits (Page 85)

. 16 bits

. 32 bits

. 64 bits

Question No:  69 ( Marks: 1 ) – Please choose one

After the execution of MOVS instruction which of the following registers are updated

. SI only

. DI only

. SI and DI only (Page 92)

. SI, DI and BP only

Question No:  70 ( Marks: 1 ) – Please choose one

In 8088 architecture, whenever an element is pushed on the stack

. SP is decremented by 1

. SP is decremented by 2 (Page 68)

. SP is decremented by 3

. SP is decremented by 4

Reference:
Whenever an element is pushed on the stack SP is decremented by two as
the 8088 stack works on word sized elements.

Question No:  71 ( Marks: 1 ) – Please choose one

When a very large number is divided by very small number so that the quotient is larger than the space provided, this is called

. Divide logical error

. Divide overflow error (Page 85)

. Divide syntax error

. An illegal instruction

Question No:  72 ( Marks: 1 ) – Please choose one

In the word designated for one screen location, the higher address contains

. The character code

. The attribute byte (Page 81)

. The parameters

. The dimensions

Reference:-
The second byte in the word designated for one screen location holds the
foreground and background colors for the character. This is called its video
attribute or attribute byte.

 

Question No: 74 ( Marks: 1 ) – Please choose one

In a video memory, each screen location corresponds to

. One byte

. Two bytes

. Four bytes

. Eight bytes

Question No:  77( Marks: 1 ) – Please choose one

After the execution of “PUSH AX” statement

.AX register will reside on the stack

.A copy of AX will go on the stack (Page 69)

.The value of AX disappear after moving on stack

.Stack will send an acceptance message

Question No: 78 ( Marks: 1 ) – Please choose one

physical address of the stack is obtained by

.SS:SP combination

.SS:SI combination

.SS:SP combination (Page 68) rep

.ES:BP combination

.ES:SP combination

Question No:  79 ( Marks: 1 ) – Please choose one

If the address of memory location Num1 is 0117 and its content is 0005 then after execution of the instruction “ mov bx, Num1” bx will contain

.0005

.0117 (Page 30)

.Num1

.1701

Question No:  80 ( Marks: 1 ) – Please choose one

In STOS instruction, the implied source will always be in

.AL or AX registers (Page 92)

.DL or DX registers

.BL or BX registers

.CL or CX registers

Question No:  81 ( Marks: 1 ) – Please choose one

The shift logical right operation inserts A zero at right A zero at left (Page 52) A one at right A one at right

 

Question No: 84 ( Marks: 1 ) – Please choose one

assembly the CX register is used normally as a ______________register. .source .counter (Page 32) .index .pointer Which is the unidirectional bus ? (I) Control Bus (II) Data Bus (III) Address Bus

.I only

.II only

.III only (Page 9)

.I and II only

Question No: 85 ( Marks: 1 ) – Please choose one

The basic function of SCAS instruction is to

.Compare (Page 92)

.Scan

.Sort

.Move data

Question No: 86 ( Marks: 1 ) – Please choose one

_______ register holds the address of next instruction is to be executed

.Base pointer

.Code segment

.Source index

.Program counter (Page 13)

Question No: 87 ( Marks: 1 ) – Please choose one

JC and JNC test the ____________ flag. .carry (Page 41) .parity .zero .sign

Question No: 88 ( Marks: 1 ) – Please choose one

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

.CF

.OF

.DF

.No flags will be affected (Page 93)

Question No: 89 ( Marks: 1 ) – Please choose one

In string manipulation whenever an instruction needs a memory source, which of the following will hold the pointer to it?

.ES: DI

.ES: BP

.DS:BP

.DS:SI (Page 91)

Question No: 90 ( Marks: 1 ) – Please choose one

which bit sets the character “blinking” on the screen?

.5

.6

.7 (Page 7)

.8

Question No: 91 ( Marks: 1 ) – Please choose one

If we want to divide a signed number by 2, this operation can better be accomplished by

.SHR

.SAR (Page 52)

.SHL

.SAL

Question No: 92 ( Marks: 1 ) – Please choose one

After the execution of STOSB,the CX wil be……..

.Incremented by 1

.Incremented by 2

.Decremented by 1

.Decremented by 2

 

Question No: 94 ( Marks: 1 ) – Please choose one

In a video memory, each screen location corresponds to

.One byte

.Two bytes (Page 86)

.Four bytes

.Eight bytes cs401 paper 02 dec,2010

Question No: 95 ( Marks: 1 ) – Please choose one

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

. “A” appear on the top left of screen (Page 81) rep

. “A” appear on the top right of screen

. “A” appear on the center of screen

. “A” appear on the bottom left of screen

Question No: 96 ( Marks: 1 ) – Please choose one

After the execution of “PUSH AX” statement

.AX register will reside on the stack (Page 69) rep .

A copy of AX will go on the stack

.The value of AX disappear after moving on stack

.Stack will send an acceptance message

 

Question No: 99 ( Marks: 1 ) – Please choose one

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

.CF

.OF

.DF

.No flags will be affected (Page 93) rep

Question No: 101 ( Marks: 1 ) – Please choose one In a video memory, each screen location corresponds to

.One byte

.Two bytes (Page 66) .

Four bytes

.Eight bytes

Question No: 102 ( Marks: 1 ) – Please choose one

shifting the -15 two bit sAR

.-7

.-8

.7

.8

Question No: 103 ( Marks: 1 ) – Please choose one mov ax,5 has

.1 operand

.2 opeand (Page 25) .

3 operand

.4 opeand

Question No:  104 ( Marks: 1 ) – Please choose one

The physical address of the stack is obtained by

. SS:SP combination

. SS:SI combination

. SS:SP combination (Page 68) rep

.ES:BP combination

. ES:SP combination

Question No:  105 ( Marks: 1 ) – Please choose one

After the execution of instruction “RET ” . SP is incremented by 2

. SP is incremented by 2 (Page 66) rep .

SP is decremented by 2

. SP is incremented by 1

. SP is decremented by 1

Question No: 106 ( Marks: 1 ) – Please choose one T

he second byte in the word designated for one screen location holds . Character color on the screen

. The dimensions of the screen

. Character position on the screen

. Character color on the screen (Page 81) rep .

ASCII code of the character

 

Question No: 108 ( Marks: 1 ) – Please choose one

The basic function of SCAS instruction is to

. Compare (Page 92) rep

. Scan

. Sort

. Move data

Question No:  109 ( Marks: 1 ) – Please choose one Index registers are used to store __________

..Data

…Intermediate result

…Address (Page 16)

…Both data and addresses

Question No:  110 ( Marks: 1 ) – Please choose one

The bits of the _____________ work independently and individually

..index register

…base register

…flags register (Page 12)

…accumulator

Question No:  111 ( Marks: 1 ) – Please choose one

To convert any digit to its ASCII representation

. Add 0x30 in the digit (Page 80) rep

. Subtract 0x30 from the digit

. Add 0x61 in the digit

. Subtract 0x61 from the digit

Question No:  112 ( Marks: 1 ) – Please choose one

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

. 32 bits

. 16 bits (Page 85)

. 8 bits

. 4 bits

 

Question No:  114 ( Marks: 1 ) – Please choose one

Which mathematical operation is dominant during the execution of SCAS instruction

. Division

. Multiplication

. Addition

. Subtraction (Page 92)

Question No:  115 ( Marks: 1 ) – Please choose one

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

. Jump will be taken

. Zero flag will set

. ZF will contain value -4

. Jump will not be taken

Question No:  116 ( Marks: 1 ) – Please choose one

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

. Second column of first row

. First column of second row (Page 81) .

Second column of second row

. First column of third row

Question No:  117 ( Marks: 1 ) – Please choose one

If the direction of the processing of a string is from higher addresses towards lower addresses then

. ZF is cleared

. DF is cleared (Page 91)

.ZF is set

. DF is set

Question No:  118 ( Marks: 1 ) – Please choose one

The instruction ADC has________ Operand(s) . 0 . 1 . 2 (Page 56) . 3

Question No: 120 ( Marks: 1 ) – Please choose one Suppose AL contains 5 decimal then after two left shifts produces the value as

. 5

. 10

. 15

. 20

Question No:  121 ( Marks: 1 ) – Please choose one

In STOS instruction, the implied source will always be in

. AL or AX registers (Page 92) rep

.DL or DX registers

. BL or BX registers

. CL or CX registers

Question No:  122 ( Marks: 1 ) – Please choose one

After the execution of STOSW the CX will be

. Decremented by 1

. Decremented by 2 (Page 92) rep

.Incremented by 1

. Incremented by 2

Question No:  123 ( Marks: 1 ) – Please choose one

The basic function of SCAS instruction is to

. Compare (Page 92) rep

.Scan

. Sort

. Move data

Question No:  124 ( Marks: 1 ) – Please choose one

Which is the unidirectional bus ? (I) Control Bus (II) Data Bus (III) Address Bus

…I only

…II only

…III only (Page 9) rep

…I and II only

Question No: 125 ( Marks: 1 ) – Please choose one

The operation of CMP is to

…Subtract Source from Destination (Page 39)

…Subtract Destination to from Source

…Add 1 to the Destination

…Add Source and Destination

Question No:  126 ( Marks: 1 ) – Please choose one

The registers IP, SP, BP, SI, DI, and BX all can contain a ________offset.

…8-bit

…16-bit (Page 21)

…32-bit

…64-bit

Question No: 127 ( Marks: 1 ) – Please choose one

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

. source

. counter (Page 92)

.index

. pointer

Question No:  128 ( Marks: 1 ) – Please choose one

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

. effective (Page 33)

.faulty

. indirect

. direct

Question No: 129 ( Marks: 1 ) – Please choose one

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

. 3

. 2

. 1

. 0 (Page 81)

Question No: 130 ( Marks: 1 ) – Please choose one

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

. AX (Page 85)

. BX

. CX

. DX

Question No:  131 ( Marks: 1 ) – Please choose one

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

. legal (Page 30) rep

. illegal

. stack based

. memory indirect

 

Question No: 133 ( Marks: 1 ) – Please choose one

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

Black .

White (Page 81) rep

Red .

Blue

Question No: 134 ( Marks: 1 ) – Please choose one

Which of the following flags will be affected by MOVSW?

. DF

. PF

. ZF

. No effect on flags

Question No: 135 ( Marks: 1 ) – Please choose one

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

. 3

. 4 (Page 81)

. 5

. 6

Question No: 136 ( Marks: 1 ) – Please choose one

To transfer control back the RET instruction take

.1 argument

.1 argument

.3 arguments (Page 72) rep .

No arguments

Question No: 137 ( Marks: 1 ) – Please choose one

In STOSB instruction SI is decremented or incremented by

.4

.1

.2

.3

Question No: 138 ( Marks: 1 ) – Please choose one

CMPS instruction subtracts the source location to the destination location. Destination location always lies in

.DS:SI (Page 93)

.DS:DI

.ES:SI

.ES:DI

Question No: 139 ( Marks: 1 ) – Please choose one

Regarding assembler, which statement is true: .

Assembler converts mnemonics to the corresponding OPCODE (Page 13) .

Assembler converts OPCODE to the corresponding mnemonics .

Assembler executes the assembly code all at once .

Assembler executes the assembly code step by step

Question No: 140 ( Marks: 1 ) – Please choose one

If “BB” is the OPCODE of the instruction which states to “move a constant value to AX register”, the hexadecimal representation (Using little Endian notation) of the instruction “Mov AX,336” (“150” in hexadecimal number system) will be:

.0xBB0150

.0x5001BB

.0x01BB50

.0xBB5001

Question No: 141 ( Marks: 1 ) – Please choose one

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

.1

.2 (Page 25) rep

.3

.4

Question No:  142 ( Marks: 1 ) – Please choose one

The maximum parameters a subroutine can receive (with the help of registers) are

.6

.7 (Page 72)

.8

.9

Question No: 143 ( Marks: 1 ) – Please choose one

In assembly the CX register is used normally as a ______________

register.

.source .

counter (Page 92) rep .

index .pointer

Question No: 144 ( Marks: 1 ) – Please choose one

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

effective (Page 33) rep .

faulty

.indirect

.direct

Question No:  145 ( Marks: 1 ) – Please choose one

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

.AX (Page 85)

.BX

.CX

.DX

Question No:  146 ( Marks: 1 ) – Please choose one

in Left-Shift-Operation the left most bit _______

.will drop

.will go into CF (Page 52) .

Will come to the right most

.will be always 1

Question No:  147 ( Marks: 1 ) – Please choose one

Suppose the decimal number “35” after shifting its binary two bits to left, the new value becomes _________

.35

.70

.140

.17

Question No: 148 ( Marks: 1 ) – Please choose one

When divide overflow occurs processor will be interrupted this type of interrupt is called

.Hardware interrupt

.Software interrupt

.Processor exception

.Logical interrupts

Question No:  149 ( Marks: 1 ) – Please choose one

Which mathematical operation is dominant during the execution of SCAS instruction

.Division

.Multiplication

.Addition

.Subtraction (Page 92) rep

Question No: 150 ( Marks: 1 ) – Please choose one

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

.CF

.OF

.DF

.No flags will be affected (Page 93) rep

Question No: 151 ( Marks: 1 ) – Please choose one

_________ is one of the reasons due to which string instructions are used in 8088

.Efficiency and accuracy

.Reduction in code size and accuracy

.Reduction in code size and speed (Page 91) .

Reduction in code size and efficiency.

 

MIDTERM FALL 2011

CS401 Assembly Language

01 Dec 2011 Session 2

 

Question No: ( Marks: 1 ) – Please choose one
The execution of the instruction “mov word [ES : 0], 0x0741” will print character “A” on screen , background color of the screen will be
► Black
 White
 Red
 Blue

 

Question No: ( M a r k s: 1 )

The iAPX888 architecture consists of _______ register.

o   12

o   14

o   16

o   18

 

 Question No:

if contains decimal -2 and BX contains decimal 2 then after the execution of

instructions:  CMP  AX, BX ,JA label

 

Jump will be taken

Zero flag will set

ZF will contain value -4

Jump will not be taken

 

Question # 38

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

1) :

carry flag                   ans

2) :

Parity Flag

3) :

Auxiliary Carry

4) :

Zero Flag

 

Question # 11

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

1) :

Shl

2) :

sar

3) :

Shr  Ans

4) :

Sal

 

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

1) :

PUSH   Ans

2) :

POP

3) :

CALL

4) :

RET

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

the interrupt
service routine (ISR) or the interrupt handler.

Question No: 6 ( Marks: 1 ) – Please choose one
Only _ instructions allow moving data from memory to memory.
 string ref page no: 29
 word
 indirect
 stack
Reference:-
Only string instructions allow moving data from
memory to memory
Question No: 9 ( Marks: 1 ) – Please choose one
When the operand of DIV instruction is of 16 bits then implied dividend will be of
 8 bits
 16 bits
 32 bits page no:85
 64 bits
For example “DIV BL”
has an 8bit operand, so the implied dividend is 16bit and is stored in the AX
register and “DIV BX” has a 16bit operand, so the implied dividend is 32bit
Question No: 12 ( Marks: 1 ) – Please choose one
When a very large number is divided by very small number so that the quotient is larger
than the space provided, this is called
 Divide logical error
 Divide overflow error Page no:85
 Divide syntax error
 An illegal instruction
Reference:
If a large number is divided by a very small number it is possible that the
quotient is larger than the space provided for it in the implied destination. In
this case an interrupt is automatically generated and the program is usually
terminated as a result. This is called a divide overflow error.

Question No: 14 ( Marks: 1 ) – Please choose one
Which of the following options contain the set of instructions to open a window to the
video memory?
 mov AX, 0xb008
mov ES, AX
 mov AX, 0xb800
mov ES, AX page no : 85 and 86
 mov AX, 0x8b00
mov ES, AX
 mov AX, 0x800b
mov ES, AX
Reference:-
ES is initialized to video memory. AX holds the number to be
printed. BX is the desired base, and can be loaded from a parameter.
CX holds the number of digits pushed on the stack. This count is
Initialized to zero, incremented with every digit pushed and is used
when the digits are popped one by one

Question No: 15 ( Marks: 1 ) – Please choose one
In a video memory, each screen location corresponds to
 One byte
 Two bytes page no: 86
 Four bytes
 Eight bytes
Refernce:-
The next screen location is two bytes ahead so DI is incremented by
two. The process is repeated CX times which holds the number of
digits pushed on the stack.
Question No: 16 (Marks: 1) – Please choose one
The execution of the instruction “mov word [ES: 0], 0x0741” will print character “A” on
screen , background color of the screen will be
 Black page no:81
 White
 Red
 Blue
Refernce:-
Now the
following instruction will print an ‘A’ on the top left of the screen in white
color on black background.
mov word [es:0], 0x0741
Stack is a ______ that behaves in a first in last out manner.
· Program
· data structure page no 67
· Heap
· None of the Given
Reference:
Stack is a data structure that behaves in a first in last out manner.
The physical address of the stack is obtained by

· SS:SI combination
· SS:SP combination page no :68
· ES:BP combination
· ES:SP combination
Reference:
The physical address
of the stack is obtained by the SS:SP combination.
Foreground and background parameter will be
· 32bits
· 16bits
· 8bits
· 4bits
The clear screen operation initialize whole block of memory
· 0741 page no :91
· 0417
· 0714
· 0174
Reference:
The clear screen operation
initializes this whole block to 0741.
In STOSB instruction, when DF is Set, SI is
· Incremented by 1
· Incremented by 2
· Decremented by 1 page no :92
· Decremented by 2
Reference:
SI will be incremented by one or two depending of whether STOSB or STOSW is used.
If DF is set SI will be decremented by one or two depending of whether
STOSB or STOSW is used.
Assembly language is:
· Low-level programming language
· High-level programming language

· Also known as machine language
· Not considered closer to the computer
It is so easy J
A 32 Bit processor has accumulator of ———
· 8 bit
· 16 bit
· 32 bit page no :12
· 64 bit
Reference:
The word size of a processor is defined by the width of its
accumulator. A 32bit processor has an accumulator of 32 bits.
To transfer control back the RET instruction take
· 1 argument
· 1 argument
· 3 arguments
· No arguments page no:64
Refernce:
RET takes no arguments and transfers control back to the
instruction following the CALL that took us in this subroutine.
RET is executed, it recovers the values from
· Register
· Stack
· Data segment
· Code segment
To convert any digit to its ASCII representation
· Add 0x30 in the digit page no :80
· Subtract 0x30 from the digit
· Add 0x61 in the digit
· Subtract 0x61 from the digit
Reference:-
For example converting the case of characters by adding or subtracting
0x20 from it. It also helps in converting a digit into its ASCII representation
by adding 0x30 to it.

The prevalent convention in most high level languages is stack clearing by the
· Caller
· Callee page no : 74
· RET
· Stack
Refernce:- Therefore the prevalent convention in most high
level languages is stack clearing by the callee.
After execution of JCXZ instruction CX will changed with flag affect.
· CF
· OF
· DF
· None of Above page no :43
Reference:-
One jump is special that it is not dependant on any flag. It is JCXZ, jump
if the CS register is zero. This is because of the special treatment of the CX
register as a counter. This jump is regardless of the zero flag. There is no
counterpart or not form of this instruction.
Execution of the instruction “mov word [ES: 0], 0x0741” will print
· “A” appear on the top left of screen page no :81
· “A” appear on the top right of screen
· “A” appear on the center of screen
· “A” appear on the bottom left of screen
Reference:-
Since the first word is written to, the character will appear at the top left of
the screen.
If contains decimal -2 and BX contains decimal 2 then after the execution of instructions:
CMP AX, BX
JA label
· Jump will be taken

· Zero flag will set page no: 39
· ZF will contain value -4
· Jump will not be taken
Reference:-
For example a number 2 is represented in a word as 0002 while the
number -2 is represented as FFFE. In a byte they would be represented as 02
and FE. Now both have the same magnitude however the different sign has
caused very different representation in two’s complement form. Now if the
intent is to use FFFE or decimal 65534 then the same data would be placed
in the word as in case of -2. In fact if -2 and 65534 are compared the
processor will set the zero flag signaling that they are exactly equal.

Reference:
The shift logical left operation is the exact opposite of shift logical right. In
this operation the zero bit is inserted from the right and every bit moves one
position to its left with the most significant bit dropping into the carry flag.
Shift arithmetic left is just another name for shift logical left.
Execution of the instruction “mov word [ES: 160], 0x1230” will print the character color
will
· Green page no : 81
· White
· Red
· Black
Refernce:-
This is displayed 80 words after the start and there are 80 characters in
one screen row. Therefore this is displayed on the first column of the second
line. The ASCII code used is 30, which represents a ‘0’ while the attribute

byte is 12 meaning green color on black background.
Question No: 1 ( Marks: 1 ) – Please choose one
To transfer control back the RET instruction take
· 1 argument
· 1 argument
· 3 arguments
· No arguments
Question No: 2 ( Marks: 1 ) – Please choose one
In STOSB instruction SI is decremented or incremented by
4 1 2 3
Page: 92
Reference:-
SI will be
Incremented by one or two depending of whether STOSB or STOSW is used.
Question No: 3 ( Marks: 1 ) – Please choose one
CMPS instruction subtracts the source location to the
destination location. Destination location always lies in
DS:SI
DS:DI
ES:SI

ES:DI page no:93
Reference:-
CMPS subtracts the source location DS:SI from the destination location
ES:DI.
Question No: 4 ( Marks: 1 ) – Please choose one
Regarding assembler, which statement is true:
Assembler converts mnemonics to the corresponding OPCODE
Assembler converts OPCODE to the corresponding
mnemonics Assembler executes the assembly code all
at once
Assembler executes the assembly code step by step
Question No: 5 ( Marks: 1 ) – Please choose one
If “BB” is the OPCODE of the instruction which states to “move a
constant value to AX register”, the hexadecimal representation (Using
little Endian notation) of the instruction “Mov AX,336” (“150” in
hexadecimal number system) will be:
0xBB0150
0x5001BB
0x01BB50
0xBB5001
Question No: 6 ( Marks: 1 ) – Please choose one
In the instruction MOV AX, 5 the number of operands are
1
2

3
4
Question No: 7 ( Marks: 1 ) – Please choose one
The maximum parameters a subroutine can receive (with the help of registers) are
6
7 page no 72
8
9
Refernce:-
The maximum parameters a subroutine can receive
are seven when all the general registers are used.
Question No: 8 ( Marks: 1 ) – Please choose one
In assembly the CX register is used normally as a ______________register.
source
counter
index
pointer
Question No: 9 ( Marks: 1 ) – Please choose one
All the addressing mechanisms in iAPX 8 8 return a number called _ _ _ _ _ _ _ _ _ _ _ _ _ address .
effective page no 33
faulty

indirect
direct
Reference:-
All the addressing mechanisms in iAPX88 return a number called effective
address.
Question No: 10 ( Marks: 1 ) – Please choose one
When a 16 bit number is divided by an 8 bit number, the dividend will be in
AX page no 85
BX
CX
DX
Reference:-
The implied dividend is 16bit and is stored in the AX
register
Question No: 11 ( Marks: 1 ) – Please choose one
In Left-Shift-Operation the left most bit _______
will drop
will go into CF page no:52
Will come to the right most
will be always 1
References:-

The shift logical left operation is the exact opposite of shift logical right. In
this operation the zero bit is inserted from the right and every bit moves one
position to its left with the most significant bit dropping into the carry flag.
Question No: 12 ( Marks: 1 ) – Please choose one
Suppose the decimal number “35” after shifting its binary two bits
to left, the new value becomes _________
35
70
140 page no:52
17
Reference:-
The left shifting operation is basically multiplication by 2 while the right
shifting operation is division by two.
Question No: 14 ( Marks: 1 ) – Please choose one
Which mathematical operation is dominant during the execution of SCAS instruction
Division
Multiplication
Addition
Subtraction L not sure

Q=1:
Which bit of attributes byte represents the blue component of foreground color?
· 0
· 1
· 2
· 3
Page no 81
0 – Blue component of foreground color
Q=2:
The clear screen operation initializes the whole block of video memory to:
· 0417
· 0714
· 0741
· 017
Page no 91
For example the clear screen operation
initializes this whole block to 0741.
Q=3:
When the operand of DIV instruction is of 16 bit then implied dividend will be of
· 64-bit
· 32-bits
· 16-bits
· 8–bits
Q=4
Which of the following is the pair of register used to access memory in string
instruction?
· DI and BP
· SI and BP
· DI and SI
· DS and Si
Page no :91
DI and SI are used to access memory. SI and DI
are called source index and destination index because of string instructions.
Question No: 16 ( Marks: 1 ) – Please choose

one In STOSB instruction, when DF is clear, SI
is
1. Incremented by 1
2. Incremented by 2
3. Decremented by 1 page no:92
4. Decremented by 2
References:-
If DF is set SI will be decremented by one or two depending of whether
STOSB or STOSW is used.
NOTE:-
The lecture number given before every mcq below is according to lms lecture
schedule not the handouts.
Question # 1
There are three busses to communicate the processor and memory named as
_____________
1) : address bus.,data bus and data bus.
2) : addressing bus.,data bus and data bus.
3) : address bus.,datamove bus and data bus.
4) : address bus.,data bus and control bus..
Correct Option : 4 From : Lecture 1
Question # 2
The address bus is unidirectional and address always travels from processor to
memory.
1) : TRUE
2) : FALSE
3) :
4) :
Correct Option : 1 From : Lecture 1
Question # 3
Data bus is bidirectional because________
1) : To way
2) : Data moves from both, processor to memory and memory to processor,
3) : Data moves from both, processor to memory and memory to data Bus,
4) : None of the Given
Correct Option : 3 From : Lecture 1
Question # 4
Control bus________
1) : is Not Important.

2) : is Important .
3) : bidirectional.
4) : unidirectional .
Correct Option : 3 From : Lecture 1
Question # 5
A memory cell is an n-bit location to store data, normally ________also called a
byte
1) : 4-bit
2) : 8-bit
3) : 6-bit
4) : 80-bit
Correct Option : 2 From : Lecture 1
Question # 6
The number of bits in a cell is called the cell width.______________ define the
memory completely.
1) : Cell width and number of cells,
2) : cell number and width of the cells,
3) : width
4) : Height
Correct Option : 1 From : Lecture 1
Question # 7
for memory we define two dimensions. The first dimension defines how many
__________bits are there in a single memory cell.
1) : parallel
2) : Vertical
3) : long
4) : short
Correct Option : 1 From : Lecture 1
Question # 8
__________ operation requires the same size of data bus and memory cell
width.
1) : Normal
2) : Best and simplest
3) : first
4) : None of the Given
Correct Option : 2 From : Lecture 1

Question # 9
Control bus is only the mechanism. The responsibility of sending the appropriate
signals on the control bus to the memory is of the_________________.
1) : Data Bus
2) : processor
3) : Address Bus
4) : None of the Given
Correct Option : 2 From : Lecture 1
Question # 10
In “total: dw 0 ” Opcode total is a ___________
1) : Literal
2) : Variable
3) : Label
4) : Starting point
Correct Option : 3 From : Lecture 10
Question # 14
The basic purpose of a computer is to perform operations, and operations need
____________.
1) : order
2) : nothing
3) : operands
4) : bit
Correct Option : 3 From : Lecture 2
Question # 15
Registers are like a scratch pad ram inside the processor and their operation is
very much like normal______________.
1) : Number
2) : opreations
3) : memory cells
4) : None of the Given
Correct Option : 3 From : Lecture 2
Question # 16
There is a central register in every processor called the _______ and The word
size of a processor is defined by the width of its__________.
1) : accumulator,accumulator
2) : data bus,accumulator

3) : accumulator, Address Bus
4) : accumulator,memory
Correct Option : 1 From : Lecture 2
Question # 17
___________does not hold data but holds the address of data
1) : Pointer, Segment, or Base Register
2) : Pointer, Index, or Base Register
3) : General Registers
4) : Instruction Pointer
Correct Option : 2 From : Lecture 2
Question # 18
“The program counter holds the address of the next instruction to be
_____________”
1) : executed.
2) : called
3) : deleted
4) : copy
Correct Option : 1 From : Lecture 2
Question # 19
There are _____ types of “instruction groups”
1) : 4
2) : 5
3) : 3
4) : 2
Correct Option : 1 From : Lecture 2
Question # 20
These instructions are used to move data from one place to another.
1) : TRUE
2) : FALSE
3) :
4) :
Correct Option : 1 From : Lecture 2
Question # 21
“mov” instruction is related to the _______ *****.
1) : Arithmetic and Logic Instructions
2) : Data Movement Instructions

3) : Program Control Instructions
4) : Special Instructions
Correct Option : 2 From : Lecture 2
Question # 22
______________allow changing specific processor behaviors and are used to
play with it.
1) : Special Instructions
2) : Data Movement Instructions
3) : Program Control Instructions
4) : Arithmetic and Logic Instructions
Correct Option : 1 From : Lecture 2

Question # 24
The __________ of a processor means the organization and functionalities of the
registers it contains and the instructions that are valid on the processor.
1) : Manufactures
2) : architecture
3) : Deal
4) : None of the Given
Correct Option : 2 From : Lecture 2

Question # 25
Intel IAPX88 Architecture is ___________
1) : More then 25 old
2) : New
3) : Not Good
4) : None of the Given
Correct Option : 1 From : Lecture 2

Question # 26
The iAPX88 architecture consists of______registers.
1) : 13

2) : 12
3) : 9
4) : 14
Correct Option : 4 From : Lecture 3
Question # 27
General Registers are ______________
1) : AX, BX, CX, and DX
2) : XA, BX, CX, and DX
3) : SS,SI and DI
4) : 3
Correct Option : 1 From : Lecture 3
Question # 28
AX means we are referring to the extended 16bit “A” register. Its upper and lower
byte are separately accessible as ________________.
1) : AH and AL
2) : A Lower and A Upper
3) : AL, AU
4) : AX
Correct Option : 1 From : Lecture 3
Question # 29
AX is General purpose Register where A stands for__________.
1) : Acadmic
2) : Ado
3) : Architecture
4) : Accumulator
Correct Option : 4 From : Lecture 3
Question # 30
The B of BX stands for _________because of its role in memory addressing.
1) : Busy
2) : Base
3) : Better
4) : None of the Given
Correct Option : 2 From : Lecture 3

Question # 31
The D of DX stands for Destination as it acts as the destination in
_____________________.
1) : I/O operations
2) : operations
3) : memory cells
4) : Memory I/O operations
Correct Option : 1 From : Lecture 3

Question # 32
The C of CX stands for Counter as there are certain instructions that work with
an automatic count in the ___________.
1) : DI register
2) : BX register
3) : CX register
4) : DX register
Correct Option : 3 From : Lecture 3

Question # 33
_________are the index registers of the Intel architecture which hold address of
data and used in memory access.
1) : SI and SS
2) : PI and DI
3) : SI and IP
4) : SI and DI
Correct Option : 4 From : Lecture 3

Question # 34
In Intel IAPX88 architecture ___________ is the special register containing the
address of the next instruction to be executed.
1) : AX
2) : PI
3) : IP
4) : SI
Correct Option : 3 From : Lecture 3

Question # 35
SP is a memory pointer and is used indirectly by a set of ____________.
1) : instructions
2) : Pointers
3) : Indexes
4) : Variables
Correct Option : 1 From : Lecture 3

Question # 36
___________is also a memory pointer containing the address in a special area
of memory called the stack.
1) : SP
2) : BP
3) : PB
4) : AC
Correct Option : 2 From : Lecture 3
Question # 37
____________is bit wise significant and accordingly each bit is named
separately.
1) : AX
2) : FS
3) : IP
4) : Flags Register
Correct Option : 4 From : Lecture 3

Question # 38
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
1) : carry flag
2) : Parity Flag
3) : Auxiliary Carry
4) : Zero Flag
Correct Option : 1 From : Lecture 3

Question # 39
Program is an ordered set of instructions for the processor.
1) : TRUE
2) : FALSE
3) :
4) :
Correct Option : 1 From : Lecture 3
Question # 40
For Intel Architecture “operation destination, source” is way of writing things.
1) : TRUE
2) : FALSE
3) :

4) :
Correct Option : 1 From : Lecture 3

Question # 42
The maximum memory iAPX88 can access is________________.
1) : 1MB
2) : 2MB
3) : 3MB
4) : 128MB
Correct Option : 1 From : Lecture 4

Question # 43
The maximum memory iAPX88 can access is 1MB which can be accessed with
_______________.
1) : 18 bits
2) : 20 bits
3) : 16 bits
4) : 2 bits
Correct Option : 2 From : Lecture 4

Question # 44
_____________address of 1DED0 where the opcode B80500 is placed.
1) : physical memory
2) : memory
3) : efective
4) : None of the Given
Correct Option : 1 From : Lecture 4

Question # 45
16 bit of Segment and Offset Addresses can be converted to 20bit Address i.e
Segment Address with lower four bits zero + Offset Address with ______ four bits
zero = 20bit Physical Address
1) : Middle
2) : lower
3) : Top
4) : upper
Correct Option : 4 From : Lecture 4

Question # 46
When adding two 20bit Addresses a carry if generated is dropped without being
stored anywhere and the phenomenon is called address______.
1) : wraparound
2) : mode
3) : ping
4) : error
Correct Option : 1 From : Lecture 4

Question # 47
segments can only be defined a 16byte boundaries called _____________
boundaries.
1) : segment
2) : paragraph
3) : Cell
4) : RAM
Correct Option : 1 From : Lecture 4

Question # 48
in a Program CS, DS, SS, and ES all had the same value in them. This is called
_____________________.
1) : equel memory
2) : overlapping segments
3) : segments hidding
4) : overlapping SI
Correct Option : 2 From : Lecture 4

Question # 49
“db num1” size of the memory is _____________
1) : 1byte
2) : 4bit
3) : 16bit
4) : 2byte
Correct Option : 1 From : Lecture 5

Comments for the 4 are :
1) : No comments Will be
2) : ; accumulate sum in add
3) : ; accumulate sum in ax
4) : ; accumulate sum in Bx
Correct Option : 3 From : Lecture 5
Question # 51
In “ mov ax, bx ” is _____________ Addressing Modes.
1) : Immediate
2) : Indirect
3) : Direct
4) : Register
Correct Option : 4 From : Lecture 5
Question # 52
In “mov ax, [bx] ” is _____________ Addressing Modes
1) : Based Register Indirect
2) : Indirect
3) : Base Indirect
4) : Immediate
Correct Option : 1 From : Lecture 5
Question # 53
In “mov ax, 5 ” is _____________ Addressing Modes
1) : Immediate
2) : Indirect
3) : Indirect
4) : Register
Correct Option : 1 From : Lecture 6
Question # 54
In “ mov ax, [num1+bx] ” is ___________ ADDRESSING
1) : OFFSET+ Indirect
2) : Register + Direct
3) : Indirect + Reference
4) : BASEd REGISTER + OFFSET
Correct Option : 4 From : Lecture 7
Question # 55
“base + offset addressing ” gives This number which came as the result of

addition is called the _______.
1) : Address
2) : mode
3) : effective address
4) : Physical Address
Correct Option :
Question # 56
“mov ax, [cs:bx]” associates _________ for this one instruction
1) : CS with BX
2) : BX with CS
3) : BX with AX
4) : None of the Given
Correct Option : 2 From : Lecture 7
Question # 57
For example
BX=0100
DS=FFF0
And Opcode are;
move [bx+0x0100], Ax
now what is the effective memory address;
1) : 0020
2) : 0200
3) : 0300
4) : 0x02
Correct Option : 2 From : Lecture 7
Question # 58
For example
BX=0100
DS=FFF0
And Opcode are;
move [bx+0x0100], Ax
now what is the physical memory address;
1) : 0020
2) : 0x0100
3) : 0x10100
4) : 0x100100
Correct Option : 2 From : Lecture 7

Question # 59
In “ mov [1234], al ” is _____________ Addressing Modes.
1) : Immediate
2) : Indirect
3) : Direct
4) : Register
Correct Option : 3 From : Lecture 8
Question # 60
In “ mov [SI], AX ” is _____________ Addressing Modes.
1) : Basef Register Indirect
2) : Indirect
3) : Indexed Register Indirect
4) : Immediate
Correct Option : 3 From : Lecture 8
Question # 61
In “ mov ax, [bx – Si] ” is ___________ ADDRESSING
1) : Basef Register Indirect
2) : Indirect
3) : Direct
4) : illegal
Correct Option : 4 From : Lecture 8
Question # 62
In “ mov ax, [BL] ” there is error i.e. __________
1) : Address must be 16bit
2) : Address must be 8bit
3) : Address must be 4bit
4) : 8 bit to 16 bit move illegal
Correct Option : 4 From : Lecture 8
Question # 63
In “ mov ax, [SI+DI] ” there is error i.e. __________
1) : Two indexes can’t use as Memory Address
2) : index can’t use as Memory Address
3) : I don’t Know
4) : None of the Given
Correct Option : 1 From : Lecture 8

Question # 24
The __________ of a processor means the organization and
functionalities of the registers it contains and the instructions that
are valid on the processor.
1) : Manufactures
2) : architecture
3) : Deal
4) : None of the Given
Correct Option : 2 From : Lecture 2
Question # 25
Intel IAPX88 Architecture is ___________
1) : More then 25 old
2) : New
3) : Not Good
4) : None of the Given
Correct Option : 1 From : Lecture 2
Question # 26
The iAPX88 architecture consists of______registers.
1) : 13
2) : 12
3) : 9
4) : 14
Correct Option : 4 From : Lectur
Question # 27
General Registers are ______________
1) : AX, BX, CX, and DX
2) : XA, BX, CX, and DX
3) : SS,SI and DI
4) : 3
Correct Option : 1 From : Lecture 3
Question # 28
AX means we are referring to the extended 16bit “A” register. Its
upper and lower byte are separately accessible as ________________.
1) : AH and AL
2) : A Lower and A Upper
3) : AL, AU
4) : AX
Correct Option : 1 From : Lecture 3

Question # 29
AX is General purpose Register where A stands for__________.
1) : Acadmic
2) : Ado
3) : Architecture
4) : Accumulator
Correct Option : 4 From : Lecture 3
Question # 30
The B of BX stands for _________because of its role in memory addressing.
1) : Busy
2) : Base
3) : Better
4) : None of the Given
Correct Option : 2 From : Lecture 3

Question # 32
The C of CX stands for Counter as there are certain instructions that
work with an automatic count in the ___________.
1) : DI register
2) : BX register
3) : CX register
4) : DX register
Correct Option : 3 From : Lecture 3
Question # 33
_________are the index registers of the Intel architecture which hold
address of data and used in memory access.
1) : SI and SS
2) : PI and DI
3) : SI and IP
4) : SI and DI

Correct Option : 4 From : Lecture 3
Question # 34
In Intel IAPX88 architecture ___________ is the special register
containing the address of the next instruction to be executed.
1) : AX
2) : PI
3) : IP
4) : SI
Correct Option : 3 From : Lecture 3

Question # 36
___________is also a memory pointer containing the address in a
special area of memory called the stack.
1) : SP
2) : BP
3) : PB
4) : AC
Correct Option : 2 From : Lecture 3
Question # 41
Operation code “ add ax, bx ” ____________.
1) : Add the bx to ax and change the bx
2) : Add the ax to bx and change the ax
3) : Add the bx to ax and change the ax
4) : Add the bx to ax and change nothing
Correct Option : 3 From : Lecture 3
Question # 46
When adding two 20bit Addresses a carry if generated is dropped
without being stored anywhere and the phenomenon is called
address______.
1) : wraparound
2) : mode
3) : ping
4) : error
Correct Option : 1 From : Lecture 4

One screen location corresponds to a

word in the video memory
After the execution of “PUSH AX” statement
AX register will reside on the stack
A copy of AX will go on the stack

The value of AX disappear after moving on stack
Stack will send an acceptance message
physical address of the stack is obtained by
SS:SI combination
SS:SP combination
ES:BP combination
ES:SP combination

If the address of memory location Num1 is 0117 and its content is 0005 then after

execution of the instruction “ mov bx, Num1” bx will contain
0005
0117
Num1
1701
In STOS instruction, the implied source will always be in
AL or AX registers page no :92
DL or DX registers
BL or BX registers
CL or CX registers
Reference:
The implied source will always be in AL or AX.
The shift logical right operation inserts
A zero at right
A zero at left page no:52
A one at right
A one at right
Reference:-
The shift logical right operation inserts a zero from the left

instruction and this cannot be changed with the direction flag.

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

First decremented and then element copied on to the stack
First incremented and then element copied on to the stack
Decremented after the element copied on to the stack page                        no :68
Incremented after the element copied on to the stack
Reference:-
When an item is pushed on a decrementing stack, the top of the
stack is first decremented and the element is then copied into this space.

Assembly the CX register is used normally as a ______________register.
source
counter
index
pointer

Which is the unidirectional bus ?
(I) Control Bus
(II) Data Bus
(III) Address Bus
I only
II only
III only
I and II only

The basic function of SCAS instruction is to
Compare page no:92
Scan
Sort
Move data
Reference:-
SCAS compares a source byte or word in register AL or AX with the
destination string element addressed by ES:DI and updates the flags.

_______ register holds the address of next instruction is to be executed
Base pointer
Code segment
Source index
Program counter

JC and JNC test the ____________ flag.
carry
parity
zero
sign
Page no 41
This jump is taken if
the last arithmetic
operation generated a
carry or required a
borrow. After a CMP it
is taken if the
unsigned source is
smaller than the
unsigned destination.
After the execution of REP instruction CX will be decremented then which of the
following flags will be affected?
CF
OF
DF
No flags will be affected page no:92
Reference:-

REP will always decrement CX like the LOOP
instruction and this cannot be changed with the direction flag.
In string manipulation whenever an instruction needs a memory source, which of the
following will hold the pointer to it?
ES: DI
ES: BP
DS:BP
DS:SI page no 91
Refernce:-

SI and DI
are called source index and destination index because of string instructions.
Whenever an instruction needs a memory source, DS:SI holds the pointer to
it. An override is possible that can change the association from DS but the
default is DS. Whenever a string instruction needs a memory destination,
ES:DI holds the pointer to it.
Which bit sets the character “blinking” on the screen?
5
6
7 page no 81
8
Reference:-
When bit 7 is set the character keeps on blinking
on the screen.
If we want to divide a signed number by 2, this operation can better be accomplished by
SHR
SAR
SHL
SAL
Refernce:- However for signed numbers division by
two can be accomplished by using shift arithmetic right and not shift logical
right.
After the execution of STOSWB,the CX wil be……..
Incremented by 1
Incremented by 2
Decremented by 1 page no :92
Decremented by 2
Refernce:-
It always
decrements by one

Each screen location corresponds to a word; the lower byte of this word contains ____
The character code not sure
The attribute byte
The parameters
The dimensions
In a video memory, each screen location corresponds to
One byte
Two bytes
Four bytes
Eight bytes
Reference:-
DI is incremented twice since each screen location corresponds to
two byte in video memory.
:-SUBJECTIVE-:
IF DF=0 what its represent and IF DF=1 what its represent ?
Page no:17
Specifically related to string instructions, this flag tells
whether the current operation has to be done from
bottom to top of the block (D=0) or from top to bottom
of the block (D=1).
IF=It tells whether the processor can be interrupted from
outside or not.
Q.
Relation between RET and CALL is dependent or independent.
Page no :64
The RET
works regardless of the CALL and the CALL works regardless of the RET. If
you CALL a subroutine it will not complain if there is no RET present and
similarly if you RET without being called it won’t complain.
Q.
Write all steps of algorithm for printing number 352.
Page no 84

For example 253 will be printed as 352. The remainder after
first division was 3, after second division was 5 and after the third division
was 2. We have to somehow correct the order so that the actual number 253
is displayed, and the trick is to use the stack since the stack is a Last In
First Out structure so if 3, 5, and 2 are pushed on it, 2, 5, and 3 will come
out in this order. The steps of our algorithm are outlined below.
• Divide the number by base (10 in case of decimal)
• The remainder is its right most digit
• Convert the digit to its ASCII representation (Add 0x30 to the
remainder in case of decimal)
• Save this digit on stack
• If the quotient is non-zero repeat the whole process to get the next
digit, otherwise stop
• Pop digits one by one and print on screen left to right
Q.
When the instruction “push ax” is executed in decrementing stack how the value of SP
will change
Page no 69
Push ax” will push
the current value of the AX register on the stack. The operation of PUSH is
shown below.
SP SP – 2
[SP] AX
Q.
Explain MUL instruction in both cases (i) if the source operand is byte (ii) if the source
operand is a word?
Page no 87
MUL (multiply) performs an unsigned multiplication of the source operand
and the accumulator. If the source operand is a byte, then it is multiplied by

register AL and the double-length result is returned in AH and AL. If the
source operand is a word, then it is multiplied by register AX, and the
double-length result is returned in registers DX and AX.
Q#21 Mark 2
What are the instructions used by assembly language for permanent and temporary
diversions.
The instructions for permanent diversion in 8088 are the
jump instructions, while the instruction for temporary diversion is the CALL
instruction.
Q#22 Mark 2
Which instruction is used to determine zero bit in string.

Q#23 Mark 3
Explain the use of TEST instruction.
Page no: 60
The test instruction is used for bit testing. BX holds the mask and in every next iteration
it is shifting left, as our concerned bit is now the next bit.
Q#24 Mark 3
Explain LES and LDS
Page no: 97
The string instructions need source and destination in the form of a segment offset pair.
LES and LDS load a segment register and a general purpose register from two
consecutive memory locations. LES loads ES while LDS loads DS. Both instructions has
two parameters, one is the general purpose register to be loaded and the other is the
memory location from which to load these registers. The major application of these
instructions is when a subroutine receives a segment offset pair as an argument and the
pair is to be loaded in a segment and an offset register.
Q#25 Mark 5
Describe local variables.
Page no: 75
Another important role of the stack is in the creation of local variables that are only
needed while the subroutine is in execution and not afterwards. They should not take
permanent space like global variables. Local variables should be created when the
subroutine is called and discarded afterwards. So that the spaced used by them can be
reused for the local variables of another subroutine. They only have meaning inside the
subroutine and no meaning outside it.
The most convenient place to store these variables is the stack. We need some special
manipulation of the stack for this task. We need to produce a gap in the stack for our
variables. This is explained with the help of the swap flag in the bubble sort example.
The swap flag we have declared as a word occupying space permanently is only needed
by the bubble sort subroutine and should be a local variable. Actually the variable was
introduced with the intent of making it a local variable at this time. The stack pointer
will be decremented by an extra two bytes thereby producing a gap in which a word can
reside. This gap will be used for our temporary, local, or automatic variable; however we
name it. We can decrement it as much as we want producing the desired space,

however
the decrement must be by an even number, as the unit of stack operation is a word. In
our case we needed just one word. Also the most convenient position for this gap is
immediately after saving the value of SP in BP. So that the same base pointer can be
used to access the local variables as well; this time using negative offsets. The standard
way to start a subroutine which needs to access parameters and has local variables is as
under.
push bp
mov bp, sp
sub sp, 2
The gap could have been created with a dummy push, but the subtraction makes it
clear that the value pushed is not important and the gap will be used for our local
variable. Also gap of any size can be created in a single instruction with subtraction. The
parameters can still be accessed at bp+4 and bp+6 and the swapflag can be accessed at
bp-2. The subtraction in SP was after taking the snapshot; therefore BP is above the
parameters but below the local variables. The parameters are therefore accessed using
positive offsets from BP and the local variables are accessed using negative offsets.
Q#26 Mark 5
Describe MOVS and CMPS instructions
Question No: 17 ( Marks: 2 )
Why is it necessary to provide the segment and offset address in case of FAR jump ?
Page no 46:
Segment and offset must be given to a far jump. Because, sometimes we may need to
go from one code segment to another, and near and short jumps cannot take us
there. Far jump must be used and a two byte segment and a two byte offset are
given to it. It loads CS with the segment part and IP with the offset part.
Question No: 18 ( Marks: 2 )
What’s your understanding about Incrementing and Decrementing Stack?

Page no 68:
Whenever an element is pushed on the stack SP is decremented by two and
whenever an element is popped on the stack SP is incremented by two.
A decrementing stack moves from higher addresses to lower addresses as elements
are added in it while an incrementing stack moves from lower addresses to higher
addresses as elements are added.
As the 8088 stack works on word sized elements. Single bytes cannot be pushed or
popped from the stack.
Question No: 19 ( Marks: 2 )
Number2:
IF DF=0 what its represent and IF DF=1 what its represent ?
Page no: 17 and Page no: 91
The direction of movement is controlled with the Direction Flag (DF) in the flags
register. If this flag is cleared DF=0, the direction is from lower addresses towards
higher addresses and if this flag is set DF=1, the direction is from higher addresses
to lower addresses. If DF is cleared, DF = 0 this is called the auto increment mode of
string instruction, and if DF is set, DF=1, this is called the auto decrement mode.
There are two instructions to set and clear the direction flag.
Question No: 20 ( Marks: 3 )
What is the Difference between CALL and RET
Page no: 64
The CALL instruction allows temporary diversion and therefore reusability of
code.
The word return holds in its meaning that we are to return from where we came
and need no explicit destination.
Therefore RET takes no arguments and transfers control back to the instruction
following the CALL that took us in this subroutine.
Question No: 21 ( Marks: 3 )
Tell the Formula to scroll up the screen
Page no :99

rep movsw scroll up
scrollup: push bp
mov bp,sp
push ax
push cx
push si
push di
push es
push ds
mov ax, 80 ; load chars per row in ax
mul byte [bp+4] ; calculate source position
mov si, ax ; load source position in si
push si ; save position for later use
shl si, 1 ; convert to byte offset
mov cx, 2000 ; number of screen locations
sub cx, ax ; count of words to move
mov ax, 0xb800
mov es, ax ; point es to video base
mov ds, ax ; point ds to video base
xor di, di ; point di to top left column
cld ; set auto increment mode
rep movsw ; scroll up
mov ax, 0x0720 ; space in normal attribute
pop cx ; count of positions to clear
rep stosw ; clear the scrolled space
pop ds
pop es
pop di
pop si
pop cx
pop ax
pop bp
ret 2
Question No: 22 ( Marks: 5 )
Explain how extended shifting is performed
Page no :56
Using our basic shifting and rotation instructions we can effectively shift a 32bit
number in memory word by word. We cannot shift the whole number at once since

our architecture is limited to word operations. The algorithm we use consists of just
two instructions and we name it extended shifting.
num1: dd 40000
shl word [num1], 1
rcl word [num1+2], 1
The DD directive reserves a 32bit space in memory; however the value we placed
there will fit in 16bits. So we can safely shift the number left 16 times.
The least significant word is accessible at num1 and the most significant word is
accessible at num1+2.
The two instructions are carefully crafted such that the first one shifts the lower
word towards the left and the most significant bit of that word is dropped in carry.
With the next instruction we push that dropped bit into the least significant bit of
the next word effectively joining the two 16bit words.
The final carry after the second instruction will be the most significant bit of the
higher word, which for this number will always be zero.
Question No: 23 ( Marks: 5 )
Write a subroutine to calculate the string length.
Page :97
subroutine to calculate the length of a string
; takes the segment and offset of a string as parameters
strlen: push bp
mov bp,sp
push es
push cx
push di
les di, [bp+4] ; point es:di to string
mov cx, 0xffff ; load maximum number in cx
xor al, al ; load a zero in al
repne scasb ; find zero in the string
mov ax, 0xffff ; load maximum number in ax
sub ax, cx ; find change in cx
dec ax ; exclude null from length
pop di
pop cx
pop es
pop bp
ret 4

Question No: 17 ( Marks: 1 )
Write any two control instructions.
Page no :14
Examples are:
cmp ax, 0
jne 1234
We are changing the program flow to the instruction at 1234 address if the
condition that we checked becomes true
Question No: 18 ( Marks: 1 )
RET instruction take how many arguments
Page no 64
The RET
instruction is used for this purpose. The word return holds in its meaning
that we are to return from where we came and need no explicit destination.
Therefore RET takes no arguments and transfers control back to the
instruction following the CALL that took us in this subroutine
Question No: 19 ( Marks: 2 )
Explain the fuction of rotate right (ROR) instruction
Page no 53
Rotate Right (ROR)
In the rotate right operation every bit moves one position to the right and
the bit dropped from the right is inserted at the left. This bit is also copied
into the carry flag. The operation can be understood by imagining that the
pipe used for shifting has been molded such that both ends coincide. Now
when the first ball is forced to move forward, every ball moves one step
forward with the last ball entering the pipe from its other end occupying the
first ball’s old position. The carry basket takes a snapshot of this ball leaving
one end of the pipe and entering from the other.

Question No: 20 ( Marks: 2 )
Describe the PUSH function
Page no 71
PUSH
PUSH decrements SP (the stack pointer) by two and then transfers a word
from the source operand to the top of stack now pointed to by SP. PUSH
often is used to place parameters on the stack before calling a procedure;
more generally, it is the basic means of storing temporary data on the stack.
Question No: 21 ( Marks: 3 )
Write down the names of four segment registers?
Page no: 17
SS
ES
DS
CS
Question No: 22 ( Marks: 3 )
For what purpose “INT 4” is reserved?
Page no 106
INT 4, Arithmetic Overflow, change of sign bit
Question No: 23 ( Marks: 5 )
Calculate physical address.
CS=1E0F—segment
IP=0109——offset
By converting into 20 bits we have
1E0F0
00109
Physical address= 1E0F+00109
=123120+00109=123229=1E15D

Question No: 17 ( Marks: 2 )
What is difference between SHR and SAR instructions?
Page no 52
SHR
The SHR inserts a zero from the left and moves every bit one position to the right and
copy the rightmost bit in the carry flag.
SAR
The SAR shift every bit one place to the right with a copy of the most significant bit left
at the most significant place. The bit dropped from the right is caught in the carry
basket. The sign bit is retained in this operation.
Question No: 18 ( Marks: 2 )
For what purpose “INT 1” is reserved ?
Page no 103
INT 1, Trap, Single step Interrupt
This interrupt is used in debugging with the trap flag. If the trap flag is
set the Single Step Interrupt is generated after every instruction. By
hooking this interrupt a debugger can get control after every
instruction and display the registers etc. 8088 was the first processor
that has this ability to support debugging.
Question No: 19 ( Marks: 2 )
Define implied operand?
Page no 18
It is always in a particular register say the accumulator. It needs to not be mentioned in
the instruction.
1. Explain the fuction of rotate right (ROR) instruction
The rotate right (ROR) and rotate through carry right (RCR) instructions shift all the bits
toward less significant bit positions, except for the least-significant bit, which is rotated

to the most-significant bit location
2. Why REP prefix is generally not used with LODS instruction?
The lods instruction is unique among the string instructions. We will never use a repeat
prefix with this instruction. Because it copies the byte or word pointed at by ds:si into
the al, ax, or eax register, after which it increments or decrements the si register by one,
two, or four. Repeating this instruction via the repeat prefix would serve no purpose
whatsoever since the accumulator register will be overwritten each time the lods
instruction repeats. At the end of the repeat operation, the accumulator will contain the
last value read from memory.
3. Write all steps of algorithm for printing number 352.
In this technique the first digit printed is the right most one
Divide the number by base (10 in case of decimal)..The remainder after
first division was 3, after second division was 5 and after the third division
was 2.
• The remainder is its right most digit
• Convert the digit to its ASCII representation
• Save this digit on stack
• If the quotient is non-zero repeat the whole process to get the next
digit, otherwise stop.
• Pop digits one by one and print on screen left to right. Stack is a Last In First Out
structure so if 3, 5, and 2 are pushed on it, 2, 5, and 3 will come
out in this order.
24. What are the result after performing the instruction (each carry 1 marks )
1. and ax,bx
2. or ax,bx
3. xor ax,bx
Given that ax = 00110011 and bx = 00010001
25. Describe Local Variables?
A local variable is valid within the statement block in which it is defined and within any
nested statement blocks, unless you redefine the variable within the statement block.
Local variables should be created when the subroutine is called and discarded

afterwards. So that the spaced used by them can be reused for the local variables of
another subroutine. They only have meaning inside the subroutine and no meaning
outside it.
It is important role of the stack to create local variables that are only needed while the
subroutine is in execution and not afterwards. They should not take permanent space
like global variables.
The most convenient place to store these variables is the stack. We need some special
manipulation of the stack for this task. We need to produce a gap in the stack for our
variables.
Are valid only for the duration of the SPL routine
Are reset to their initial values or to a value the user passes to the routine, each time the
routine is executed
Cannot have default values
26. Explain the complete operation of Interrupt when it is generated.
Interrupt is the result of an INT instruction (software interrupt) or it is generated by an
external hardware which passes the interrupt number by a different mechanism. The
currently executing instruction is completed, the current value of FLAGS is pushed on
the stack, then the current code segment is pushed, then the offset of the next
instruction is pushed. After this it automatically clears the trap flag and the interrupt flag
to disallow further interrupts until the current routine finishes. After this it loads the
word at nx4 in IP and the word at nx4+2 in CS if interrupt n was generated. As soon as
these values are loaded in CS and IP execution goes to the start of the interrupt handler.
When the handler finishes its work it uses the IRET instruction to return to the caller.
IRET pops IP, then CS, and then FLAGS. The original value of IF and TF is restored which
re-enables further interrupts
LES and LDS Instructions
As Mention in the lecture that the string instructions need their source and destination in
the form of a segment offset pair, there are two special instructions that load a segment
register and a general purpose register from two consecutive memory locations. LES
loads ES while LDS loads DS. These instructions have two parameters, one is the general
purpose register to be loaded and the other is the memory location from which to load
these registers. According to Intel rules of significance the word at higher address is
loaded in the segment register while the word at lower address is loaded in the offset
register. As parameters segment should be pushed first so that it ends up at a higher
address and the offset should be pushed afterwards. When loading the lower address will
be given.
Big-endian and little-endian

are terms that describe the order in which a sequence of bytes are stored in
computer memory. Big-endian is an order in which the “big end” (most significant
value in the sequence) is stored first (at the lowest storage address). Littleendian
is an order in which the “little end” (least significant value in the
sequence) is stored first. For example, in a big-endian computer, the two bytes
required for the hexadecimal number 4F52 would be stored as 4F52 in storage (if
4F is stored at storage address 1000, for example, 52 will be at address 1001). In
a little-endian system, it would be stored as 524F (52 at address 1000, 4F at
1001).
IBM’s 370 computers, most RISC-based computers, and Motorola
microprocessors use the big-endian approach.On the other hand, Intel
processors (CPUs) and DEC Alphas and at least some programs that run on
them are little-endian.
Mnemonic
A word, abbreviation, or acronym that replaces something too complex to remember or
type easily. For example, ADC is the mnemonic for the 8086’s add-with-carry
instruction. The assembler converts it into machine (binary) code, so it is not necessary to
remember or calculate the binary form.
Op-Code:
An op-code (operation code) is the portion of a machine language instruction that
specifies the operation to be performed. For every specific operation like add subtract or
multiplication there is an op-code which processor understands. Like “add” we have 152
and subtract “153”.
Program Counter/ Instruction Pointer:
A Program is an ordered set of instructions. Instruction executes one after the other.
Program Counter / Instruction Pointer ensure that instructions are working in order also
Program counter/Instruction Pointer holds the address of the next instruction to be
executed.
Control Bus:
It’s the part of computer Bus. CPU communicates with other devices within the computer
through control bus. Through control bus CPU assign different jobs to other parts
(registers, memory, input output) to perform some functionality on data. For Example
Read data from memor Write data on memory Move data in register.
Control Lines:
As CPU have to perform more than one control operations so control bus consist of more
than one lines called control lines. The number and type of lines in a control bus varies
but there are basic lines common to all microprocessors, Read Write
Offset A distance from a given paragraph boundary in memory. The offset usually is given as a
number of bytes.
Segment Registers:
In certain processors memory is segmented (or divided).Its actually not physically
segmented rather logically to store code, data, stack etc in different portions of memory.

So there should be some way to specify the starting address of each such segment. That’s
way registers are used called segment registers.
There are four types of these registers CS: Code Segment DS: Data Segment SS: Stack
Segment
ES: Extra Segment CS contains the segment of the current instruction (IP is the offset).
DS is the segment used by default for most data operations or most memory references
come from data segment. SS contains the stack segment (SP is the offset). ES as name
shows extra segment register. String instructions(movs,stos) also use this register.
Logical Address and Physical Address:
The segment, offset pair is called a logical address, while the 20bit address is a physical
address which is the real thing. Logical addressing is a mechanism to access the physical
memory.
Offset:
A distance from a given paragraph boundary in memory. The offset usually is given as a
number of bytes
Word is unit of data, like (bit -1 , nibble -4 , byte-8, word-16, Dword-32, Qword-64) A
word is of 2 bytes = 16bits Dword = 4 bytes Qword= 8 bytes
Registers are like Scratch Pad Ram.What are the meaning of scratch pad ram.
Scratchpad means a high-speed internal memory used for temporary storage of
preliminary information.
An 8-bit register, like AH, AL, BH, BL, can only store one data element at a time. And a
16-bit register can store multiple data element e.g. one in AH and other in AL.

CS401 Assembly Language
Solved MCQS
From Midterm Papers
May 02,2011
MC100401285 Moaaz.pk@gmail.com MC100401285@gmail.com PSMD01(IEMS)
MIDTERM FALL 2011
CS401 Assembly Language

Question No:2 ( Marks: 1 ) – Please choose one
The execution of the instruction “mov word [ES : 0], 0x0741” will print character “A” on screen , background
color of the screen will be
 Black (Page 81)
 White
 Red
 Blue

Question No:4 ( Marks: 1 ) – Please choose one
The execution of the instruction “mov word [ES: 0], 0x0741” will print “A” on the screen, color of the
character will be
Black
White (Page 81)
Red
Blue

Question No:8 ( Marks: 1 ) – Please choose one
if ax contains decimal -2 and BX contains decimal 2 then after the execution of
instructions: CMP AX, BX ,JA label
Jump will be taken
Zero flag will set
ZF will contain value -4
Jump will not be taken (rr)

 

8. In the instruction “CMP AX,BX” the contents of

o AX are changed
o BX are changed
o CX are changed
o Flag register are changed (Page 39)

 

13. The execution of the instruction “mov word [ES: 0], 0x0741” will print “A” on the screen, color of
the character will be
o Black
o White (Page 81) rep
o Red
o Blue

14. If AX contains FFFFh, then after execution of instruction “SAL ax, 3”, the result will be
o -3
o +3
o -8
o +8

15. If the decimal number “35” is shifted by two bit to left, the new value will be
o 35
o 70
o 140
o 17

16. While using STOBS, if DF=1 then
o The value of SI will be incremented by one
o The value of SI will be incremented by two
o The value of SI will be decremented by one click here for detail
o The value of SI will be decremented by two

17. After the execution of STOSW, the CX will be
o Decremented by 1
o Decremented by 2 (Page 92)
o Incremented by 1
o Incremented by 2

18. The memory address always move from
o processor to memory
o memory to processor
o memory to peripheral
o peripheral to processor

19. An offset alone is not complete without
o Segment (Page 34)
o code label
o index register
o data label

20. Code Segment is associated to _______ register by default.
o IP (Page 34)
o SS
o BP
o CX

MIDTERM SPRING 2011
CS401 Assembly Language
Question No:2 ( Marks: 1 ) – Please choose one
ASCII stands for ____________.
The screen is two dimensional space having:
25 Rows and 25 Columns (Page 80)
25 Rows and 80 Columns
80 Rows and 80 Columns
80 Rows and 25 Columns
Question No:3 ( Marks: 1 ) – Please choose one
In the Rotate Right Operation every bit moves one position to right and the bit dropped from the right is
inserted at the left and:
Dropped in CF (Page 53)
moves to AL
Don’t go anywhere.
Question No:4 ( Marks: 1 ) – Please choose one
____________ of the following flags will be affected by MOVSB?
DF
ZF
PF
No effect on flags.
Question No:5 ( Marks: 1 ) – Please choose one
The iAPX88 processor supports ___________ modes of memory access.
5
6
7 (Page 35)
8
MIDTERM FALL 2010
Question No:1 ( Marks: 1 ) – Please choose one
Stack is a ______ that behaves in a first in last out manner.
Program
data structure (Page 67)
Heap
None of the Given
Question No:2 ( Marks: 1 ) – Please choose one
The physical address of the stack is obtained by
SS:SI combination
SS:SP combination (Page 68)
ES:BP combination
ES:SP combination
Question No:3 ( Marks: 1 ) – Please choose one
Foreground and background parameter will be
32bits
16bits
8bits
4bits
Question No:4 ( Marks: 1 ) – Please choose one
The clear screen operation initialize whole block of memory
0741
0417
0714
0174, 0720 (Page 91)
Question No:5 ( Marks: 1 ) – Please choose one
In STOSB instruction, when DF is Set, SI is
Incremented by 1
Incremented by 2
Decremented by 1 (Not confirmed)
Decremented by 2
Question No:6 ( Marks: 1 ) – Please choose one
Assembly language is:
Low-level programming language Click here for detail
High-level programming language
Also known as machine language
Not considered closer to the computer
Question No:7 ( Marks: 1 ) – Please choose one
A 32 Bit processor has accumulator of ———
8 bit
16 bit
32 bit (Page 12)
64 bit
Question No:8 ( Marks: 1 ) – Please choose one
To transfer control back the RET instruction take
1 argument
1 argument
3 arguments (Page 72)
No arguments
Question No:9 ( Marks: 1 ) – Please choose one
RET is executed, it recovers the values from
Register
Stack (Page 71)
Data segment
Code segment
Question No:10 ( Marks: 1 ) – Please choose one
To convert any digit to its ASCII representation
Add 0x30 in the digit (Page 80)
Subtract 0x30 from the digit
Add 0x61 in the digit
Subtract 0x61 from the digit
Question No:11 ( Marks: 1 ) – Please choose one
The prevalent convention in most high level languages is stack clearing by the
Caller
Callee (Page 74)
RET
Stack
Question No:12 ( Marks: 1 ) – Please choose one
After execution of JCXZ instruction CX will changed with flag affect.
CF
OF
DF
None of Above (Page 43)
Question No:13 ( Marks: 1 ) – Please choose one
Execution of the instruction “mov word [ES : 0], 0x0741” will print
 “A” appear on the top left of screen (Page 81)
 “A” appear on the top right of screen
 “A” appear on the center of screen
 “A” appear on the bottom left of screen
Question No:14 ( Marks: 1 ) – Please choose one
if contains decimal -2 and BX contains decimal 2 then after the execution of instructions:
CMP AX, BX
JA label
Jump will be taken
Zero flag will set
ZF will contain value -4
Jump will not be taken

Question No: 15 ( Marks: 1 ) – Please choose one
In a video memory, each screen location corresponds to
 One byte
 Two bytes
 Four bytes
 Eight bytes
Question No: 16 ( Marks: 1 ) – Please choose one
The execution of the instruction “mov word [ES : 0], 0x0741” will print character “A” on screen , background
color of the screen will be
 Black (Page 81) rep
 White
 Red
 Blue

Question No:2 ( Marks: 1 ) – Please choose one
After the execution of “PUSH AX” statement
AX register will reside on the stack
A copy of AX will go on the stack (Page 69)
The value of AX disappear after moving on stack
Stack will send an acceptance message

Question No:3 ( Marks: 1 ) – Please choose one
physical address of the stack is obtained by
SS:SP combination
SS:SI combination
SS:SP combination (Page 68) rep
ES:BP combination
ES:SP combination
Question No:4 ( Marks: 1 ) – Please choose one
If the address of memory location Num1 is 0117 and its content is 0005 then after execution of the instruction
“ mov bx, Num1” bx will contain
0005
0117 (Page 30)
Num1
1701
Question No:5 ( Marks: 1 ) – Please choose one
In STOS instruction, the implied source will always be in
AL or AX registers (Page 92)
DL or DX registers
BL or BX registers
CL or CX registers
Question No:6 ( Marks: 1 ) – Please choose one
The shift logical right operation inserts
A zero at right
A zero at left (Page 52)
A one at right
A one at right

Question No:9 ( Marks: 1 ) – Please choose one
assembly the CX register is used normally as a ______________register.
source
counter (Page 32)
index
pointer
Which is the unidirectional bus ?
(I) Control Bus
(II) Data Bus
(III) Address Bus
I only
II only
III only (Page 9)
I and II only
Question No:10 ( Marks: 1 ) – Please choose one
The basic function of SCAS instruction is to
Compare (Page 92)
Scan
Sort
Move data
Question No:11 ( Marks: 1 ) – Please choose one
_______ register holds the address of next instruction is to be executed
Base pointer
Code segment
Source index
Program counter (Page 13)
Question No:12 ( Marks: 1 ) – Please choose one
JC and JNC test the ____________ flag.
carry (Page 41)
parity
zero
sign
Question No:13 ( Marks: 1 ) – Please choose one
After the execution of REP instruction CX will be decremented then which of the following flags will be
affected?
CF
OF
DF
No flags will be affected (Page 93)
Question No:14 ( Marks: 1 ) – Please choose one
In string manipulation whenever an instruction needs a memory source, which of the following will hold the
pointer to it?
ES: DI
ES: BP
DS:BP
DS:SI (Page 91)
Question No:15 ( Marks: 1 ) – Please choose one
which bit sets the character “blinking” on the screen?
5
6
7 (Page 7)
8
Question No:16 ( Marks: 1 ) – Please choose one
If we want to divide a signed number by 2, this operation can better be accomplished by
SHR
SAR (Page 52)
SHL
SAL
Question No:17 ( Marks: 1 ) – Please choose one
After the execution of STOSB,the CX wil be……..
Incremented by 1
Incremented by 2
Decremented by 1
Decremented by 2

Question No:19 ( Marks: 1 ) – Please choose one
In a video memory, each screen location corresponds to
One byte
Two bytes (Page 86)
Four bytes
Eight bytes
cs401 paper 02 dec,2010
Question No:1 ( Marks: 1 ) – Please choose one
Execution of the instruction “mov word [ES : 0], 0x0741” will print
 “A” appear on the top left of screen (Page 81) rep
 “A” appear on the top right of screen
 “A” appear on the center of screen
 “A” appear on the bottom left of screen
Question No:2 ( Marks: 1 ) – Please choose one
After the execution of “PUSH AX” statement
AX register will reside on the stack (Page 69) rep
A copy of AX will go on the stack
The value of AX disappear after moving on stack
Stack will send an acceptance message

Question No:5 ( Marks: 1 ) – Please choose one
After the execution of REP instruction CX will be decremented then which of the following flags will be
affected?
CF
OF
DF
No flags will be affected (Page 93) rep
Question No:6 ( Marks: 1 ) – Please choose one
In a video memory, each screen location corresponds to
One byte
Two bytes (Page 66)
Four bytes
Eight bytes
Question No:7 ( Marks: 1 ) – Please choose one
shifting the -15 two bit sAR
-7
-8
7
8
Question No:8 ( Marks: 1 ) – Please choose one
mov ax,5 has
1 operand
2 opeand (Page 25)
3 operand
4 opeand
MIDTERM EXAMINATION
Spring 2010
Question No: 1 ( Marks: 1 ) – Please choose one
The physical address of the stack is obtained by
 SS:SP combination
 SS:SI combination
 SS:SP combination (Page 68) rep
 ES:BP combination
 ES:SP combination
Question No: 2 ( Marks: 1 ) – Please choose one
After the execution of instruction “RET ”
 SP is incremented by 2
 SP is incremented by 2 (Page 66) rep
 SP is decremented by 2
 SP is incremented by 1
 SP is decremented by 1
Question No: 3 ( Marks: 1 ) – Please choose one
The second byte in the word designated for one screen location holds
 Character color on the screen
 The dimensions of the screen
 Character position on the screen
 Character color on the screen (Page 81) rep
 ASCII code of the character

Question No: 5 ( Marks: 1 ) – Please choose one
The basic function of SCAS instruction is to
 Compare (Page 92) rep
 Scan
 Sort
 Move data
Question No: 6 ( Marks: 1 ) – Please choose one
Index registers are used to store __________
 Data
  Intermediate result
  Address (Page 16)
  Both data and addresses
Question No: 7 ( Marks: 1 ) – Please choose one
The bits of the _____________ work independently and individually
 index register
  base register
  flags register (Page 12)
  accumulator
Question No: 8 ( Marks: 1 ) – Please choose one
To convert any digit to its ASCII representation
 Add 0x30 in the digit (Page 80) rep
 Subtract 0x30 from the digit
 Add 0x61 in the digit
 Subtract 0x61 from the digit
Question No: 9 ( Marks: 1 ) – Please choose one
When a 32 bit number is divided by a 16 bit number, the quotient is of
 32 bits
 16 bits (Page 85)
 8 bits
 4 bits

Question No: 11 ( Marks: 1 ) – Please choose one
Which mathematical operation is dominant during the execution of SCAS instruction
 Division
 Multiplication
 Addition
 Subtraction (Page 92)
Question No: 12 ( Marks: 1 ) – Please choose one
If AX contains decimal -2 and BX contains decimal 2 then after the execution of instructions:
CMP AX, BX
JA label
 Jump will be taken
 Zero flag will set
 ZF will contain value -4
 Jump will not be taken
Question No: 13 ( Marks: 1 ) – Please choose one
The execution of the instruction “mov word [ES : 160], 0x1230” will print a character “0” on the screen at
 Second column of first row
 First column of second row (Page 81)
 Second column of second row
 First column of third row
Question No: 14 ( Marks: 1 ) – Please choose one
If the direction of the processing of a string is from higher addresses towards lower addresses then
 ZF is cleared
 DF is cleared (Page 91)
 ZF is set
 DF is set
Question No: 15 ( Marks: 1 ) – Please choose one
The instruction ADC has________ Operand(s)
 0
 1
 2 (Page 56)
 3

MIDTERM EXAMINATION
Spring 2010
Question No: 1 ( Marks: 1 ) – Please choose one
Suppose AL contains 5 decimal then after two left shifts produces the value as
 5
 10
 15
 20
Question No: 2 ( Marks: 1 ) – Please choose one
In STOS instruction, the implied source will always be in
 AL or AX registers (Page 92) rep
 DL or DX registers
 BL or BX registers
 CL or CX registers
Question No: 3 ( Marks: 1 ) – Please choose one
After the execution of STOSW the CX will be
 Decremented by 1
 Decremented by 2 (Page 92) rep
 Incremented by 1
 Incremented by 2
Question No: 4 ( Marks: 1 ) – Please choose one
The basic function of SCAS instruction is to
 Compare (Page 92) rep
 Scan
 Sort
 Move data
Question No: 5 ( Marks: 1 ) – Please choose one
Which is the unidirectional bus ?
(I) Control Bus
(II) Data Bus
(III) Address Bus
  I only
  II only
  III only (Page 9) rep
  I and II only
Question No: 6 ( Marks: 1 ) – Please choose one
The operation of CMP is to
  Subtract Source from Destination (Page 39)
  Subtract Destination to from Source
  Add 1 to the Destination
  Add Source and Destination
Question No: 7 ( Marks: 1 ) – Please choose one
The registers IP, SP, BP, SI, DI, and BX all can contain a ________offset.
  8-bit
  16-bit (Page 21)
  32-bit
  64-bit
Question No: 8 ( Marks: 1 ) – Please choose one
In assembly the CX register is used normally as a ______________register.
 source
 counter (Page 92)
 index
 pointer
Question No: 9 ( Marks: 1 ) – Please choose one
All the addressing mechanisms in iAPX88 return a number called _____________ address.
 effective (Page 33)
 faulty
 indirect
 direct
Question No: 10 ( Marks: 1 ) – Please choose one
Which bit of the attributes byte represents the blue component of foreground color
 3
 2
 1
 0 (Page 81)
Question No: 11 ( Marks: 1 ) – Please choose one
When a 32 bit number is divided by a 16 bit number, the quotient will be stored in
 AX (Page 85)
 BX
 CX
 DX
Question No: 12 ( Marks: 1 ) – Please choose one
“mov byte [num1], 5” is _________ instruction.
 legal (Page 30) rep
 illegal
 stack based
 memory indirect

Question No: 14 ( Marks: 1 ) – Please choose one
The execution of the instruction “mov word [ES : 0], 0x0741” will print character “A” on screen, color of the
character will be
 Black
 White (Page 81) rep
 Red
 Blue
Question No: 15 ( Marks: 1 ) – Please choose one
Which of the following flags will be affected by MOVSW?
 DF
 PF
 ZF
 No effect on flags
Question No: 16 ( Marks: 1 ) – Please choose one
Which bit of the attributes byte represents the blue component of background color ?
 3
 4 (Page 81)
 5
 6
MIDTERM EXAMINATION
Spring 2009
Question No: 1 ( Marks: 1 ) – Please choose one
To transfer control back the RET instruction take
1 argument
1 argument
3 arguments (Page 72) rep
No arguments
Question No: 2 ( Marks: 1 ) – Please choose one
In STOSB instruction SI is decremented or incremented by
4
1
2
3
Question No: 3 ( Marks: 1 ) – Please choose one
CMPS instruction subtracts the source location to the destination location.
Destination location always lies in
DS:SI (Page 93)
DS:DI
ES:SI
ES:DI
Question No: 4 ( Marks: 1 ) – Please choose one
Regarding assembler, which statement is true:
Assembler converts mnemonics to the corresponding OPCODE (Page 13)
Assembler converts OPCODE to the corresponding mnemonics
Assembler executes the assembly code all at once
Assembler executes the assembly code step by step
Question No: 5 ( Marks: 1 ) – Please choose one
If “BB” is the OPCODE of the instruction which states to “move a constant value to AX
register”, the hexadecimal representation (Using little Endian notation) of the instruction
“Mov AX,336” (“150” in hexadecimal number system) will be:
0xBB0150
0x5001BB
0x01BB50
0xBB5001
Question No: 6 ( Marks: 1 ) – Please choose one
In the instruction MOV AX, 5 the number of operands are
1
2 (Page 25) rep
3
4
Question No: 7 ( Marks: 1 ) – Please choose one
The maximum parameters a subroutine can receive (with the help of registers) are
6
7 (Page 72)
8
9
Question No: 8 ( Marks: 1 ) – Please choose one
In assembly the CX register is used normally as a ______________register.
source
counter (Page 92) rep
index
pointer
Question No: 9 ( Marks: 1 ) – Please choose one
All the addressing mechanisms in iAPX88 return a number called _____________ address.
effective (Page 33) rep
faulty
indirect
direct
Question No: 10 ( Marks: 1 ) – Please choose one
When a 16 bit number is divided by an 8 bit number, the dividend will be in
AX (Page 85)
BX
CX
DX
Question No: 11 ( Marks: 1 ) – Please choose one
in Left-Shift-Operation the left most bit _______
will drop
will go into CF (Page 52)
Will come to the right most
will be always 1
Question No: 12 ( Marks: 1 ) – Please choose one
Suppose the decimal number “35” after shifting its binary two bits to left, the new
value becomes _________
35
70
140
17
Question No: 13 ( Marks: 1 ) – Please choose one
When divide overflow occurs processor will be interrupted this type of interrupt is called
Hardware interrupt
Software interrupt
Processor exception
Logical interrupts
Question No: 14 ( Marks: 1 ) – Please choose one
Which mathematical operation is dominant during the execution of SCAS instruction
Division
Multiplication
Addition
Subtraction (Page 92) rep
Question No: 15 ( Marks: 1 ) – Please choose one
After the execution of REP instruction CX will be decremented then which of the
following flags will be affected?
CF
OF
DF
No flags will be affected (Page 93) rep
Question No: 16 ( Marks: 1 ) – Please choose one
_________ is one of the reasons due to which string instructions are used in 8088
Efficiency and accuracy
Reduction in code size and accuracy
Reduction in code size and speed (Page 91)
Reduction in code size and efficiency
Quiz no 1 & 2
Cs-401
Solved by 4funkar quiz &team
In direct addressing the memory address given in the instruction is
Fixed
Variable
Execute in every condition whether true or false
If the condition is true
If the condition is false
None of the given
This jump is taken if the last arithmetic operation changed the sign unexpectedly.
Select correct option:
JP
JO
JNO
JS
This jump is taken if the last arithmetic operation produced a number in its destination that has
even parity , Which jump is taken
Select correct option:
JP
JPE
JNP
both JP and JPE
The process through which the segment register can be explicitly specified is known as
Select correct option:
Segment Addressing
Segment Override Prefix
Segment Indexing
None of the above
The other directive is “define word” or “dw” with the same syntax as “db” but reserving a whole
word of __ bits instead of a byte.
Select correct option:
32
8
16
64
Which of the following is not a valid instruction in assembly language?
Select correct option:
MOV AX, 55
MOV AX, BX
MOV CS, 0xb800
MOV BX, AX
Constant is never use as a
Select correct option:
Source
Destination
Both as source and destination
None of the given
we can not add two base register i.e. (bx+bp) or cant use in an instruction
Select correct option:
True
False
which type of rotation it is “The carry flag is inserted from the left, every bit moves one position to
the right, and the right most bit is dropped in the carry flag. ”
Select correct option:
RCR
ROL
RCL
ROR
The simplest form of addressing, in which the operand value is present in instruction is
Select correct option:
Direct Addressing
Indirect Addressing
Immediate Addressing
None of them
mov [bx+si], ax is an example of Indexed Register Indirect.
Select correct option:
True
False
mov [1234],ax is an example of
Select correct option:
Direct addressing
Base register indirect
Base+index
None of the given
This JCXZ jump is taken whenever counter resets.
Select correct option:
Yes
No
__ jump is not position relative but is absolute
Select correct option:
Near
Short
Far
None of the above
Size Mismatch Error is a syntax error
Select correct option:
False
True
The effective address will be either a main memory address or a register.
Select correct option:
True
False
we can not Subrtace index register from the base register( bx-si )in assemlby language
Select correct option:
True
False
ANY ONE ELSE /
All the addressing mechanisms in iAPX88 return a number called ___________ address.
Select correct option:
EFFICTIVE address
physical address
direct
Which one of the following is a illegal instruction
Select correct option:
MOV AX,BX
MOV AX,65
MOV ax,[bx+bp]
none
we can not Subrtace index register from the base register( bx-si )in assemlby language
true
false
The effective address will be either a main memory address or a register.
true
false
CX register mostly use a
flag register
destination register
baase register
COUNTER
The FLAG register in Intel x86 microprocessors that contains the current state of the processor
Select correct option:
True
false
The Jump command that doesn’t depends on FLAG register is
Select correct option:
JCXZ
JO
JINE
JP
when a 32 bit number is divided by a 16 bit number, the remainder is of
4bit
8bit
32bit
SHL and SAL are same
true
false
The simplest form of addressing, in which the operand value is present in instruction is
Select correct option:
direct addressing
indirect addressing
The simplest form of addressing, in which the operand value is present in instruction is
Select correct option:
Direct Addressing
Indirect Addressing
Immediate Addressing
None of them
Register to Register Operation is not allowed
Select correct option:
True
False
we can not add two base register i.e. (bx+bp) or cant use in an instruction
Select correct option:
True
False
The jump is taken if the last arithmetic operation changed the sign unexpectedly.
Select correct option:
JO
JNO
JNZ
JZ
unconditional jump can be
Select correct option:
near
short
far
all of the given
SI or DI is used we name the method.
Select correct option:
Based Addressing
Indexed Addressing
Stack Addressing
None of the above
Which of the following is not a valid instruction in assembly language?
Select correct option:
MOV AX, 55
MOV AX, BX
MOV CS, 0xb800
MOV BX, AX
This jump is taken if the last arithmetic operation produced a number in its destination that has
even parity , Which jump is taken
Select correct option:
JP
JPE
JNP
both JP and JPE
BP by default associated with
Select correct option:
CS
IP
SS
SP
Question # 1 of 10 ( Start time: 04:12:37 PM ) Total Marks: 1
BP by default associated with
Select correct option:
CS
IP
SS
SP
In a virtual memory system, the effective address is a main memory address.
Select correct option:
True
False
Which type of Rotation it is “Every bit moves one position to the right and the bit dropped from the
right is inserted at the eft. This bit is also copied into the carry flag.”
Select correct option:
ROL
RCR
RCL
None of the given
The most basic difference between Conditional and Unconditional jumping is
Select correct option:
arithmetic operations
consideration of flags
address
none of the above
In direct addressing the memory address given in the instruction is
Select correct option:
Fixed
Variable
Register
Empty
__ jump is not position relative but is absolute
Select correct option:
Near
Short
Far
None of the above
The simplest form of addressing, in which the operand value is present in instruction is
Select correct option:
Direct Addressing
Indirect Addressing
Immediate Addressing
None of them
By default CS is associated with
Select correct option:
SS
BP
CX
IP
The stack pointer contains the address of the word that is currently on__:
Select correct option:
Top of the stack
Down of the stack
Top and Down both
None of the above
The stack pointer contains the address of the word that is currently on__:
Select correct option:
Top of the stack
Down of the stack
Top and Down both
None of the above
Quiz: NEXT
Constant is never use as a
Select correct option:
Source
Destination
Both as source and destination
None of the given
Register to memory operation is not allowed
Select correct option:
True
False
Register to memory operation is not allowed
Select correct option:
True
False
The Jump command that doesnot depends on FLAG register is
Select correct option:
JCXZ
JO
JNE
JP
__ jump is not position relative but is absolute
Select correct option:
Near
Short
Far
None of the above
far
Memory to Memory operation is allowed
Select correct option:
True
False
Which register holds the item that is to be written into the stack or read out of the stack:
Select correct option:
SP
IP
BX
DX
SP
The process through which the segment register can be explicitly specified is known as
Select correct option:
Segment Addressing
Segment Override Prefix
Segment Indexing
None of the above
In JZ jump is not taken if the last arithmetic operation produced a zero in its destination.
Select correct option:
True
False
we can not add two base register i.e. (bx+bp) or cant use in an instruction
Select correct option:
True
False
Physical address calculation depends on
Select correct option:
Base address
Effective address
Offset Address
None of the above
The other directive is “define word” or “dw” with the same syntax as “db” but reserving a whole
word of __ bits instead of a byte.
Select correct option:
32
8
16
64
SI or DI is used we name the method.
Select correct option:
Based Addressing
Indexed Addressing
Stack Addressing
None of the above
FLAG register in Intel x86 microprocessors that contains the current state of the processor
Select correct option:
True
False
The addressing method that can be used to access a two dimensional array is.
Select correct option:
Base + Index + Offset addressing
Base + Index addressing
we can not add two base register i.e. (bx+bp) or cant use in an instruction
Select correct option:
True
False
Which type of Rotation it is “Every bit moves one position to the right and the bit dropped from the
right is inserted at the eft. This bit is also copied into the carry flag.”
Select correct option:
ROL
RCR
RCL
None of the given
Constant is never use as a
Select correct option:
Source
Destination
Both as source and destination
None of the given
Bydefault CS is associated with
Select correct option:
SS
BP
CX
IP
BX is a register in which intermediate arithmetic and logic results are stored.
Select correct option:
True
False
The process through which the segment register can be explicitly specified is known as
Select correct option:
Segment Addressing
Segment Override Prefix
Segment Indexing
None of the above
SHL and SAL are same
Select correct option:
True
False
which type of rotation it is “The carry flag is inserted from the left, every bit moves one position
to the right, and the right most bit is dropped in the carry flag. ”
RCR
RQL
RDL
RLL
MOV AL,BX is a type of ___ error.
syntax
size mismatch error
size mismatch
All the addressing mechanisms in iAPX88 return a number called ___________ address
Effective address
Physical address
we can not add two base register i.e. (bx+bp) or cant use in an instruction
True
False
BX is a register in which intermediate arithmetic and logic results are stored.
True
False
mov [1234],ax is an example of
Direct addressing
Base register indirect
Base+index
direct addressing
In JA jump is not taken after a CMP if the unsigned destination is larger than the unsigned
source.
True
False
This jump is taken if the last arithmetic operation produced a number in its destination that has
even parity , Which jump is taken
JP
JPE
JNP
None
Quiz # 2
Both DS and ES can be used to access the video memory. However we commonly keep
DS for accessing our data, and load ES with the segment of video memory.
Select correct option:
True
False
PAGE 81

Question # 2 of 10 ( Start time: 03:17:23 PM ) Total Marks: 1
How many characters standard ASCII has?
Select correct option:
512
256
128
64

During the CALL operation, the current value of the instruction pointer is automatically
saved on the stack, and the destination of CALL is loaded in the instruction pointer.
Select correct option:
True
False

12:16 PM VGA stands for
Select correct option:
Video Graphic Accumulator
Video Graphics Adapter
Visual Graphics Adapter
Video Graphics Application
Video Graphics Adapter

________ transfers the word at the current top of stack (pointed to by SP) to the
destination operand and then increments SP by two to point to the new top of stack.
Select correct option:
PUSH
POP
CALL
None of the given

The execution of the instruction “mov word [ES : 160], 0x1230” will print a character on
the screen at:
Select correct option:
First column of second row
Second column of first row
Second column of second row
First column of third row

The Operation of pop ax is AX <– [SP] SP <– SP-2
Select correct option:
True
False

_______ function decrements SP (the stack pointer) by two and then transfers a word
from the source operand to the top of stack now pointed to by SP.
Select correct option:
POP
PUSH
RET
ADD

Far calls are called intra segment calls.
Select correct option:
True
False

STOS is often used to clear a block of memory or fill it with a constant.
Select correct option:
True page no 92
False

How many characters were defined by standard ASCII?
Select correct option:
132
124
122
128

Stack clearing by the caller needs an extra instruction on behalf of the caller after every
call made to the subroutine, unnecessarily increasing instructions in the program.
Select correct option:
True
False

The direction of movement is controlled with the _________________in the flags
register. If this flag is cleared the direction is from lower addresses towards higher
addresses and if this flag is set the direction is from higher addresses to lower addresses.
Select correct option:
Direction Flag (DF)
Control Flag (CF)
Carry Flag (CF)
Non of above

ASCII stands for____________________________.
Select correct option:
American Standard Code for Information Interaction
American Standard Code for Information Interchange
American Standard Communication for Integer Interchange
American Scientific Communication for Integer Interaction

During the CALL operation, the current value of the instruction pointer is automatically
saved on the stack, and the destination of CALL is loaded in the instruction pointer.
Select correct option:

Extended ASCII has 256 characters with assigned numbers from
Select correct option:
1 to 255
0 to 256
0 to 255
1 to 256

Hexadecimal is the prevalent and standard format for representation of characters in
computers.
Select correct option:
True
False

The execution of the instruction “mov word [ES : 160], 0x1230” will print a character on
the screen at:
Select correct option:
First column of second row
Second column of first row
Second column of second row
First column of third row

In the instruction “mov word [es:160], 0x1230”, 12 means:
Select correct option:
green color on black background
green color on blue background
black color on green background
blue color on green background

This top of stack is contained in the ____ register.
Select correct option:
SP
BP
AX
BX

Quiz: PUSH increments SP (the stack pointer) by two and then transfers a word from the
source operand to the top of stack now pointed to by SP.
Select correct option:
True
False
Page 71
The reduction in code size and the improvement in speed are the two reasons why block
processing instructions were introduced in the _____________ processor.
Select correct option:
8088
8085
8080
iAPX386

MOVS is used to ________ a block of memory.
Select correct option:
Save
Move
Delete
Push

The operation of PUSH is not similar to CALL however with a register other than the
instruction pointer.
Select correct option:
True
False

Reference: operation of PUSH is similar to CALL however with
a register other than the instruction pointer. page 69
Both DS and ES can be used to access the video memory. However we commonly keep

DS for accessing our data, and load ES with the segment of video memory.
Select correct option:
True
False

Which bit of the attributes byte represents the blue component of foreground color ?
Select correct option:
0
1
2
3

SCAS compares a source byte or word in register AL or AX with the ___________
string element addressed by ES: DI and updates the flags.
Source
Destination
Flag
Register
page 92

An element is pushed on the stack SP is decremented by ____ as the 8088 stack works on
word sized elements.
Three
two
four
five
page 68

To access the arguments from the stack, the immediate idea that strikes is to ____ them
off the stack.
push
pop
add
insert

We use _______ to access the parameters that are stay on the stack with out popping
them.
pop
DS not sure
PUSH
BP

How many characters were defined by standard ASCII?
132
124
128

ASCII table is the contiguous arrangement of the uppercase alphabets (41-5A), the
lowercase alphabets (61-7A), and the numbers ______________
31-40
29-39
30-39
page no 80

: The purpose of MOVS instruction is to move a memory location to register
True
False

_________ decrements SP (the stack pointer) by two and then transfers a word from the
source operand to the top of stack now pointed to by SP.
push
pop
call
None
This top of stack is contained in the ____ register.
SP
BP
AX

Question # 1 of 10 ( Start time: 03:52:51 PM ) Total Marks: 1
To access the arguments from the stack, the immediate idea that strikes is to ____ them
off the stack.
Select correct option:
Push
Pop
Add
Insert
Quiz Start Time: 03:52 PM
Time Left 85
sec(s)

Question # 2 of 10 ( Start time: 03:53:34 PM ) Total Marks: 1
Parameters clears from the stack by the
Select correct option:
caller
callee
caller and callee
None of the given
Quiz Start Time: 03:52 PM
Time Left 88
sec(s)

Question # 3 of 10 ( Start time: 03:54:51 PM ) Total Marks: 1
There are just ____ block processing instructions in 8088.
Select correct option:
6
5
4
3
Quiz Start Time: 03:52 PM
Time Left 88
sec(s)

Question # 4 of 10 ( Start time: 03:55:31 PM ) Total Marks: 1
_________ decrements SP (the stack pointer) by two and then transfers a word from the
source operand to the top of stack now pointed to by SP.
Select correct option:
PUSH
POP
CALL
None of the Above
Quiz Start Time: 03:52 PM
Time Left 87
sec(s)

Question # 5 of 10 ( Start time: 03:55:52 PM ) Total Marks: 1
The operation of PUSH is not similar to CALL however with a register other than the
instruction pointer.
Select correct option:
True
False
Quiz Start Time: 03:52 PM
Time Left 86
sec(s)

Question # 6 of 10 ( Start time: 03:56:29 PM ) Total Marks: 1
The direction of movement is controlled with the _________________in the flags
register. If this flag is cleared the direction is from lower addresses towards higher
addresses and if this flag is set the direction is from higher addresses to lower addresses.
Select correct option:
Direction Flag (DF)
Control Flag (CF)
Carry Flag (CF)
Non of above
Quiz Start Time: 03:52 PM
Time Left 87
sec(s)

Question # 7 of 10 ( Start time: 03:57:05 PM ) Total Marks: 1
Hexadecimal is the prevalent and standard format for representation of characters in
computers.
Select correct option:
True
False
Quiz Start Time: 03:52 PM
Time Left 87
sec(s)

Question # 8 of 10 ( Start time: 03:57:39 PM ) Total Marks: 1
MUL (multiply) Instruction performs an unsigned multiplication of the source operand
and the ___________.
Select correct option:
Accumulator
Carry
Word
Base
Quiz Start Time: 03:52 PM
Time Left 88
sec(s)

Question # 9 of 10 ( Start time: 03:58:20 PM ) Total Marks: 1
We can convert any digit to __ by adding 0x30 in the digit.
Select correct option:
Character
ASCII
EBCDIC
Standard Code

Question # 1 of 10 ( Start time: 09:21:20 PM ) Total Marks: 1
The Operation of pop ax is AX <– [SP] SP <– SP-2
Select correct option:
True
False

Question # 1 of 10 ( Start time: 09:21:20 PM ) Total Marks: 1
The Operation of pop ax is AX <– [SP] SP <– SP-2
Select correct option:
True
False

Question # 2 of 10 ( Start time: 09:22:24 PM ) Total Marks: 1
An element is pushed on the stack SP is decremented by ______ as the 8088 stack works on
word sized elements.
Select correct option:
Three
Two
Four
Five

Question # 3 of 10 ( Start time: 09:23:06 PM ) Total Marks: 1
When the RET instruction is executed, it recovers the value of the instruction pointer from the
stack.
Select correct option:
True
False

Question # 4 of 10 ( Start time: 09:23:57 PM ) Total Marks: 1
How many characters were defined by standard ASCII?
Select correct option:
132
124
122
128
Quiz Start Time: 09:21 PM Time Left 89
sec(s)

Question # 5 of 10 ( Start time: 09:24:17 PM ) Total Marks: 1
We can convert any digit to ____ by adding 0x30 in the digit.
Select correct option:
Character
ASCII
EBCDIC
Standard Code

Question # 6 of 10 ( Start time: 09:24:36 PM ) Total Marks: 1
ASCII stands for______________________________.
Select correct option:
American Standard Code for Information Interaction
American Standard Code for Information Interchange
American Standard Communication for Integer Interchange
American Scientific Communication for Integer Interaction

Question # 7 of 10 ( Start time: 09:25:24 PM ) Total Marks: 1
The direction of movement is controlled with the _________________in the flags register. If this
flag is cleared the direction is from lower addresses towards higher addresses and if this flag is
set the direction is from higher addresses to lower addresses.
Select correct option:
Direction Flag (DF)
Control Flag (CF)
Carry Flag (CF)
Non of above

Question # 8 of 10 ( Start time: 09:25:41 PM ) Total Marks: 1
The execution of the instruction “mov word [ES : 160], 0x1230” will print a character on the
screen at:
Select correct option:
First column of second row
Second column of first row
Second column of second row
First column of third row

Question # 9 of 10 ( Start time: 09:26:45 PM ) Total Marks: 1
Far calls are called intra segment calls.
Select correct option:
True
False

Question # 10 of 10 ( Start time: 09:27:59 PM ) Total Marks: 1
When the operand of DIV instruction is of 16-bits then implied dividend will be stored in
Select correct option:
AX register
The concatenation of DX and AX
The concatenation of ES and AX
The concatenation of DS and BX

 

CS401- Computer Architecture and Assembly Language 
Quiz No.4 FEB 14, 2013

A 32-bit address register can access up to ____ of memory.
2 MB
2 GB
4 MB
4 GB

Operating system Organize data in the form of
Folder
Batch file
File
None of the above

The ‘program segment prefix’ for com files is of size:
Select correct option:
64 bytes
128 bytes
256 bytes
512 bytes

COM1 is connected with
IRQ2
IRQ3
IRQ4
IRQ5

“INT13 –BIOS disk services” generally uses which register to return the ‘error flag’ ?
Select correct option:
CF 
DL
AH
AL

In case of COM file, first command line parameter is stored at ___ offset of ‘program segment prefix’
0×80 
0×82
0×84
0×86

On executing INT 0×21 service 0x3D, if file is successfully opened then
CF will contain 1
CF will contain 0 
ZF will contain 1
ZF will contain 0

Which register is generally used to specify the service number of an interrupt ?
AX

BX
CX

The lower 16-bits of EAX register are labeled as:
EAL
AL 
AH
AX

Device drivers can be divided into ___ major categories:
3
4

None

In programmable interrupt controller which of the following ports is referred as a
interrupt mask register?
Select correct option:
19
20
21
22

Which of the following BIOS INT provides serial port services
INT 21
INT 14
INT 10
INT 08

In 9pin DB 9 connector, which pin is assigned to RD (Received Data) ?
1
2
3
4

In 9pin DB 9 connector, which pin is assigned to Signal Ground ?
3
4
5
6
Device drivers can be divided into ___ major categories:
5
4
3
2
The INT 0x13 service 0x03 is use to
Select correct option:
Get drive parameter
Reset disk sector
Write disk sector
Read disk sector

Hard disk MBR( Master Boot Record ) is of size_____.
Select correct option:
446 bytes
350 bytes
512 bytes
256 bytes

COM2 is connected with
Select correct option:
IRQ 2
IRQ 3
IRQ 4
IRQ 5

On executing INT 0x21–service 0x3D, if file can’t be opened then
Select correct option:
CF will contain 1
CF will contain 0
ZF will contain 1
ZF will contain 0

“INT13 –BIOS disk services” generally uses which register to return the ‘error code’ ?
correct option:
CF
DL
AH
AL

BPB stands for
Basic parameter block
Bios precise block
Basic precise block
Bios parameter block

“INT13 –BIOS disk services” generally uses which register to return the ‘error flag’ ?
CF
DL
AH
AL

The maximum length of DOS command line parameters is
64 bits
127 bits
256 bits
512 bits

Which of the following BIOS INT provides serial port services
Select correct option:
INT 21
INT 14
INT 10
INT 08

In case of COM file, maximum length of parameters passed through command line can be ___
Select correct option:
63 bytes
127 bytes
255 bytes
511 bytes

In case of COM file, first command line parameter is stored at ___ offset of ‘program segment prefix’
Select correct option:
0x80
0x82
0x84
0x86

The ‘program segment prefix’ is used to store:
Select correct option:
DOS information
Command tail
DOS information and Command tail
None of the given options

The INT 0x13 service 0x03 is use to
Select correct option:
Read disk sector
Write disk sector
Reset disk sector
Get drive parameter

On executing INT 0x21–service 0x3D, if file can’t be opened then
Select correct option:
CF will contain 1
CF will contain 0
ZF will contain 1
ZF will contain 0

Operating system Organize data in the form of
Select correct option:
Folder
Batch file
File
None of the above

We can access all the DOS services using
Select correct option:
INT 0x21
INT 0x13
INT 0x10
INT 0x08

In 9pin DB 9 connector, which pin is assigned to RD (Received Data) ?
Select correct option:
1
2
3
4
Device drivers can be divided into ___ major categories:
Select correct option:
5
4
3
2

The higher 16-bits of EAX register are labeled as:
Select correct option:
AX
EAH
AH
None of the given options

 

Question # 1
Which of the following is used to terminate a string in assembly language?
Select correct option:
!
#
$
;

Question # 2
Which of the following registers are used as a DOS input buffer?
Select correct option:
DS:AX
SS:SP
DS:DX
CS:BX

Question # 3
BIOS video services are exported via interrupt
Select correct option:
INT10
INT9
INT8
INT7

Question # 4
In interrupt masking, We use ________ to get control from the program without letting the program know about it.
Select correct option:
IRQ 0
IRQ 1
IRQ 2
IRQ 3

Question # 5
In case of COM file, maximum length of parameters passed through command line can be ___
Select correct option:
63 bytes
127 bytes
255 bytes (not confirmed)
511 bytes

Question # 6
In case of COM file, first command line parameter is stored at ___ offset of ‘program segment prefix’
Select correct option:
0x80
0x82
0x84
0x86

Question # 7
In multitasking, which of the following interrupts is used as scheduler during context switching ?
Select correct option:
INT 21
INT 16
INT 13
INT 8

Question # 8
____________ is the highest priority interrupt in interrupt controller.
Select correct option:
IRQ 0
IRQ 1
IRQ 2
IRQ 3

Question # 9
Which of the following INT 21 service is used to read character from standard input?
Select correct option:
00
01
02
03

Question # 10
As compared to _________ , ___________ provides more cooked services.
Select correct option:
BIOS, DOS
DOS,OS
DOS, BIOS
OS, DOS

Question # 1 of 10 ( Start time: 06:58:57 PM ) Total Marks: 1
In 9pin DB 9 connector, which pin is assigned to TD (Transmitted Data) ?
Select correct option:
1
2

4

Question # 2 of 10 ( Start time: 06:59:32 PM ) Total Marks: 1
Hard disk MBR( Master Boot Record ) is of size
Select correct option:
446 bytes
350 bytes
512 bytes
256 bytes

Question # 3 of 10 ( Start time: 07:00:03 PM ) Total Marks: 1
In the context of video services, if we want to set the cursor at top left corner, which of the values will be stored in DH and DL respectively?
Select correct option:
00, 00
00, 80
25, 80
01,01

Question # 4 of 10 ( Start time: 07:01:40 PM ) Total Marks: 1
Which of the following service of INT 21 is used to write a string on standard output?
Select correct option:
00h
02h
09h
10h

Question # 5 of 10 ( Start time: 07:03:13 PM ) Total Marks: 1
While using INT 10 for writing graphic pixel on screen, which of the following registers hold the information about pixel color?
Select correct option:
DH
DL
AH
AL        ok

Question # 6 of 10 ( Start time: 07:04:10 PM ) Total Marks: 1
BIOS video services are broadly classified into ________ categories.
Select correct option:
1
2        ok
3
4

Question # 7 of 10 ( Start time: 07:04:35 PM ) Total Marks: 1
INT 0x13 service 0x03 is used to _________.
Select correct option:
Read disk sector
Write disk sector        ok
Reset disk sector
Get drive parameter

Question # 8 of 10 ( Start time: 07:05:43 PM ) Total Marks: 1
Which of the following services of INT 10 is used for writing the string?
Select correct option:
0x12
0x13
0x11
0x10        ok

Question # 9 of 10 ( Start time: 07:06:21 PM ) Total Marks: 1
The root directory of floppy contains _____ fixed entries.
Select correct option:
64
256
128
512

Question # 10 of 10 ( Start time: 07:07:57 PM ) Total Marks: 1
Which of the following INT 21 service is used to read character from standard input?
Select correct option:
00
01
02
03

Question # 1 of 10 ( Start time: 08:08:23 PM ) Total Marks: 1
“INT13 –BIOS disk services” generally uses which register to return the ‘error flag’ ?
Select correct option:
CF
DL
AH
AL

Question # 2 of 10 ( Start time: 08:08:50 PM ) Total Marks: 1
In the context of video services, if we want to scroll the window up which of the following will be the value of AH?
Select correct option:
AH = 05h
AH = 06h
AH = 07h
AH = 08h

Question # 3 of 10 ( Start time: 08:15:18 PM ) Total Marks: 1
In multitasking environment, which of the following structure is used to maintain the ordering of active PCBs ?
Select correct option:
Array
Register
Linked List
Stack

Question # 4 of 10 ( Start time: 08:16:05 PM ) Total Marks: 1
As compared to _________ , ___________ provides more cooked services.
Select correct option:
BIOS, DOS
DOS,OS
DOS, BIOS
OS, DOS

Question # 5 of 10 ( Start time: 08:16:22 PM ) Total Marks: 1
We can set the current file position in DOS using service number ____
Select correct option:
0x38
0x40
0x42
0x43

Question # 6 of 10 ( Start time: 08:16:54 PM ) Total Marks: 1
Which of the following registers hold the page number for using the write string service of INT 10?
Select correct option:
AH
BL
CL
BH

Question # 7 of 10 ( Start time: 08:17:23 PM ) Total Marks: 1
In 9pin DB 9 connector, which pin is assigned to RD (Received Data) ?
Select correct option:
1
2
3
4

Question # 8 of 10 ( Start time: 08:17:47 PM ) Total Marks: 1
In interrupt masking, We use ________ to get control from the program without letting the program know about it.
Select correct option:
IRQ 0
IRQ 1
IRQ 2
IRQ 3

Question # 9 of 10 ( Start time: 08:18:16 PM ) Total Marks: 1
The ‘program segment prefix’ for com files is of size:
Select correct option:
64 bytes
128 bytes
256 bytes
512 bytes

Question # 10 of 10 ( Start time: 08:19:00 PM ) Total Marks: 1
Which of the following services of INT 10 is used for writing the string?
Select correct option:
0x12
0x13
0x11
0x10

Question # 1 of 10 ( Start time: 06:22:27 PM ) Total Marks: 1
As compared to _________ , ___________ provides more cooked services.
Select correct option:
BIOS, DOS
DOS,OS
DOS, BIOS
OS, DOS

Question # 2 of 10 ( Start time: 06:22:50 PM ) Total Marks: 1
In multitasking environment, which of the following structure is used to maintain the ordering of active PCBs ?
Select correct option:
Array
Register
Linked List
Stack

Question # 3 of 10 ( Start time: 06:23:30 PM ) Total Marks: 1
Which of the following registers hold the page number for using the write string service of INT 10?
Select correct option:
AH
BL
CL
BH

Question # 4 of 10 ( Start time: 06:24:17 PM ) Total Marks: 1
Which of the following BIOS INT provides serial port services
Select correct option:
INT 21
INT 14
INT 10
INT 08

Question # 5 of 10 ( Start time: 06:24:39 PM ) Total Marks: 1
In 9pin DB 9 connector, which pin is assigned to RD (Received Data) ?
Select correct option:
1
2
3
4

Question # 6 of 10 ( Start time: 06:25:21 PM ) Total Marks: 1
The first sector on hard disk contains the
Select correct option:
Hard disk size
Partition table
Data size
Sector size

Question # 7 of 10 ( Start time: 06:26:42 PM ) Total Marks: 1
In the context of video services, if we want to set cursor position which of the following will be the value of AH?
Select correct option:
AH = 01h
AH = 02h
AH = 03h
AH = 04h

Question # 8 of 10 ( Start time: 06:27:24 PM ) Total Marks: 1
A 32-bit address register can access up to ____ of memory.
Select correct option:
2 MB
2 GB
4 MB
4 GB

Question # 9 of 10 ( Start time: 06:27:52 PM ) Total Marks: 1
Hard disk MBR( Master Boot Record ) is of size
Select correct option:
446 bytes
350 bytes
512 bytes
256 bytes

Question # 10 of 10 ( Start time: 06:28:36 PM ) Total Marks: 1
In the context of video services, if we want to write string then which of the value will be placed in AH?
Select correct option:
10h
12h
11h
13h

Question # 1 of 10 ( Start time: 07:11:33 PM ) Total Marks: 1
A FAT32 file system directory entry in DOS consist of how many bytes ?
Select correct option:
16
24
32
64

Question # 2 of 10 ( Start time: 07:12:59 PM ) Total Marks: 1
_________ byte of DOS data buffer stores the maximum characters buffer can hold.
Select correct option:
first
second
third
last

Question # 3 of 10 ( Start time: 07:14:31 PM ) Total Marks: 1
The maximum length of DOS command line parameters is
Select correct option:
64 bits
127 bits
256 bits
512 bits

Question # 4 of 10 ( Start time: 07:15:14 PM ) Total Marks: 1
The INT 0x13 service 0x08 is use to
Select correct option:
Read disk sector
Write disk sector
Reset disk sector
Get drive parameter

Question # 5 of 10 ( Start time: 07:15:56 PM ) Total Marks: 1
On executing INT 0x21 service 0x3D, if file is successfully opened then
Select correct option:
CF will contain 1
CF will contain 0
ZF will contain 1
ZF will contain 0

Question # 6 of 10 ( Start time: 07:17:17 PM ) Total Marks: 1
In interrupt masking, We use ________ to get control from the program without letting the program know about it.
Select correct option:
IRQ 0
IRQ 1
IRQ 2
IRQ 3

Question # 7 of 10 ( Start time: 07:18:37 PM ) Total Marks: 1
INT 0x13 service 0x03 is used to _________.
Select correct option:
Read disk sector
Write disk sector
Reset disk sector
Get drive parameter

Question # 8 of 10 ( Start time: 07:19:41 PM ) Total Marks: 1
COM1 is connected with
Select correct option:
IRQ2
IRQ3
IRQ4
IRQ5

Question # 9 of 10 ( Start time: 07:20:58 PM ) Total Marks: 1
In 9pin DB 9 connector, which pin is assigned to Signal Ground ?
Select correct option:
3
4
5
6

Question # 10 of 10 ( Start time: 07:21:51 PM ) Total Marks: 1
Which of the following services of INT 10 is used to get the video font information?
Select correct option:
1129h
1130h
1128h
1127h

Question # 1 of 10 ( Start time: 07:24:46 PM ) Total Marks: 1
The ‘program segment prefix’ for com files is of size:
Select correct option:
64 bytes
128 bytes
256 bytes
512 bytes

Question # 2 of 10 ( Start time: 07:26:09 PM ) Total Marks: 1
On executing INT 0x21 service 0x3D, if file is successfully opened then
Select correct option:
CF will contain 1
CF will contain 0
ZF will contain 1
ZF will contain 0

Question # 3 of 10 ( Start time: 07:26:38 PM ) Total Marks: 1
The INT 0x13 service 0x08 is use to
Select correct option:
Read disk sector
Write disk sector
Reset disk sector
Get drive parameter

Question # 4 of 10 ( Start time: 07:27:13 PM ) Total Marks: 1
In the context of video services, if we want to set cursor position which of the following will be the value of AH?
Select correct option:
AH = 01h
AH = 02h
AH = 03h
AH = 04h

Question # 5 of 10 ( Start time: 07:28:08 PM ) Total Marks: 1
BPB stands for
Select correct option:
Basic Parameter Block
Bios Precise Block
Basic Precise Block
Bios Parameter Block

Question # 6 of 10 ( Start time: 07:29:16 PM ) Total Marks: 1
Which of the following is used to terminate a string in assembly language?
Select correct option:
!
#
$
;

Question # 7 of 10 ( Start time: 07:29:47 PM ) Total Marks: 1
_________ byte of DOS data buffer stores the maximum characters buffer can hold.
Select correct option:
first
second
third
last

Question # 8 of 10 ( Start time: 07:30:43 PM ) Total Marks: 1
Device drivers can be divided into ___ major categories:
Select correct option:
5
4
3
2

Question # 9 of 10 ( Start time: 07:32:03 PM ) Total Marks: 1
On executing INT 0x21–service 0x3D, if file can’t be opened then
Select correct option:
CF will contain 1
CF will contain 0
ZF will contain 1
ZF will contain 0

Question # 10 of 10 ( Start time: 07:32:47 PM ) Total Marks: 1
In 9pin DB 9 connector, which pin is assigned to RD (Received Data) ?
Select correct option:
1
2
3
4

Question # 1 of 10 ( Start time: 07:35:17 PM ) Total Marks: 1
On executing INT 0x21 service 0x3D, if file is successfully opened then
Select correct option:
CF will contain 1
CF will contain 0
ZF will contain 1
ZF will contain 0

Question # 2 of 10 ( Start time: 07:35:50 PM ) Total Marks: 1
“INT13 –BIOS disk services” generally uses which register to return the ‘error code’ ?
Select correct option:
CF
DL
AH
AL

Question # 3 of 10 ( Start time: 07:36:54 PM ) Total Marks: 1
A FAT32 file system directory entry in DOS consist of how many bytes ?
Select correct option:
16
24
32
64

Question # 4 of 10 ( Start time: 07:37:28 PM ) Total Marks: 1
In the context of video services, if we want to set cursor position which of the following will be the value of AH?
Select correct option:
AH = 01h
AH = 02h
AH = 03h
AH = 04h

Question # 5 of 10 ( Start time: 07:38:01 PM ) Total Marks: 1
Which of the following services of INT 10 is used to write graphic pixel on the screen ?
Select correct option:
0x0A
0x0B
0x0C
0x0D

Question # 6 of 10 ( Start time: 07:39:14 PM ) Total Marks: 1
COM1 is connected with
Select correct option:
IRQ2
IRQ3
IRQ4
IRQ5

Question # 7 of 10 ( Start time: 07:39:48 PM ) Total Marks: 1
Which of the following service of INT 21 is used to write a string on standard output?
Select correct option:
00h
02h
09h
10h

Question # 8 of 10 ( Start time: 07:40:35 PM ) Total Marks: 1
As compared to _________ , ___________ provides more cooked services.
Select correct option:
BIOS, DOS
DOS,OS
DOS, BIOS
OS, DOS

Question # 9 of 10 ( Start time: 07:41:15 PM ) Total Marks: 1
We can set the current file position in DOS using service number ____
Select correct option:
0x38
0x40
0x42
0x43

Question # 10 of 10 ( Start time: 07:42:06 PM ) Total Marks: 1
In 9pin DB 9 connector, which pin is assigned to RD (Received Data) ?
Select correct option:
1
2
3
4

Question # 1 of 10 ( Start time: 07:44:02 PM ) Total Marks: 1
COM2 is connected with
Select correct option:
IRQ2
IRQ3
IRQ4
IRQ5

Question # 2 of 10 ( Start time: 07:45:41 PM ) Total Marks: 1
Hard disk MBR( Master Boot Record ) is of size
Select correct option:
446 bytes
350 bytes
512 bytes
256 bytes

Question # 3 of 10 ( Start time: 07:46:28 PM ) Total Marks: 1
In interrupt masking, We use ________ to get control from the program without letting the program know about it.
Select correct option:
IRQ 0
IRQ 1
IRQ 2
IRQ 3

Question # 4 of 10 ( Start time: 07:47:19 PM ) Total Marks: 1
As compared to _________ , ___________ provides more cooked services.
Select correct option:
BIOS, DOS
DOS,OS
DOS, BIOS
OS, DOS

Question # 5 of 10 ( Start time: 07:47:31 PM ) Total Marks: 1
Which of the following INT 21 service is used to read character from standard input?
Select correct option:
00
01
02
03

Question # 6 of 10 ( Start time: 07:48:04 PM ) Total Marks: 1
“INT13 –BIOS disk services” generally uses which register to return the ‘error code’ ?
Select correct option:
CF
DL
AH
AL

Question # 7 of 10 ( Start time: 07:48:18 PM ) Total Marks: 1
In multitasking, which of the following interrupts is used as scheduler during context switching ?
Select correct option:
INT 21
INT 16
INT 13
INT 8

Question # 8 of 10 ( Start time: 07:49:39 PM ) Total Marks: 1
In case of COM file, maximum length of parameters passed through command line can be ___
Select correct option:
63 bytes
127 bytes
255 bytes
511 bytes

Question # 9 of 10 ( Start time: 07:50:29 PM ) Total Marks: 1
Which of the following service of INT 21 is used to write a string on standard output?
Select correct option:
00h
02h
09h
10h

Question # 10 of 10 ( Start time: 07:51:32 PM ) Total Marks: 1
____________ is the highest priority interrupt in interrupt controller.
Select correct option:
IRQ 0
IRQ 1
IRQ 2
IRQ 3

 

Question # 1Instruction Pointer holds the address of the 

Previous instruction to be executed

Current instruction

 Next instruction to be executed

None of the given

 

Question # 2 Register whose each bit specify a different meaning is 

Accumulator Register

Pointer Register

Index register

 Flag register

 

Question # 3 By default CS is associated with 

SS

BP

CX

IP

 

Question # 4 Memory to Memory operation is allowed 

True

False

 

Question # 5 Size Mismatch Error is a syntax error 

False

True

 

Question # 6 unconditional jump can be  

near

short

far

 all of the given

 

Question # 7 Register are storage cell

Outside the processor

Both inside and outside the processor

 Inside the processor

None of the given

 

Question # 8 Register to Register Operation is not allowed 

True

False

 

Q9. The operation of CMP is to subtract source from destination

True

False

 

Q10.Size Mismatch Error is a syntax error

False

True

 Q11.Unconditional jump

Execute in every condition whether true or false

If the condition is true

If the condition is false

None of the given

 

Q12.Which type of Rotation it is “Every bit moves one position to the right and the bit dropped from the right is inserted at the eft. This bit is also copied into the carry flag.

ROL

RCR

RCL

None of the given

 

Q13.Assembly language is not a low level language.

True

False

 

Q14.In JA jump is not taken after a CMP if the unsigned destination is larger than the unsigned source.

True

False

 

Q15.Group of bits processor uses to inform memory which element to read/write is collectively known as

Control bus

Data bus

Address bus

RAM

 

Q16.Memory to Memory operation is allowed

True

False

 

Q17.90 is the op-code of

Do nothing

Add

Subtract

Multiplication

 

Q18.we cannot add two base register i.e. (bx+bp) or can’t use in an instruction

True

False

 

Q19.Intel follow

Littel endian

Big endian

Both littel endian and big endian

None of the given

 

Q20.SHL and SAL are same

True

False

 Q21.The first 16-bit processor produced by “Intel” was 8085

True

False

 

Q22.The first 16-bit processor produced by “Intel” was 8085

True

False

 

Q23.The extension of assembly language file is

.doc

.com

.lst

.asm

 

Q24.When a large number is subtracted from a smaller number, a borrow is needed; in this case which flag will be set

ZF

CF

SF

OF

 

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

Effective address

Physical address

Direct address

None of the given

 

Q26.Which type of shifting is “Inserts a zero from the left and moves every bit one position to the right and copies the rightmost bit in the carry flag.”

SHL

SAL

SAR

None of the given

 

Q27.mov [1234], ax is an example of

Direct addressing

Base register indirect

Base+index

None of the given

 

Q28.Registers are also called scratch pad ram

True

False

 

Q29.The basic function of register is to?

Hold the operand

Hold the operator

Hold both the operator and operand

None of the given

 

Q30.The jump is taken if the last arithmetic operation changed the sign unexpectedly.

JO

JNO

JNZ

JZ

 

Q31.In JA jump is not taken after a CMP if the unsigned destination is larger than the unsigned source.

True

False

 

Q32.which type of rotation it is “The carry flag is inserted from the left, every bit moves one position to the right, and the right most bit is dropped in the carry flag. “

RCR

ROL

RCL

ROR

 

Q33.which type of rotation it is “The carry flag is inserted from the left, every bit moves one position to the right, and the right most bit is dropped in the carry flag. “

RCR

ROL

RCL

ROR

 

Q34.This jump is taken if the last arithmetic operation produced a number in its destination that has even parity, which jump is taken

JP

JPE

JNP

Both JP and JPE

 

Q35.In direct addressing the memory address given in the instruction is

When a large number is subtracted from a smaller number, a borrow is needed; in this case which flag will be set

ZF

CF

SF

OF

 

Q36.SHL and SAL are same

True

False

 

Q37.we cannot Subtract index register from the base register ( bx-si )in assembly language  vuzs

True

False

 

Q38.Group of bits processor uses to inform memory which element to read/write is collectively known as

Control bus

Data bus

Address bus

RAM

 

Q39.The execution of the instruction “mov word [ES: 160], 0x1230” will print a character on the screen at:
First column of second row
Second column of first row
Second column of second row
First column of third row

Q40.Which type of shif operation it is “The zero bit is inserted from the right and every bit moves one position to its left with the most significant bit dropping into the carry flag”
shl
sal
sar
both shl and sal

Q41.In XOR operation the output is 1 if
both inputs are same
both inputs are different
I and II
none of the above

·  Permalink Reply by ++”(نور -ا- ایمان بی بی زینب)”++ 7 hours ago

Q42.Far jump is position relative.
true
false

Q43.After the execution of STOSWB, the CX will be:
Incremented by 1
Decremented by 1
Incremented by 2
Decremented by 2

Q44.In And the output only one if
Both inputs are 0
One is 0 and other is 1
Both are 1
None of the given

Q45.transfers the word at the current top of stack (pointed to by SP) to the destination operand and then increments SP by two to point to the new top of stack.
push
pop
call
none of given

Q46.When the operand of DIV instruction is of 16-bits then implied dividend will be stored in
AX register
The concatenation of DX and AX
The concatenation of ES and AX
The concatenation of DS and BX

Q47.In near jump we jump anywhere within a segment.
True
false

Q48.In string instructions, the mode is called auto-increment mode when:
CX is set
ZF is cleared
DF is set
DF is cleared

 

Q49.How many characters standard ASCII has?

512
256
128
64

 

Q50.Which of the following is the pair of register used to access memory in string instructions?
DI and BP
SI and BP
DI and SI
DS and SI

Q51.RET do not pops the word at the top of the stack (pointed to by register SP) into the instruction pointer but increments SP by two.
true
false

Q52.The operations of placing items on the stack and removing them from there are called push and ret.
true
false

Q53.In a video memory, each screen location corresponds to:
8 byte
4 byte
2 byte
1 byte

Q54.The Operation of Push is if “we push ax” then SP<– SP+2 [SP]<– AX
true
false

Q55.The purpose of MOVS instruction is:
Move register to register
Move register to a memory location
Move a memory location to register
Move memory to memory

Q56.When the operand of DIV instruction is of 16 bits then implied dividend will be of
32 bit
64 bit
16 bit
8 bit

Q57.Parameters clears from the stack by the
caller
callee
caller and callee
none of given

·  Permalink Reply by ++”(نور -ا- ایمان بی بی زینب)”++ 7 hours ago

Question No: 1 SP is associated with…………. By default

► SS page 26

► DS

► CS

► ES

Question No: 2 Which bit of the attributes byte represents the red component of foreground

color

► 5

► 4

► 3

► 2 page73

Question No: 3 An 8 x 16 font is stored in ______________ bytes.

► 2

► 4

► 8

► 16 page142

Question No: 4 In DOS input buffer, the number of characters actually read on return is stored in ___________ byte.

► third

► fourth

► first

► second page 144

Question No: 5 Which of the following gives the more logical view of the storage medium

► BIOS

► DOS 153page

► Both

► None

Question No: 6 In STOSW instructions, when DF is clear, SI is

► Incremented by 1

► Incremented by 2

► Decremented by 1

► Decremented by 2

Question No: 7 Which of the following interrupts is Non makeable interrupt

► INT 2 PAGE 97

► INT 3

► INT 0

► INT 1

Question No: 8 Which of the following IRQs is connected to serial port COM 2?

► IRQ 0

► IRQ 1

► IRQ 2

► IRQ 3 PAGE 106

Question No: 9 The time interval between two timer ticks is ?

► 40ms

► 45ms

► 50ms

► 55ms PAGE 114

Question No: 10The physical address of IDT( Interrupt Descriptor Table) is stored in _______

► GDTR

► IDTR PAGE 174

► IVT

Question No: 11 In NASM an imported symbol is declared with the ………………………. while

and exported symbol is declared with the ……………………….

► Global directive, External directive

► External directive, Global directive PAGE 181

► Home Directive, Foreign Directive

► Foreign Directive, Home Directive

Question No: 12 In 68K processors there is a 32bit …………………. that holds the address of

currently executing instruction

► Program counter PAGE 184

► Stack pointer

► Register

► Stack

Question No: 13 Single step interrupt is

► Hardware interrupt

► Like divide by zero interrupt

► Like divide by 1 interrupt

► Software interrupt

Question No: 14 Which of the following is NOT true about registers:

► Their operation is very much like memory

► Intermediate results may also be stored in registers

► They are also called scratch pad ram

► None of given options

Question No: 15 Types of jump are:

► Short, near

► short, near, far PAGE 37

► Near, far

► short, far

Question No: 16 MS DOS uses ____ display mode.

► Character based page 72

► Graphics based

► Numeric based

► Console based

Question No: 17 Which of the following IRQs is derived by a timer device?

► IRQ 0 page 106

► IRQ 1

► IRQ 2

► IRQ 3

Question No: 18 In programmable interrupt controller, which of the following ports is referred

as a control port.

► 19

► 20 page 107

► 21

► 22

Question No: 19 INT 21 service 01H is used to read character from standard input with echo. It returns the result in ______ register.

► AL page 144

► BL

► CL

► BH

Question No: 20 In 9pin DB 9, which pin number is assigned to DSR (Dataset Ready) ?

► 4

► 5

► 6 page 146

► 7

Question No:21 In 9pin DB 9, which pin number is assigned to TD (Transmitted Data) ?

► 1

► 2

► 3 page 146

► 4

Question No: 22 In 9pin DB 9, Signal ground is assigned on pin number

► 4

► 5 page 146

► 6

► 3

Question No: 23 8088 is a………………………

► 16 bit processor page 6

► 32 bit processor

► 64 bit processor

► 128 bit processor

Question No: 24The table index (TI) is set to _____ to access the GDT (Global Descriptor

Table).

► 1

► 0 page 168

► -1

► -2

Question No: 25 VESA (Video Electronics Standards Association) organizes 16 color bits for every pixel in

► 5:5:5 formats

► 5:6:5 format page 172

► 6:5:6 formats

► 5:6:7 formats

Question No: 26 Which flags are NOT used for mathematical operations ?

► Carry, Interrupt and Trap flag.

► Direction, Interrupt and Trap flag. Page 126

► Direction, Overflow and Trap flag.

► Direction, Interrupt and Sign flag.

Question No: 27 Suppose AL contains 5 decimal then after two left shifts produces the value as

► 5

► 10

► 15

► 20

Question No: 28 In graphics mode a location in video memory corresponds to a _____________ on the screen.

► Line

► Dot page 142

► Circle

► Rectangle

Question No: 29 Creation of threads can be

► Static

► Dynamic page 133

► Easy

► difficult

Question No: 30 The thread registration code initializes the PCB and adds it to the linked list so that they __________ will give it a turn.

► Assembler

► Scheduler page 133

► Linker

► Debugger

Question No:31 VESA VBE 2.0 is a standard for

► High resolution Mode page 172

► Low resolution Mode

► Medium resolution Mode

► Very High resolution Mode

Question No: 32 Which of the following IRQs is derived by a key board?

► IRQ 0

► IRQ 1 page106

► IRQ 2

► IRQ 3

Question No: 33 Which of the following IRQs is used for Floppy disk drive?

► IRQ 4

► IRQ 5

► IRQ 6 page 106

► IRQ 7

Question No: 34 Which of the following pins of a parallel port connector are grounded?

► 10-18

► 18-25 117page

► 25-32

► 32-39

Question No: 35The physical address of IDT( Interrupt Descriptor Table) is stored in _______

► GDTR

► IDTR 174page

► IVT

► IDTT

Question No: 36In NASM an imported symbol is declared with the ………………………. while and exported symbol is declared with the……………………….

► Global directive, External directive

► External directive, Global directive 181pages

► Home Directive, Foreign Directive

► Foreign Directive, Home Directive

Question No: 37 In 68K processors there is a …………………… program counter (PC) that holds the address of currently executing instruction

► 16bit

► 32bit 183page

► 64bit

Question No: 38 To reserve 8-bits in memory ___ directive is used.

► db 17page

► dw

► dn

► dd

For single byte we use db and for two bytes we use dw.

Question No: 39In the “mov ax, 5” 5 is the __________ operand.

► source

► destination Page 18

► memory

► register

Question No: 40RETF will pop the segment address in the

► CS register page 61

► DS register

► SS register

► ES register

Question No: 41For the execution of the instruction “DIV BL”, the implied dividend will be stored in

► AX

► BX

► CX

► DX

Question No: 42When a number is divided by zero”A Division by 0” interrupt is generated. Which instruction is used for this purpose

► INT 0

► INT 1

► INT 2

► This interrupt is generated automatically

Question No: 43 INT 21 service 01H is used to read character from standard input with echo. It returns the result in ______ register.

► AL

► BL

► CL

► BH

Question No: 44 BIOS sees the disks as

► Logical storage

► Raw storage page 148

► In the form of sectors only

► In the form of tracks only

Question No: 45 In 9pin DB 9, which pin number is assigned to CD (Carrier Detect)?

► 1

► 2

► 3

► 4

Question No: 46In 9pin DB 9, Signal ground is assigned on pin number

► 4

► 5

► 6

► 3

Question No: 47In 9pin DB 9, RI (Ring Indicator) is assigned on pin number

► 6

► 7

► 8

► 9

Question No: 48Motorola 68K processors have ………………….. 23bit general purpose registers.

► 4

► 8

► 16

► 32

Question No: 49When two devices in the system want to use the same IRQ line then what will happen?

► An IRQ Collision

► An IRQ Conflict 106page

► An IRQ Crash

► An IRQ Blockage

Question No: 50In the instruction MOV AX, 5 the number of operands are

► 1

► 2

► 3

► 4

Question No: 51 Which flags are NOT used for mathematical operations?

► Carry, Interrupt and Trap flag.

► Direction, Interrupt and Trap flag. 125page

► Direction, Overflow and Trap flag.

► Direction, Interrupt and Sign flag.

Question No: 52Suppose AL contains 5 decimal then after two left shifts produces the value as

► 5

► 10

► 15

► 20

Question No: 54 Which of the following IRQs is derived by a key board?

► IRQ 0

► IRQ 1 106PAGE

► IRQ 2

► IRQ 3

Question No: 55 In the “mov ax, 5” 5 is the __________ operand.

► Source 16page

► Destination

► Memory

► Register

Question No: 56 RETF will pop the segment address in the

► CS register

► DS register

► SS register

► ES register

Question No: 57 For the execution of the instruction “DIV BL”, the implied dividend will be stored in

► AX

► BX

► CX

► DX

Question No: 58 INT 21 service 01H is used to read character from standard input with echo. It returns the result in ______ register.

► AL

► BL

► CL

► BH

Question No: 59 In 9pin DB 9, which pin number is assigned to CD (Carrier Detect)?

► 1 104page

► 2

► 3

► 4

Question No: 60 In 9pin DB 9, Signal ground is assigned on pin number

► 4

► 5 104page

► 6

► 3

Question No: 61 In 9pin DB 9, RI (Ring Indicator) is assigned on pin number

► 6

► 7

► 8

► 9 104page

Question No: 62 Motorola 68K processors have………………….. 23bit general purpose registers.

► 4

► 8

► 16 183page

► 32

Question No: 63In the instruction MOV AX, 5 the number of operands are

► 1

► 2

► 3

► 4

·  Permalink Reply by ++”(نور -ا- ایمان بی بی زینب)”++ 7 hours ago

Question No: 64 Which of the following is not true about registers:

· Their operation is very much like memory

· Intermediate results may also be stored in registers.

· They are also called scratch pad ram

· None of given options.

Question No: 65 move [bp], al moves the one byte content of the AL register to the

address contained in BP register in the current

· Stack segment 27page

· Code segment

· Data segment

· Extra segment

Question No: 66 In a rotate through carry right (RCR) instruction applied on a 16 bit word

effectively there is

· 16 bits rotation

· 1 bit rotation

· 17 bits rotation 45page

· 8 bits rotation

Question No: 67 The 8088 stack works on

· Word sized elements 60page

· Byte sized elements

· Double sized element

· Nibble sized element

Question No: 68 An 8 x 16 font is stored in ______________ bytes.

· 2

· 4

· 8

· 16 142page

Question No: 69 INT 10 is used for __________ services.

· RAM

· Disk

· BIOS video 141PAGE

· DOS video

Question No: 70 Priority of IRQ 0 interrupt is

· medium

· high

· highest 106PAGE

· low

Question No: 71 Threads can have function calls, parameters and __________ variables.

· global

· local 133PAGE

· legal

· illegal

Question No: 72 How many prevalent calling conventions do exist

· 1

· 2 180PAGE

· 3

· 4

Two prevalent calling conventions are the C calling convention and the Pascal calling convention

Question No: 73 In 9pin DB 9 DSR is assigned on pin number

· 4

· 5

· 6 164PAGE

· 7

Question No: 74 In 9pin DB 9 CTS is assigned on pin number

· 6

· 7

· 8 164PAGE

· 9

Question No: 75 In 9pin DB 9 CD is assigned on pin number

· 1 164PAGE

· 2

· 3

· 4

Question No: 76 In 9pin DB 9 RD is assigned on pin number

· 1

· 2 164PAGE

· 3

· 4

Question No: 77 in device attribute word which of the following bit decides whether it is a

character device or a block device

· Bit 12

· Bit 13

· Bit 14

· Bit 15 158PAGE

Question No: 78 Video services are classified into __________ broad categories

· 2 141PAGE

· 3

· 4

· 5

Question No: 79 In STOSB instruction, when DF is clear, SI is

· Incremented by 1

· Incremented by 2

· Decremented by 1

· Decremented by 2

Question No: 80The process of sending signals back and forth is called

· Activity

· Hand-shaking

· Interruption

· Time clicking

Question No: 81 Which of the following interrupts is used for Arithmetic overflow

· INT 1

· INT 2

· INT 3

· INT 4 98page

Question No:82 which of the following is a special type of interrupt that returns to the same instruction instead of the next instruction

· Divide overflow interrupt 99page

· Debug interrupt

· Arithmetic overflow interrupt

· Change of sign interrupt

Question No: 83 Which of the following IRQs is derived by a timer device?

· IRQ 0 106page

· IRQ 1

· IRQ 2

· IRQ 3

Question No: 84 Which of the following IRQs is connected to serial port COM 2?

· IRQ 0

· IRQ 1

· IRQ 2

· IRQ 3 106page

Question No: 85 An End of Interrupt (EOI) signal is sent by

· Handler

· Processor

· IRQ

· PIC 106page

Question No: 86 The source registers in OUT is

· AL or AX 107page

· BL or BX

· CL or CX

· DL or DX

Question No: 87 In programmable interrupt controller which of the following ports is used

for selectively enabling or disabling interrupts

· 19

· 20

· 21 107page

· 22

Question No: 88 The number of pins in a parallel port connector are?

· 20

· 25 117page

· 30

· 35

Question No: 89 Suppose a decimal number 35 when its binary is shifted to write two

places the new number will become

· 35

· 70

· 140

· 17

Question No: 90 A 32bit address register can access up to…………………….. of memory so

Memory access has increased a lot.

· 2GB

· 4GB 168page

· 6GB

· 8GB

Question No: 91 The physical address of the stack is obtained by

► SS:SI combination

► SS:SP combination

► ES:BP combination

► ES:SP combination

Question No: 92 Value of AH in the write Graphics pixel service is

► 0Ch

► 0Bh

► 1Ch

► 2Ch

Question No: 93 Threads can have function calls, parameters and __________ variables.

► Global

► Local

► Legal

► Illegal

Question No: 94Creation of threads can be

► Static

► Dynamic

► Easy

► Difficult

Question No: 95 How many prevalent calling conventions do exist

► 1

► 2

► 3

► 4

Question No: 96 VESA VBE 2.0 is a standard for

► High resolution Mode

► Low resolution Mode

► Medium resolution Mode

► Very High resolution Mode

Question No: 97 The serial port connection is a —————— connector

► 9pin DB 9

► 8pin DB 9

► 3pin DB 9

► 9pin DB 5

Question No: 98 Which of the following gives the more logical view of the storage medium

► BIOS

► DOS

► Both

► None

Question No: 99 In STOSB instructions, when DF is clear, SI is

► Incremented by 1

► Incremented by 2

► Decremented by 1

► Decremented by 2

Question No: 100 After the execution of STOSW the CX will be

► Decremented by 1

► Decremented by 2

► Incremented by 1

► Incremented by 2

Question No: 101 IRQ is referred to

► Eight input signals

► One output signal

► One input signals

► Eight output signals

Question No: 102 Which of the following IRQs is derived by a key board?

► IRQ 0

► IRQ 1

► IRQ 2

► IRQ 3

Question No: 103 Which of the following IRQs is connected to serial port COM 1?

► IRQ 4

► IRQ 5

► IRQ 6

► IRQ 7

Question No: 104 The physical address of IDT (Interrupt Descriptor Table) is stored in _______

► GDTR

► IDTR

► IVT

► IDTT

Question No: 105Assembly language is:

► Low-level programming language

► High-level programming language

► Also known as machine language

► Not considered closer to the computer

Question No: 106 The number of bits required to access 1MB of memory are

► 16 bits

► 32 bits

► Depends on the processor architecture

► 20 bits

Question No: 107 In STOSB instructions, SI is decremented or incremented by

► 3

► 2

► 1

► 4

Question No: 108 In programmable interrupt controller, which of the following ports is referred as a control port.

► 19

► 20

► 21

► 22

Question No: 109 INT 21 service 01H is used to read character from standard input with echo. It returns the result in ______ register.

► AL

► BL

► CL

► BH

Question No: 110 In device attribute word, which of the following bit decides whether it is a character device or a block device

► Bit 12

► Bit 13

► Bit 14

► Bit 15

Question No: 111 In 9pin DB 9, which pin number is assigned to CTS (Clear To Send)?

► 6

► 7

► 8

► 9

Question No: 112 In 9pin DB 9, which pin number is assigned to RD (Received Data)?

► 1

► 2

► 3

► 4

Question No: 114 Motorola 68K processors have………………….. 23bit general purpose registers.

► 4

► 8

► 16

► 32

Question No: 115 Programmable Interrupt Controller (PIC) has

► One input signals and eight output signals

► One input signal and one output signal

► Eight input signals and one output signals

► Eight input signals and eight output signals

Question No: 116 Video services are classified into…………………. broad categories.

► 5

► 4

► 3

► 2

·  Permalink Reply by ++”(نور -ا- ایمان بی بی زینب)”++ 7 hours ago

Question # 2

Instruction Pointer holds the address of the 

Previous instruction to be executed

Current instruction

 Next instruction to be executed

None of the given

 

 

Question # 3 of 10

Register whose each bit specify a different meaning is 

Accumulator Register                                               vuzs

Pointer Register

Index register

 Flag register

 

 

Question # 4 of 10

Bydefault CS is associated with 

SS

BP

CX

IP

 

Question # 5 of 10

Memory to Memory operation is allowed 

True

False

 

 

Question # 6 of 10

Size Mismatch Error is a syntax error 

False

True

 

Question # 7 of 10

unconditional jump can be  

near

short

far

 all of the given

 

Question # 8 of 10

Register are storage cell

Outside the processor

Both inside and outside the processor

 Inside the processor

None of the given

 

 

Question # 9 of 10

Register to Register Operation is not allowed 

True

False

 

The operation of CMP is to Subtract source from destination

True

False

 

Size Mismatch Error is a syntax error

False

True

 

Unconditional jump

Execute in every condition whether true or false

If the condition is true

If the condition is false

None of the given

 

Which type of Rotation it is “Every bit moves one position to the right and the bit dropped from the right is inserted at the eft. This bit is also copied into the carry flag.

ROL

RCR

RCL

None of the given

 

Assembly languague is not a low level language.

true

False

In JA jump is not taken after a CMP if the unsigned destination is larger than the unsigned source.

True

False

 

Group of bits processor uses to inform memory which element to read/write is collectively known as

Control bus

Data bus

Address bus

RAM

 

 

Memory to Memory operation is allowed

True

False

 

90 is the op-code of

Do nothing

Add

Subtract

Multiplication

 

we can not add two base register i.e. (bx+bp) or cant use in an instruction

True

False

 

 

Intel follow

Littel endian

Big endian

Both littel endian and big endian

None of the given

 

 

SHL and SAL are same

True

False

 

The first 16-bit processor produced by “Intel” was 8085

True

False

 

 

The first 16-bit processor produced by “Intel” was 8085

True

False

 

 

The extension of assembly languague file is

.doc

.com

.lst

.asm

 

 

When a large number is subtracted from a smaller number, a borrow is needed; in this case which flag will be set

ZF

CF

SF

OF

 

 

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

 

Effective address

Physical address

Direct address

None of the given

 

Which type of shifting is “Inserts a zero from the left and moves every bit one position to the right and copies the rightmost bit in the carry flag.”

SHL

SAL

SAR

None of the given

 

mov [1234],ax is an example of

Direct addressing

Base register indirect

Base+index

None of the given

 

 

Registers are also called scratch pad ram

True

False

 

 

The basic function of register is to?

Hold the operand

Hold the operator

Hold both the operator and operand

None of the given

 

 

The jump is taken if the last arithmetic operation changed the sign unexpectedly.

JO

JNO

JNZ

JZ

 

 

In JA jump is not taken after a CMP if the unsigned destination is larger than the unsigned source.

True

False

 

which type of rotation it is “The carry flag is inserted from the left, every bit moves one position to the right, and the right most bit is dropped in the carry flag. “

RCR

ROL

RCL

ROR

 

 

which type of rotation it is “The carry flag is inserted from the left, every bit moves one position to the right, and the right most bit is dropped in the carry flag. “

RCR

ROL

RCL

ROR

 

 

This jump is taken if the last arithmetic operation produced a number in its destination that has even parity , Which jump is taken

JP

JPE

JNP

both JP and JPE

 

In direct addressing the memory address given in the instruction is

 

When a large number is subtracted from a smaller number, a borrow is needed; in this case which flag will be set

ZF

CF

SF

OF

 

SHL and SAL are same

True

False

 

we can not Subrtace index register from the base register( bx-si )in assemlby language   vuzs

True

False

 

Group of bits processor uses to inform memory which element to read/write is collectively known as

Control bus

Data bus

Address bus

RAM

some question from my today’s quiz of CS401 are:

Which of the following IRQs is derived by a keyboard?

IRQ 0

IRQ 1

IRQ 2

IRQ 3

Which of the following is the highest priority interrupt?

INT 3

INT 2

INT 1

INT 0

The input frequency of the Programmable Interval Timer (PIT) is.

fixed

depends on processor clock

variable

depends on hardware attached

IRQ is referred to:

Eight input signals

One output signal

Eight output signals

one input signal

The space where all the registers of a task are stored is called the:

control block

process control block

 

Question # 1
Which of the following is used to terminate a string in assembly language?
Select correct option:
!
#
$
;

Question # 2
Which of the following registers are used as a DOS input buffer?
Select correct option:
DS:AX
SS:SP
DS:DX
CS:BX

Question # 3
BIOS video services are exported via interrupt
Select correct option:
INT10
INT9
INT8
INT7

Question # 4
In interrupt masking, We use ________ to get control from the program without letting the program know about it.
Select correct option:
IRQ 0
IRQ 1
IRQ 2
IRQ 3

Question # 5
In case of COM file, maximum length of parameters passed through command line can be ___
Select correct option:
63 bytes
127 bytes
255 bytes (not confirmed)
511 bytes

Question # 6
In case of COM file, first command line parameter is stored at ___ offset of ‘program segment prefix’
Select correct option:
0x80
0x82
0x84
0x86

Question # 7
In multitasking, which of the following interrupts is used as scheduler during context switching ?
Select correct option:
INT 21
INT 16
INT 13
INT 8

Question # 8
____________ is the highest priority interrupt in interrupt controller.
Select correct option:
IRQ 0
IRQ 1
IRQ 2
IRQ 3

Question # 9
Which of the following INT 21 service is used to read character from standard input?
Select correct option:
00
01
02
03

Question # 10
As compared to _________ , ___________ provides more cooked services.
Select correct option:
BIOS, DOS
DOS,OS
DOS, BIOS
OS, DOS

Question # 1 of 10 ( Start time: 06:58:57 PM ) Total Marks: 1
In 9pin DB 9 connector, which pin is assigned to TD (Transmitted Data) ?
Select correct option:
1
2

4

Question # 2 of 10 ( Start time: 06:59:32 PM ) Total Marks: 1
Hard disk MBR( Master Boot Record ) is of size
Select correct option:
446 bytes
350 bytes
512 bytes
256 bytes

Question # 3 of 10 ( Start time: 07:00:03 PM ) Total Marks: 1
In the context of video services, if we want to set the cursor at top left corner, which of the values will be stored in DH and DL respectively?
Select correct option:
00, 00
00, 80
25, 80
01,01

Question # 4 of 10 ( Start time: 07:01:40 PM ) Total Marks: 1
Which of the following service of INT 21 is used to write a string on standard output?
Select correct option:
00h
02h
09h
10h

Question # 5 of 10 ( Start time: 07:03:13 PM ) Total Marks: 1
While using INT 10 for writing graphic pixel on screen, which of the following registers hold the information about pixel color?
Select correct option:
DH
DL
AH
AL        ok

Question # 6 of 10 ( Start time: 07:04:10 PM ) Total Marks: 1
BIOS video services are broadly classified into ________ categories.
Select correct option:
1
2        ok
3
4

Question # 7 of 10 ( Start time: 07:04:35 PM ) Total Marks: 1
INT 0x13 service 0x03 is used to _________.
Select correct option:
Read disk sector
Write disk sector        ok
Reset disk sector
Get drive parameter

Question # 8 of 10 ( Start time: 07:05:43 PM ) Total Marks: 1
Which of the following services of INT 10 is used for writing the string?
Select correct option:
0x12
0x13
0x11
0x10        ok

Question # 9 of 10 ( Start time: 07:06:21 PM ) Total Marks: 1
The root directory of floppy contains _____ fixed entries.
Select correct option:
64
256
128
512

Question # 10 of 10 ( Start time: 07:07:57 PM ) Total Marks: 1
Which of the following INT 21 service is used to read character from standard input?
Select correct option:
00
01
02
03

Question # 1 of 10 ( Start time: 08:08:23 PM ) Total Marks: 1
“INT13 –BIOS disk services” generally uses which register to return the ‘error flag’ ?
Select correct option:
CF
DL
AH
AL

Question # 2 of 10 ( Start time: 08:08:50 PM ) Total Marks: 1
In the context of video services, if we want to scroll the window up which of the following will be the value of AH?
Select correct option:
AH = 05h
AH = 06h
AH = 07h
AH = 08h

Question # 3 of 10 ( Start time: 08:15:18 PM ) Total Marks: 1
In multitasking environment, which of the following structure is used to maintain the ordering of active PCBs ?
Select correct option:
Array
Register
Linked List
Stack

Question # 4 of 10 ( Start time: 08:16:05 PM ) Total Marks: 1
As compared to _________ , ___________ provides more cooked services.
Select correct option:
BIOS, DOS
DOS,OS
DOS, BIOS
OS, DOS

Question # 5 of 10 ( Start time: 08:16:22 PM ) Total Marks: 1
We can set the current file position in DOS using service number ____
Select correct option:
0x38
0x40
0x42
0x43

Question # 6 of 10 ( Start time: 08:16:54 PM ) Total Marks: 1
Which of the following registers hold the page number for using the write string service of INT 10?
Select correct option:
AH
BL
CL
BH

Question # 7 of 10 ( Start time: 08:17:23 PM ) Total Marks: 1
In 9pin DB 9 connector, which pin is assigned to RD (Received Data) ?
Select correct option:
1
2
3
4

Question # 8 of 10 ( Start time: 08:17:47 PM ) Total Marks: 1
In interrupt masking, We use ________ to get control from the program without letting the program know about it.
Select correct option:
IRQ 0
IRQ 1
IRQ 2
IRQ 3

Question # 9 of 10 ( Start time: 08:18:16 PM ) Total Marks: 1
The ‘program segment prefix’ for com files is of size:
Select correct option:
64 bytes
128 bytes
256 bytes
512 bytes

Question # 10 of 10 ( Start time: 08:19:00 PM ) Total Marks: 1
Which of the following services of INT 10 is used for writing the string?
Select correct option:
0x12
0x13
0x11
0x10

Question # 1 of 10 ( Start time: 06:22:27 PM ) Total Marks: 1
As compared to _________ , ___________ provides more cooked services.
Select correct option:
BIOS, DOS
DOS,OS
DOS, BIOS
OS, DOS

Question # 2 of 10 ( Start time: 06:22:50 PM ) Total Marks: 1
In multitasking environment, which of the following structure is used to maintain the ordering of active PCBs ?
Select correct option:
Array
Register
Linked List
Stack

Question # 3 of 10 ( Start time: 06:23:30 PM ) Total Marks: 1
Which of the following registers hold the page number for using the write string service of INT 10?
Select correct option:
AH
BL
CL
BH

Question # 4 of 10 ( Start time: 06:24:17 PM ) Total Marks: 1
Which of the following BIOS INT provides serial port services
Select correct option:
INT 21
INT 14
INT 10
INT 08

Question # 5 of 10 ( Start time: 06:24:39 PM ) Total Marks: 1
In 9pin DB 9 connector, which pin is assigned to RD (Received Data) ?
Select correct option:
1
2
3
4

Question # 6 of 10 ( Start time: 06:25:21 PM ) Total Marks: 1
The first sector on hard disk contains the
Select correct option:
Hard disk size
Partition table
Data size
Sector size

Question # 7 of 10 ( Start time: 06:26:42 PM ) Total Marks: 1
In the context of video services, if we want to set cursor position which of the following will be the value of AH?
Select correct option:
AH = 01h
AH = 02h
AH = 03h
AH = 04h

Question # 8 of 10 ( Start time: 06:27:24 PM ) Total Marks: 1
A 32-bit address register can access up to ____ of memory.
Select correct option:
2 MB
2 GB
4 MB
4 GB

Question # 9 of 10 ( Start time: 06:27:52 PM ) Total Marks: 1
Hard disk MBR( Master Boot Record ) is of size
Select correct option:
446 bytes
350 bytes
512 bytes
256 bytes

Question # 10 of 10 ( Start time: 06:28:36 PM ) Total Marks: 1
In the context of video services, if we want to write string then which of the value will be placed in AH?
Select correct option:
10h
12h
11h
13h

Question # 1 of 10 ( Start time: 07:11:33 PM ) Total Marks: 1
A FAT32 file system directory entry in DOS consist of how many bytes ?
Select correct option:
16
24
32
64

Question # 2 of 10 ( Start time: 07:12:59 PM ) Total Marks: 1
_________ byte of DOS data buffer stores the maximum characters buffer can hold.
Select correct option:
first
second
third
last

Question # 3 of 10 ( Start time: 07:14:31 PM ) Total Marks: 1
The maximum length of DOS command line parameters is
Select correct option:
64 bits
127 bits
256 bits
512 bits

Question # 4 of 10 ( Start time: 07:15:14 PM ) Total Marks: 1
The INT 0x13 service 0x08 is use to
Select correct option:
Read disk sector
Write disk sector
Reset disk sector
Get drive parameter

Question # 5 of 10 ( Start time: 07:15:56 PM ) Total Marks: 1
On executing INT 0x21 service 0x3D, if file is successfully opened then
Select correct option:
CF will contain 1
CF will contain 0
ZF will contain 1
ZF will contain 0

Question # 6 of 10 ( Start time: 07:17:17 PM ) Total Marks: 1
In interrupt masking, We use ________ to get control from the program without letting the program know about it.
Select correct option:
IRQ 0
IRQ 1
IRQ 2
IRQ 3

Question # 7 of 10 ( Start time: 07:18:37 PM ) Total Marks: 1
INT 0x13 service 0x03 is used to _________.
Select correct option:
Read disk sector
Write disk sector
Reset disk sector
Get drive parameter

Question # 8 of 10 ( Start time: 07:19:41 PM ) Total Marks: 1
COM1 is connected with
Select correct option:
IRQ2
IRQ3
IRQ4
IRQ5

Question # 9 of 10 ( Start time: 07:20:58 PM ) Total Marks: 1
In 9pin DB 9 connector, which pin is assigned to Signal Ground ?
Select correct option:
3
4
5
6

Question # 10 of 10 ( Start time: 07:21:51 PM ) Total Marks: 1
Which of the following services of INT 10 is used to get the video font information?
Select correct option:
1129h
1130h
1128h
1127h

Question # 1 of 10 ( Start time: 07:24:46 PM ) Total Marks: 1
The ‘program segment prefix’ for com files is of size:
Select correct option:
64 bytes
128 bytes
256 bytes
512 bytes

Question # 2 of 10 ( Start time: 07:26:09 PM ) Total Marks: 1
On executing INT 0x21 service 0x3D, if file is successfully opened then
Select correct option:
CF will contain 1
CF will contain 0
ZF will contain 1
ZF will contain 0

Question # 3 of 10 ( Start time: 07:26:38 PM ) Total Marks: 1
The INT 0x13 service 0x08 is use to
Select correct option:
Read disk sector
Write disk sector
Reset disk sector
Get drive parameter

Question # 4 of 10 ( Start time: 07:27:13 PM ) Total Marks: 1
In the context of video services, if we want to set cursor position which of the following will be the value of AH?
Select correct option:
AH = 01h
AH = 02h
AH = 03h
AH = 04h

Question # 5 of 10 ( Start time: 07:28:08 PM ) Total Marks: 1
BPB stands for
Select correct option:
Basic Parameter Block
Bios Precise Block
Basic Precise Block
Bios Parameter Block

Question # 6 of 10 ( Start time: 07:29:16 PM ) Total Marks: 1
Which of the following is used to terminate a string in assembly language?
Select correct option:
!
#
$
;

Question # 7 of 10 ( Start time: 07:29:47 PM ) Total Marks: 1
_________ byte of DOS data buffer stores the maximum characters buffer can hold.
Select correct option:
first
second
third
last

Question # 8 of 10 ( Start time: 07:30:43 PM ) Total Marks: 1
Device drivers can be divided into ___ major categories:
Select correct option:
5
4
3
2

Question # 9 of 10 ( Start time: 07:32:03 PM ) Total Marks: 1
On executing INT 0x21–service 0x3D, if file can’t be opened then
Select correct option:
CF will contain 1
CF will contain 0
ZF will contain 1
ZF will contain 0

Question # 10 of 10 ( Start time: 07:32:47 PM ) Total Marks: 1
In 9pin DB 9 connector, which pin is assigned to RD (Received Data) ?
Select correct option:
1
2
3
4

Question # 1 of 10 ( Start time: 07:35:17 PM ) Total Marks: 1
On executing INT 0x21 service 0x3D, if file is successfully opened then
Select correct option:
CF will contain 1
CF will contain 0
ZF will contain 1
ZF will contain 0

Question # 2 of 10 ( Start time: 07:35:50 PM ) Total Marks: 1
“INT13 –BIOS disk services” generally uses which register to return the ‘error code’ ?
Select correct option:
CF
DL
AH
AL

Question # 3 of 10 ( Start time: 07:36:54 PM ) Total Marks: 1
A FAT32 file system directory entry in DOS consist of how many bytes ?
Select correct option:
16
24
32
64

Question # 4 of 10 ( Start time: 07:37:28 PM ) Total Marks: 1
In the context of video services, if we want to set cursor position which of the following will be the value of AH?
Select correct option:
AH = 01h
AH = 02h
AH = 03h
AH = 04h

Question # 5 of 10 ( Start time: 07:38:01 PM ) Total Marks: 1
Which of the following services of INT 10 is used to write graphic pixel on the screen ?
Select correct option:
0x0A
0x0B
0x0C
0x0D

Question # 6 of 10 ( Start time: 07:39:14 PM ) Total Marks: 1
COM1 is connected with
Select correct option:
IRQ2
IRQ3
IRQ4
IRQ5

Question # 7 of 10 ( Start time: 07:39:48 PM ) Total Marks: 1
Which of the following service of INT 21 is used to write a string on standard output?
Select correct option:
00h
02h
09h
10h

Question # 8 of 10 ( Start time: 07:40:35 PM ) Total Marks: 1
As compared to _________ , ___________ provides more cooked services.
Select correct option:
BIOS, DOS
DOS,OS
DOS, BIOS
OS, DOS

Question # 9 of 10 ( Start time: 07:41:15 PM ) Total Marks: 1
We can set the current file position in DOS using service number ____
Select correct option:
0x38
0x40
0x42
0x43

Question # 10 of 10 ( Start time: 07:42:06 PM ) Total Marks: 1
In 9pin DB 9 connector, which pin is assigned to RD (Received Data) ?
Select correct option:
1
2
3
4

Question # 1 of 10 ( Start time: 07:44:02 PM ) Total Marks: 1
COM2 is connected with
Select correct option:
IRQ2
IRQ3
IRQ4
IRQ5

Question # 2 of 10 ( Start time: 07:45:41 PM ) Total Marks: 1
Hard disk MBR( Master Boot Record ) is of size
Select correct option:
446 bytes
350 bytes
512 bytes
256 bytes

Question # 3 of 10 ( Start time: 07:46:28 PM ) Total Marks: 1
In interrupt masking, We use ________ to get control from the program without letting the program know about it.
Select correct option:
IRQ 0
IRQ 1
IRQ 2
IRQ 3

Question # 4 of 10 ( Start time: 07:47:19 PM ) Total Marks: 1
As compared to _________ , ___________ provides more cooked services.
Select correct option:
BIOS, DOS
DOS,OS
DOS, BIOS
OS, DOS

Question # 5 of 10 ( Start time: 07:47:31 PM ) Total Marks: 1
Which of the following INT 21 service is used to read character from standard input?
Select correct option:
00
01
02
03

Question # 6 of 10 ( Start time: 07:48:04 PM ) Total Marks: 1
“INT13 –BIOS disk services” generally uses which register to return the ‘error code’ ?
Select correct option:
CF
DL
AH
AL

Question # 7 of 10 ( Start time: 07:48:18 PM ) Total Marks: 1
In multitasking, which of the following interrupts is used as scheduler during context switching ?
Select correct option:
INT 21
INT 16
INT 13
INT 8

Question # 8 of 10 ( Start time: 07:49:39 PM ) Total Marks: 1
In case of COM file, maximum length of parameters passed through command line can be ___
Select correct option:
63 bytes
127 bytes
255 bytes
511 bytes

Question # 9 of 10 ( Start time: 07:50:29 PM ) Total Marks: 1
Which of the following service of INT 21 is used to write a string on standard output?
Select correct option:
00h
02h
09h
10h

Question # 10 of 10 ( Start time: 07:51:32 PM ) Total Marks: 1
____________ is the highest priority interrupt in interrupt controller.
Select correct option:
IRQ 0
IRQ 1
IRQ 2
IRQ 3

 

CS401- Computer Architecture and Assembly Language 
Quiz No.4 FEB 14, 2013
A 32-bit address register can access up to ____ of memory.
2 MB
2 GB4 MB
4 GB
Operating system Organize data in the form of
Folder
Batch fileFile
None of the above
The ‘program segment prefix’ for com files is of size:
Select correct option:
64 bytes128 bytes
256 bytes
512 bytes
COM1 is connected with
IRQ2
IRQ3IRQ4
IRQ5
“INT13 –BIOS disk services” generally uses which register to return the ‘error flag’ ?
Select correct option:CF 
DL
AH
AL
In case of COM file, first command line parameter is stored at ___ offset of ‘program segment prefix’0×80 
0×82
0×84
0×86
On executing INT 0×21 service 0x3D, if file is successfully opened then
CF will contain 1CF will contain 0 
ZF will contain 1
ZF will contain 0
Which register is generally used to specify the service number of an interrupt ?

AX
BX
CX
The lower 16-bits of EAX register are labeled as:
EAL

AL 
AH
AX
Device drivers can be divided into ___ major categories:
3
4


NoneIn programmable interrupt controller which of the following ports is referred as a
interrupt mask register?
Select correct option:
19
20

21
22Which of the following BIOS INT provides serial port services
INT 21

INT 14
INT 10
INT 08
In 9pin DB 9 connector, which pin is assigned to RD (Received Data) ?
1

2
3
4
In 9pin DB 9 connector, which pin is assigned to Signal Ground ?
3
4

5
6
Device drivers can be divided into ___ major categories:
5
4
3
2
The INT 0x13 service 0x03 is use to
Select correct option:
Get drive parameter
Reset disk sector
Write disk sector
Read disk sector
Hard disk MBR( Master Boot Record ) is of size_____.
Select correct option:

446 bytes
350 bytes
512 bytes
256 bytes
COM2 is connected with
Select correct option:
IRQ 2

IRQ 3
IRQ 4
IRQ 5
On executing INT 0x21–service 0x3D, if file can’t be opened then
Select correct option:
CF will contain 1
CF will contain 0

ZF will contain 1
ZF will contain 0“INT13 –BIOS disk services” generally uses which register to return the ‘error code’ ?
correct option:

CF
DL
AH
AL
BPB stands for
Basic parameter block
Bios precise block
Basic precise block

Bios parameter block“INT13 –BIOS disk services” generally uses which register to return the ‘error flag’ ?

CF
DL
AH
AL
The maximum length of DOS command line parameters is
64 bits

127 bits
256 bits
512 bits
Which of the following BIOS INT provides serial port services
Select correct option:
INT 21

INT 14
INT 10
INT 08
In case of COM file, maximum length of parameters passed through command line can be ___
Select correct option:
63 bytes

127 bytes
255 bytes
511 bytes
In case of COM file, first command line parameter is stored at ___ offset of ‘program segment prefix’
Select correct option:

0x80
0x82
0x84
0x86
The ‘program segment prefix’ is used to store:
Select correct option:

DOS information
Command tail
DOS information and Command tail
None of the given options
The INT 0x13 service 0x03 is use to
Select correct option:
Read disk sector

Write disk sector
Reset disk sector
Get drive parameter
On executing INT 0x21–service 0x3D, if file can’t be opened then
Select correct option:
CF will contain 1
CF will contain 0

ZF will contain 1
ZF will contain 0Operating system Organize data in the form of
Select correct option:
Folder
Batch file

File
None of the aboveWe can access all the DOS services using
Select correct option:

INT 0x21
INT 0x13
INT 0x10
INT 0x08
In 9pin DB 9 connector, which pin is assigned to RD (Received Data) ?
Select correct option:
1

2
3
4
Device drivers can be divided into ___ major categories:
Select correct option:
5
4
3
2

The higher 16-bits of EAX register are labeled as:
Select correct option:
AX
EAH
AH
None of the given options

 

  1. When an element is pushed on the stack SP is decremented by ________.

    1. 3
    2. 2
    3. 4
    4. 1
  2. The other directive is "define word" or "dw" with the same syntax as "db" but reserving a whole word of ________ bits instead of a byte.

    1. 32
    2. 8
    3. 16
    4. 64
  3. The 8088 processor divides interrupts into ________ classes.

    1. One
    2. Two
    3. Three
    4. Four
  4. Physical memory adresses is of

    1. 16 Bits
    2. 32 Bits
    3. 20 Bits
    4. 8 Bits
  5. Which of the following string instruction is generally used in a loop instead of REP prefix?

    1. SCAS
    2. LODS
    3. CMPS
    4. STOS
  6. "mov [bp], al" moves the one byte contents of the AL register to the address contained in BP register in the current ________.

    1. Stack Segment
    2. Data Segment
    3. Code Segment
    4. Extra Segment
  7. Number of operands of ADC (add with carry) register are:

    1. 1
    2. 2
    3. 3
    4. 4
  8. There are ________ registers in iAPX88 architecture that can hold address of data.

    1. 1
    2. 2
    3. 3
    4. 4
  9. In branching mechanism, the assembler

    1. Replaces the target with its address
    2. Does not replace until the test condition is satisfied
    3. Finds the Branch offset and replaces the Branch target with it
    4. Replaces the target with the value specified by the DATAWORD directive
  10. The purpose of MOVS instruction is:

    1. Move register to register
    2. Move register to a memory location
    3. Move a memory location to register
    4. Move memory to memory
  11. ASCII table is the contiguous arrangement of the upercase alphabets (41-5A), the lowercase alphabets (61-7A), and the numbers ________.

    1. 31-40
    2. 29-39
    3. 30-39
    4. 31-41
  12. In a comparison, if the both operands are same. The result of subtraction will be zero and the zero flag will be ________.

    1. Set
    2. Incremented
    3. Updated
    4. Decremented
  13. Which of the following is a non-destructive AND operation?

    1. AND
    2. XOR
    3. OR
    4. Test
  14. mov [1234], ax is an example of

    1. direct addressing
    2. base register indirect
    3. base+index addressing
    4. register indirect addressing
  15. DX plays an important role in arithmetic ________.

    1. addition
    2. multiplication
    3. division
    4. subtraction
  16. Which of the following Move generates error in .com file?

    1. Legal move
    2. Illegal move
    3. Ambiguous move
    4. Fetal move
  17. Which of the following register is used to hold address of the next instruction to be executed?

    1. Memory address register
    2. Memory data register
    3. Instruction registers
    4. Program counter
  18. ________ instruction makes the code reusable.

    1. Mov
    2. JMP
    3. CALL
    4. SHL
  19. How many characters were defined by standard ASCII?

    1. 132
    2. 124
    3. 122
    4. 128
  20. The top of stack is contained in ________ register.

    1. SP
    2. BP
    3. AX
    4. BX
  21. Sending the appropriate signals on the control bus to the memory is the responsibility of ________.

    1. Memory
    2. Processor
    3. Control Bus
    4. Data Bus
  22. The execution of the instruction "mov word [ES : 160], 0x1230" will print a character on the screen at:

    1. first column of second row
    2. second column of first row
    3. second column of second row
    4. first column of third row
  23. In ________ every bit moves one position to the right and the bit dropped from the right is inserted at the left and also copied into the carry flag?

    1. ROL
    2. RCR
    3. RCL
    4. ROR
  24. CX register is mostly used as a

    1. counter register
    2. flag register
    3. base register
    4. destination register
  25. If AX=5, BX=5, CF and ZF are set, AF and DX contains zero then after the execution of instruction "ADC AX, BX", AX will contain the value ________.

    1. 5
    2. 10
    3. 11
    4. 6
  26. MOV [BX+SI+300], AX is a ________ addressing mode instruction.

    1. Base + Index + Offset
    2. Base + Index
    3. Index Register Indirect + Offset
    4. Illegal
  27. In general, width of a memory cell cannot be greater than the width of ________.

    1. Control Bus
    2. Data Bus
    3. Address Bus
    4. I/O Bus
  28. All mathematical and logical operations are performed on the ________.

    1. Accumulator
    2. Arithmetic Logic Unit
    3. Program Counter
    4. Flag Register
  29. ________ is a special instruction that load a segment register and a general purpose register from a memory locations.

    1. SCAS
    2. MOV
    3. CALL
    4. LES
  30. Group of bits processor uses to inform memory which element to read/write is collectively known as

    1. Control bus
    2. Data bus
    3. Address bus
    4. RAM
  31. Which of the following operation is used to clear any specific bit in a binary number?

    1. AND
    2. OR
    3. XOR
    4. NOT
  32. Which part of this (00000000000 B80500) encoded instruction is an offset?

    1. First Column
    2. Second column
    3. B8
    4. 0500
  33. SCAS compares a source byte or word in register AL or AX with the ________ string element addressed by ES: DI and updates the flags.

    1. Source
    2. Destination
    3. Flag
    4. Register
  34. What does the given instruction do?
    SHR DL, 1

    1. move right most bit in carry
    2. move bit in DL
    3. Shift and store the One bit in DL
    4. Shift and store the most bit in DL
  35. ________ is set only when the last mathematical or logical operation produces a zero in its destination.

    1. Single Flag
    2. Zero flag
    3. Trap Flag
    4. Parity Flag
  36. The extention of assembly languague file is

    1. .doc
    2. .com
    3. .lst
    4. .asm
  37. Stack is a data structure that behaves in a first in last ________ manner.

    1. In
    2. Out
    3. Push
    4. Add
  38. The instruction, MOV AX, 0005H belongs to the address mode of ________ .

    1. Register
    2. Direct
    3. Immediate
    4. Register Relative
  39. This jump is taken if the last arithmethic operation produced a positive number in its destination.

    1. JNP
    2. JO
    3. JNS
    4. JG
  40. BH register is a ________ bit register.

    1. 8
    2. 16
    3. 24
    4. 32
  41. The jump command that does not depend on FLAG register is

    1. JCXZ
    2. JO
    3. JNE
    4. JP
  42. ________ is the basic means of sorting temporary data on the stack.

    1. PUSH
    2. POP
    3. CALL
    4. RET
  43. Which of the following addressing scheme has been used in the instruction MOV [BX], AX?

    1. Base Register Direct
    2. Base Register Indirect
    3. Base + Offset
    4. Base + Index
  44. ________ and ________ are taken if the last arithmetic operation produced a number in its destination that has odd parity.

    1. JP, JPE
    2. JS, JNS
    3. JCX, JNS
    4. JNP, JPO
  45. In case of 32-bit processor, the size of an accumulator register will be ________ bits.

    1. 16
    2. 8
    3. 32
    4. 64
  46. The interrupt call loads new values in ________ segment.

    1. ES
    2. DS
    3. CS
    4. SS
  47. The jump is taken if the last arithmetic operation changed the sign unexpectedly.

    1. JO
    2. JNO
    3. JNZ
    4. JZ
  48. All the addressing modes return the number after calculation, this number is known as ________ ?

    1. Base Address
    2. Offset Address
    3. Data Address
    4. Effective Address
  49. ________ is a temporary storage places inside the processor.

    1. Memory
    2. Ram
    3. Cache
    4. Register
  50. There are just ________ block processing instructions in 8088.

    1. 6
    2. 5
    3. 4
    4. 3
  51. MUL (multiply) instruction performs an unsigned multiplication of the source operand and the ________ .

    1. Accumulator
    2. Carry
    3. Word
    4. Base
  52. SP is associated with ____________ , by default.

    1. SS
    2. DS
    3. CS
    4. ES
  53. Which bit of the attributes byte represents the red component of foreground color?

    1. 5
    2. 4
    3. 3
    4. 2
  54. In STOSW instruction, when DF is clear, DI is ___________

    1. Incremented by 1
    2. Incremented by 2
    3. Decremented by 1
    4. Decremented by 2
  55. Which of the following interrupts is Non maskable interrupt?

    1. INT 2
    2. INT 3
    3. INT 0
    4. INT 1
  56. An 8 x 16 font is stored in ______________ bytes.

    1. 2
    2. 4
    3. 8
    4. 16
  57. In DOS input buffer, the number of characters actually read on return is stored in ___________ byte.

    1. 3rd
    2. 4th
    3. 1st
    4. 2nd
  58. Which of the following gives the more logical view of the storage medium?

    1. BIOS
    2. DOS
    3. Both
    4. None


 

Post a Comment

0Comments

Thanks everone

Post a Comment (0)