CS401 Computer Architecture and Assembly Language Online Solved Quizzes/MCQ's File No 3





That resources are fully employed in
producing particulars goods and
services the level of production that
will cause both unemployment and
inflation Which of the following factors
would cause leftward shift in supply
curve for bicycles ?
Decrease in wages
increase in price of input
Decrease in price of input
use the latest technology in production
of bicycle


Measurement of elasticites is made in
percentage terms because :
it is easy to calculate
the resulting measurement is unit free
it give a more accurate answer
the answer is always negative way


8 Suppose quantity demanded of
chicken increases by 5 percent in
response to 2 percent increase in price
of beef . The cross - price elasticity of
demand for chicken with respect to
price of beef is :
+ 2 .5
- 2 .5
+ . 25
- . 25


Normally the shape of production
possibility frontier is :
positive
convex
lenear
concave


If desk lamps and bulbs are
complementary goods, a fall in price of
desk lamps will shift the demand curve
for:
bulbs to the right
bulbs to the right
Desk lamps to the right
desk lamps to the left


mov [ si+ 300 ] , ax is an example of
Indexed Register Indirect + Offset
Select correct option :
True
False


The iAPX 88 processor supports
_____________ modes of memory
access .
Select correct option :
6
7
8
9


The first 16 - bit processor produced by
“ Intel ” was 8085
True
False


Instruction Pointer holds the address
of the
Previous instruction to be executed
Current instruction
Next instruction to be executed
None of the given




Register are storage cell
Select correct option :
Outside the processor
Both inside and outside the processor
Inside the processor
None of the given


The basic function of register is to
Select correct option :
Hold the operand
Hold the operator
Hold both the operator and operand
None of the given


Assembly language is not a low level
language.
Select correct option :
True
False
+ . 25
- . 25


Normally the shape of production
possibility frontier is :
positive
convex
lenear
concave


If desk lamps and bulbs are
complementary goods, a fall in price of
desk lamps will shift the demand curve
for:
bulbs to the right
bulbs to the right
Desk lamps to the right
desk lamps to the left


mov [ si+ 300 ] , ax is an example of
Indexed Register Indirect + Offset
Select correct option :
True
False


The iAPX 88 processor supports
_____________ modes of memory
access .
Select correct option :
6
7
8
9


The first 16 - bit processor produced by
“ Intel ” was 8085
True
False


Instruction Pointer holds the address
of the
Previous instruction to be executed
Current instruction
Next instruction to be executed
None of the given


Group of bits processor uses to inform
memory which element to read / write is
collectively known as
Select correct option :
Control bus
Data bus
Address bus
RAM


Register are storage cell
Select correct option :
Outside the processor
Both inside and outside the processor
Inside the processor
None of the given


The basic function of register is to
Select correct option :
Hold the operand
Hold the operator
Hold both the operator and operand
None of the given


Assembly language is not a low level
language.
Select correct option :
True
False

In case of COM file , first command
line parameter is stored at ___ offset
of ' program segment prefix '
Select correct option :
0 x 80
0 x 82
0 x 84
0 x 86


In multitasking , which of the following
interrupts is used as scheduler during
context switching ?
Select correct option :
INT 21
INT 16
INT 13
INT 8


____________ is the highest priority
interrupt in interrupt controller.
Select correct option :
IRQ 0
IRQ 1
IRQ 2
IRQ 3


Which of the following INT 21 service
is used to read character from
standard input ?
Select correct option :
00
01
02
03


As compared to _________ ,
___________ provides more cooked
services.
Select correct option :
BIOS, DOS
DOS,OS
DOS, BIOS
OS, DOS


Which of the following registers hold the page number for using the write string service of INT 10 ?
Select correct option :
AH
BL
CL
BH

While writing graphics pixel on the screen, which registers hold the value for setting cursor position?
Select correct option :
AX , BX
AX , CX
BX , CX
CX , DX

All registers of a task are stored in a space called ____________________.
Select correct option :
process storage block
process control block
process terminal
swapping space

BIOS video services are broadly classified into _______ categories.
Select correct option :
1
2
3
4

____________ is the highest priority interrupt in interrupt controller.
Select correct option :
IRQ 0
IRQ 1
IRQ 2
IRQ 3

BIOS video services are broadly
classified into ________ categories .
Select correct option :
1
2
3
4

Changing and restoring the state of Central Processing Unit ( CPU) is referred as :
Select correct option :
Thrashing
Multitasking
Context Switching
Multithreading

Which of the following arranges jobs in a sequence in order to be executed?
Select correct option :
Process Control Block
Arranger
Control unit
Scheduler



The physical address of the stack is obtained by
  SS:SP combination

  SS:SI combination

► SS:SP combination                      
  ES:BP combination
  ES:SP combination



After the execution of instruction "RET "

► SP is incremented by 2
► SP is incremented by 2                          
  SP is decremented by 2

  SP is incremented by 1  SP is decremented by 1 



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

  The dimensions of the screen
  Character position on the screen

► Character color on the screen                
► ASCII code of the character





REP will always

► Increment CX by 1 
► Increment CX by 2

► Decrement CX by 1                
► Decrement CX by 2


The basic function of SCAS instruction is to

► Compare                  
 Scan
 Sort

 Move data



Index registers are used to store __________

Data ►Intermediate result

Address                 
Both data and addresses



The bits of the _____________ work independently and individually 
 index register

base register
flags register                
accumulator



To convert any digit to its ASCII representation

► Add 0x30 in the digit                       
  Subtract 0x30 from the digit
  Add 0x61 in the digit
  Subtract 0x61 from the digit



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

► 32 bits

► 16 bits               
► 8 bits
► 4 bits


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

► AX

► AL                  
► AH

► DX


Which mathematical operation is dominant during the execution of SCAS instruction

 Division
  Multiplication

 Addition

► Subtraction                   



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

JA label

  Jump will be taken

  Zero flag will set
  ZF will contain value -4

  Jump will not be taken



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

► Second column of first row
► First column of second row                      
  Second column of second row

First column of third row



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

  ZF is cleared 
 DF is cleared

  ZF is set

► DF is set                



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


3
4 
5
6                      




In STOS instruction, the implied source will always be in


► AL or AX registers                     

  DL or DX registers

 BL or BX registers 
 CL or CX registers

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

25 Rows and 25 Columns 
25
Rows and 80 Columns 
80 Rows
and 80 Columns

80 Rows and 25 Columns                




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

Dropped in CF                 
moves to AL
Don't go anywhere.



____________ of the following flags will be affected by MOVSB?

 DF Click here for detail
ZF
PF


No effect on flags 


After the execution of STOSW the CX will be

► Decremented by 1
► Decremented by 2                      
► Incremented by 1

► Incremented by 2


The basic function of SCAS instruction is to

► Compare                    
 Scan
 Sort
 Move data


Which is the unidirectional bus ?

(I) Control Bus (II) Data Bus (III) Address Bus  
Ionly 
 ►II only

III only                  
Iand II only


The operation of CMP is to

Subtract Source from Destination                 

Subtract Destination to from Source 
Add 1 to the Destination

Add Source and Destination


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

16-bit                  
32-bit

64-bit



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

► counter               
  index
  pointer


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

► effective                 
  faulty
  indirect

  direct


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

► AX                 
BX
CX
DX

"mov byte [num1], 5" is _________ instruction.

► legal                    
  illegal
  stack based

  memory indirect




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

► Black

► White                   
► Red
► Blue

one To transfer control back the RET instruction take

1 argument ►1 argument

3 arguments                     
No arguments



In STOSB instruction SI is decremented or incremented by
4
1  SI and DI both are Index registers

2 
3



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

DS:SI 
DS:DI
ES:SI

ES:DI                   





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

0xBB0150 ►0x5001BB ►0x01BB50
0xBB5001


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

3 
4


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

9


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



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

AX                   
BX

CX
DX

in Left-Shift-Operation the left most bit _______

will drop
will go into CF               

Will come to the right most ►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






         


_________ is one of the reasons due to which string instructions are used in 8088
Efficiency and accuracy
Reduction in code size and accuracy

Reduction in code size and speed                               
Reduction in code size and efficiency


PCB stands for ?
Select correct option :
Process Control Block
Process Clearing Block
Programable Counter Block
Programs Control Block



In multitasking environment , which of
the following structure is used to
maintain the ordering of active PCBs ?
Select correct option :
Array
Register
Linked List
Stack



Each thread can have their own
Select correct option :
execution area
stack
memory
array

Which of the following services of INT
10 is used for writing the string?
Select correct option :
0 x 12
0 x 13
0 x 11
0 x 10

Threads can have function calls ,
parameters and _ _ _ _ _ _ _ _ _ _
variables .
Select correct option :
global
local
legal
illegal

Which of the following is the highest
priority interrupt
Select correct option :
INT 3
INT 2
INT 1
INT 0

Changing and restoring the state of
Central Processing Unit (CPU) is
referred as :
Select correct option :
Thrashing
Multitasking
Context Switching
Multithreading

In interrupt masking , We use _ _ _ _ _ _ _ _
to get control from the program
without letting the program know about
it.
Select correct option :
IRQ 0
IRQ 1
IRQ 2
IRQ 3

In the context of video services, if we
want to write string then which of the
value will be placed in AH ?
Select correct option :
10 h
12 h
11 h
13 h

TSR stands for :
Select correct option :
Terminate and Store Routines
Transmits and Save Resources
Terminate and Stay Resident
Truncate and Start Recursively


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

Hardware interrupt       
Software interrupt
Processor exception

Logical interrupts



Which mathematical operation is dominant during the execution of SCAS instruction 
Division

Multiplication
Addition
Subtraction                  

The extension of assembly languague file is
.doc
.com
.lst
.asm


When a large number is subtracted from a smaller number, a borrow is needed; in this case which flag will be set
ZF
CF
SF
OF


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

Effective address
Physical address
Direct address
None of the given

Which type of shifting is "Inserts a zero from the left and moves every bit one position to the right and copies the rightmost bit in the carry flag."
SHL
SAL
SAR
None of the given

mov [1234],ax is an example of
Direct addressing
Base register indirect
Base+index
None of the given


Registers are also called scratch pad ram
True
False


The basic function of register is to?
Hold the operand
Hold the operator
Hold both the operator and operand

None of the given



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

CF
OF
DF
No flags will be affected       

" mov [ bx ] , ax " moves the two bytes
contents of the AX register to the
address contained in BX register in the
current ________ .
Select correct option :
Stack Segment
Data Segment
Code Segment
Extra Segment
Solved quizzes *________ flag sets if the last mathematical or logical
instruction has produced a zero in its destination
Sign Flag
Trap Flag
Zero flag ☻
*All the addressing mechanisms in iAPX88 return a number called
_____________ address.
Effective☻
Physical Direct
base

Vukwl- Virtual Education Solution

*The basic function of register is to
Hold the operand☻
Hold the operator
Hold both the operator and operand
None
*CLI stands for
Clear the interrupt flag☻
Clock interrupts
Cycle instruction
Control instruction
*90 is the op-code of
do nothing
add☻
Subtract
Multiplication
*DX plays an important role in arithmetic _________.
addition☻ not sure
multiplication
division
subtraction
*Physical memory address is of
16 bits
32
20☻
8
*Constant can never be used as ___________.
source
destination☻

Vukwl- Virtual Education Solution

*Which of the following is a special Instruction?
cmp ax,0
add bx,0534
mov ax,bx
cli ; Clear the interrupt☻
flag
*By default CS is associated with
IP ☻
*Data bus is ___________.
Select correct option:
Uni-directional
Bi-directional*☻
multi-directiona
None of the given
Instruction Pointer holds the address of the
Previous instruction to be executed
Current instruction
Next instruction to be executed)☻
None of the given
*The process through which the segment register can be
explicitly specified is known as
Segment Addressing☻ not sure 
Segment Override Prefix
Segment Indexing
Offset Indexing
*The basic function of register is to
move oprend ☻
Hold the operator
*The iAPX88 processor supports _____________modes of memory access.
6
7☻
8
9
*SS is by default associated with
Select correct option:
BP
IP
SP
BP☻
"mov [bx], ax" moves the two bytes contents of the AX register to the address contained in BX register in the current ________.
Select correct option:
Stack Segment
data segment☻
code segment
extra segment
CX register is mostly used as a
counter register☻
flag register
base register
desination register
Ans) counter register
The extension of assembly languague file is
Select correct option:
.doc
.com
.asm☻
.lst
The mechanism used to drop carry for making the calculated address valid is known as:
Carry Overload
overflow
Address Wraparound☻
Segment Overlapping
What does the following instruction do? MOV AX, 0X4C00 INT 0X21
Select correct option:
Move number into ax registers
Terminate this program☻
Variables defining
Move ax into number

Vukwl- Virtual Education Solution


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

" 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

CX register is mostly used as a
Select correct option :
counter register
flag register
base register
desination register

By default CS  is associated
with
Select correct option :
SS
BP
CX
IP

The other directive is “ define word ” or
“ dw ” with the same syntax as “ db” but
reserving a whole word of __ bits
instead of a byte .
Select correct option :
32
8
16
64

Which of the following 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

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 )

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

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



Physical address calculation depends on
Select correct option :
Base address
Effective address
Offset Address
Segment Address

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

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

White               
Red
Blue

One screen location corresponds to a

Byte
Word                 
Double byte
Double word


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

First decremented and then element copied on to the stack                
First incremented and then element copied on to the stack
Decremented after the element copied on to the stack

Incremented after the element copied on to the stack



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

The character code                 
The attribute byte

The parameters 
Thedimensions



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

Jump will be taken
Zero flag will set

ZF will contain value -4 
Jump will not be taken


If D is "35" is shift to left 2 bits the new value

► 35 
70
140
17



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

carry flag               

Parity Flag

Auxiliary Carry
Zero Flag


Only instructions allow moving data from memory to memory.

► string              
 word
 indirect

 stack


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

► AL              

AX
AH

DX


" 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

CX register is mostly used as a
Select correct option :
counter register
flag register
base register
desination register

By default CS  is associated
with
Select correct option :
SS
BP
CX
IP

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

Vukwl- Virtual Education Solution


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 )

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

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

The shift logical left operation is the
exact ________ of shift logical right .
Select correct option :
Similar
Opposite
implementation
comparison

Physical address calculation depends on
Select correct option :
Base address
Effective address
Offset Address
Segment Address

Vukwl- Virtual Education Solution

1.If D is “35” is shift to left 2 bits the new value
► 35
►7
0
►140
►17
2. REP will always
o Incremented CX by 1
o Incremented CX by 2
o Decremented CX by 1 (Page 92)
o Decremented CX by 2
3. The instruction ADC has________ Operand(s)
► 0
► 1
► 2 (Page 56)
► 3
4.Which bit of the attributes byte represents the blue component of foreground color
► 3
► 2
► 1
► 0

5. When a 32 bit number is divided by a 16 bit number, the quotient will be stored in
► AX (Page 85)
► BX
► CX
► DX
Short Question

Vukwl- Virtual Education Solution

 . How value of Ip Register is saved & updated when call. Instruction executed.
 Answer: When Call instruction is executed the stack pointer (SP) is decremented by 2 and value of IP is pushed onto stack.
What are the instruction use by assembly language for permanent diversion and temporarily diversion?
 Answer: The instructions for permanent diversion in 8088 are the jump instructions, while the instruction for temporary diversion is the CALL instruction

How 16-bit MUL operations is different from 32-bit MUL operation?
Answer: If the operands were 16bit the answer would be in 32bit anf if the if the operands were 32bit the answer would be 64bit. For declaration of 16 bit we use “dw” and for 32-bit we use “dd”.



In direct addressing the memory
address given in the instruction is
Select correct option :
Fixed
Variable
Register
Empty

COM1 is connected with
Select correct option :
IRQ 2
IRQ 3
IRQ 4
IRQ 5

Unconditional jump
Select correct option :
Always transfers the control
Transfers the control if the condition
is true
Transfers the controlIf if condition is
false
Never transfers the control

" mov [ bx ] , ax " moves the two bytes
contents of the AX register to the
address contained in BX register in the
current ________ .
Select correct option :
Stack Segment
Data Segment
Code Segment
Extra Segment

In assembly language , the first
executable instruction of the code
should be placed at this offset
__________.
Select correct option :
0000
0100
0010
1100



Instruction Pointer holds the address of the  
 Previous instruction to be executed
 Current instruction
 Next instruction to be executed
 None of the given



Register whose each bit specify a different meaning is 
 Accumulator Register                                        
 Pointer Register 
 Index register 
 Flag register



Bydefault CS is associated with  
 SS
 BP
 CX
 IP  

Memory to Memory operation is allowed  
 True
 False

Size Mismatch Error is a syntax error  
 False 
True 

unconditional jump can be   
 near
 short
 far
 all of the given
  

Register are storage cell  
 Outside the processor
 Both inside and outside the processor
 Inside the processor
 None of the given               \



Register to Register Operation is not allowed  
 True
 False
\
The operation of CMP is to Subtract source from destination
 True
 False

Size Mismatch Error is a syntax error
False
True

Unconditional jump
Execute in every condition whether true or false
If the condition is true
If the condition is false
None of the given

Which type of Rotation it is "Every bit moves one position to the right and the bit dropped from the right is inserted at the eft. This bit is also copied into the carry flag."
ROL
RCR
RCL
None of the given

Assembly languague is not a low level language.
true
False
In JA jump is not taken after a CMP if the unsigned destination is larger than the unsigned source.
True
False

Group of bits processor uses to inform memory which element to read/write is collectively known as
Control bus
Data bus
Address bus
RAM


Memory to Memory operation is allowed
True
False

90 is the op-code of
Do nothing
Add
Subtract
Multiplication

we can not add two base register i.e. (bx+bp) or cant use in an instruction
True
False


Intel follow
Littel endian
Big endian
Both littel endian and big endian
None of the given


SHL and SAL are same
True
False

The first 16-bit processor produced by "Intel" was 8085
True
False


The first 16-bit processor produced by "Intel" was 8085
True
False


The extension of assembly languague file is
.doc
.com
.lst
.asm


When a large number is subtracted from a smaller number, a borrow is needed; in this case which flag will be set
ZF
CF
SF
OF


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

Effective address
Physical address
Direct address
None of the given

Which type of shifting is "Inserts a zero from the left and moves every bit one position to the right and copies the rightmost bit in the carry flag."
SHL
SAL
SAR
None of the given

mov [1234],ax is an example of
Direct addressing
Base register indirect
Base+index
None of the given


Registers are also called scratch pad ram
True
False


The basic function of register is to?
Hold the operand
Hold the operator
Hold both the operator and operand
None of the given


The jump is taken if the last arithmetic operation changed the sign unexpectedly.
JO
JNO
JNZ
JZ


In JA jump is not taken after a CMP if the unsigned destination is larger than the unsigned source.
True
False

which type of rotation it is "The carry flag is inserted from the left, every bit moves one position to the right, and the right most bit is dropped in the carry flag. "
RCR
ROL
RCL
ROR


which type of rotation it is "The carry flag is inserted from the left, every bit moves one position to the right, and the right most bit is dropped in the carry flag. "
RCR
ROL
RCL
ROR


This jump is taken if the last arithmetic operation produced a number in its destination that has even parity , Which jump is taken
JP
JPE
JNP
both JP and JPE

In direct addressing the memory address given in the instruction is

When a large number is subtracted from a smaller number, a borrow is needed; in this case which flag will be set
ZF
CF
SF
OF

SHL and SAL are same
True
False



Vukwl- Virtual Education Solution


Motorola follows ____________ .
Select correct option :
Big endian
Litten endain
Both of them
None of the given
Question # 7 of 10 ( Start time:
09 :08 :46 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

BP by default associated with
Select correct option :
CS
IP
SS
SP

There are _________ registers in
iAPX 88 architecture that can hold
address of data .
Select correct option :
1
2
3
4

This jump is taken if the last
arithmetic operation produced a
positive number in its destination .
Select correct option :
JNP
JO
JNS
JG
MY TODAYS PAPER CS401
10 dec 2012 at 11.00 am
MCQS

he second byte in the word designated for screen location holds
o The dimension of the screen
o Character position on the screen
o Character color on the screen
o ACSII code of the character


Vukwl- Virtual Education Solution

The extended ASCII code are
o 64 characters
o 128 characters
o 256 characters
o 502 characters


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

Code Segment is associated to _______ register by default.
o IP
o SS
o BP
o CX

The physical address of the stack is obtained by
►SS:SI combination
►SS:SP combination
►ES:BP combination
►ES:SP combination

In 8088 architecture, whenever an element is pushed on the stack
► SP is decremented by 1
► SP is decremented by 2
► SP is decremented by 3
► SP is decremented by 4

After the execution of STOSB,the CX wil be……..
►Incremented by 1
►Incremented by 2
►Decremented by 1
►Decremented by 2

Which bit of the attributes byte represents the red component of foreground color
► 3
► 2
► 1
► 0

Destination location always lies in
►DS:SI
►DS:DI
►ES:SI
ES:DI

Vukwl- Virtual Education Solution

80% Paper PAst main say tha Including Mcq and Questions
MCQ
1.If D is “35” is shift to left 2 bits the new value
► 35
►70
►140
►17

Vukwl- Virtual Education Solution

2. REP will always
o Incremented CX by 1
o Incremented CX by 2
o Decremented CX by 1 (Page 92)
o Decremented CX by 2

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

4.Which bit of the attributes byte represents the blue component of foreground color
► 3
► 2
► 1
► 0

Vukwl- Virtual Education Solution

if we apply NOT operation of bit 1 the answer is also 1
Select correct option:

true
false

5. When a 32 bit number is divided by a 16 bit number, the quotient will be stored in
► AX (Page 85)
► BX
► CX
► DX
Short Question
. How value of Ip Register is saved & updated when call. Instruction executed
.
 Answer: When Call instruction is executed the stack pointer (SP) is decremented by 2 and value of IP is pushed onto stack.

What are the instruction use by assembly language for permanent diversion and temporarily diversion?
 Answer: The instructions for permanent diversion in 8088 are the jump instructions, while the instruction for temporary diversion is the CALL instruction

How 16-bit MUL operations is different from 32-bit MUL operation?
Answer: If the operands were 16bit the answer would be in 32bit anf if the if the operands were 32bit the answer would be 64bit. For declaration of 16 bit we use “dw” and for 32-bit we use “dd”.

In ____________ operation the zero bit
is inserted from the right and every
bit moves one position to its left with
the most significant bit dropping into
the carry flag.
Select correct option :
Shift Logical Right ( SHR )
Shift Arithmetic Left (SAL )
Shift Arithmetic Right ( SAR )
Rotate Right (ROR )

Constant can never be used as
___________ .

Vukwl- Virtual Education Solution

Select correct option :
source
destination
both source and destination
immediate source

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

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


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


Which of the following directive is used
to reserve a 8 bit space in the memory
for holding data ?
Select correct option :
db
dw
dd
dq

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

Intel follows ____________ .
Select correct option :
Little endian
Big endian
Both little endian and big endian
None of the given

The jump is taken if the last arithmetic
operation changed the sign
unexpectedly.
Select correct option :
JO
JNO
JNZ
JZ

There are ____________ types of
address wraparound .
Select correct option :
1
2
3
4

Vukwl- Virtual Education Solution


Mechanism used to drop carry for
making the calculated address valid is
known as :
Select correct option :
Carry Overload
Overflow
Address Wraparound
None of the above

we can not Subrtace index register
from the base register ( bx - si ) in
assemlby language
Select correct option :
True
False

Physical address calculation depends on
Select correct option :
Base address
Effective address
Offset Address
None of the above

Simple CMP instruction uses _____
operation
Select correct option :
Addition
Division
Subtraction
Multiplicaion

SS is by defult associated with
Select correct option :
BP
IP
SP
BP

When a 32 bit number is divided by a
16 bit number , the remainder is of
Select correct option :
4 bits
8 bits
16 bits
32 bits

Which of the following is not a valid
instruction in assembly language ?
Select correct option :
MOV AX , 55
MOV AX , BX
MOV CS , 0 xb 800
MOV BX , AX

Memory to Memory operation is allowed
Select correct option :
True
False



we can not add two base register i .e .
(bx + bp ) or cant use in an instruction
Select correct option :
True
False

COM2 is connected with
Select correct option :
IRQ 2
IRQ 3
IRQ 4
IRQ 5


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

4

5

6



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

Shr 
Sal


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

Special Instructions                
Data Movement Instructions

Program Control Instructions 
Arithmetic and Logic Instructions
Hard disk MBR ( Master Boot Record )
is of size
Select correct option :
446 bytes
350 bytes
512 bytes
256 bytes


The jump is taken if the last arithmetic operation changed the sign unexpectedly.
JO
JNO
JNZ
JZ


In JA jump is not taken after a CMP if the unsigned destination is larger than the unsigned source.
True
False

which type of rotation it is "The carry flag is inserted from the left, every bit moves one position to the right, and the right most bit is dropped in the carry flag. "
RCR
ROL
RCL
ROR


which type of rotation it is "The carry flag is inserted from the left, every bit moves one position to the right, and the right most bit is dropped in the carry flag. "
RCR
ROL
RCL
ROR


This jump is taken if the last arithmetic operation produced a number in its destination that has even parity , Which jump is taken
JP
JPE
JNP
both JP and JPE

In direct addressing the memory address given in the instruction is

When a large number is subtracted from a smaller number, a borrow is needed; in this case which flag will be set
ZF
CF
SF
OF
In interrupt masking , We use ________
to get control from the program
without letting the program know about
it.
Select correct option :
IRQ 0
IRQ 1
IRQ 2
IRQ 3

As compared to _________ ,
___________ provides more cooked
services.
Select correct option :
BIOS, DOS
DOS,OS
DOS, BIOS
OS, DOS

Which of the following INT 21 service
is used to read character from
standard input ?
Select correct option :
00
01
02
03

" INT 13 - - BIOS disk services" generally
uses which register to return the 'error
code ' ?
Select correct option :
CF
DL
AH
AL

In multitasking , which of the following
interrupts is used as scheduler during
context switching ?
Select correct option :
INT 21
INT 16
INT 13
INT 8

In case of COM file , maximum length
of parameters passed through command
line can be ___
Select correct option :
63 bytes
127 bytes
255 bytes
511 bytes

Which of the following service of INT
21 is used to write a string on standard
output?
Select correct option :
00 h
02 h
09 h
10 h

____________ is the highest priority
interrupt in interrupt controller.
Select correct option :
IRQ 0
IRQ 1
IRQ 2
IRQ 3


The second byte in the word designated for screen location holds
The dimension of the screen
Character position on the screen
Character color on the screen                  
ACSII code of the character

REP will always
Incremented CX by 1
Incremented CX by 2
Decremented CX by 1                
Decremented CX by 2

The routine that executes in response to an INT instruction is called
ISR                 
IRS
ISP 
IRT

The iAPX888 architecture consists of _______ register.
12
14
16           
O   18

On executing INT 0 x 21 service 0 x 3 D , if
file is successfully opened then
Select correct option :
CF will contain 1
CF will contain 0
ZF will contain 1
ZF will contain 0

" INT 13 - - BIOS disk services" generally
uses which register to return the 'error
code ' ?
Select correct option :
CF
DL
AH
AL

we can not Subrtace index register from the base register( bx-si )in assemlby language   
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


A FAT32 file system directory entry in
DOS consist of how many bytes ?
Select correct option :
16
24
32
64

MOV instruction transfers a byte or word from which of the following source location.
DS:DI
ES:SI O ES:DI
DS:SI

The execution of the instruction "mov word [ES: 0], 0x0741" will print "A" on the screen, color of
the character will be
Black
White                 
O   Red
O   Blue

If AX contains FFFFh, then after execution of instruction "SAL ax, 3", the result will be
O   -3
O   +3
O   -8
O   +8

If the decimal number "35" is shifted by two bit to left, the new value will be
O   35
70
140 (00100011 = 35 , 10001100=140)
O   17

While using STOBS, if DF=1 then
O   The value of SI will be incremented by one
O   The value of SI will be incremented by two
The value of SI will be decremented by one                   
The value of SI will be decremented by two

After the execution of STOSW, the CX will be
Decremented by 1
Decremented by 2                 
Incremented by 1
Incremented by 2


The memory address always move from 
processor to memory
memory to processor

memory to peripheral 
peripheral to processor

An offset alone is not complete without
Segment
code label

index register O data label

Code Segment is associated to _______ register by default.
IP                  
SS
BP
CX



After the execution of SAR instruction:

MSB remain as it is
MSB Will change
MSB move to left               
No change will occur.

In the context of video services, if we
want to set cursor position which of
the following will be the value of AH ?
Select correct option :
AH = 01 h
AH = 02 h
AH = 03 h
AH = 04 h

Which of the following services of INT
10 is used to write graphic pixel on the
screen ?
Select correct option :
0 x 0 A
0 x 0 B
0 x 0 C
0 x 0 D

COM1 is connected with
Select correct option :
IRQ 2
IRQ 3
IRQ 4
IRQ 5

Which of the following service of INT
21 is used to write a string on standard
output?
Select correct option :
00 h
02 h
09 h
10 h

As compared to _________ ,
___________ provides more cooked
services.
Select correct option :
BIOS, DOS
DOS,OS
DOS, BIOS
OS, DOS

We can set the current file position in
DOS using service number ____
Select correct option :
0 x 38
0 x 40
0 x 42
0 x 43

In 9 pin DB 9 connector, which pin is
assigned to RD ( Received Data) ?
Select correct option :
1
2
3
4

The 'program segment prefix' for com
files is of size:
Select correct option :
64 bytes
128 bytes
256 bytes
512 bytes

On executing INT 0 x 21 service 0 x 3 D , if
file is successfully opened then
Select correct option :
CF will contain 1
CF will contain 0
ZF will contain 1
ZF will contain 0

The INT 0 x 13 service 0 x 08 is use to
Select correct option :
Read disk sector
Write disk sector
Reset disk sector
Get drive parameter

In the context of video services, if we
want to set cursor position which of
the following will be the value of AH ?
Select correct option :
AH = 01 h
AH = 02 h
AH = 03 h
AH = 04 h

BPB stands for
Select correct option :
Basic Parameter Block
Bios Precise Block
Basic Precise Block
Bios Parameter Block
Question # 6 of 10 ( Start time:
07 :29 :16 PM ) Total Marks: 1
Which of the following is used to
terminate a string in assembly
language?
Select correct option :
!
#
$
;

_________ byte of DOS data buffer
stores the maximum characters buffer
can hold.
Select correct option :
first
second
third
last

we can not Subrtace index register from the base register( bx-si )in assemlby language   
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



Device drivers can be divided into ___
major categories :
Select correct option :
5
4
3
2

On executing INT 0 x 21 - - service 0 x 3 D ,
if file can ' t be opened then
Select correct option :
CF will contain 1
CF will contain 0
ZF will contain 1
ZF will contain 0

In 9 pin DB 9 connector, which pin is
assigned to RD ( Received Data) ?
Select correct option :
1
2
3
4

A FAT32 file system directory entry in
DOS consist of how many bytes ?
Select correct option :
16
24
32
64

_________ byte of DOS data buffer
stores the maximum characters buffer
can hold.
Select correct option :
first
second
third
last

The maximum length of DOS command
line parameters is
Select correct option :
64 bits
127 bits
256 bits
512 bits

The INT 0 x 13 service 0 x 08 is use to
Select correct option :
Read disk sector
Write disk sector
Reset disk sector
Get drive parameter



some question from my today’s quiz of CS401 are:
  1. Which of the following IRQs is derived by a keyboard?
IRQ 0
IRQ 1
IRQ 2
IRQ 3
  1. Which of the following is the highest priority interrupt?
INT 3
INT 2
INT 1
INT 0
  1. The input frequency of the Programmable Interval Timer (PIT) is.
fixed
depends on processor clock
variable
depends on hardware attached
  1. IRQ is referred to:
Eight input signals
One output signal
Eight output signals
one input signal



INT 0 x 13 service 0 x 03 is used to
_________.
Select correct option :
Read disk sector
Write disk sector
Reset disk sector
Get drive parameter



In 9 pin DB 9 connector, which pin is
assigned to Signal Ground ?
Select correct option :
3
4
5
6

Which of the following services of INT
10 is used to get the video font
information?
Select correct option :
1129h
1130h
1128h
1127h

Post a Comment

Previous Post Next Post