CS401 MCQs Collection BY SONU MUGHAL
CS401 MCQs Collection BY SONU MUGHAL
CS401 MCQs Collection BY SONU MUGHAL
•1 argument
•1 argument
•3 arguments
•No arguments
DS:SI
DS:DI
ES:SI
ES:DI
Question No: 4 ( M - 1 ) .
Iof “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 (M-1).
The maximum parameters a subroutine can receive (with the help of registers) are
source
counter
index
pointer
effective
faulty
indirect
direct
AX
BX
CX
DX
will drop
will go into CF
will be always 1
Suppose the decimal number "35" after shifting its binary two bits to left, the new value
becomes _________
35
70
140
17
When divide overflow occurs processor will be interrupted this type of interrupt is called
Hardware interrupt
Software interrupt
Processor exception
Logical interrupts
Division
Multiplication
Addition
Subtraction
CF
OF
DF
_________ is one of the reasons due to which string instructions are used in 8088
► SS:SP combination
► ES:BP combination
► ES:SP combination
► SP is decremented by 2
► SP is incremented by 1
► SP is decremented by 1
► Increment CX by 2
► Decrement CX by 1
► Decrement CX by 2
► Compare
► Compare
► Scan
► Sort
► Move data
► 4 bits
► 32 bits
► 16 bits
► 8 bits
► 4 bits
► Multiplication
► Addition
► Subtraction
► DF is cleared
► ZF is set
► DF is set
►0
►1
►2
►3
It is always in a particular register say the accumulator. It needs to not be mentioned in the instruction.
Q=1:
Which bit of attributes byte represents the blue component of foreground color?
•0
•1
•2
•3
Q=2:
The clear screen operation initializes the whole block of video memory to:
•0417
•0714
•0741
•017
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 instring instruction:
•DI and BP
•SI and BP
•DI and SI
•DS and Si
Q=5
A fat32 file system directory entry in DOS consist of how many bytes?
•16
•24
•32
•64
Q=6:
Which register is generally used to specify the services number of an interrupt?
DX
AX
BX
CX
………………………………………………………………………………………….
Q=7:
In 9 pin db 9 connector ,which pin is assigned to RD(received data)
•1
•2
•3
•4
Q=8
In case of COM file, maximum length of parameters passed through command line can be……….
•63 bytes
•127bytes
•255 bytes
•511 bytes
Q=9
We can access the DOS service using;
•Int 0x21
•Int 0x13
•Int 0x 10
•Int 0x 08
Q=10
In 9 pin 9 connector,which pin is assigned to signal ground
•3
•4
•5
•6
Q=11:
BPB stands for
•Basic parameter block
•Bios precise block
•Basic precise block
•Bios parameter block
Q=12
Int 13-bios disk service “generally uses which register to return the error flag?
•CF
•DL
•AH
•AL
Q=13:
The first sector on the hard disk contains the
•Hard disk size
•Partition table
•Data size
•Sector size
Q=14
Operating system organize data in the form of
•Folder
•Batch file
•File
•None of above
………
Q=15
In 9 pin db 9 connector, which pin is assigned to TD(transmitted data)
•1
•2
•3
•4
Q=16”
Device derive can be divided into ----------major categories.
•5
•4
•3
•2
5. Thread registration code initialize PCB and add to linked list so that _____ will give it turn.
•Assembler
•Linker
•Scheduler
•Debugger
• 1
• 2
• 3
• 4
•Cld
•Clrd
•Cl df
•Clr df
• Incremented by 1
• Incremented by 2
• Decremented by 1
• Decremented by 2
•INT 0
• INT 1
• INT 2
• INT 3
20. CX register is
• Count register
• Data register
• Index register
• Base register
………………………………………………………………………………………
► ISR
► IRS
► ISP
► IRT
► string
► word
► indirect
► stack
► SP is incremented by 2
► SP is decremented by 2
► SP is incremented by 4
► SP is decremented by 4
► Two forms
► Three forms
► Four forms
► Five forms
► 8 bits
► 16 bits
► 32 bits
► 64 bits
► DI only
► SI and DI only
► An illegal instruction
► Black
► White
► Red
► Blue
1. Stack segment
2. Code segment
3. Data segment
4. Extra segment
Question No: 3 ( M - 1 ) .
In a rotate through carry right (RCR) instruction applied on a 16 bit word
Effectively there is
1. 16 bits rotation
2. 1 bit rotation
3. 17 bits rotation
4. 8 bits rotation
1. 2
2. 4
3. 8
4. 16
Question No: 7 __ ( M - 1 ) .
Priority of IRQ 0 interrupt is
1. medium
2. high
3. highest
4. low
Question No: 8 __ ( M - 1 ) .
Threads can have function calls, parameters and ___________variables.
1. global
2. local
3. legal
4. illegal
1. 1
2. 2
3. 3
4. 4
Question No: 14 __ ( M - 1 ) .
in device attribute word which of the following bit decides whether it is a cha rater
1. device or a block device
2. Bit 12 Bit 13
3. Bit 14
4. Bit 15
1. Activity
2. Hand-shaking
3. Interruption
4. Time clicking
Question No: 18 ( M - 1 ) .
which of the following is a special type of interrupt that returns to the
same instruction instead of the next instruction
1. Divide overflow interrupt
2. Debug interrupt
3. Arithmetic overflow interrupt
4. Change of sign interrupt
Question No: 20 __ ( M - 1 ) .
Which of the following interrupts is used for Arithmetic overflow
1. INT 1
2. INT 2
3. INT 3
4. INT 4
Question No: 21 __ ( M - 1 ) .
Which of the following IRQs is connected to serial port COM 2?
1. IRQ 0
2. IRQ 1
3. IRQ 2
4. IRQ 3
Question No: 24 ( M - 1 ) .
In programmable interrupt controller which of the following ports is used for selectively
enabling or disabling interrupts
1. 19
2. 20
3. 21
4. 22
Question No: 25 ( M - 1 ) .
The number of pins in a parallel port connector
are?
1. 25
2. 30
3. 35
Question No: 26 ( M - 1 ) .
Which of the following pins of a parallel port connector are grounded?
1. 10-18
2. 18-25
3. 25-32
4. 32-39
Question No: 27 __ ( M - 1 ) .
Suppose a decimal number 35 when its binary is shifted to write two places the
new number will become
1. 35
2. 70
3. 140
4. 17
Question No: 28 __ ( M - 1 ) .
A 32bit address register can access upto ............................of memory so memory
access has increased a lot.
1. 2GB
2. 4GB
3. 6GB
4. 8GB
Question No: 29 __ ( M - 1 ) .
In NASM an imported symbol is declared with the ................................while and
exported symbol is declared with the ......................................................................
1. Global directive, External directive
2. External directive, Global directive
3. Home Directive, Foreign Directive
4. Foreign Directive, Home Directive
Question No: 31 __ ( M - 1 )
Which services are gained bi INT 0x16
Solution:
Hardware interrupt
Like divide by zero interrupt
Like divide by 1 interrupt
Software interrupt
Question No: 32 ( M - 1
Question No: 33 ( M - 2 )
INT 14 - SERIAL - READ CHARACTER FROM PORT
By using above port what do AH,AL and DX shows here?
•Hardware interrupt
•Like divide by zero interrupt
•Like divide by 1 interrupt
•Software interrupt
Question No: 34 ( M - 2 )
What do these instructions do ? write your answer in single line.
mov cx, 0xffff
loop $
•Hardware interrupt
•Like divide by zero interrupt
•Like divide by 1 interrupt
•Software interrupt
Question No: 35 ( M - 3 )
Define the protected mode
Solution:
•Hardware interrupt
•Like divide by zero interrupt
•Like divide by 1 interrupt
•Software interrupt
Question No: 36 ( M - 3 )
Write a program in assembly language to disable keyboard interrupt using PIC
mask register
Hint: Only five instructions are needed
Solution:
•Hardware interrupt
•Like divide by zero interrupt
•Like divide by 1 interrupt
•Software interrupt
Question No: 37 ( M - 3 )
Read the following passage carefully and fill the blanks with proper words.
Note: Don't rewrite the passage just write the words in same order.
"BIOS sees the disks as a combination of sectors, tracks, and................., as a
raw storage device without concern to whether it is reading a file or directory.
................. provides the simplest and most powerful interface to the storage
medium. However this raw storage is meaningless to the user who needs to
store his files and organize them into..................... . "
Solution:
•Hardware interrupt
•Like divide by zero interrupt
•Like divide by 1 interrupt
•Software interrupt
Question No: 1 ( M - 1 )
.
Sun SPARC Processor has a fixed ______________ instruction size.
1. 16bit
2. 32bit
3. 64bit
4. 20bit
Question No: 2 ( M - 1 )
.
When the subprogram finishes, the ____________________ retrieves the return address from the
stack and transfers control to that location.
1. RET instruction
2. CALL instruction
3. POP instruction
4. Jump instruction
Question No: 3 ( M - 1 )
.
A 32 bit address register can access upto __________ of memory.
•1 GB
•6 GB
•4 GB
•2 GB
Question No: 4 ( M - 1 )
.
The value of a segment register when the processor is running under protected mode is called
1. segment descriptor
2. segment selector
3. global descriptor table
4. protected register
Question No: 5 ( M - 1 )
.
FS and GS are two ___________________ in protected mode.
1. segment registers
2. segment selectors
3. stack pointers
4. register pointers
Question No: 6 ( M - 1 )
.
IRQ 0 interrupt have _______________ priority
1. low
2. medium
3. highest
4. lowest
Question No: 7 ( M - 1 )
.
IDT stands for ______________________.
1. interrupt descriptor table
2. individual descriptor table
3. inline data table
4. interrupt descriptor table
Question No: 8 ( M - 1 )
.
Every bit of line status in serial port conveys _____________ information.
1. different
2. same
3. partial
4. full
Question No: 9 ( M - 1 )
.
There are total _______________ bytes in a standard floppy disk.
1. 1444k
2. 1440k
3. 1280k
4. 2480k
Question No: 10 ( M - 1 )
.
An 8x16 font is stored in _________________ bytes.
•8
•16
•4
•20
=============================================================
. Serial Port is also accessible via I/O ports , COM 1 is accessible via ports 3F8-3FF
while COM 2 is accessible via 2F8 -2FF.
The first register at 3F8 is the Transmitter holding register if written to and the
receiver buffer register if read from.
Other register of our interest include 3F9 whose Bit 0 must be set to enable received data
available interrupt and Bit 1 must be set to enable transmitter holding register empty interrupt.
(Transmitter, COM 1, I/O ports , COM2. bit 0 , Buffer , 3FA)
====================================================
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 # 11
| 0 |--›| 1 | 1 | 0 | 1 | 0 | 0 | 0 | --›| C | is a example of ______
1) : Shl
2) : sar
3) : Shr
4) : Sal
Correct Option : 3 From : Lecture 10
Question # 12
| C |‹--| 1 | 1 | 0 | 1 | 0 | 0 | 0 | ‹--| 0 | is a example of ______
1) : Shl
2) : sar
3) : Shr
4) : Sal
Correct Option : 1 From : Lecture 10
Question # 13
ADC has _________ operands.
1) : two
2) : three
3) : Five
4) : Zero
Correct Option : 2 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 # 23
8088 is a 16bit processor with its accumulator and all registers of __________.
1) : 32 bits
2) : 6 bits
3) : 16 bits
4) : 64 bits
Correct Option : 3 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 # 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 # 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
Question # 50
“ 1------------[org 0x0100]
2------------mov ax, [num1] ; load first number in ax
3------------mov bx, [num2] ; load second number in bx
4------------add ax, bx _________________________________
5------------int 0x21
6------------
7------------num1: dw 5
8------------num2: dw 10
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 : 3 From : Lecture 7
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 # 64
In JNE and JNZ there is difference for only _____________;
1) : Programmer or Logic
2) : Assembler
3) : Debugger
4) : IAPX88
Correct Option : 1 From : Lecture 9
Question # 65
JMP is Instruction that on executing take jump regardless of the state of all flags is called__________
1) : Jump
2) : Conditional jump
3) : Unconditional jump
4) : Stay
Correct Option : 3 From : Lecture 9
Question # 66
When result of the source subtraction from the destination is zero, zero flag is set i.e. ZF=1
its mean that;
1) : DEST = SRC
2) : DEST != SRC
3) : DEST < SRC
4) : DEST > SRC
Correct Option : 1 From : Lecture 9
Question # 67
When an unsigned source is subtracted from an unsigned destination and the destination is smaller,
borrow is needed which sets the ____________.
1) : carry flag i.e CF = 0
2) : carry flag i.e CF = 1
3) : Carry Flag + ZF=1
4) : None of the Given
Correct Option : 2 From : Lecture 9
Question # 68
In the case of unassigned source and destination when subtracting and in the result ZF =1 OR CR=1
then _______
1) : DEST = SRC
2) : DEST != SRC
3) : UDEST ? USRC
4) : DEST > SRC
Correct Option : 3 From : Lecture 9
Question # 69
In the case of unassigned source and destination when subtracting and in the result ZF =0 AND CR=0
then _______
1) : DEST = SRC
2) : DEST != SRC
3) : UDEST < USRC
4) : UDEST > USRC
Correct Option : 4 From : Lecture 9
Question # 70
In the case of unassigned source and destination when subtracting and in the result CR=0 then
_______
1) : DEST = SRC
2) : DEST != SRC
3) : UDEST < USRC
4) : UDEST ? USRC
Correct Option : 4 From : Lecture 9
Question # 71
______This jump is taken if the last arithmetic operation produced a zero in its destination. After a CMP
it is taken if both operands were equal.
1) : Jump if zero(JZ)/Jump if equal(JE)
2) : Jump if equal(JE)
3) : Jump if zero(JZ)
4) : No Jump fot This
Correct Option : 1 From : Lecture 9
Question # 72
_______This jump is taken after a CMP if the unsigned source is smaller than or equal to the unsigned
destination.
1) : JBE(Jump if not below or equal)
2) : JNA(Jump if not above)/JBE(Jump if not below or equal)
3) : JNA(Jump if not above)
4) : No Jump fot This
Correct Option : 2 From : Lecture 9
Question # 1
Numbers of any size can be added using a proper combination of __________.
1) : ADD and ADC
2) : ABD and ADC
3) : ADC and ADC
4) : None of the Given
Correct Option : 1 From : Lecture 11
Question # 2
Like addition with carry there is an instruction to subtract with borrows called____________.
1) : SwB
2) : SBB
3) : SBC
4) : SBBC
Correct Option : 2 From : Lecture 11
Question # 3
if “and ax, bx” instruction is given, There are _____________ operations as a result
1) : 16 AND
2) : 17 AND
3) : 32 AND
4) : 8 AND
Correct Option : 1 From : Lecture 12
Question # 4
____________can be used to check whether particular bits of a number are set or not.
1) : AND
2) : OR
3) : XOR
4) : NOT
Correct Option : 1 From : Lecture 12
Question # 5
__________can also be used as a masking operation to invert selective bits.
1) : AND
2) : OR
3) : XOR
4) : NOT
Correct Option : 3 From : Lecture 12
Question # 6
Masking Operations are Selective Bit ______________________
1) : Clearing, XOR, Inversion and Testing
2) : Clearing, Setting, Inversion and Testing
3) : Clearing, XOR, AND and Testing
4) : None of the Given
Correct Option : 2 From : Lecture 12
Question # 7
The ____________ instruction allows temporary diversion and therefore reusability of code.
1) : CALL
2) : RET
3) : AND
4) : XOR
Correct Option : 1 From : Lecture 13
Question # 8
CALL takes a label as _____________ and execution starts from that label,
1) : argument
2) : Lable
3) : TXt
4) : Register
Correct Option : 1 From : Lecture 13
Question # 9
When the __________instruction is encountered and it takes execution back to the instruction following
the CALL.
1) : CALL
2) : RET
3) : AND
4) : XOR
Correct Option : 2 From : Lecture 13
Question # 10
_______________________ Both the instructions are commonly used as a pair, however technically
they are independent in their operation.
1) : RET and ADC
2) : Cal and SSb
3) : CALL and RET
4) : ADC and SSB
Correct Option : 3 From : Lecture 13
Question # 11
The CALL mechanism breaks the thread of execution and does not change registers, except
____________.
1) : SI
2) : IP
3) : DI
4) : SP
Correct Option : 2 From : Lecture 13
Question # 12
Stack is a ______ that behaves in a first in last out manner.
1) : Program
2) : data structure
3) : Heap
4) : None of the Given
Correct Option : 2 From : Lecture 14
Question # 13
If ____________ is not available, stack clearing by the callee is a complicated process.
1) : CALL
2) : SBB
3) : RET n
4) : None of the Given
Correct Option : 3 From : Lecture 14
Question # 14
When the stack will eventually become full, SP will reach 0, and thereafter wraparound producing
unexpected results. This is called stack ________
1) : Overflow
2) : Leakage
3) : Error
4) : Pointer
Correct Option : 1 From : Lecture 14
Question # 15
The pop operation makes a copy from the top of the stack into its_______________.
1) : Register
2) : operand
3) : RET n
4) : Pointer
Correct Option : 2 From : Lecture 14
Question # 16
_______________decrements SP (the stack pointer) by two and then transfers a word from the source
operand to the top of stack
1) : PUSH
2) : POP
3) : CALL
4) : RET
Correct Option : 1 From : Lecture 14
Question # 17
POP transfers the word at the current top of stack (pointed to by SP) to the destination operand and
then __________ SP by two to point to the new top of stack.
1) : increments
2) : dcrements
3) : ++
4) : --
Correct Option : 1 From : Lecture 14
Question # 18
The trick is to use the ________and ___________operations and save the callers’ value on the stack
and recover it from there on return.
1) : POP, ADC
2) : CALL, RET
3) : CALL, RET n
4) : PUSH, POP
Correct Option : 4 From : Lecture 14
Question # 19
To access the arguments from the stack, the immediate idea that strikes is to __________ them off the
stack.
1) : PUSH
2) : POP
3) : CALL
4) : Rrgister
Correct Option : 2 From : Lecture 15
Question # 20
push bp
we are ________________
1) : sending bp copy to stack
2) : making bp copy from stack
3) : pushing bp on the stack
4) : doing nothing
Correct Option : 3 From : Lecture 15
Question # 21
Local Variables means variables that are used within the ___________________
1) : Subroutine
2) : Program
3) : CALL
4) : Label
Correct Option : 1 From : Lecture 15
Question # 22
Standard ASCII has 128 characters with assigned numbers from ________.
1) : 1to 129
2) : 0 to 127
3) : 0 to 128
4) : None of the Given
Correct Option : 2 From : Lecture 16
Question # 23
When _______ is sent to the VGA card, it will turn pixels on and off in such a way that a visual
representation of ‘A’ appears on the screen.
1) : 0x60
2) : 0x90
3) : 0x30
4) : 0x40
Correct Option : 4 From : Lecture 16
Question # 24
Which bit is refer to the Blinking of foreground character
1) : 6
2) : 7
3) : 5
4) : 3
Correct Option : 2 From : Lecture 16
Question # 25
Which bit is refer to the Intensity component of foreground color
1) : 4
2) : 5
3) : 3
4) : 7
Correct Option : 3 From : Lecture 16
Question # 26
Which bit is refer to the Green component of background color
1) : 1
2) : 5
3) : 3
4) : 7
Correct Option : 2 From : Lecture 16
Question # 27
Which bit is refer to the Green component of foreground color
1) : 1
2) : 5
3) : 3
4) : 7
Correct Option : 1 From : Lecture 16
Question # 28
String can be indicate bye given
1) : db 0x61, 0x61, 0x63
2) : db 'a', 'b', 'c'
3) : db 'abc'
4) : All of the above
Correct Option : 4 From : Lecture 16
Question # 29
The first form divides a 32bit number in DX:AX by its 16bit operand and stores the ___________
quotient in AX
1) : 16bit
2) : 17bit
3) : 32bit
4) : 64bit
Correct Option : 1 From : Lecture 17
Question # 30
The ___________ (division) used in the process is integer division and not floating point division.
1) : DIV instruction
2) : ADC instruction
3) : SSB instruction
4) : DIVI instruction
Correct Option : 1 From : Lecture 17
Question # 31
______________(multiply) performs an unsigned multiplication of the source operand and the
accumulator.
1) : Multi
2) : DIV
3) : MUL
4) : Move
Correct Option : 3 From : Lecture 18
Question # 32
The desired location on the screen can be calculated with the following formulae.
1) : location = ( hypos * 80 + SP ) * 3
2) : location = ( hypos * 80 + slocation ) * 2
3) : location = ( hypos * 80 + epos ) * 2
4) : None of the Given
Correct Option : 3 From : Lecture 18
Question # 33
To play with string there are 5 instructions that are __________
1) : STOS, LODS, CMPS, SCAS, and MOVS
2) : MUL, DIV, ADD, ADC and MOVE
3) : SSB, ADD, CMPS, ADC, and MOVS
4) : None of the Given
Correct Option : 1 From : Lecture 18
Question # 34
_______transfers a byte or word from register AL or AX to the string element addressed by ES:DI and
updates DI to point to the next location.
1) : LODS
2) : STOS
3) : SCAS
4) : MOVE
Correct Option : 2 From : Lecture 18
Question # 35
____________ transfers a byte or word from the source location DS:SI to AL or AX and updates SI to
point to the next location.
1) : LODS
2) : STOS
3) : SCAS
4) : MOVE
Correct Option : 1 From : Lecture 18
Question # 36
_______compares a source byte or word in register AL or AX with the destination string element
addressed by ES: DI and updates the flags.
1) : LODS
2) : STOS
3) : SCAS
4) : MOVE
Correct Option : 3 From : Lecture 18
Question # 37
____________ repeat the following string instruction while the zero flag is set and REPNE or REPNZ
repeat the following instruction while the zero flag is not set.
1) : REP or REPZ
2) : REPE or REPZ
3) : REPE or RPZ
4) : RPE or REPZ
Correct Option : 2 From : Lecture 18
Question # 38
LES loads ______________
1) : ES
2) : DS
3) : PS
4) : LS
Correct Option : 1 From : Lecture 20
Question # 39
LDS loads_______.
1) : ES
2) : DS
3) : PS
4) : LS
Correct Option : 2 From : Lecture 20
Question # 40
REP allows the instruction to be repeated ____________ times allowing blocks of memory to be
copied.
1) : DX
2) : CX
3) : BX
4) : AX
Correct Option : 2 From : Lecture 20
Question # 41
___________pops IP, then CS, and then FLAGS.
1) : Ret n
2) : REZA
3) : REPE
4) : IRET
Correct Option : 4 From : Lecture 21
Question # 42
________ , Trap, Single step Interrupt
1) : INT 0
2) : INT 1
3) : INT 3
4) : INT 0
Correct Option : 2 From : Lecture 21
Question # 43
_________,NMI-Non Maskable Interrupt
1) : INT 0
2) : INT 1
3) : INT 3
4) : INT 0
Correct Option : 3 From : Lecture 21
Question # 44
To hook an interrupt we change the _________ corresponding to that interrupt.
1) : SX
2) : vector
3) : AX
4) : BX
Correct Option : 2 From : Lecture 22
Question # 1
___________pops IP, then CS, and then FLAGS.
1) : Ret n
2) : REZA
3) : REPE
4) : IRET
Correct Option : 4 From : Lecture 21
Question # 2
________ , Trap, Single step Interrupt
1) : INT 0
2) : INT 1
3) : INT 3
4) : INT 0
Correct Option : 2 From : Lecture 21
Question # 3
_________,NMI-Non Maskable Interrupt
1) : INT 0
2) : INT 1
3) : INT 3
4) : INT 0
Correct Option : 3 From : Lecture 21
Question # 4
To hook an interrupt we change the _________ corresponding to that interrupt.
1) : SX
2) : vector
3) : AX
4) : BX
-===========================================================
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 # 11
| 0 |--›| 1 | 1 | 0 | 1 | 0 | 0 | 0 | --›| C | is a example of ______
1) : Shl
2) : sar
3) : Shr
4) : Sal
Correct Option : 3 From : Lecture 10
Question # 12
| C |‹--| 1 | 1 | 0 | 1 | 0 | 0 | 0 | ‹--| 0 | is a example of ______
1) : Shl
2) : sar
3) : Shr
4) : Sal
Correct Option : 1 From : Lecture 10
Question # 13
ADC has _________ operands.
1) : two
2) : three
3) : Five
4) : Zero
Correct Option : 2 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 _______ Group.
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 # 23
8088 is a 16bit processor with its accumulator and all registers of __________.
1) : 32 bits
2) : 6 bits
3) : 16 bits
4) : 64 bits
Correct Option : 3 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 # 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 # 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
Question # 50
“ 1------------[org 0x0100]
2------------mov ax, [num1] ; load first number in ax
3------------mov bx, [num2] ; load second number in bx
4------------add ax, bx _________________________________
5------------int 0x21
6------------
7------------num1: dw 5
8------------num2: dw 10
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 : 3 From : Lecture 7
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 # 64
In JNE and JNZ there is difference for only _____________;
1) : Programmer or Logic
2) : Assembler
3) : Debugger
4) : IAPX88
Correct Option : 1 From : Lecture 9
Question # 65
JMP is Instruction that on executing take jump regardless of the state
of all flags is called__________
1) : Jump
2) : Conditional jump
3) : Unconditional jump
4) : Stay
Correct Option : 3 From : Lecture 9
Question # 66
When result of the source subtraction from the destination is zero,
zero flag is set i.e. ZF=1
its mean that;
1) : DEST = SRC
2) : DEST != SRC
3) : DEST < SRC
4) : DEST > SRC
Correct Option : 1 From : Lecture 9
Question # 67
When an unsigned source is subtracted from an unsigned destination and
the destination is smaller, borrow is needed which sets the
____________.
1) : carry flag i.e CF = 0
2) : carry flag i.e CF = 1
3) : Carry Flag + ZF=1
4) : None of the Given
Correct Option : 2 From : Lecture 9
Question # 68
In the case of unassigned source and destination when subtracting and
in the result ZF =1 OR CR=1 then _______
1) : DEST = SRC
2) : DEST != SRC
3) : UDEST ? USRC
4) : DEST > SRC
Correct Option : 3 From : Lecture 9
Question # 69
In the case of unassigned source and destination when subtracting and
in the result ZF =0 AND CR=0 then _______
1) : DEST = SRC
2) : DEST != SRC
3) : UDEST < USRC
4) : UDEST > USRC
Correct Option : 4 From : Lecture 9
Question # 70
In the case of unassigned source and destination when subtracting and
in the result CR=0 then _______
1) : DEST = SRC
2) : DEST != SRC
3) : UDEST < USRC
4) : UDEST ? USRC
Correct Option : 4 From : Lecture 9
Question # 71
______This jump is taken if the last arithmetic operation produced a
zero in its destination. After a CMP it is taken if both operands were
equal.
1) : Jump if zero(JZ)/Jump if equal(JE)
2) : Jump if equal(JE)
3) : Jump if zero(JZ)
4) : No Jump fot This
Correct Option : 1 From : Lecture 9
Question # 72
_______This jump is taken after a CMP if the unsigned source is
smaller than or equal to the unsigned destination.
1) : JBE(Jump if not below or equal)
2) : JNA(Jump if not above)/JBE(Jump if not below or equal)
3) : JNA(Jump if not above)
4) : No Jump fot This
Correct Option : 2 From : Lecture 9
Question # 73
Numbers of any size can be added using a proper combination of __________.
1) : ADD and ADC
2) : ABD and ADC
3) : ADC and ADC
4) : None of the Given
Correct Option : 1 From : Lecture 11
Question # 74
Like addition with carry there is an instruction to subtract with
borrows called____________.
1) : SwB
2) : SBB
3) : SBC
4) : SBBC
Correct Option : 2 From : Lecture 11
Question # 75
if “and ax, bx” instruction is given, There are _____________
operations as a result
1) : 16 AND
2) : 17 AND
3) : 32 AND
4) : 8 AND
Correct Option : 1 From : Lecture 12
Question # 76
____________can be used to check whether particular bits of a number
are set or not.
1) : AND
2) : OR
3) : XOR
4) : NOT
Correct Option : 1 From : Lecture 12
Question # 77
__________can also be used as a masking operation to invert selective bits.
1) : AND
2) : OR
3) : XOR
4) : NOT
Correct Option : 3 From : Lecture 12
Question # 78
Masking Operations are Selective Bit ______________________
1) : Clearing, XOR, Inversion and Testing
2) : Clearing, Setting, Inversion and Testing
3) : Clearing, XOR, AND and Testing
4) : None of the Given
Correct Option : 2 From : Lecture 12
Question # 79
The ____________ instruction allows temporary diversion and therefore
reusability of code.
1) : CALL
2) : RET
3) : AND
4) : XOR
Correct Option : 1 From : Lecture 13
Question # 80
CALL takes a label as _____________ and execution starts from that label,
1) : argument
2) : Lable
3) : TXt
4) : Register
Correct Option : 1 From : Lecture 13
Question # 81
When the __________instruction is encountered and it takes execution
back to the instruction following the CALL.
1) : CALL
2) : RET
3) : AND
4) : XOR
Correct Option : 2 From : Lecture 13
Question # 82
_______________________ Both the instructions are commonly used as a
pair, however technically they are independent in their operation.
1) : RET and ADC
2) : Cal and SSb
3) : CALL and RET
4) : ADC and SSB
Correct Option : 3 From : Lecture 13
Question # 83
The CALL mechanism breaks the thread of execution and does not change
registers, except ____________.
1) : SI
2) : IP
3) : DI
4) : SP
Correct Option : 2 From : Lecture 13
Question # 84
Stack is a ______ that behaves in a first in last out manner.
1) : Program
2) : data structure
3) : Heap
4) : None of the Given
Correct Option : 2 From : Lecture 14
Question # 85
If ____________ is not available, stack clearing by the callee is a
complicated process.
1) : CALL
2) : SBB
3) : RET n
4) : None of the Given
Correct Option : 3 From : Lecture 14
Question # 86
When the stack will eventually become full, SP will reach 0, and
thereafter wraparound producing unexpected results. This is called
stack ________
1) : Overflow
2) : Leakage
3) : Error
4) : Pointer
Correct Option : 1 From : Lecture 14
Question # 87
The pop operation makes a copy from the top of the stack into
its_______________.
1) : Register
2) : operand
3) : RET n
4) : Pointer
Correct Option : 2 From : Lecture 14
Question # 88
_______________decrements SP (the stack pointer) by two and then
transfers a word from the source operand to the top of stack
1) : PUSH
2) : POP
3) : CALL
4) : RET
Correct Option : 1 From : Lecture 14
Question # 89
POP transfers the word at the current top of stack (pointed to by SP)
to the destination operand and then __________ SP by two to point to
the new top of stack.
1) : increments
2) : dcrements
3) : ++
4) : --
Correct Option : 1 From : Lecture 14
Question # 90
The trick is to use the ________and ___________operations and save the
callers’ value on the stack and recover it from there on return.
1) : POP, ADC
2) : CALL, RET
3) : CALL, RET n
4) : PUSH, POP
Correct Option : 4 From : Lecture 14
Question # 91
To access the arguments from the stack, the immediate idea that
strikes is to __________ them off the stack.
1) : PUSH
2) : POP
3) : CALL
4) : Rrgister
Correct Option : 2 From : Lecture 15
Question # 92
push bp
we are ________________
1) : sending bp copy to stack
2) : making bp copy from stack
3) : pushing bp on the stack
4) : doing nothing
Correct Option : 3 From : Lecture 15
Question # 93
Local Variables means variables that are used within the ___________________
1) : Subroutine
2) : Program
3) : CALL
4) : Label
Correct Option : 1 From : Lecture 15
Question # 94
Standard ASCII has 128 characters with assigned numbers from ________.
1) : 1to 129
2) : 0 to 127
3) : 0 to 128
4) : None of the Given
Correct Option : 2 From : Lecture 16
Question # 95
When _______ is sent to the VGA card, it will turn pixels on and off
in such a way that a visual representation of ‘A’ appears on the
screen.
1) : 0x60
2) : 0x90
3) : 0x30
4) : 0x40
Correct Option : 4 From : Lecture 16
Question # 96
Which bit is refer to the Blinking of foreground character
1) : 6
2) : 7
3) : 5
4) : 3
Correct Option : 2 From : Lecture 16
Question # 97
Which bit is refer to the Intensity component of foreground color
1) : 4
2) : 5
3) : 3
4) : 7
Correct Option : 3 From : Lecture 16
Question # 98
Which bit is refer to the Green component of background color
1) : 1
2) : 5
3) : 3
4) : 7
Correct Option : 2 From : Lecture 16
Question # 99
Which bit is refer to the Green component of foreground color
1) : 1
2) : 5
3) : 3
4) : 7
Correct Option : 1 From : Lecture 16
Question # 100
String can be indicate bye given
1) : db 0x61, 0x61, 0x63
2) : db 'a', 'b', 'c'
3) : db 'abc'
4) : All of the above
Correct Option : 4 From : Lecture 16
Question # 101
The first form divides a 32bit number in DX:AX by its 16bit operand
and stores the ___________ quotient in AX
1) : 16bit
2) : 17bit
3) : 32bit
4) : 64bit
Correct Option : 1 From : Lecture 17
Question # 102
The ___________ (division) used in the process is integer division and
not floating point division.
1) : DIV instruction
2) : ADC instruction
3) : SSB instruction
4) : DIVI instruction
Correct Option : 1 From : Lecture 17
Question # 103
______________(multiply) performs an unsigned multiplication of the
source operand and the accumulator.
1) : Multi
2) : DIV
3) : MUL
4) : Move
Correct Option : 3 From : Lecture 18
Question # 104
The desired location on the screen can be calculated with the
following formulae.
1) : location = ( hypos * 80 + SP ) * 3
2) : location = ( hypos * 80 + slocation ) * 2
3) : location = ( hypos * 80 + epos ) * 2
4) : None of the Given
Correct Option : 3 From : Lecture 18
Question # 105
To play with string there are 5 instructions that are __________
1) : STOS, LODS, CMPS, SCAS, and MOVS
2) : MUL, DIV, ADD, ADC and MOVE
3) : SSB, ADD, CMPS, ADC, and MOVS
4) : None of the Given
Correct Option : 1 From : Lecture 18
Question # 106
_______transfers a byte or word from register AL or AX to the string
element addressed by ES:DI and updates DI to point to the next
location.
1) : LODS
2) : STOS
3) : SCAS
4) : MOVE
Correct Option : 2 From : Lecture 18
Question # 107
____________ transfers a byte or word from the source location DS:SI
to AL or AX and updates SI to point to the next location.
1) : LODS
2) : STOS
3) : SCAS
4) : MOVE
Correct Option : 1 From : Lecture 18
Question # 108
_______compares a source byte or word in register AL or AX with the
destination string element addressed by ES: DI and updates the flags.
1) : LODS
2) : STOS
3) : SCAS
4) : MOVE
Correct Option : 3 From : Lecture 18
Question # 109
____________ repeat the following string instruction while the zero
flag is set and REPNE or REPNZ repeat the following instruction while
the zero flag is not set.
1) : REP or REPZ
2) : REPE or REPZ
3) : REPE or RPZ
4) : RPE or REPZ
Correct Option : 2 From : Lecture 18
Question # 110
LES loads ______________
1) : ES
2) : DS
3) : PS
4) : LS
Correct Option : 1 From : Lecture 20
Question # 111
LDS loads_______.
1) : ES
2) : DS
3) : PS
4) : LS
Correct Option : 2 From : Lecture 20
Question # 112
REP allows the instruction to be repeated ____________ times allowing
blocks of memory to be copied.
1) : DX
2) : CX
3) : BX
4) : AX
Correct Option : 2 From : Lecture 20
Question # 113
___________pops IP, then CS, and then FLAGS.
1) : Ret n
2) : REZA
3) : REPE
4) : IRET
Correct Option : 4 From : Lecture 21
Question # 114
________ , Trap, Single step Interrupt
1) : INT 0
2) : INT 1
3) : INT 3
4) : INT 0
Correct Option : 2 From : Lecture 21
Question # 115
_________,NMI-Non Maskable Interrupt
1) : INT 0
2) : INT 1
3) : INT 3
4) : INT 0
Correct Option : 3 From : Lecture 21
Question # 116
To hook an interrupt we change the _________ corresponding to that interrupt.
1) : SX
2) : vector
3) : AX
4) : BX
Correct Option : 2 From : Lecture 22
Question # 117
___________pops IP, then CS, and then FLAGS.
1) : Ret n
2) : REZA
3) : REPE
4) : IRET
Correct Option : 4 From : Lecture 21
Question #118
________ , Trap, Single step Interrupt
1) : INT 0
2) : INT 1
3) : INT 3
4) : INT 0
Correct Option : 2 From : Lecture 21
Question #119
_________,NMI-Non Maskable Interrupt
1) : INT 0
2) : INT 1
3) : INT 3
4) : INT 0
Correct Option : 3 From : Lecture 21
Question # 120
To hook an interrupt we change the _________ corresponding to that interrupt.
1) : SX
2) : vector
3) : AX
4) : BX
2. In case of COM File first command parameter is stored at ______ offset of program
segment prefix.
a. 0x80 (Not Confirm)
b. 0x82
c. 0x84
d. 0x86
10. The execution of instruction mov word [es:160], 0x1230, will print a character on the
screen at
a. First column of second row
b. Second column of first row
c. Second column of second row
d. First column of third row
======================================
Q=1
Conditional jump can only:
1. Far
2. short
3. near
4. all of the given
q=2:
Address is always go from:
1. Processor to memory
2. Memory to processor
3. Memory to memory
4. None of given
Q=3;
Programmable interrupt controllers have two ports 20 and 21……port 20 is a control port while port 21
is ………..
1. The interrupt make register
2. Interrupt port
3. Output port
4. Input port
Q=4:
Q=6:
Which of the following is the pair of register used to access memory in string instruction?
1. DI and BP
2. SI and BP
3. DI and SI
4. DS and SI
Q=7:
In case of COM file,first command line parameter is stored at ………..offset of program segment prefix’
1. 0x80
2. 0x82
3. 0x84
4. 0x86
Q=8:
The INT 0x13 service 0x03 is use to …
1. Read disk sector
2. Write disk sector
3. Reset disk sector
4. Get drive parameters
Q=9:
After the execution of STOSWB,the CX wil be……..
1. Incremented by 1
2. Incremented by 2
3. Decremented by 1
4. Decremented by 2
Q=10
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
follow
• Home
• Browses
• Computers
• News
• General
• Web Design
• Tutorials
• Contact
RSS SUBSCRIBE
• CS SOLVED QUIZZES
• CATEGORY THREE
• PARENT CATEGORY ONE
• UNCATEGORIZED
• WHATEVER
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 # 11
| 0 |--›| 1 | 1 | 0 | 1 | 0 | 0 | 0 | --›| C | is a example of ______
1) : Shl
2) : sar
3) : Shr
4) : Sal
Correct Option : 3 From : Lecture 10
Question # 12
| C |‹--| 1 | 1 | 0 | 1 | 0 | 0 | 0 | ‹--| 0 | is a example of ______
1) : Shl
2) : sar
3) : Shr
4) : Sal
Correct Option : 1 From : Lecture 10
Question # 13
ADC has _________ operands.
1) : two
2) : three
3) : Five
4) : Zero
Correct Option : 2 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 # 23
8088 is a 16bit processor with its accumulator and all registers of __________.
1) : 32 bits
2) : 6 bits
3) : 16 bits
4) : 64 bits
Correct Option : 3 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 # 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 # 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
Question # 50
“ 1------------[org 0x0100]
2------------mov ax, [num1] ; load first number in ax
3------------mov bx, [num2] ; load second number in bx
4------------add ax, bx _________________________________
5------------int 0x21
6------------
7------------num1: dw 5
8------------num2: dw 10
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 : 3 From : Lecture 7
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 # 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 # 64
In JNE and JNZ there is difference for only _____________;
1) : Programmer or Logic
2) : Assembler
3) : Debugger
4) : IAPX88
Correct Option : 1 From : Lecture 9
Question # 65
JMP is Instruction that on executing take jump regardless of the state of all flags is called__________
1) : Jump
2) : Conditional jump
3) : Unconditional jump
4) : Stay
Correct Option : 3 From : Lecture 9
Question # 66
When result of the source subtraction from the destination is zero, zero flag is set i.e. ZF=1
its mean that;
1) : DEST = SRC
2) : DEST != SRC
3) : DEST < SRC
4) : DEST > SRC
Correct Option : 1 From : Lecture 9
Question # 67
When an unsigned source is subtracted from an unsigned destination and the destination is smaller, borrow is needed
which sets the ____________.
1) : carry flag i.e CF = 0
2) : carry flag i.e CF = 1
3) : Carry Flag + ZF=1
4) : None of the Given
Correct Option : 2 From : Lecture 9
Question # 68
In the case of unassigned source and destination when subtracting and in the result ZF =1 OR CR=1 then _______
1) : DEST = SRC
2) : DEST != SRC
3) : UDEST ? USRC
4) : DEST > SRC
Correct Option : 3 From : Lecture 9
Question # 69
In the case of unassigned source and destination when subtracting and in the result ZF =0 AND CR=0 then _______
1) : DEST = SRC
2) : DEST != SRC
3) : UDEST < USRC
4) : UDEST > USRC
Correct Option : 4 From : Lecture 9
Question # 70
In the case of unassigned source and destination when subtracting and in the result CR=0 then _______
1) : DEST = SRC
2) : DEST != SRC
3) : UDEST < USRC
4) : UDEST ? USRC
Correct Option : 4 From : Lecture 9
Question # 71
______This jump is taken if the last arithmetic operation produced a zero in its destination. After a CMP it is taken if
both operands were equal.
1) : Jump if zero(JZ)/Jump if equal(JE)
2) : Jump if equal(JE)
3) : Jump if zero(JZ)
4) : No Jump fot This
Correct Option : 1 From : Lecture 9
Question # 72
_______This jump is taken after a CMP if the unsigned source is smaller than or equal to the unsigned destination.
1) : JBE(Jump if not below or equal)
2) : JNA(Jump if not above)/JBE(Jump if not below or equal)
3) : JNA(Jump if not above)
4) : No Jump fot This
Correct Option : 2 From : Lecture 9
•
•
•
•
SearchSign UpSign In
image: https://storage.ning.com/topology/rest/1.0/file/get/1894214041?profile=RESIZE_710x
We are here with you hands in hands to facilitate your learning & don't appreciate the idea of
copying or replicating solutions. Read More>>
IMAGE:
HTTPS://API.NING.COM/FILES/P0E6PRAPIVQXF22DIUAALSAQN*NOXBHSOJTH70EXFGJGKAMGMJMR
XA4EEE*UAXWYTLNIHNJMP2-IHDCQ2LS505LABRZQWQ82/FINALLASTBANNERLASTUPDATED.JPG
WWW.VUSTUDENTS.NING.COM
HOME
CHAT
MYPAGE
MEMBERS
FORUM
STUDY ZONE
BLOGS
VIDEOS
PHOTOS
EVENTS
TOP MOST
CONTACT
image:
https://storage.ning.com/topology/rest/1.0/file/get/2742202890?profile=RESIZE_180x180&width=
64&height=64&crop=1%3A1
image: https://api.ning.com/files/bR8nA-I0SJG6CIZy-
G9bFxGXvn7hyT4N02K91fZsBDwSGf9m5PCwpwb1EG9XyJgwVosLWYX7URUBcF-
opkYm*m2jWzSgMBAS/ddd.png?size=64&crop=1%3A1
CS401 Computer Architecture and Assembly Language Programming Quiz No 1 Solution and
Discussion Spring 2014 Due Date: May 08, 2014
Posted by + M.Tariq Malik on April 26, 2014 at 9:57am in CS401 Computer Architecture and
Assembly Language ProgrammingBack to CS401 Computer Architecture and Assembly Language
Programming Discussions
CS401 Computer Architecture and Assembly Language Programming Quiz No 1 Solution and
Discussion Spring 2014 Due Date: May 08, 2014
Quiz No.01 will open on May 07, 2014 and the last date of taking quiz is May 08, 2014
Like 2 members like this Share
Share0 0
image: https://www.animatedimages.org/data/media/111/animated-arrow-image-0103.gif
image: https://www.animatedimages.org/data/media/111/animated-arrow-image-0104.gif
Views: 3073
image:
https://api.ning.com/files/BvvGf9m5PCwpwb1EG9XwhQihCFPSNPkwLNBTbVZHUAnYc5iRYaWz9emJB
bBLT1Kqob5UDEML61gCyjnAcfMXgkdP3wGcg45a/1078630746.jpeg?xgip=48%3A13%3A337%3A33
7%3B%3B&profile=RESIZE_180x180&width=48&height=48&crop=1%3A1
Permalink Reply by ĴĮÃ ČĤ on April 26, 2014 at 11:39am
thanx 4 info
image: http://www.bkserv.net/images/Smile.gif
image: http://www.bkserv.net/images/Smile.gif
image: https://api.ning.com/files/vYV2N1KqCyWx-
uRXHAn34fAn*zA8xwXJDGrhjqEfkvETBMTTIbOuz0CT2Zk*PWhcgH9GT2*p4Grb9gT1LVk*uHXd5EgPj
W2O/559187146.jpeg?xgip=9%3A0%3A380%3A380%3B%3B&profile=RESIZE_180x180&width=48
&height=48&crop=1%3A1
Question # 2
Current instruction
Pointer Register
Index register
Flag register
Question # 4 of 10
BP
CX
IP
Question # 5 of 10
True
False
Question # 6 of 10
True
Question # 7 of 10
unconditional jump can be
near
short
far
Question # 8 of 10
True
False
www.vuzs.net
True
False
False
True
Unconditional jump
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
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
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
True
False
True
False
True
False
www.vuzs.net
.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
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
Direct addressing
Base+index
True
False
www.vuzs.net
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
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
www.vuzs.net
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
image:
https://api.ning.com/files/mL7vEimd6q1FFRitFm5rLQihCFPSNPkwLNBTbVZHUAnYc5iRYaWz9emUHut
lAuNHbO5Nmxp3F1FxMBmg*RTwgYfRvHI0ahB7/1063873508.jpeg?xgip=0%3A0%3A255%3A255%
3B%3B&profile=RESIZE_180x180&width=48&height=48&crop=1%3A1
image:
https://api.ning.com/files/iIZAd8bUR*ap85F47P1pmdlJpHtPpcGf9m5PCwpwb1EG9XyJgwVosLWYX7
URUBcFrE9d-EeIjoS8TnL7it4zsvJ9UqmwuhZZ/vu.jpg?width=48&height=48&crop=1%3A1
8 chapters cover 22 lectures. I observed that first four lectures cover first chapter so please give the
breakup of other eight chapters like
Chapter #. 2 (?)
Chapter # 3
Chapter #. 4
Chapter #5
Chapter # 6
Chapter # 7
Chapter # 8
image: https://mail.google.com/mail/u/2/images/cleardot.gif
image:
https://api.ning.com/files/mL7vEimd6q1FFRitFm5rLQihCFPSNPkwLNBTbVZHUAnYc5iRYaWz9emUHut
lAuNHbO5Nmxp3F1FxMBmg*RTwgYfRvHI0ahB7/1063873508.jpeg?xgip=0%3A0%3A255%3A255%
3B%3B&profile=RESIZE_180x180&width=48&height=48&crop=1%3A1
image:
https://api.ning.com/files/rLQihCFPSNPkwLNBTbVZHUAnYc5iRYaWz9em8ZYcIsMOyXzqGK7VbRI0yb
wlcF4eIMGMst9m1vEHiWLVQHANwn*wMYxAv3T-
/1217870021.jpeg?xgip=0%3A0%3A477%3A477%3B%3B&profile=RESIZE_180x180&width=48&h
eight=48&crop=1%3A1
image: http://www.bkserv.net/images/Smile.gif
image:
https://storage.ning.com/topology/rest/1.0/file/get/2742202890?profile=RESIZE_180x180&width=
48&height=48&crop=1%3A1
image: https://api.ning.com/files/bR8nA-I0SJG6CIZy-
G9bFxGXvn7hyT4N02K91fZsBDwSGf9m5PCwpwb1EG9XyJgwVosLWYX7URUBcF-
opkYm*m2jWzSgMBAS/ddd.png?size=64&crop=1%3A1
Mechanism used to drop carry for making the calculated address valid is known as:
Carry Overload
Overflow
Address Wraparound
we can not Subrtace index register from the base register( bx-si )in assemlby language
True
False
Effective address
Offset Address
Addition
Division
Subtraction
Multiplicaion
BP
IP
SP
BP
4 bits
8 bits
16 bits
32 bits
MOV AX, 55
MOV AX, BX
MOV BX, AX
True
False
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
16
64
we can not add two base register i.e. (bx+bp) or cant use in an instruction
True
False
BR,
Answers:
1) Address Wraparound
2) True
3) Effective address
4) Subtaction
5) BP
6) 16 bits
8) False
9) 8 bits
10) True>
image:
https://api.ning.com/files/iIZAd8bUR*ap85F47P1pmdlJpHtPpcGf9m5PCwpwb1EG9XyJgwVosLWYX7
URUBcFrE9d-EeIjoS8TnL7it4zsvJ9UqmwuhZZ/vu.jpg?width=48&height=48&crop=1%3A1
image: http://www.bkserv.net/images/Smile.gif
image: http://www.bkserv.net/images/Smile.gif
image: http://www.bkserv.net/images/Smile.gif
image:
https://api.ning.com/files/rLQihCFPSNPkwLNBTbVZHUAnYc5iRYaWz9em8ZYcIsMOyXzqGK7VbRI0yb
wlcF4eIMGMst9m1vEHiWLVQHANwn*wMYxAv3T-
/1217870021.jpeg?xgip=0%3A0%3A477%3A477%3B%3B&profile=RESIZE_180x180&width=48&h
eight=48&crop=1%3A1
Hmm 16 hi hai
image: http://www.bkserv.net/images/Smile.gif
image:
https://api.ning.com/files/iIZAd8bUR*ap85F47P1pmdlJpHtPpcGf9m5PCwpwb1EG9XyJgwVosLWYX7
URUBcFrE9d-EeIjoS8TnL7it4zsvJ9UqmwuhZZ/vu.jpg?width=48&height=48&crop=1%3A1
Today main chat room ma ya quiz solved kiya tha sub nay ??? ager koi ans theek nai ha to correct
ker den..thax
1. When a large number is subtracted from a smaller number, a borrow is needed; in this case
which flag will be se
cf
2. jump is not position relative but is absolute
far
3. Group of bits processor uses to inform memory which element to read/write is collectively known
as
address bus
ITTERATION
6. All the addressing mechanisms in iAPX88 return a number called _____________ address.
Effective
7. Whenever we need access to a memory location whose address is not known until run-time we
use _________.
INDEX REGISTOR
DIVISION
00000011
image:
https://api.ning.com/files/iIZAd8bUR*ap85F47P1pmdlJpHtPpcGf9m5PCwpwb1EG9XyJgwVosLWYX7
URUBcFrE9d-EeIjoS8TnL7it4zsvJ9UqmwuhZZ/vu.jpg?width=48&height=48&crop=1%3A1
cs
Little endian
The maximum amount of memory accessible using 8085 processor is __________.
64 kb
Which of the following addressing scheme has been used in the instruction MOV [BX], AX?......
Sending the appropriate signals on the control bus to the memory is the responsibility of
________________.
processor conferm
flag Register
counter conferm
---------------------------------------------------------------------
source
destination
immediate source
-------------------------------------------------------
MOV ax,[bx+bp]
------------------------------------------------------
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 ?
RCR
RCL
ROR
ROL
--------------------------------------------------------------------------------------------
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
ROL
RCL
ROR
----------------------------------------------------------------------------
---------------------------------------------------------------------
bidirectional conferm
---------------------------------------------------------------
Subtraction
--------------------------------------------------------------------------
The _______________ operation is about shifting 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.
----------------------------------------------------------------------------------------
-----------------------------------------------------------------------
MUL AX, 3
-------------------------------------------------------
The shift logical left operation is the exact ________ of shift logical right.
oposite
-------------------------------------------------------------------------
The _______________ operation is about shifting 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.
SHR
SHL
------------------------------------------------
------------------------------------------
-------------------------------------------------------------------------
n ________ 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 ?
ROL
RCR
RCL
ROR
-------------------------------------------------------------------------------------------------
mov [bp], al" moves the one byte contents of the AL register to the address contained in BP register
in the current ___________.
Stack Segment
Data Segment
Code Segment
-----------------------------------------------------------
Which of the following shift 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 ?
SHL
-----------------------------------------------------------------
1 2 4 16 bytes?
image:
https://api.ning.com/files/iIZAd8bUR*ap85F47P1pmdlJpHtPpcGf9m5PCwpwb1EG9XyJgwVosLWYX7
URUBcFrE9d-EeIjoS8TnL7it4zsvJ9UqmwuhZZ/vu.jpg?width=48&height=48&crop=1%3A1
The _______________ operation is about shifting 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.
‹ Previous
Next ›
Page
RSS
Welcome Guest
image: https://api.ning.com/files/WltTFfACAjceq0Z9scF-2P8-
PEOCiskrhevMG69xLcPEO2dN6EUNXc1D02aw3mZyUCwZS78JwFbU4CraNbOH5mwVvAbouPgH/regist
ernow_blue.png?width=175
Sign Up
or Sign In
LATEST ACTIVITY
image:
https://storage.ning.com/topology/rest/1.0/file/get/2742202890?profile=RESIZE_180x180&width=
32&height=32&crop=1%3A1
image: https://api.ning.com/files/bR8nA-I0SJG6CIZy-
G9bFxGXvn7hyT4N02K91fZsBDwSGf9m5PCwpwb1EG9XyJgwVosLWYX7URUBcF-
opkYm*m2jWzSgMBAS/ddd.png?size=64&crop=1%3A1
+ M.Tariq Malik replied to + M.Tariq Malik's discussion CS507 Mid Term Papers Spring 2019
(15~28-June 2019) & All Solved Past Papers, Solved MCQs & Helping Material in the group CS507
Information Systems
10 hours ago
image:
https://storage.ning.com/topology/rest/1.0/file/get/2742202890?profile=RESIZE_180x180&width=
32&height=32&crop=1%3A1
image: https://api.ning.com/files/bR8nA-I0SJG6CIZy-
G9bFxGXvn7hyT4N02K91fZsBDwSGf9m5PCwpwb1EG9XyJgwVosLWYX7URUBcF-
opkYm*m2jWzSgMBAS/ddd.png?size=64&crop=1%3A1
+ M.Tariq Malik replied to + M.Tariq Malik's discussion CS507 Mid Term Papers Spring 2019
(15~28-June 2019) & All Solved Past Papers, Solved MCQs & Helping Material in the group CS507
Information Systems
10 hours ago
image:
https://storage.ning.com/topology/rest/1.0/file/get/2742202890?profile=RESIZE_180x180&width=
32&height=32&crop=1%3A1
image: https://api.ning.com/files/bR8nA-I0SJG6CIZy-
G9bFxGXvn7hyT4N02K91fZsBDwSGf9m5PCwpwb1EG9XyJgwVosLWYX7URUBcF-
opkYm*m2jWzSgMBAS/ddd.png?size=64&crop=1%3A1
+ M.Tariq Malik replied to + M.Tariq Malik's discussion CS507 Mid Term Papers Spring 2019
(15~28-June 2019) & All Solved Past Papers, Solved MCQs & Helping Material in the group CS507
Information Systems
10 hours ago
image:
https://storage.ning.com/topology/rest/1.0/file/get/2742202890?profile=RESIZE_180x180&width=
32&height=32&crop=1%3A1
image: https://api.ning.com/files/bR8nA-I0SJG6CIZy-
G9bFxGXvn7hyT4N02K91fZsBDwSGf9m5PCwpwb1EG9XyJgwVosLWYX7URUBcF-
opkYm*m2jWzSgMBAS/ddd.png?size=64&crop=1%3A1
+ M.Tariq Malik replied to + M.Tariq Malik's discussion CS507 Mid Term Papers Spring 2019
(15~28-June 2019) & All Solved Past Papers, Solved MCQs & Helping Material in the group CS507
Information Systems
10 hours ago
image:
https://storage.ning.com/topology/rest/1.0/file/get/2742202890?profile=RESIZE_180x180&width=
32&height=32&crop=1%3A1
image: https://api.ning.com/files/bR8nA-I0SJG6CIZy-
G9bFxGXvn7hyT4N02K91fZsBDwSGf9m5PCwpwb1EG9XyJgwVosLWYX7URUBcF-
opkYm*m2jWzSgMBAS/ddd.png?size=64&crop=1%3A1
CS507 Mid Term Papers Spring 2019 (15~28-June 2019) & All Solved Past Papers, Solved MCQs &
Helping Material
CS508 Mid Term Papers Spring 2019 (15~28-June 2019) & All Solved Past Papers, Solved MCQs &
Helping Material
MCM101 Mid Term Papers Spring 2019 (15~28-June 2019) & All Solved Past Papers, Solved MCQs &
Helping Material
5 more…
10 hours ago
image:
https://storage.ning.com/topology/rest/1.0/file/get/2742202890?profile=RESIZE_180x180&width=
32&height=32&crop=1%3A1
image: https://api.ning.com/files/bR8nA-I0SJG6CIZy-
G9bFxGXvn7hyT4N02K91fZsBDwSGf9m5PCwpwb1EG9XyJgwVosLWYX7URUBcF-
opkYm*m2jWzSgMBAS/ddd.png?size=64&crop=1%3A1
+ M.Tariq Malik liked + M.Tariq Malik's discussion CS507 Mid Term Papers Spring 2019 (15~28-
June 2019) & All Solved Past Papers, Solved MCQs & Helping Material
10 hours ago
image:
https://storage.ning.com/topology/rest/1.0/file/get/2742202890?profile=RESIZE_180x180&width=
32&height=32&crop=1%3A1
image: https://api.ning.com/files/bR8nA-I0SJG6CIZy-
G9bFxGXvn7hyT4N02K91fZsBDwSGf9m5PCwpwb1EG9XyJgwVosLWYX7URUBcF-
opkYm*m2jWzSgMBAS/ddd.png?size=64&crop=1%3A1
image: https://api.ning.com/files/F2gXzo9gtlVpHeOGhm0X5j*BfvL9u5mRqmw-
CkZ3NaBkbzOJrkZDprWBIJ-B4hNk6XEs518vC-lp7*UZ-
H38TlWLTN2Mv475/imagesCAFNEF1J.jpg?profile=RESIZE_180x180&crop=1%3A1&width=64
Thumbnail
CS507 Mid Term Papers Spring 2019 (15~28-June 2019) & All Solved Past Papers, Solved MCQs &
Helping Material
10 hours ago
41
image:
https://storage.ning.com/topology/rest/1.0/file/get/2742202890?profile=RESIZE_180x180&width=
32&height=32&crop=1%3A1
image: https://api.ning.com/files/bR8nA-I0SJG6CIZy-
G9bFxGXvn7hyT4N02K91fZsBDwSGf9m5PCwpwb1EG9XyJgwVosLWYX7URUBcF-
opkYm*m2jWzSgMBAS/ddd.png?size=64&crop=1%3A1
+ M.Tariq Malik replied to + M.Tariq Malik's discussion CS508 Mid Term Papers Spring 2019
(15~28-June 2019) & All Solved Past Papers, Solved MCQs & Helping Material in the group CS508
Modern Programming Languages
10 hours ago
image:
https://storage.ning.com/topology/rest/1.0/file/get/2742202890?profile=RESIZE_180x180&width=
32&height=32&crop=1%3A1
image: https://api.ning.com/files/bR8nA-I0SJG6CIZy-
G9bFxGXvn7hyT4N02K91fZsBDwSGf9m5PCwpwb1EG9XyJgwVosLWYX7URUBcF-
opkYm*m2jWzSgMBAS/ddd.png?size=64&crop=1%3A1
+ M.Tariq Malik replied to + M.Tariq Malik's discussion CS508 Mid Term Papers Spring 2019
(15~28-June 2019) & All Solved Past Papers, Solved MCQs & Helping Material in the group CS508
Modern Programming Languages
10 hours ago
image:
https://storage.ning.com/topology/rest/1.0/file/get/292124640?profile=RESIZE_180x180&width=3
2&height=32&crop=1%3A1
Muhammad Bilal liked zohaib iftikhar's discussion ...* HALAAT K QADMON PE KABHI QALANDER
NAHI GIRTA ...*
10 hours ago
image:
https://storage.ning.com/topology/rest/1.0/file/get/2742202890?profile=RESIZE_180x180&width=
32&height=32&crop=1%3A1
image: https://api.ning.com/files/bR8nA-I0SJG6CIZy-
G9bFxGXvn7hyT4N02K91fZsBDwSGf9m5PCwpwb1EG9XyJgwVosLWYX7URUBcF-
opkYm*m2jWzSgMBAS/ddd.png?size=64&crop=1%3A1
+ M.Tariq Malik replied to + M.Tariq Malik's discussion CS508 Mid Term Papers Spring 2019
(15~28-June 2019) & All Solved Past Papers, Solved MCQs & Helping Material in the group CS508
Modern Programming Languages
10 hours ago
image:
https://storage.ning.com/topology/rest/1.0/file/get/2742202890?profile=RESIZE_180x180&width=
32&height=32&crop=1%3A1
image: https://api.ning.com/files/bR8nA-I0SJG6CIZy-
G9bFxGXvn7hyT4N02K91fZsBDwSGf9m5PCwpwb1EG9XyJgwVosLWYX7URUBcF-
opkYm*m2jWzSgMBAS/ddd.png?size=64&crop=1%3A1
+ M.Tariq Malik replied to + M.Tariq Malik's discussion CS508 Mid Term Papers Spring 2019
(15~28-June 2019) & All Solved Past Papers, Solved MCQs & Helping Material in the group CS508
Modern Programming Languages
10 hours ago
RSS
image: https://storage.ning.com/topology/rest/1.0/file/get/2200595117?profile=RESIZE_710x
image: https://storage.ning.com/topology/rest/1.0/file/get/2200942483?profile=RESIZE_710x
TODAY TOP MEMBERS
image:
https://storage.ning.com/topology/rest/1.0/file/get/2665646886?profile=RESIZE_180x180&width=
32&height=32&crop=1%3A1
+ツ
image:
https://storage.ning.com/topology/rest/1.0/file/get/1568148567?profile=RESIZE_180x180&width=
32&height=32&crop=1%3A1
image:
https://api.ning.com/files/iIZAd8bUR*ap85F47P1pmdlJpHtPpcGf9m5PCwpwb1EG9XyJgwVosLWYX7
URUBcFrE9d-EeIjoS8TnL7it4zsvJ9UqmwuhZZ/vu.jpg?width=32&height=32&crop=1%3A1
RSS
View All
image: https://storage.ning.com/topology/rest/1.0/file/get/1894642504?profile=RESIZE_710x
In Left - Shift - Operation , the left most
bit _______
Select correct option
will be dropped
will go into CF
will be moved to the right - most
position
will always be 1
Question # 2 of 10 ( Start time:
09 :16 :53 PM ) Total Marks: 1
" mov [ bp ] , al " moves the one byte
contents of the AL register to the
address contained in BP register in the
current ___________ .
Select correct option :
Stack Segment
Data Segment
Code Segment
Extra Segment
Question # 3 of 10 ( Start time:
09 :17 :33 PM ) Total Marks: 1
CX register is mostly used as a
Select correct option :
counter register
flag register
base register
desination register
Question # 4 of 10 ( Start time:
09 :18 :55 PM ) Total Marks: 1
By default CS is associated
with
Select correct option :
SS
BP
CX
IP
Question # 5 of 10 ( Start time:
09 :20 :30 PM ) Total Marks: 1
Which of the following shift 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 ?
Select correct option :
SHL
SAL
SAR
SHR
Question # 6 of 10 ( Start time:
09 :21 :58 PM ) Total Marks: 1
The _______________ operation is
about shifting 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 .
Select correct option :
Shift Logical Left (SHL )
Shift Logical Right ( SHR )
Shift Arithmetic ( SAR )
Shift Arithmetic Left (SAL )
Question # 7 of 10 ( Start time:
09 :23 :17 PM ) Total Marks: 1
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 ?
Select correct option :
ROL
RCR
RCL
ROR
Question # 8 of 10 ( Start time:
09 :24 :15 PM ) Total Marks: 1
Which one of the following is an illegal
instruction?
Select correct option
MOV AX ,BX
MOV AX ,65
MOV ax ,[ bx + bp ]
Mov BX , 10
Question # 9 of 10 ( Start time:
09 :24 :54 PM ) Total Marks: 1
The shift logical left operation is the
exact ________ of shift logical right .
Select correct option :
Similar
Opposite
implementation
comparison
Question # 10 of 10 ( Start time :
09 :25 :41 PM ) Total Marks: 1
Physical address calculation depends on
Select correct option :
Base address
Effective address
Offset Address
Segment Address
•
+ M.Tariq Malik
CS401 Quiz 2
Dec 17, 2014
•
nina
•
Syeda Shahzadi Bukhari (BS 8th )
4
8
16 .......right
32
Question # 2 of 10 ( Start time: 09:38:39 PM ) Total Marks: 1
The Jump command that does not depend on FLAG register is
Select correct option:
JCXZ
JO
JNE.....right
JP
REPNE ...right
SCAS
MOV
CALL
Single
Double
Three ....right not sure
Four
Question # 5 of 10 ( Start time: 09:41:55 PM ) Total Marks: 1
Which of the following are the two variants of STOS instruction?
Select correct option:
Near
Short
Far ....right
Extra
8
16
24
32 ..right
25, 40
25, 80
80, 25 .............right
0x10
0x20....................right
0x30
0x41
Dec 17, 2014
1 member likes this
4
ALL CS401 solved Quiz no 1 and 2 (2013
and 2014 ) in one discussion
by + WASI(S.Admin) +
May 27, 2014
Question # 9 of 10 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
•
+ WASI(S.Admin) +
Cs 401 Quiz no 1 (2014)@ wasi
Question # 9 of 10 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
Ans far
Ans ITTERATION
Ans 2
Ans Effective
7. Whenever we need access to a memory location whose address is not
known until run-time we use _________.
Ans DIVISION
Ans 00000011
10. To multiply a number in a register by 2 the number is ____________.
14. Which of the following addressing scheme has been used in the
instruction MOV [BX], AX?......
16.Sending the appropriate signals on the control bus to the memory is the
responsibility of ________________.
Ans processor conferm
Ans Subtraction
25. The shift logical left operation is the exact ________ of shift logical right.
Ans oposite
27. Which of the following shift 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 ?
Ans SHL
28.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 ?
RCR
RCL
Ans ROR
ROL
29. 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".
Ans RCR
ROL
RCL
ROR
4
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
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
________ 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:
_______ 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
True
False
True
False
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:
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:
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:
SP
BP
AX
BX
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
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
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
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
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
SP
BP
AX
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
_________ 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
The operation of PUSH is not similar to CALL however with a register other than the instruction pointer.
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
Hexadecimal is the prevalent and standard format for representation of characters in computers.
Select correct option:
True
False
MUL (multiply) Instruction performs an unsigned multiplication of the source operand and
the ___________.
Select correct option:
Accumulator
Carry
Word
Base
A typical stack is an area of computer memory with a fixed origin and a variable
True
False
Local variables should be created when the subroutine is called and discarded afterwards.
True
False
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.
True
False
Elements are removed from the stack in the reverse order to the order of their addition.
True
False
The Operation of Push is if "we push ax" then SP<-- SP+2 [SP]<-- AX
True
False
The operations of placing items on the stack and removing them from there are called push and ret.
True
False
A _____ is an area of memory that holds all local variables and parameters used by any function and
remembers the order in which functions are called so that function returns occur correctly.
Instruction Pointer
Stack
Data Segment
Base Register
In
Out
Push
Add
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
--
► ISR
► IRS
► ISP
► IRT
► string
► word
► indirect
► stack
► SP is incremented by 2
► SP is decremented by 2
► SP is incremented by 4
► SP is decremented by 4
► Two forms
► Three forms
► Four forms
► Five forms
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
► 64 bits
► DI only
► SI and DI only
► An illegal instruction
Question No: 13 ( Marks: 1 ) - Please choose one
In the
word designated for one screen location, the higher address contains
► Black
► White
► Red
► Blue
Question No: 17 ( Marks: 2 )
Why
is it necessary to provide the segment and offset address in case of FAR jump ?
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.
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.
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
autoincrement mode of string instruction, and if DF is set, DF=1, this is called the autodecrement mode.
There are two instructions to set and clear the direction flag.
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
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.
a. 0x0010
b. 0x0100
c. 0x1000
d. 0x0000
a. 12
b. 14
c. 16
d. 18
3. 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.
a. Carry flag
b. parity flag
c. auxiliary carry
d. zero flag
a. string
b. word
c. indirect
d. stack
5. Allow changing specific processor behaviors and are used to play with it.
a. Special instructions
a. 32 bits
b. 6 bits
c. 16 bits
d. 8 bits
a. Ax
b. bx
c. cx
d. flag register
8. All the addressing mechanisms in iAPX88 return a number called ___ address.
a. Effective
b. Faulty
c. indirect
d. direct
a. Legal
b. illegal
c. stack based
d. memory indirect
a. processor to memory
b. memory to processor
c. memory to peripheral
d. peripheral to processor
a. segment
b. code label
c. index register
d. data label
a. IP
b. SS
c. BP
d. CX
a. 5
b. 6
c. 7
d. 8
a. 8 bits
b. 16 bits
c. 32 bits
d. 64 bits
15. After execution of JCXZ instruction CX will changed with flag affect.
a. CF
b. OF
c. DF
d. None
a. dependent
b. absolute
c. temporary
d. indirect
17. 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.
a. 0005
b. 0117
c. num1
d. 1701
a. Source
b. counter
c. index
d. pointer
a. Control bus
b. data bus
c. address bus
d. none
a. base pointer
b. code segment
c. source index
d. program counter
a. flag
b. carry
c. parity
d. zero sign
a. 5
b. 6
c. 7
d. 8
a. 1 operand
b. 2 operands
c. 3 operands
d. 4 operands
b. intermediate result
c. address
a. Index register
b. base register
c. flags register
d. accumulator
27. The registers IP, SP, BP, SI, DI and BX all can contain a ___ offset.
a. 8 bits
b. 16 bits
c. 32 bits
d. 64 bits
29. 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:
a. 0XBB0150
b. 0X5001BB
c. 0X01BB50
d. 0XBB5001
31. There are ___ registers in Iapx88 architecture that can hold address of data.
a. 1
b. 2
c. 3
d. 4
a. Opcode is 0500
b. opcode is B80500
c. opcode is B8
d. opcode is 05
33. 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.
a. Rotate through carry right(RCR)
34. 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.
a. RCR
b. ROL
c. RCL
d. ROR
a. 8
b. 4
c. 16
d. 32
a. big endian
b. little endian
c. both
d. None
a. Little endian
b. big endian
c. both
d. None
a. -7
b. 7
c. -8
d. 8
a. will drop
b. will go to CF
d. will be always 1
a. db
b. dw
c. dn
d. dd
b. destination
c. memory
d. register
a. 16 bits
b. 20 bits
c. 32 bits
a. count register
b. data register
c. index register
d. base register
a. short, near
a. 8
b. 16
c. 32
d. 64
a. SHL
b. SHR
c. SAR
d. SAL
a. Segment-offset
b. segment-code
c. offset-code
d. offset addressing
51. In rotate right operation every bit moves one position to the right and the bit
dropped from the right is inserted at the left and:
a. dropped in CF
b. moves to AL
c. don’t go anywhere
d. none
52. There are three buses to communicate the processor and memory named as:
d. none
53. The address bus is unidirectional and address always travel from processor to
memory.
a. True
b. False
a. to way
c. data moves from both: processor to memory and memory to data bus
d. none
a. is one way
b. unidirectional
c. bidirectional
d. none
56. A memory cell is an n-bit location to store data, normally ___ also called a byte.
a. 4-bit
b. 8-bit
c. 16-bit
d. 32-bit
57. The number of bits in a cell is called the cell width. ___ define the memory
completely.
b. cell number
c. width
d. height
58. For memory we define two dimensions. The first dimension defines how many
___ bits are there in a single memory cell.
a. Parallel
b. vertical
c. long
d. short
59. if ax contains decimal -2 and bx contains decimal 2 then after the execution of
the instruction: cmp ax, bx JA label
a. 35
b. 70
c. 140
d. 17
61. In general, the memory cell cannot be wider than the width of the data bus.
a. True
b. False
62. ___ bus carries the intent of the processor that it wants to read or to write.
a. Control
b. Address
c. Data
63. The responsibility of sending the appropriate signals on the control bus to the
memory is of the ___.
a. Control Bus
b. Peripherals
c. Processor
d. Memory
64. There are temporary storage places inside the processor called ___.
a. Memories
b. registers
c. peripherals
d. none
65. We can have precisely ___ address on the address bus and consequently
precisely ___ element on the data bus.
a. one, one
b. one, two
c. two, one
d. two, two
66. Traditionally all mathematical and logical operations are performed on the ___.
a. Processor
b. register
c. Accumulator
d. None
67. Whenever we need access to a memory location whose address is not known
until run-time we need an ___ register.
a. Index
b. Flag
c. accumulator
d. none
a. Interrupt
b. overflow
c. direction
d. carry
a. Carry
b. interrupt
c. parity
d. overflow
a. 8
b. 16
c. 32
d. 64
a. 8
b. 16
c. 32
d. 64
77. SI and DI are 16-bit and cannot be used as 8-bit register pairs like ax, bx, cx and
dx.
a. True
b. False
c. Both a and b
d. none
a. Word
b. nibble
c. byte
d. none
80. During addition or subtraction if a carry goes from one nibble to the next which
flag is set?
a. Auxiliary
b. carry
c. trap
d. parity
81. Which flag is set if the last mathematical or logical instruction has produced a
zero in its destination.
a. Carry
b. parity
c. direction
d. zero
a. Colon (:)
b. hyphen (-)
c. semicolon (;)
d. asterisk (*)
83. The process through which the segment register can be explicitly specified is
known as:
a. segment addressing
c. segment indexing
d. offset indexing
84. If BL contains 00000101 then after a single right shift. BL will contain:
a. 00000011
b. 00000010
c. 10000011
d. 10000010
a. DS
b. SS
c. ES
d. CS
87. The stack pointer contains the address of the word that is currently on ___.
a. Mov ax, bx
b. Mov ax, 65
d. Mov bx, 10