CS 401Grand Quiz – Assembly language and Computer Architecture Solved Mcqs

CS401 Grand Quiz Solution File

VU CS 408 Human Computer Interaction
CS 401 Grand Quiz Solution File

Q1. REPE and REPNE prefixes are only meaningful with _____________.

  • CMPS
  • CSMP
  • LMPC
  • None
CMPS

Q. Which of the following bit that “Shift Logical Right” operation copies in the carry flag?

  • Right most bit
  • Left most bit
  • Both of above
  • None
Left most bit

Q. The clear screen operation initialize whole block of video memory to:

  • 0820
  • 0720
  • 0620
  • 0520
0720

Q. ____ jump is not position relative but is absolute

  • Off
  • Far
  • For
  • None
Far

Q. Which of the following directive is used to reserve a 8 bit space in the memory for holding data?

  • Db
  • Dbms
  • Dt
  • dg
DB

Q. _______________ containing the address of the next instruction to be executed.

  • Instruction Pointer
  • Grand Pointer
  • Aim Pointer
  • None
Instruction Pointer

Q. During the CALL operation, the current value of the ______________ is automatically saved on the stack, and the destination of CALL is loaded in the instruction pointer.

  • Grand Pointer
  • Instruction Pointer/
  • Aim Pointer
  • None
Instruction Pointer

Q. Which of the following is a non-destructive AND operation?

  • Check
  • Test
  • Both
  • None
Test

Read More:

VU 501 Advance Computer Architecture – Solved Mid & Final Term Papers

VU CS 408 Human Computer Interaction-Solved Mid & Final Term Subjective

VU CS 410 Windows Programming-Solved Papers & Quiz


Q. What does the following instruction do?

  • Add both register and load value into an ax register
  • Add two register and load value into an ax register
  • Add both register and load value into an BX register
  • None
Add both register and load value into an ax register

Q. _____________refers to the total number of bits in a memory cell.

  • Cell width
  • Cell height
  • Cell length
  • Cell format
Cell width

Q. _____and ______ cannot be used as 8bit register pairs like AX, BX, CX, and DX.

  • DI, SI
  • SI,DI
  • Both
  • None
SI, DI

Q. AX and BX both are 16-bit register, if we perform AND operation on these two registers, then how many AND operations will be performed?

  • 16 OR operation
  • 16 AND operation
  • both of Above
16 AND Operation

Q. Program consists of…………. Logical parts.

  • 6
  • 4
  • 2
  • 0
2

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

0f…………….

  • 16bits , 16bits
  • 12bits, 12 bits
  • 8bits, 16bits
16bits, 16bits

Q. Which of the following operation is used to clear any specific bit in binary number?

  • ACR
  • XOR
  • AR
  • BCR
XOR

Q. Whenever an instruction needs a memory source, ………. Holds the pointer to it.

  • SI, DS
  • DS, SI
  • None of above
DS, SI

Q. The stack 8088 works on ……….sized elements.

  • String
  • Bytes
  • Word
  • Bit
Word

Q. Which one of the following is an illegal instruction?

  • MOV AX,BX
  • MOV AX,65
  • MOV BX,10
  • MOV AX[X+BP]
MOV AX[X+BP]

Q. Please choose one To transfer control back the RET instruction take

  • Argument
  • Arguments
  • None
  • All of above
Argument

Q. Please choose one

In STOSB instruction SI is decremented or incremented by

  • 1
  • 2
  • 3
  • 4
1

Q. Please choose one

CMPS instruction subtracts the source location ______from the destination location.

DS:SI D

DS:DI

ES:SI

ES:DI

DS:SI D

Q.Regarding assembler, which statement is true:

  • Assembler converts OPCODE to the corresponding mnemonics
  • Assembler executes the assembly code all at once
  • Assembler converts mnemonics to the corresponding OPCODE
  • Assembler executes the assembly code step by step
Assembler converts mnemonics to the corresponding OPCODE

Q. – Please choose one

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

. 0xBB0150/

· 0x5001BB

· 0x01BB50

· 0xBB5001

0*BB0150

Q. – Please chose one

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

  • 1
  • 2
  • 3
  • 4
1

Q. – Please choose one

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

  • 6
  • 7
  • 8
  • 9
7

Q. – Please choose one

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

Source

Counter

Index

Pointer

Counter

Q. Please choose one

All the addressing mechanisms in iAPX 8 8 return a number called _ _ _ _ _ _ _ _ _ address .

· faulty

.effective

· indirect

· direct

effective

Q. – Please choose one

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

           . AX

· BX

· CX

· DX

AX

Q. – Please choose one

in Left-Shift-Operation the left most bit _______

           . will drop

· will go into CF

· Will come to the right most

· will be always 1

will drop

Q. Please choose one

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

  • 35
  • 70
  • 140
  • 120
140

Q. Please choose one

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

  • Hardware interrupt
  • Software interrupt
  • Logical interrupt
  • Processor exception
Processor Exception

Q. – Please choose one

Which mathematical operation is dominant during the execution of SCAS instruction

  • Division
  • Multiplication
  • Subtraction
  • Addition
Subtraction

Q. Please choose one

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

  • CF
  • OF
  • No flags will be affected
  • DF
No flags will be affected

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

  • Second column of second row
  • First column of third row
  • First column of second row/
  • Second column of first row

Q. After the execution of STOSWB,the CX wil be……..

  • Incremented by 1
  • Incremented by 2
  • Decremented by 1
  • Decremented by 2
Incremented by 2

Q. The INT 0x13 service 0x03 is use to …

  • Read disk sector
  • Write disk sector
  • Reset disk sector
  • Get drive parameters
Write disk sector

Q. Which of the following is the pair of register used to access memory in string instruction?

  • DI and BP
  • SI and BP
  • DI and SI
  • DS and SI
DI and SI

Q. Programmable interrupt controllers have two ports 20 and 21……port 20 is a control port while port 21 is ………..

  • The interrupt make register
  • Interrupt port
  • Output port
  • Input port
Interrupt port

Q. Address is always go from:

  • Processor to memory
  • Memory to processor
  • Memory to memory
  • None of given
Memory to processor

Q. Conditional jump can only:

  • Far
  • Short
  • near
  • all of the given
Short

Q. which is the special prefix used for repeating a block

  • rep
  • repeat
  • repb
  • repe
rep

Q. Lower 16 bits of EAX are labeled as

. AX

. BX

.EAX

.none of above

AX

Q. Which of the following IRQ is cascading interrupt

a.   IRQ 0

b.  IRQ 1

c.   IRQ 2

d.  IRQ 3

IRQ 2/bg_collapse]

Q. On executing 0x21 0x3D, if file cant be opened then

  • CF will contain 1
  • CF will contain 0
  • ZF will contain 1
  • ZF will contain 0

CF will contain 1

Q. Which of the following pins of parallel port are grounded

  • 10-18
  • 18-25
  • 25-32
  • 32-39
18-25

Q. By default CS is associated with

a.   SS

b.   BP

c.   CX

d.  IP

IP

Q. Address always goes from

  • Processor to meory
  • Memory to processor
  • Memory to memory
  • None of the above
Memory to processor

Q. 2. In case of COM File first command parameter is stored at ______ offset of program segment prefix.

  • 0x80 (Not Confirm)
  • 0x82
  • 0x84
  • 0x86

Q. Like addition with carry there is an instruction to subtract with borrows called____________.

  • SBB
  • SWB
  • SBW
  • None
SBB

Q. Numbers of any size can be added using a proper combination of __________.

  • ADD and ADC
  • ABD and ADC
  • Both
  • None
ADD and ADC

Q. _______This jump is taken after a CMP if the unsigned source is smaller than or equal to the unsigned destination.

  • JBE(Jump if not below or equal)
  • JNA(Jump if not above)/JBE(Jump if not below or equal)/
  • JNA(Jump if not above)
  • No Jump fot This
JNA( Jump if not above) Jump if note below or equal

Q. ______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.

  • Jump if zero(JZ)
  • Jump if equal(JE)
  • Jump if zero(JZ)
  • No Jump fot This
Jump if zero(JZ)

Q. In the case of unassigned source and destination when subtracting and in the result CR=0 then _______

  • : DEST = SRC
  • : DEST != SRC
  • : UDEST < USRC
  • : UDEST ? USRC
UDEST ? USRC

Q. In the case of unassigned source and destination when subtracting and in the result ZF =0

AND CR=0 then _______

  • : DEST = SRC
  • : DEST != SRC
  • : UDEST < USRC
  • : UDEST > USRC
UDEST > USRC

Q. In the case of unassigned source and destination when subtracting and in the result ZF =1 OR

CR=1 then _______

  • DEST = SRC
  • DEST != SRC
  • UDEST ? USRC
  • DEST < SRC
DEST< SRC[/bg_collapse]

Q. When an unsigned source is subtracted from an unsigned destination and the destination is smaller, borrow is needed which sets the ____________.

  • carry flag i.e CF = 0
  • carry flag i.e CF = 1
  • Carry Flag + ZF=1
  • None of the Given
carry flag i.e CF= 1

Q. When result of the source subtraction from the destination is zero, zero flag is set i.e. ZF=1 its mean that;

  • : DEST = SRC
  • : DEST != SRC
  • : DEST < SRC
  • : DEST > SRC
DEST = SRC

Q. JMP is Instruction that on executing take jump regardless of the state of all flags is called__________

  • : Jump
  • : Conditional jump
  • : Unconditional jump
  • : Stay
Unconditional jump

Q. In JNE and JNZ there is difference for only _____________;

  • : Programmer or Logic
  • : Assembler
  • : Debugger
  • : IAPX88
Programmer or Logic

Q. In “ mov ax, [BL] ” there is error i.e. __________

  • Address must be 16bit
  • Address must be 4bit
  • 8 bit to 16  bit move illegal
  • None
8 bit to 16 bit move illegal

Q. In “ mov [1234], al ” is _____________ Addressing Modes.

  • Immediate
  • Direct
  • Indirect
  • None
Direct

Q. In “ mov ax, [num1+bx] ” is ___________ ADDRESSING

  • : OFFSET+ Indirect
  • : Register + Direct
  • : Indirect + Reference
  • : BASEd REGISTER + OFFSET
BASED REGISTRER+OFFSET

Q. In “mov ax, [bx] ” is _____________ Addressing Modes

  • : Based Register Indirect
  • : Indirect
  • : Base Indirect
  • : Immediate
Based Register Indirect

Q. In “ mov ax, bx ” is _____________ Addressing Modes.

  • : Immediate
  • : Indirect
  • : Direct
  • : Register
Register

Q. in a Program CS, DS, SS, and ES all had the same value in them. This is called _____________________.

  • : equel memory
  • : overlapping segments
  • : segments hidding
  • : overlapping SI
Overlapping segments

Q. segments can only be defined a 16byte boundaries called _____________ boundaries.

  • : segment
  • : paragraph
  • : Cell
  • : RAM
segment

Q. When adding two 20bit Addresses a carry if generated is dropped without being stored anywhere and the phenomenon is called address______.

  • : wraparound
  • : mode
  • : ping
wraparound

Leave a Reply

Your email address will not be published. Required fields are marked *