CS401 – Computer Architecture and Assembly Language Programming: Midterm Important MCQs (283 Solved Questions)
Computer Science • Read every solved MCQ with its verified answer key directly on this page. Free, no login required.
All 664 Midterm Packs · CS401 Course Page · CS401 Subjective Pack (38 Q&As)
-
There are __________ registers in iAPX88 architecture that can hold address of data.
Topic: Microprocessor Basics & Registers
- 1
- 2
- 3
- 4 ✓ Correct answer
-
Whenever we need access to a memory location whose address is not known until run-time we use ___________.
Topic: Microprocessor Basics & Registers
- Destination Register
- Counter Register
- Accumulator Register
- Index Register ✓ Correct answer
-
iAPX88 Architecture consists of
Topic: Microprocessor Basics & Registers
- 10 Registers
- 14 Registers ✓ Correct answer
- 16 Registers
- 32 Registers
-
Flags register is a special register in every architecture. It is also known as __________________.
Topic: Microprocessor Basics & Registers
- Carry Flag
- accumulator register
- Program Status Word ✓ Correct answer
- special register
-
All mathematical and logical operations are performed on the _________________.
Topic: Microprocessor Basics & Registers
- Accumulator ✓ Correct answer
- Arithmetic Logic Unit
- Program Counter
- Flags Register
-
In assembly the CX register is used normally as a ________________register.
Topic: Microprocessor Basics & Registers
- source
- counter ✓ Correct answer
- index
- pointer
-
386 processor is ______________ compatible with iAPX88
Topic: Microprocessor Basics & Registers
- Upward
- Downward ✓ Correct answer
- Cross
- Not
-
The IAPX88 processor supports ____________ memory addressing modes.
Topic: Microprocessor Basics & Registers
- 5
- 6
- 7 ✓ Correct answer
- 8
-
Program consists of __________ logical parts.
Topic: Microprocessor Basics & Registers
- Two ✓ Correct answer
- Three
- One
- Four
-
In assembly language, the first executable instruction of the code should be placed at offset ______________.
Topic: Microprocessor Basics & Registers
- 0000 ✓ Correct answer
- 0100
- 0010
- 1100
-
ASCII Stands for ________
Topic: Number Systems, Data Representation & ASCII
- American Standard Code for Information Interchange ✓ Correct answer
- American Scientific Code for International Interchange
- American Standard Code for Intelligence Interchange
- American Scientific Code for Information Interchange
-
What is the ASCII code for 'A'?
Topic: Number Systems, Data Representation & ASCII
- 0x41 ✓ Correct answer
- 0x40
- 0x31
- 0x30
-
How many characters were defined by standard ASCII?
Topic: Number Systems, Data Representation & ASCII
- 64
- 128 ✓ Correct answer
- 256
- 512
-
Inside the computer signed numbers are represented in ____________ complement notation.
Topic: Number Systems, Data Representation & ASCII
- two's ✓ Correct answer
- one's
- zero's
- fractional
-
In the statement "Num1: dw 5", 5 is stored in memory as (on Intel-based machines) :
Topic: Number Systems, Data Representation & ASCII
- 0005
- 0500 ✓ Correct answer
- 5
- 005
-
To convert any digit to its ASCII representation
Topic: Number Systems, Data Representation & ASCII
- Add 0x30 in the digit ✓ Correct answer
- Subtract 0x30 from the digit
- Add 0x61 in the digit
- Subtract 0x61 from the digit
-
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:
Topic: Arithmetic, Shift & Logic Instructions
- 5
- 10
- 11 ✓ Correct answer
- 12
-
If a rotate through carry right (RCR) instruction is applied on a 16 bit word, effectively there is
Topic: Arithmetic, Shift & Logic Instructions
- 16-bits rotation
- 1-bit rotation
- 17-bits rotation ✓ Correct answer
- 8-bits rotation
-
In instruction ADC the operands can be
Topic: Arithmetic, Shift & Logic Instructions
- Two registers only
- Two register and one memory location
- CF and two other operands ✓ Correct answer
- ZF and two other operands
-
For the execution of the instruction "DIV BL", the implied dividend will be stored in
Topic: Arithmetic, Shift & Logic Instructions
- AX ✓ Correct answer
- BX
- CX
- DX
-
When the operand of DIV instruction is of 16 bits then implied dividend will be of
Topic: Arithmetic, Shift & Logic Instructions
- 8 bits
- 16 bits
- 32 bits ✓ Correct answer
- 64 bits
-
When a 16 bit number is divided by 8 bit number, the quotient will be stored in
Topic: Arithmetic, Shift & Logic Instructions
- AX
- AL ✓ Correct answer
- AH
- DX
-
MUL instruction performs an unsigned multiplication of the source operand and the ______________.
Topic: Arithmetic, Shift & Logic Instructions
- accumulator ✓ Correct answer
- carry
- word at ES:DI
- base
-
If BL contains 00000101 then after a Single Right Shift, BL will contain
Topic: Arithmetic, Shift & Logic Instructions
- 00000011
- 00000010 ✓ Correct answer
- 10000011
- 10000010
-
If AL contains -15 then what will be the decimal value of AL after "SAR AL, 1" is executed
Topic: Arithmetic, Shift & Logic Instructions
- -7
- 7
- -8 ✓ Correct answer
- 8
-
By executing which of the following instruction, the value in AX register becomes double of previously stored value ?
Topic: Arithmetic, Shift & Logic Instructions
- Shl AX, 1 ✓ Correct answer
- Shr AX, 1
- NOT AX
- AND AX, 0xFFFF
-
If the decimal number "35" is shifted by two bits to left, the new value will be ___________
Topic: Arithmetic, Shift & Logic Instructions
- 35
- 70
- 140 ✓ Correct answer
- 17
-
The _____________ flag plays the role of borrow during the subtraction operation.
Topic: Arithmetic, Shift & Logic Instructions
- carry ✓ Correct answer
- parity
- sign
- zero
-
In the instruction "CMP AX,BX" the contents of
Topic: Arithmetic, Shift & Logic Instructions
- AX are changed
- BX are changed
- CX are changed
- Flags register are changed ✓ Correct answer
-
When the instruction "CMP AX,BX" executes and after execution ZF is set, it indicates that
Topic: Arithmetic, Shift & Logic Instructions
- BX is greater
- Both AX and BX are equal ✓ Correct answer
- ZF has no relation with CMP
- AX is greater
-
The operation of _______________ is to subtract the source operand from the destination operand.
Topic: Arithmetic, Shift & Logic Instructions
- ADDX
- JNC
- CMP ✓ Correct answer
- JNZ
-
The assembly instruction to put the value of AX on the stack is
Topic: Stack, Subroutines & Branching
- PUSH AX ✓ Correct answer
- Mov Stack, AX
- ADD AX
- SEND AX
-
__________ transfers the word at top of stack (pointed to by SP) to the destination operand and increments SP by two to point to the new top of stack.
Topic: Stack, Subroutines & Branching
- PUSH
- POP ✓ Correct answer
- CALL
- RET n
-
When an element is pushed on the stack, SP is decremented by __________.
Topic: Stack, Subroutines & Branching
- 3
- 2 ✓ Correct answer
- 4
- 1
-
Relating to the stack in 8088 architecture which of the following statement is true ?
Topic: Stack, Subroutines & Branching
- Single word can not be pushed on the stack
- Single word can not be popped from the stack
- Single byte can not be popped from the stack ✓ Correct answer
- Single quad can be popped from the stack
-
Which of the following is an illegal instruction ?
Topic: Stack, Subroutines & Branching
- PUSH AX
- PUSH BX
- PUSH DL ✓ Correct answer
- PUSH DX
-
Stack is a data structure that behaves in a first in last ________ manner.
Topic: Stack, Subroutines & Branching
- In
- Out ✓ Correct answer
- Push
- Add
-
Stack is:
Topic: Stack, Subroutines & Branching
- an algorithm
- a data structure ✓ Correct answer
- both algorithm and data structure
- a procedure
-
The near CALL instruction
Topic: Stack, Subroutines & Branching
- push only segment on the stack
- push only offset on the stack ✓ Correct answer
- push both segment and offset on the stack
- do not push any thing
-
Which Register(s) is/are changed during execution of the CALL instruction?
Topic: Stack, Subroutines & Branching
- IP only
- IP and SP only ✓ Correct answer
- SP only
- BP and IP only
-
When the RET instruction is executed, it recovers the value of the _______________ from the stack.
Topic: Stack, Subroutines & Branching
- Current instruction
- Previous instruction
- Accumulator register
- Instruction pointer ✓ Correct answer
-
The maximum parameters a subroutine can receive (with the help of registers) are
Topic: Stack, Subroutines & Branching
- 6
- 7 ✓ Correct answer
- 8
- 9
-
The instruction for permanent diversion in Intel 8088 is ____________.
Topic: Stack, Subroutines & Branching
- call
- ret
- jump ✓ Correct answer
- mov
-
___________ is used for temporary diversion.
Topic: Stack, Subroutines & Branching
- Call ✓ Correct answer
- Jump
- Short jump
- Return
-
When the relative address stored with the instruction is in 16-bits, the jump is called a __________ jump.
Topic: Stack, Subroutines & Branching
- Near ✓ Correct answer
- Short
- Far
- Long
-
This jump is taken if the last arithmetic operation has produced a positive number in its destination.
Topic: Stack, Subroutines & Branching
- JNP
- JO
- JNS ✓ Correct answer
- JG
-
Which combination will you prefer to obtain the physical address of the stack?
Topic: Stack, Subroutines & Branching
- SS:SI
- SS:SP ✓ Correct answer
- SP:DI
- SP:SI
-
In the primitive form, the block processing instructions operate on __________ of memory at one time.
Topic: String Instructions
- Whole block
- A single cell ✓ Correct answer
- A single bit
- Whole segment
-
In STOSB instruction, SI is decremented or incremented by
Topic: String Instructions
- 3
- 2
- 1 ✓ Correct answer
- 4
-
In STOSW instruction, SI is decremented or incremented by
Topic: String Instructions
- 1
- 2 ✓ Correct answer
- 3
- 4
-
While using STOSW, if DF=0 then
Topic: String Instructions
- The value of SI will be incremented by one
- The value of SI will be incremented by two ✓ Correct answer
- The value of SI will be decremented by one
- The value of SI will be decremented by two
-
In the execution of the instruction "REP STOSB" STOSB will repeat itself
Topic: String Instructions
- AX times
- BX times
- CX times ✓ Correct answer
- DX times
-
In string manipulation whenever an instruction needs a memory source, which of the following will hold the pointer to it?
Topic: String Instructions
- ES: DI
- ES: BP
- DS:BP
- DS:SI ✓ Correct answer
-
In string manipulation whenever an instruction needs a memory destination, which of the following will hold the pointer to it?
Topic: String Instructions
- ES: DI ✓ Correct answer
- ES: BP
- DS:BP
- DS:SI
-
CMPS instruction subtracts the source location to the destination location. Destination location always lies in
Topic: String Instructions
- DS:SI
- DS:DI
- ES:SI
- ES:DI ✓ Correct answer
-
MOVS instruction transfers a byte or word from which of the following source locations.
Topic: String Instructions
- ES:DI
- DS:DI
- ES:SI
- DS:SI ✓ Correct answer
-
Which of the following is the pair of register used to access memory in string instructions?
Topic: String Instructions
- DI and BP
- DI and SI ✓ Correct answer
- SI and BP
- DS and SI
-
REPE and REPNE prefixes are only meaningful with ______________.
Topic: String Instructions
- MOV
- LODS
- CMPS ✓ Correct answer
- STOS
-
Which of the following string instruction is generally used in a loop instead of REP prefix?
Topic: String Instructions
- SCAS
- LODS ✓ Correct answer
- CMPS
- STOS
-
Which of the following are the two variants of STOS instruction?
Topic: String Instructions
- STOSB and STOSW ✓ Correct answer
- STOS and STOSES
- STOS1 and STOS2
- STOSA and STOSB
-
Each screen location corresponds to _________ in a video memory.
Topic: Video Memory & Display
- One Byte
- Two Bytes ✓ Correct answer
- Four Bytes
- Eight Bytes
-
MS DOS uses _____ display mode.
Topic: Video Memory & Display
- Character based ✓ Correct answer
- Graphics based
- Numeric based
- Console based
-
Each screen location corresponds to a word, the lower byte of this word contains _____
Topic: Video Memory & Display
- The character code ✓ Correct answer
- The attribute byte
- The parameters
- The dimensions
-
Which of the following options contain the set of instructions to open a window to the video memory?
Topic: Video Memory & Display
- mov AX, 0xb008 / mov ES, AX
- mov AX, 0xb800 / mov ES, AX ✓ Correct answer
- mov AX, 0x8b00 / mov ES, AX
- mov AX, 0x800b / mov ES, AX
-
The execution of the instruction "mov word [ES : 160], 0x1230" will print character "0" on the screen , the color of the character "0" will be
Topic: Video Memory & Display
- White
- Red
- Green ✓ Correct answer
- Blue
-
The foreground and background color parameters are set by
Topic: Video Memory & Display
- 32 bits
- 16 bits
- 8 bits ✓ Correct answer
- 4 bits
-
Which bit of the Attribute Byte (counting from right to left, starting from 0) represents the GREEN component of background color ?
Topic: Video Memory & Display
- 6
- 3
- 4
- 5 ✓ Correct answer
-
Which bit of the attributes byte represents the red component of foreground color
Topic: Video Memory & Display
- 5
- 4
- 3
- 2 ✓ Correct answer
-
Which bit of the Attribute Byte (counting from right to left, starting from 0) represents the BLUE component of foreground color?
Topic: Video Memory & Display
- 3
- 2
- 1
- 0 ✓ Correct answer
-
The attribute byte has
Topic: Video Memory & Display
- 32 possible background colors
- 16 possible background colors
- 8 possible background colors ✓ Correct answer
- 4 possible background colors
-
The clear screen operation initializes whole block of video memory to
Topic: Video Memory & Display
- 0417
- 0741
- 0714 ✓ Correct answer
- 0174
-
The clear screen operation initializes the whole block of video memory to ____________________.
Topic: Video Memory & Display
- 0x0721
- 0x0714
- 0x0720 ✓ Correct answer
- 0x0175
-
Which of the following is true about Interrupt Flag:
Topic: Interrupts & I/O
- It tells whether processor can be interrupted from outside or not ✓ Correct answer
- It tells whether processor has interrupted or not
- It is cleared when an interrupt occurs from outside
- It is set when processor wants to generate an interrupt
-
8088 processor divides interrupts into _____ classes.
Topic: Interrupts & I/O
- 2 ✓ Correct answer
- 3
- 4
- 5
-
cli stands for?
Topic: Interrupts & I/O
- clear the interrupt flag ✓ Correct answer
- clock interrupt
- cross line instruction
- control line instruction
-
Interrupts are ________________ and ________________.
Topic: Interrupts & I/O
- asynchronous, unpredictable ✓ Correct answer
- synchronous, predictable
- synchronous, unpredictable
- asynchronous, predictable
-
In A4FB:4872 Segment:offset pair the physical address is (both segment and offset are in hexadecimal):
Topic: Memory & Segmentation
- A4FB0
- 04872
- A9822 ✓ Correct answer
- A4872
-
Memory cell width refers to ___________
Topic: Memory & Segmentation
- Number of bits in a cell ✓ Correct answer
- The maximum value that can be stored in a cell including sign-bit
- The maximum value that can be stored in a cell excluding sign-bit
- Address of that cell
-
When a very large number is divided by very small number so that the quotient is larger than the space provided, this is called
Topic: Mixed / Other Important MCQs
- Divide logical error
- Divide overflow error ✓ Correct answer
- Divide syntax error
- An illegal instruction
-
___________ can also be used as a masking operation to invert selective bits.
Topic: Microprocessor Basics & Registers
- OR
- NOT
- XOR ✓ Correct answer
- AND
-
Index registers are used to store _____________
Topic: Microprocessor Basics & Registers
- Data
- Intermediate result
- Address ✓ Correct answer
- Both data and addresses
-
There is an auto-increment mode when the ____________ is ____________.
Topic: Microprocessor Basics & Registers
- DF, set
- ZF, not set
- DF, not set ✓ Correct answer
- CX, not set
-
Which of the following is a special instruction?
Topic: Microprocessor Basics & Registers
- Cli ✓ Correct answer
- cmp ax, 0
- mov ax, bx
- add bx, 0534
-
After the execution of the JCXZ instruction, which of the following flags will be affected?
Topic: Microprocessor Basics & Registers
- CF
- OF
- DF
- None of Above ✓ Correct answer
-
Assembly language is:
Topic: Microprocessor Basics & Registers
- Low-level programming language ✓ Correct answer
- High-level programming language
- Also known as machine language
- Not considered closer to the computer
-
In ------- operation, a carry flag is inserted from the left moving every bit one position to its right. The right most bit is dropped into carry flag.
Topic: Microprocessor Basics & Registers
- Rotate through carry (RCR) ✓ Correct answer
- Rotate Left (ROL)
- Rotate through carry left (RCL)
- Rotate Right(ROR)
-
In ------- operation, the output is 1 only if both input are 1.
Topic: Microprocessor Basics & Registers
- AND ✓ Correct answer
- OR
- NOT
- XOR
-
mov ax,5 has
Topic: Microprocessor Basics & Registers
- 1 operand
- 2 opeand ✓ Correct answer
- 3 operand
- 4 opeand
-
Regarding assembler, which statement is true:
Topic: Microprocessor Basics & Registers
- Assembler converts mnemonics to the corresponding OPCODE ✓ Correct answer
- Assembler converts OPCODE to the corresponding mnemonics
- Assembler executes the assembly code all at once
- Assembler executes the assembly code step by step
-
As compared to _________ , ___________ provides more cooked services.
Topic: Microprocessor Basics & Registers
- BIOS, DOS ✓ Correct answer
- DOS,OS
- OS, DOS
- DOS, BIOS
-
Which of the following flags can be used in mathematical operations?
Topic: Microprocessor Basics & Registers
- Carry flag ✓ Correct answer
- Trap flag
- Interrupt flag
- Direction flag
-
"mov [bp], al" moves the one byte contents of the AL register to the address contained in the BP register in the current ___________.
Topic: Microprocessor Basics & Registers
- Data segment.
- Stack segment. ✓ Correct answer
- Code segment.
- Extra segment.
-
"mov [bx], ax" moves the two bytes contents of the AX register to the address contained in BX register in the current ________.
Topic: Microprocessor Basics & Registers
- Extra Segment
- Code Segment
- Data Segment ✓ Correct answer
- Stack Segment
-
90 is the op-code of
Topic: Microprocessor Basics & Registers
- Add
- Subtract
- Do nothing ✓ Correct answer
- Multiplication
-
______ register holds the address of next instruction is to be executed
Topic: Microprocessor Basics & Registers
- Base pointer
- Code segment
- Source index
- Program counter ✓ Correct answer
-
___________ cannot appear as an operand in any instruction. It is used for accessing instructions.
Topic: Microprocessor Basics & Registers
- SS
- IP ✓ Correct answer
- BH
- AH
-
________________ instruction directs the flow of program.
Topic: Microprocessor Basics & Registers
- Move
- Special
- Arithmetic
- Program Control ✓ Correct answer
-
A symbol associated to an instruction in the program is known as:
Topic: Microprocessor Basics & Registers
- Stack
- Label ✓ Correct answer
- Jump
- Subroutines
-
By default, BP is associated with _________________.
Topic: Microprocessor Basics & Registers
- CS
- SS ✓ Correct answer
- IP
- SP
-
By default, IP is associated with __________________.
Topic: Microprocessor Basics & Registers
- CS ✓ Correct answer
- BP
- CX
- SS
-
Constant can never be used as ___________.
Topic: Microprocessor Basics & Registers
- Source
- Destination ✓ Correct answer
- immediate source
- both source and destination
-
How jmp is different from jnz?
Topic: Microprocessor Basics & Registers
- jmp permanently diverts the program flow, but jnz does not
- jnz permanently diverts the program flow, but jmp does not
- jmp is a conditional jump, however jnz is an unconditional jump
- jmp is an unconditional jump, however jnz is a conditional jump ✓ Correct answer
-
IAPX88 stands for ____________________ .
Topic: Microprocessor Basics & Registers
- Intel Active Processor Extensions 88
- Intel Advanced Processor External 88
- Intel Advanced Process Extensions 88
- Intel Advanced Processor Extensions 88 ✓ Correct answer
-
If AX=00FF, then which of the following instruction can be used to change the value of AX to FF00?
Topic: Microprocessor Basics & Registers
- NOT AX ✓ Correct answer
- OR AX, AX
- XOR AX, AX
- AND AX, FF00
-
SP is associated (by default) with __________ register.
Topic: Microprocessor Basics & Registers
- ES
- SS ✓ Correct answer
- CS
- DS
-
The mechanism used to drop the carry for making the computed address valid is known as _________________.
Topic: Microprocessor Basics & Registers
- Overflow
- carry overload
- address wraparound ✓ Correct answer
- segment overlapping
-
The most convenient place to store local variables is ____________.
Topic: Microprocessor Basics & Registers
- Stack ✓ Correct answer
- Registers
- Main memory
- Cache memory
-
There are __________ block processing instructions in 8088.
Topic: Microprocessor Basics & Registers
- 6
- 4
- 5 ✓ Correct answer
- 3
-
What is the purpose of the following two instructions? MOV AX, 0XB800MOV ES, AX
Topic: Microprocessor Basics & Registers
- Pointing ES to audio base
- Pointing ES to video base
- Pointing ES to numeric base
- Pointing ES to graphics base ✓ Correct answer
-
Which of the following instructions allows code reusability in 8088?
Topic: Microprocessor Basics & Registers
- RET
- MOV
- ADD
- CALL ✓ Correct answer
-
Which of the following is not a valid instruction in assembly language?
Topic: Microprocessor Basics & Registers
- MOV AX, 55
- MOV AX, BX
- MOV CS, 0xb800 ✓ Correct answer
- MOV BX, AX
-
Which of the following is the correct syntax for ‘OR’ operation in assembly language?
Topic: Microprocessor Basics & Registers
- ax, or bx
- or ax, bx ✓ Correct answer
- ax or bx
- ax or, bx
-
Which of the following operations is used to clear any specific bit in a binary number?
Topic: Microprocessor Basics & Registers
- AND ✓ Correct answer
- XOR
- NOT
- NAND
-
Which of the following statement is used to clear the value of AX register?
Topic: Microprocessor Basics & Registers
- NOT AX
- XOR AX,0
- XOR AX, AX ✓ Correct answer
- AND AX, AX
-
Which part of B80500 (encoded instruction) is an opcode?
Topic: Microprocessor Basics & Registers
- B8 ✓ Correct answer
- B80
- 0500
- B80500
-
If we want to divide a signed number by 2, this operation can better be accomplished by
Topic: Number Systems, Data Representation & ASCII
- SHR
- SAR ✓ Correct answer
- SHL
- SAL
-
ASCII table is the contiguous arrangement of the uppercase alphabets (41-5A), the lowercase alphabets(61-7A), and the numbers ________________
Topic: Number Systems, Data Representation & ASCII
- 31-40
- 29-39
- 30-39 ✓ Correct answer
- 31-41
-
The total number of symbols in extended ASCII are _______________.
Topic: Number Systems, Data Representation & ASCII
- 64
- 128
- 156
- 256 ✓ Correct answer
-
To convert the case of a character, we add or subtract _______________ from its ASCII code.
Topic: Number Systems, Data Representation & ASCII
- 0X20 ✓ Correct answer
- 0X10
- 0X41
- 0X30
-
In which of the following addressing, both registers are not constant?
Topic: Memory, Segmentation & Addressing
- Base + Index ✓ Correct answer
- Index + offset
- Base + offset
- Base + offset + Index
-
mov ax, [num1] is an example of _____________ bit move.
Topic: Memory, Segmentation & Addressing
- 8 ✓ Correct answer
- 16
- 24
- 32
-
Only instructions allow moving data from memory to memory.
Topic: Memory, Segmentation & Addressing
- String ✓ Correct answer
- Word
- Indirect
- Stack
-
The first instruction of “COM” file must be at offset:
Topic: Memory, Segmentation & Addressing
- 0x0010
- 0x0100 ✓ Correct answer
- 0x1000
- 0x0000
-
Which of the following uses data segment by default?
Topic: Memory, Segmentation & Addressing
- Base pointer
- Base register ✓ Correct answer
- Stack pointer
- Instruction pointer
-
Execution of the instruction “mov word [ES : 0], 0x0741” will print
Topic: Memory, Segmentation & Addressing
- “A” appear on the top left of screen ✓ Correct answer
- “A” appear on the top right of screen
- “A” appear on the center of screen
- “A” appear on the bottom left of screen
-
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
Topic: Memory, Segmentation & Addressing
- 0005
- 0117 ✓ Correct answer
- Num1
- 1701
-
____________ is a special instruction that loads a general purpose register, and a segment register from two consecutive memory locations.
Topic: Memory, Segmentation & Addressing
- MOVS
- CALL
- LES ✓ Correct answer
- SCAS
-
The 'program segment prefix' for com files is of _____ size.
Topic: Memory, Segmentation & Addressing
- 64 bytes
- 512 bytes
- 256 bytes ✓ Correct answer
- 128 bytes
-
Group of bits processor uses to inform memory which element to read/write is collectively known as:
Topic: Memory, Segmentation & Addressing
- RAM
- Data bus
- Control bus
- Address bus ✓ Correct answer
-
In "Base + Offset" addressing, the value contained in the base register is added with the offset to get the ______________ address.
Topic: Memory, Segmentation & Addressing
- Virtual
- Linear
- Physical
- Effective ✓ Correct answer
-
In general, width of a memory cell cannot be greater than the width of __________.
Topic: Memory, Segmentation & Addressing
- I/O Bus
- Data bus. ✓ Correct answer
- Control Bus
- Address Bus
-
In the instruction "mov word [es:0], 0x1230", 12 refers to ______________ color on ______________ background.
Topic: Memory, Segmentation & Addressing
- black, green
- blue, green
- green, blue ✓ Correct answer
- green, black
-
In which of the following addressing, the memory address is fixed and is given in the instruction?
Topic: Memory, Segmentation & Addressing
- Direct ✓ Correct answer
- Indexed
- Indirect
- Base plus offset
-
In which of the following forms, a character is stored in memory while writing assembly language programs?
Topic: Memory, Segmentation & Addressing
- Scan code
- Parity code
- Octal code
- ASCII code ✓ Correct answer
-
Intel 8085 can access up to _________ of memory, whereas Intel 8088 can access up to _________ of memory.
Topic: Memory, Segmentation & Addressing
- 64 KB, 1 MB ✓ Correct answer
- 1 MB, 64 KB
- 64 KB, 1 GB
- 16 bits, 32 bits
-
mov [1234], ax is an example of ________________ addressing.
Topic: Memory, Segmentation & Addressing
- Direct ✓ Correct answer
- base + index
- register indirect
- base register indirect
-
num1: 75,50,77,82 Which of the following accesses the third element i.e. 77?
Topic: Memory, Segmentation & Addressing
- num1[2] ✓ Correct answer
- [num1+4]
- [num1+3]
- [num1+2]
-
Physical memory address is of:
Topic: Memory, Segmentation & Addressing
- 8 Bits
- 16 Bits
- 20 Bits ✓ Correct answer
- 32 Bits
-
Registers are storage cells ________________________.
Topic: Memory, Segmentation & Addressing
- inside the memory
- inside the processor ✓ Correct answer
- outside the processor
- both inside and outside the processor
-
Suppose, BX=0x0120, CS=0x1000, and the memory under consideration is [CS:BX+0x0880].
Topic: Memory, Segmentation & Addressing
- 109A0 ✓ Correct answer
- 10834
- 11A00
- 11100
-
Synchronization between the processor and the memory for read and write operations is done by the __________________________.
Topic: Memory, Segmentation & Addressing
- Data bus
- Cache bus
- Control bus ✓ Correct answer
- Address bus
-
The base pointer accesses local variables using ____________ offsets.
Topic: Memory, Segmentation & Addressing
- Fixed
- Positive
- Negative ✓ Correct answer
- Incremental
-
The physical memory address of 1234:5678 segment-offset pair is:
Topic: Memory, Segmentation & Addressing
- 179B8 ✓ Correct answer
- 174B8
- 179F8
- 179C8
-
What makes db different from dw?
Topic: Memory, Segmentation & Addressing
- db occupies 1 bit while dw occupies 2 bits
- db occupies 4 bits while dw occupies 8 bits
- dw occupies 8 bits and db occupies 16 bits
- dw occupies 16 bits and db occupies 8 bits ✓ Correct answer
-
What the following piece of code does? Shl word [multiplicand], 1 Rcl word [multiplicand+2], 1
Topic: Memory, Segmentation & Addressing
- Extended Shift right
- Extended Shift left ✓ Correct answer
- Rotate multiplicand and multiplicand+2
- Multiply multiplicand and multiplicand+2
-
When SI or DI are used, we name the method ________________ addressing.
Topic: Memory, Segmentation & Addressing
- Stack
- Based
- Indexed ✓ Correct answer
- Segment
-
Which of the following addressing scheme has been used in the instruction MOV [BX], AX?
Topic: Memory, Segmentation & Addressing
- Base + Index
- Base + Offset
- Base Register Direct
- Based Register Indirect ✓ Correct answer
-
Which of the following bus is used to inform the memory that whether processor wants to read data or write data?
Topic: Memory, Segmentation & Addressing
- Data Bus
- Control Bus ✓ Correct answer
- Function Bus
- Address Bus
-
Which of the following directive is used to reserve an eight bits space in memory?
Topic: Memory, Segmentation & Addressing
- db ✓ Correct answer
- dd
- dq
- dw
-
Which of the following is the general form of addressing?
Topic: Memory, Segmentation & Addressing
- Base + Index
- Index + Offset
- Base + Index + Offset ✓ Correct answer
- Base + Effective Address
-
“mov byte [num1], 5” is ______ instruction.
Topic: Memory, Segmentation & Addressing
- Legal ✓ Correct answer
- Illegal
- Stack bases
- Memory indirect
-
___________ decrements SP (the stack pointer) by two, and then transfers a word from the source operand to the top of the stack.
Topic: Stack, Subroutines & Branching
- RET
- POP
- CALL
- PUSH ✓ Correct answer
-
Conditional jump can only be ___________.
Topic: Stack, Subroutines & Branching
- Far
- Near
- Long
- Short ✓ Correct answer
-
Far” jump is not position relative but is _______________
Topic: Stack, Subroutines & Branching
- memory dependent
- Absolute ✓ Correct answer
- Temporary
- indirect
-
The operand of POP is called the ________________ because the data is moving from the stack to the operand.
Topic: Stack, Subroutines & Branching
- Source
- Increment
- Decrement
- Destination ✓ Correct answer
-
The physical address of the stack is obtained by
Topic: Stack, Subroutines & Branching
- SS:SI combination
- SS:SP combination ✓ Correct answer
- ES:BP combination
- ES:SP combination
-
When an item is pushed on the decrementing stack, the top of the stack is
Topic: Stack, Subroutines & Branching
- First decremented and then element copied to the stack ✓ Correct answer
- First incremented and then element copied to the stack
- decremented after the element copied to the stack
- incremented after the element copied to the stack
-
Which of the following jumps makes intra segment control possible?
Topic: Stack, Subroutines & Branching
- Far
- Long
- Short ✓ Correct answer
- Jamp
-
After the execution of instruction “RET 2”
Topic: Stack, Subroutines & Branching
- SP is incremented by 2
- SP is decremented by 2
- SP is incremented by 4 ✓ Correct answer
- SP is decremented by 4
-
RET is executed, it recovers the values from
Topic: Stack, Subroutines & Branching
- Register
- Stack ✓ Correct answer
- Data segment
- Code segment
-
RETF will pop the offset in the
Topic: Stack, Subroutines & Branching
- BP
- IP ✓ Correct answer
- SP
- SI
-
The prevalent convention in most high level languages is stack clearing by the
Topic: Stack, Subroutines & Branching
- Caller
- Callee ✓ Correct answer
- RET
- Stack
-
The convention to return a value from a subroutine is to use the ____________ register.
Topic: Stack, Subroutines & Branching
- BX
- AX ✓ Correct answer
- DX
- CX
-
A decrementing stack moves from _________ to __________ addresses as elements are added in it.
Topic: Stack, Subroutines & Branching
- lower, higher
- higher, lower ✓ Correct answer
- positive, negative
- negative, positive
-
All the addressing mechanisms in iAPX88 return a number called the _____________ address.
Topic: Stack, Subroutines & Branching
- Faulty
- Direct
- Indirect
- Effective ✓ Correct answer
-
Call instruction changes the values of __________ and __________ registers.
Topic: Stack, Subroutines & Branching
- IP,SP ✓ Correct answer
- IP,DX
- IP,AX
- IP,AL
-
Call instruction takes ________ argument(s).
Topic: Stack, Subroutines & Branching
- 0
- 1 ✓ Correct answer
- 2
- 3
-
Cell width refers to the total number of bits in a memory cell while the total number of cells is called the_________.
Topic: Stack, Subroutines & Branching
- Depth ✓ Correct answer
- Cell width
- Cell Height
- Cell Length
-
In 8088, there is a _______________ stack.
Topic: Stack, Subroutines & Branching
- Stagnant
- Incrementing
- Decrementing ✓ Correct answer
- Semi-automatic
-
In assembly language programming, "JNZ" is used to jump if the _____________ flag _____________.
Topic: Stack, Subroutines & Branching
- sign, is set
- zero, is not set ✓ Correct answer
- sign, is not set
- Zero, is set
-
In case of short jump, the offset is stored in _______ .
Topic: Stack, Subroutines & Branching
- 1 byte ✓ Correct answer
- 2 bytes
- 4 bytes
- 16 bytes
-
In far jump, _____________________.
Topic: Stack, Subroutines & Branching
- only offset is given
- only segment address is given
- both offset and segment are given ✓ Correct answer
- no need to mention any segment or offset
-
In MUL instruction, if the source operand is a byte, then the result is returned in _______ and ______.
Topic: Stack, Subroutines & Branching
- AH,AL ✓ Correct answer
- AX,BL
- HL,AX
- AH,LX
-
RET Instruction takes _________ argument(s).
Topic: Stack, Subroutines & Branching
- 0 ✓ Correct answer
- 1
- 2
- 3
-
Stack Pointer is ___________________, when the ret instruction is executed.
Topic: Stack, Subroutines & Branching
- divided by 2
- multiplied by 2
- decremented by 2
- incremented by 2 ✓ Correct answer
-
sub sp, 2 The above instruction is used to perform a_____________ operation on stack.
Topic: Stack, Subroutines & Branching
- RET
- POP
- PUSH ✓ Correct answer
- RET N
-
The operand of ____________ is called the source operand because the data moves to the stack from the operand.
Topic: Stack, Subroutines & Branching
- RET
- CALL
- POP
- PUSH ✓ Correct answer
-
The segment:offset pair is called a/an _____________ address.
Topic: Stack, Subroutines & Branching
- Virtual
- Logical ✓ Correct answer
- Physical
- Effective
-
The unit of stack operations in iAPX88 is a ______________.
Topic: Stack, Subroutines & Branching
- Bit
- Byte
- Word ✓ Correct answer
- Double word
-
What does the PUSH operation do?
Topic: Stack, Subroutines & Branching
- It increments the stack pointer
- It increments the stack segment
- It copies the operand on the stack ✓ Correct answer
- It deletes the operand from the stack
-
What is the content of stack pointer?
Topic: Stack, Subroutines & Branching
- Address of the next instruction
- Address of the current instruction
- Address of the top element of the stack ✓ Correct answer
- Address of the lower element of the stack
-
When the control is transferred to a subroutine?
Topic: Stack, Subroutines & Branching
- When the return address is recovered
- After the arguments are pushed on the stack ✓ Correct answer
- When the instruction pointer is not available
- After the arguments are popped out from the stack
-
Which of following conditional jump is not dependant on any flag?
Topic: Stack, Subroutines & Branching
- JP
- JPE
- RCL
- JCXZ ✓ Correct answer
-
Which of the following cannot be pushed on the stack?
Topic: Stack, Subroutines & Branching
- 1 byte ✓ Correct answer
- 2 byte
- 3 byte
- 4 byte
-
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?
Topic: Stack, Subroutines & Branching
- 9 ✓ Correct answer
- 8
- 7
- 6
-
Which of the following is also called intra-segment call?
Topic: Stack, Subroutines & Branching
- Far call
- Near call ✓ Correct answer
- Short call
- Long call
-
Which of the following is the renamed version of conditional jump JZ?
Topic: Stack, Subroutines & Branching
- JE ✓ Correct answer
- JA
- JB
- JNC
-
Which of the following jumps is taken if the last arithmetic operation did not change the sign unexpectedly?
Topic: Stack, Subroutines & Branching
- JO
- JNO ✓ Correct answer
- JE and JZ
- JNE and JNZ
-
With the execution of CALL instruction, the value of _________is decremented by 2.
Topic: Stack, Subroutines & Branching
- SP ✓ Correct answer
- BX
- CX
- DX
-
8088 is a ___________ processor with its accumulator and all registers of ____________.
Topic: Arithmetic, Shift & Logic Instructions
- 8 bit, 8 bits
- 16 bit, 16 bits ✓ Correct answer
- 32 bit, 32 bits
- 16 bit, 32 bits
-
___________ subtracts one from the operand.
Topic: Arithmetic, Shift & Logic Instructions
- MCE
- Shift
- DEC ✓ Correct answer
- Modulus
-
Extended Shifting Algorithm consists of:
Topic: Arithmetic, Shift & Logic Instructions
- 4 instructions
- 2 instructions ✓ Correct answer
- 1 instruction
- 5 instructions
-
In shift left operation, the left most bit will ___________________.
Topic: Arithmetic, Shift & Logic Instructions
- always be 1
- be discarded
- go into the Carry Flag ✓ Correct answer
- be moved to the right most position
-
JC and JNC test the _____________ flag.
Topic: Arithmetic, Shift & Logic Instructions
- Carry ✓ Correct answer
- Parity
- Zero
- Sign
-
Simple CMP instruction uses _____ operation.
Topic: Arithmetic, Shift & Logic Instructions
- Division
- Addition
- Subtraction ✓ Correct answer
- Multiplication
-
The bits of the ____________ work independently and individually.
Topic: Arithmetic, Shift & Logic Instructions
- Index register
- Base register
- Flags register ✓ Correct answer
- Accumulator
-
What does the given instruction do? SHR DL, 1
Topic: Arithmetic, Shift & Logic Instructions
- Store the 1 bit in DL
- Move the left most bit into the carry flag
- Move the right most bit into the carry flag ✓ Correct answer
- Shift left and store the most significant bit in the carry flag
-
Which of the following instructions is used for non-destructive AND operation?
Topic: Arithmetic, Shift & Logic Instructions
- CMP
- ADC
- TEST ✓ Correct answer
- NAND
-
allow changing specific processor behaviors and are used to play with it.
Topic: Arithmetic, Shift & Logic Instructions
- Special Instructions ✓ Correct answer
- Data Movement Instructions
- Program Control Instructions
- Arithmetic and Logic Instructions
-
DIV instruction has
Topic: Arithmetic, Shift & Logic Instructions
- Two forms ✓ Correct answer
- Three forms
- Four forms
- Five forms
-
The shift logical right operation inserts
Topic: Arithmetic, Shift & Logic Instructions
- A zero at right
- A zero at left ✓ Correct answer
- A one at right
- A one at right
-
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
Topic: Arithmetic, Shift & Logic Instructions
- carry flag ✓ Correct answer
- Parity Flag
- Auxiliary Carry
- Zero Flag
-
Which is the unidirectional bus ? (I) Control Bus (II) Data Bus (III) Address Bus
Topic: Arithmetic, Shift & Logic Instructions
- I only
- II only
- III only ✓ Correct answer
- I and II only
-
_________ can be used to check whether particular bits of a number are set or not.
Topic: Arithmetic, Shift & Logic Instructions
- OR
- AND ✓ Correct answer
- NOT
- XOR
-
_________ is used for permanent diversion.
Topic: Arithmetic, Shift & Logic Instructions
- Ret
- Call
- Array
- Jump ✓ Correct answer
-
Code size reduction and improvement in speed were the two reasons for introducing block processing instructions in the ____________ processor.
Topic: Arithmetic, Shift & Logic Instructions
- 8088 ✓ Correct answer
- 8085
- 8080
- iAPX386
-
CS and IP are both ________ bit registers.
Topic: Arithmetic, Shift & Logic Instructions
- 8
- 16 ✓ Correct answer
- 32
- 64
-
How logical errors are different from syntax errors?
Topic: Arithmetic, Shift & Logic Instructions
- Syntax errors are more important than the logical errors
- Identifying both types of errors is the responsiblity of assembler
- Identifying syntax errors is the responsiblity of programmer unlike logical errors
- Identifying syntax and logical errors is the responsiblity of assembler and programmer respectively ✓ Correct answer
-
If AND operation is performed between AX and BX, then how many AND operations will be performed in total?
Topic: Arithmetic, Shift & Logic Instructions
- 2
- 8
- 16 ✓ Correct answer
- 32
-
In ____________________, every bit moves one position to the right, and the bit dropped from the right is inserted at the left. The dropped bit is also copied into the carry flag.
Topic: Arithmetic, Shift & Logic Instructions
- Rotate Left (ROL)
- Rotate Right (ROR) ✓ Correct answer
- Rotate through Carry Left (RCL)
- Rotate through Carry Right (RCR)
-
In ADC instruction, there are _________________.
Topic: Arithmetic, Shift & Logic Instructions
- two registers only
- two operands and the ZF
- two registers and one memory location
- Two operands and the CF ✓ Correct answer
-
In assembly language, integer division results in __________ quotient and _________ remainder.
Topic: Arithmetic, Shift & Logic Instructions
- integer, integer ✓ Correct answer
- floating point, integer
- integer, floating point
- floating point, floating point
-
In assembly language, “DIV BL” instruction has a/an ________ bit operand.
Topic: Arithmetic, Shift & Logic Instructions
- 8 ✓ Correct answer
- 16
- 32
- 64
-
In case of DIV BX instruction, the quotient is stored in _________ register.
Topic: Arithmetic, Shift & Logic Instructions
- AX ✓ Correct answer
- DX
- AL
- BL
-
In MUL instruction, if the source operand is a word, then it is multiplied with ___________ register.
Topic: Arithmetic, Shift & Logic Instructions
- AX ✓ Correct answer
- AH
- AL
- BL
-
In multiplication algorithm, we take the first digit of the multiplier and multiply it with the ___________.
Topic: Arithmetic, Shift & Logic Instructions
- Result
- Divider
- Reminder
- Multiplicand ✓ Correct answer
-
In XOR operation, the output is 1 if both inputs are _______________.
Topic: Arithmetic, Shift & Logic Instructions
- Same
- True
- False
- Different ✓ Correct answer
-
Multiplying two 4 bit numbers result in a(an) ___________ bit number.
Topic: Arithmetic, Shift & Logic Instructions
- 7
- 8 ✓ Correct answer
- 5
- 6
-
Shift Arithmetic Right (SAR) shifts every bit one place to the right and places a copy of the ______________ significant bit at the ______________ significant place.
Topic: Arithmetic, Shift & Logic Instructions
- least, least
- most, most ✓ Correct answer
- least, most
- most, least
-
Shift logical Right (SHR) moves all the bits one position to the ______________, and inserts a zero from the ______________.
Topic: Arithmetic, Shift & Logic Instructions
- left, left
- left, right
- right, left ✓ Correct answer
- right, right
-
Shifting the integer 5 left by 1 bit results in _____________.
Topic: Arithmetic, Shift & Logic Instructions
- 5
- 10 ✓ Correct answer
- 25
- 50
-
Suppose, the current value of IP is 0x0129, and the relative address is 0x0012. What will be the new value of IP?
Topic: Arithmetic, Shift & Logic Instructions
- 0x0135
- 0x0112
- 0x013B ✓ Correct answer
- 0x0129
-
The _______________ flag has a special role in debugging.
Topic: Arithmetic, Shift & Logic Instructions
- Sign
- Zero
- Trap ✓ Correct answer
- Parity
-
The correct instruction to subtract with borrow is ____________.
Topic: Arithmetic, Shift & Logic Instructions
- SB
- SBB ✓ Correct answer
- SWB
- SUBB
-
What makes CMP different from SUB?
Topic: Arithmetic, Shift & Logic Instructions
- Both CMP and SUB are destructive subtraction
- SUB is a non destructive subtraction while CMP is a destructive one
- SUB is a destructive subtraction while CMP is a non-destructive subtraction. Both affect the flags ✓ Correct answer
- CMP is a non destructive subtraction that does not affect any flag, however SUB is a destructive subtraction
-
When a 32 bit number is divided by a 16 bit number, the remainder is of
Topic: Arithmetic, Shift & Logic Instructions
- 32 bits
- 16 bits ✓ Correct answer
- 8 bits
- 64
-
Which of the following flags sets when a larger number is subtracted from a smaller number?
Topic: Arithmetic, Shift & Logic Instructions
- SP
- CF ✓ Correct answer
- ZF
- OF
-
Which of the following is a Program Control Instruction?
Topic: Arithmetic, Shift & Logic Instructions
- Cli
- jne 0534 ✓ Correct answer
- mov ax, bx
- add bx, 0534
-
Which of the following is an incorrect XOR operation?
Topic: Arithmetic, Shift & Logic Instructions
- XOR AX
- XOR BX,AX ✓ Correct answer
- XOR AX, BX
- XOR BYTE [VAR], 5
-
Which of the following is shifted right in the 4-bit multiplication algorithm?
Topic: Arithmetic, Shift & Logic Instructions
- Multiplicand
- Multiplier ✓ Correct answer
- RCL
- OLC
-
Which of the following will be the result of left shifting 9C40 once?
Topic: Arithmetic, Shift & Logic Instructions
- 3881
- 1388
- 3880 ✓ Correct answer
- 3882
-
After the execution of REP instruction CX will be decremented then which of the following flags will be affected?
Topic: String Instructions
- CF
- OF
- DF
- No flags will be affected ✓ Correct answer
-
In STOS instruction, the implied source will always be in
Topic: String Instructions
- AL or AX registers ✓ Correct answer
- DL or DX registers
- BL or BX registers
- CL or CX registers
-
REP allows an instruction to be _____________ CX times.
Topic: String Instructions
- Reported
- Repeated ✓ Correct answer
- Replaced
- Repositioned
-
SCAS compares a source in accumulator register with the _____________ string element addressed by ES:DI and updates the flags.
Topic: String Instructions
- Flags
- Source
- Register
- Destination ✓ Correct answer
-
There are ___________ forms of MOVS instruction.
Topic: String Instructions
- three
- two ✓ Correct answer
- five
- four
-
____________ of the following flags will be affected by MOVSB?
Topic: String Instructions
- DF
- ZF
- PF
- No effect on flags ✓ Correct answer
-
After the execution of MOVS instruction which of the following registers are updated:
Topic: String Instructions
- SI only
- DI only
- SI and DI only ✓ Correct answer
- SI, DI and BP only
-
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:
Topic: String Instructions
- 0xBB0150
- 0x5001BB
- 0x01BB50
- 0xBB5001 ✓ Correct answer
-
REP will always
Topic: String Instructions
- Increment CX by 1
- Increment CX by 2
- Decrement CX by 1 ✓ Correct answer
- Decrement CX by 2
-
Which mathematical operation is dominant during the execution of SCAS instruction
Topic: String Instructions
- Division
- Multiplication
- Addition
- Subtraction ✓ Correct answer
-
__________ is a special prefix that is used to repeat the block instructions.
Topic: String Instructions
- RPT
- REP ✓ Correct answer
- REPB
- REPEAT
-
EBCDIC, grey code, and ASCII are the standards for _____________ representation of characters.
Topic: String Instructions
- Generic
- Numeric
- Alphabetic
- Alpha-numeric ✓ Correct answer
-
In iAPX88, __________ flag is specially related to the string instructions.
Topic: String Instructions
- Sign
- Carry
- Parity
- Direction ✓ Correct answer
-
MOVS is used to __________ a block of memory.
Topic: String Instructions
- Push
- Move ✓ Correct answer
- Save
- Delete
-
REPE or REPNE are used with the _____________ instruction.
Topic: String Instructions
- Call
- Add
- SCAS ✓ Correct answer
- MOVS
-
REPE repeats a string instruction while the ___________ flag is set.
Topic: String Instructions
- Carry
- Zero ✓ Correct answer
- Parity
- Direction
-
The basic function of SCAS instruction is to
Topic: String Instructions
- Compare ✓ Correct answer
- Scan
- Sort
- Move data
-
We can convert a digit into its ASCII representation by adding ____________ to it.
Topic: String Instructions
- 0X05
- 0X10
- 0X20
- 0x30 ✓ Correct answer
-
Which of the following is used to clear the direction flag?
Topic: String Instructions
- Std
- Stdr
- Clrd
- Cld ✓ Correct answer
-
Scrolling is the process of moving one or more lines towards the top or bottom of the screen, and the new line that appears on the top or bottom is___________.
Topic: Video Memory & Display
- Cleared ✓ Correct answer
- Add
- Different
- None of these
-
In the word designated for one screen location, the higher address contains
Topic: Video Memory & Display
- The character code
- The attribute byte ✓ Correct answer
- The parameters
- The dimensions
-
which bit sets the character "blinking" on the screen?
Topic: Video Memory & Display
- 5
- 6
- 7 ✓ Correct answer
- 8
-
BIOS video services are broadly classified into ________ categories.
Topic: Video Memory & Display
- 2
- 3 ✓ Correct answer
- 4
- 1
-
BIOS video services are exported via interrupt
Topic: Video Memory & Display
- INT7
- INT10 ✓ Correct answer
- INT8
- INT9
-
In the context of video services, if we want to scroll the window up which of the following will be the value of AH?
Topic: Video Memory & Display
- AH = 07h
- AH = 06h ✓ Correct answer
- AH = 08h
- AH = 05h
-
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?
Topic: Video Memory & Display
- 25, 80
- 01, 01
- 00, 80
- 00, 00 ✓ Correct answer
-
In the context of video services, if we want to write string then which of the value will be placed in AH?
Topic: Video Memory & Display
- 10h
- 12h
- 13h ✓ Correct answer
- 11h
-
Which of the following services of INT 10 is used to write graphic pixel on the screen ?
Topic: Video Memory & Display
- 0x0B
- 0x0C ✓ Correct answer
- 0x0D
- 0x0A
-
Our computer screen is like a 2-D array having __________ rows and __________ columns.
Topic: Video Memory & Display
- 80, 25
- 25, 40
- 40, 25
- 25, 80 ✓ Correct answer
-
There are ______________columns per row on the screen.
Topic: Video Memory & Display
- 60
- 80 ✓ Correct answer
- 40
- 20
-
VGA stands for _________________________.
Topic: Video Memory & Display
- Video Graphics Adapter ✓ Correct answer
- Visual Graphics Adapter
- Video Graphics Application
- Video Graphic Accumulator
-
Which of the following formulae calculates the desired location on the screen?
Topic: Video Memory & Display
- Location = (rowno * 80 + column) * 2 ✓ Correct answer
- location = ( rowno * 80 + columnno ) * 8
- location = ( colmunno * 80 + rowno ) * 2,
- location = ( rowno * 80 + columnno ) * 6,
-
________ or ________ are taken if the last arithmetic operation has produced a number in its destination that has odd parity.
Topic: Interrupts & I/O
- JP, JPE
- JS, JNS
- JNP, JPO ✓ Correct answer
- JCX, JNS
-
Which of the following formulae is used for calculating the segment address of an interrupt service routine "n"?
Topic: Interrupts & I/O
- n*4
- n*4+2 ✓ Correct answer
- n*2+4
- n*4-2
-
_________ is a special type of interrupt that returns to the same instruction instead of the next instruction.
Topic: Interrupts & I/O
- Debug interrupt
- Divide overflow interrupt ✓ Correct answer
- Change of sign interrupt
- Arithmetic overflow interrupt
-
Each entry of the interrupt vector table is of __________ byte(s).
Topic: Interrupts & I/O
- 3
- 4 ✓ Correct answer
- 2
- 1
-
If the _________ flag is set, then after every instruction, a type 1 interrupt will be generated automatically.
Topic: Interrupts & I/O
- trap ✓ Correct answer
- overflow
- parity
- carry
-
In Intel 8088, the Interrupt Vector Table occupies ____________ of memory.
Topic: Interrupts & I/O
- 4 bytes
- 1 KB ✓ Correct answer
- 1 MB
- 64 KB
-
INT instruction takes a _________ byte(s) argument varying from 0-255.
Topic: Interrupts & I/O
- 1 ✓ Correct answer
- 2
- 6
- 4
-
Interrupts are __________ events.
Topic: Interrupts & I/O
- Synchronous
- Dependent
- Predictable
- Asynchronous ✓ Correct answer
-
iret returns on the basis of __________ and __________.
Topic: Interrupts & I/O
- CS, IP ✓ Correct answer
- DS, IP
- CS, SS
- IP, SP
-
Software interrupts are called by extended ____________ call mechanism.
Topic: Interrupts & I/O
- near
- short
- jmp
- far ✓ Correct answer
-
The correlation process from the interrupt number to the interrupt handler uses a table called _________.
Topic: Interrupts & I/O
- Interrupt Handling Table
- Interrupt Correlation Table
- Interrupt Calling Table
- Interrupt Vector Table ✓ Correct answer
-
The interrupt call loads new values in CS, IP and ______________.
Topic: Interrupts & I/O
- FLAGS ✓ Correct answer
- DS
- BP
- SS
-
Total number of reserved interrupts in Intel 8088 are ______________.
Topic: Interrupts & I/O
- 3
- 8
- 255
- 5 ✓ Correct answer
-
Which of the following instructions is used to disable all interrupts during the execution of a program?
Topic: Interrupts & I/O
- sti
- reti
- cld
- cli ✓ Correct answer
-
Which of the following is the interrupt number for debug interrupt?
Topic: Interrupts & I/O
- INT 2
- INT 0
- INT 1 ✓ Correct answer
- INT 3
-
Which of the following is the interrupt number for Non-Maskable Interrupt (NMI)?
Topic: Interrupts & I/O
- INT 3
- INT 1
- INT 0
- INT 2 ✓ Correct answer
-
Which of the following is the number of pin(s) outside the processor for generating interrupts by the external hardware?
Topic: Interrupts & I/O
- 2 ✓ Correct answer
- 4
- 1
- 3
-
Which of the following is the order of pushing the contents on stack during the execution of INT instruction?
Topic: Interrupts & I/O
- FLAGS, IP, and then CS
- FLAGS, CS, and then IP ✓ Correct answer
- IP, CS, and then FLAGS
- CS, IP, and then FLAGS
-
STI stands for?
Topic: Interrupts & I/O
- Set Interrupt
- Set Instruction
- Set the Interrupt flag ✓ Correct answer
- Standard Timer Interrupt
-
Which of the following jump is taken if the last arithmetic operation has produced a number in its destination that has even parity?
Topic: Interrupts & I/O
- JNP
- JPE ✓ Correct answer
- JNS
- JPO