www.vustudents.ning.com

We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.

# CS401 Grand Quiz + Mid Term Quiz Fall 2020 Prepartion Material Due Date: 27-12-2020

CS401 Grand Quiz + Mid Term Quiz Fall 2020 Prepartion Material Due Date: 27-12-2020

Dear Students, please share your Current Midterm Paper (Grand Quiz) Fall 2020. This will be helpful for many students who are looking for help/assistance regarding there Grand Quiz.

Let's help each other in Grand Quiz and make vustudents into a better community for VU students.

Just copy text of each MCQ of your Grand Quiz and paste here or save in a MS Word/PDF file and upload in replies.

VU Students team will post here Grand quiz about this subject, to help VU Students. Let's discuss here abouth Grand QUIZ, clear your concepts, improve learning and help each other. Good luck

Views: 9216

### Replies to This Discussion

 CS401 + View All Featured Discussions

# CS401 Grand Quiz Solution FIle Midterm Spring 2020 || CS401 Grand Quiz Solved MCQs

#cs401 #cs401grandquiz #cs401solvedgrandquiz
CS401 Grand Quiz Solution Spring 2020 | 100% Correct | 30/30

#cs401 #cs401grandquiz #cs301grandquiz2020
CS401 Grand Quiz Solution Spring 2020

#Grandquizcs401 #cs401Grandquiz #Solvedgrandquizcs401
CS401 Solved Grand Quiz Spring 2020 |midterm grand Quiz cs401| cs401 grand quiz solution|cs401

# CS401 Grand Quiz Guide - Mid Term Along With Solved MCQs

CS401 Grand Quiz Fall 2020 (Current Midterm Papers)

CS401 Grand Quiz Fall 2020 | 27-12-2020

# CS401 Grand Quiz

CS401 Grand Quiz Solution File

The clear screen operation initializes whole block of video memory to:

0720

The 8088 processor divides interrupts into ____ classes.

Two

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

db

____ jump is not position relative but is absolute

Far

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

Left most bit

All mathematical and logical operations are performed on the _______________

Accumulator

90 is the op-code of

do nothing

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

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

XOR

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

Program counter

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

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

Instruction Pointer (IP)

To convert the case of a character, we add or subtract _______________ from its ASCII code.

0x20

__________ interrupts are those which occur side by side with some other activity.

Synchronous

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.

Instruction pointer

Which of the following instruction is effectively same as to multiply the value of AX by 8?

MUL AX, 3

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

Test

In SCAS Example, We use SCASB with ______ and a zero in AL register to find a zero byte in a string.

REPNE

What does the following instruction do?

In interrupt vector table, introducing a new entry in this mapping table is called ______ an interrupt.

Hooking

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

Cell width

REPE and REPNE prefixes are only meaningful with _____________.

CMPS

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

SI, DI

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.

Shift Arithmetic Right (SAR)

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 And operation

___________________Instructions direct the flow of program.

Special

Program consists of…………. Logical parts.

Ans: two

INT instruction takes  a …………. Byte(s) argument varying from 0255.

Ans: single (1)

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

0f…………….

Ans: 16 bits, 16 bits.

If BL contains 00000101 then after a Single Right Shift, BL will contain;

Ans: 0000011

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

Ans: XOR

8085 can access up to………… of memory, whereas 8088 can access up to………

Ans : 64kb, 1Mb

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

Ans: DS:SI

Total numbers of reserved interrupts by Intel processor are …………..

Ans: 256

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

Ans: Word

Which one of the following is an illegal instruction?

MOV AX,BX

MOV AX,65

MOV ax,[bx+bp]

MOV BX,10

The iAPX88 processor supports ………… modes of memory access.

Ans: 7

What is the content of stack pointer?

Ans:  Address of the top element of the stack 13)  iAPX88 Architecture consists of:

Ans: 14 Registers

Simple CMP instruction uses ………… operation.

Ans:  Subtraction

Which of the following instructions is used for non-destructive AND operation?

Ans: Test

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

Ans: Local variables.

In 8088 processor, interrupts are divided into following classes.

Ans: Software interrupts and hardware interrupts

Mov [ 1234],ax is an example of:                Ans:  Direct Addressing

Traditionally all mathematical and logical operations are performed by…………

Ans: Accumulator Register

If we use source index register  and destination index register to access the memory known as:

Ans: Index format

Intel follows ……..

Ans: Little endian

BP stands for………….?

Ans: Base Pointer

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

Ans: Far jump

Motrola follows ……….

Ans: Big endian

What does the following instruction do

Ans: Effective

The other directive is “define word” or “dw” with the same syntax

“db” but reserving a whole word of………bits instead of a byte.

Ans: 16 bits

What does the following instruction do?

Mov ax, 0xFFFF

Ans:  Store 0xFFFF into AX

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

Ans:  Program Counter

The reduction in code size and the improvement in speed are the two reasons why block processing instructions were introduced in the

……… processor.

Ans: 8088

MOV AL, [NUM1] is a………bit move instruction

Ans: 8

The interrupt call loads new values in CS,IP and

Ans: Flags

Ans: Three (3)

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?

Rotate Right (ROR)

In interrupt vector table, introducing a new entry in this mapping table is called  ……. An interrupt.

Ans: Hooking

In case of short jump, the offset is stored in………..

Ans: 1 byte

In segmented memory model, the size of one window is restricted to……..

Ans: 64kb

What does the following instruction do?

MOV [NUM4], AX

Ans: Store ax value in num4

Registers are storage cell :

Ans: Inside the processor

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

Ans: Label

There are …….. Registers in Iapx88 that can hold address of data.

Ans: 4

What does the given instruction do?

TEST BX, [MULTIPLIER]

Ans: Test the right most bit

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

Ans: 16 AND operation

“Far” jump is not position relative but is:

Ans: Absolute

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

Ans: First column of second row

How many characters were defined by standard ASCII? Ans: 128

Unconditional jump:

Ans: If the condition is true

BP by default  associated with :

Ans: SP

After the execution of SAR instruction …………

Ans: The msb is replaced by the value of CF

There are ………Registers in intel 8088 that can hold address of data.

Ans: 4

In SCAS example, we use SCASB with …….. and a zero in AL register to find a zero byte in a string.

Ans: REPNE

What does the following instruction do?

MOV AX,0x4c00

INT0x21

Ans: Terminate the program

……….. instructions direct the flow of program.

Ans: program control

The routine  which executes as a result of  INT instruction is called………

Ans: Interrupt Service Routine (ISR)

A carry if generated and it dropped without being stored anywhere in the flag then this phenomenon is called:

When the subroutine is called?

Ans: when the arguments are pushed on the stack

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

Ans: Near calls

In assembly language, the first executable instruction of code should be placed at this offset……….

Ans: 0100

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

Ans: LODS

Ans: ES

The maximum parameters a subroutine can receive are …….. when all the general registers are used.

Ans: Seven (7)

REPE or REPNE are used with the ………. Instructions.

Ans: SCAS

Which of the following is a special instruction?

Ans:  cli; Clear the interrupt flag

…………. Can be used to check whether particular bits of a number are set or not.

Ans: AND

XOR can be used as a…….. to invert selective bit.

Stack is :

Ans: a data structure

Twenty-bit register is formed by the combination of two………… bit register.

Ans: 16

STI stands for?

Ans: set the interrupt flag

In Far jump…………

Ans: both offset and segment are given

Magnitude and sign are present in:

Ans: Signed number

REP with _____will utilizes the full processor power to do the scrolling in minimum time

MOVS

3

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

MOV AL , [NUM1] is a _____ bit move instruction

8

The Jump command that does not depend on FLAG register is

JNE

Which of the following is a Program Control Instruction?

cmp    ax,0

Program consists of ________ logical parts.

Two

8085 is __________bit microprocessor, whereas 8088 is ________bit microprocessor.

8 and 16

Extended Shifting Algorithm consists of:

2 instructions

________________________ is a temporary storage places inside the processor.

Register

Simple CMP instruction uses _____ operation.

Subtraction

What does the following instruction do?

MOV [NUM4], AX

Store ax value in num4

To access the arguments from the stack, the immediate idea that strikes is to ______ them off the stack.

Pop

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

PUSH

If BL contains 00000101 then after a Single Right Shift, BL will contain

00000011

___________________Instructions direct the flow of program.

Program Control

A parallel port has ________ views.

2

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

XOR

By default, Segment used by the instruction pointer is _________.

Stack Segment

After the execution of STOSWB, the CX will be:

Incremented by 2

DW can store _____ bit value in it.

16

In a comparison, if the both operands are same. The result of subtraction will be zero and the zero flag will be _______.

Set

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.

16

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

STOSB and STOSW

Magnitude and sign are present in?

Signed number

With the execution of CALL instruction, the value of _________is decremented by 2.

SP

When an element is pushed on the stack SP is decremented by _______ as the 8088 stack works on word sized elements.

Two

Which of the following statement is used to clear the value of AX register?

XOR AX, 0

________________________ is part of microprocessor that manages the execution of instructions.

Arithmetic/Logic Unit

In assembly language, ISR stands for________.

Interrupt service routine

The extension of assembly languague file is

.asm

The stack of 8088 works on __________ sized elements.

word

A complete _______ is called a pass over the array

iteration

The keyword used for the conditional jumps is_______.

SHORT

In the instruction "mov word [es:160], 0x1230", 30 represents _____ character.

0

The purpose of MOVS instruction is:

Move memory to memory

MOV [BX+SI+300], AX is a _____________ addressing mode instruction.

Base + Index + Offset

When the relative address stored with the instruction is in 16-bits, the jump is called a _________ jump.

Near

Logical addressing is a mechanism to access ____________ memory.

Physical memory

How stack data structure behaves?

first in last out

MOV  AX, 0XB800

MOV  ES, AX ;   This instruction points ES to_______.

video base

All the addressing modes return the number after calculation, this  number is known as________?

CS and IP are both ________ bit registers.

16

Stack is a data structure that behaves in ____________manner.

LIFO

Which of the following Move generates error in .com file?

Illegal move (not sure)

Memory address always go from _________.

Processor to memory

MUL (multiply) Instruction performs an unsigned multiplication of the source operand and the _____________.

Accumulator

The interrupt call loads new values in_______ segment.

CS

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

CALL operation (not sure) operand  code

Unconditional jump

Transfers the control if the condition is true

Which part of this (00000000000 B80500) encoded instruction is an offset?

0500

Which of the following is the renamed version of conditional jump JZ?

JE

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

Cell width

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

LODS

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

CF

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 ?

ROR

The keyword used for the conditional jumps is_______.

SHORT

We can convert any digit to ____ by adding 0x30 in the digit.

ASCII

If AX=5, BX=5, CF and ZF are set, AF and DX contains zero then after the execution of instruction “ADC AX, BX”, AX will contain the value _________.

10

In string instructions, the mode is called auto-increment mode when:

DF is set

The ASCII code for digit 8 is _________.

0x38

In a video memory, each screen location corresponds to _____ bytes.

2

Which combination will you prefer to obtain the physical address of the stack?

SS:SP

POP operand is also known as:

Source operand

In case of a downward compatible mechanism, the codes written for 8088 are ________ for 386 processor.

Valid

The routine that executes in response to an INT instruction is called?

ISR

The correlation process from the interrupt number to the interrupt handler uses a table called _________.

Interrupt Vector Table

Which assembly instruction is used to ADD data at address 1200 to bx register?

Which among the following is the pointer registers?

Stack pointer and index pointer

________ Instructions have two parameters, one is the general purpose register to be loaded and the other is the memory location from which to load these registers.

LDS

When the first thing popped off from the stack, the stack would be the return “address” and not the___________.

Argument

The top of stack is contained in ______ register.

SP

In case of 32-bit processor, the size of an accumulator register will be _____ bits.

32

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

16 bit, 16 bits

What does the given instruction do?

TEST BX, [MULTIPLIER]

Test the right most bit

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 ?

SHR

The iAPX88 processor supports _____________modes of memory access.

7

In XOR operation the output is 1 if

both inputs are same

DB-25 is a ________ port connector.

parallel

SCAS compares a source byte or word in register AL or AX with the _____________ string element addressed by ES: DI and updates the flags.

Destination

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

First column of second row

Intel follows ____________.

Little endian

_________ instruction makes the code reusable.

CALL

When the RET instruction is executed, it recovers the value of the _____________ from the stack.

Instruction pointer

The maximum parameters a subroutine can receive

are______ when all the general registers are used.

7

CLI stands for?

Clear the interrupt flag

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

AND

Flags register is a special register in every architecture, it is also known as ______________

Program Status Word

VGA stands for

Interrupts are __________ events.

Synchronous

______ is a special instruction that load a segment register and a general purpose register from a memory locations.

SCAS

What operation does the piece of code perform?

Shl word [multiplicand], 1

Rcl word [multiplicand+2], 1

Shift multiplicands left

Instruction Pointer holds the address of the

Next instruction to be executed

Stack is a data structure that behaves in a first in last _______ manner.

Out

Question # 1 of 10 Total Marks: 1

When two devices in the system want to use the same IRQ line then what will happen? Select correct option: An IRQ Conflict An IRQ Crash

An IRQ Collision

An IRQ Blockage

Question # 2 of 10 Total Marks: 1

Hard disk MBR( Master Boot Record ) is of size_____.

Select correct option: 446 bytes

350 bytes

512 bytes

256 bytes

Question # 3 of 10 Total Marks: 1

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

Select correct option:

IRQ 0

IRQ 1

IRQ 2

## IRQ 3

Question # 4 of 10 Total Marks: 1 The first sector on hard disk contains the Select correct option: Hard disk size

## Partition table

Data size

Sector size

Question # 5 of 10 Total Marks: 1

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

port?

Select correct option:

19

### 20

21

22

Question # 6 of 10 Total Marks: 1

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

Select correct option:

IRQ 4

IRQ 5

IRQ 6

## IRQ 7

Question # 7 of 10 Total Marks: 1

The programmable interval timer (PIT) has input frequency of Select correct option:

# 1.193MHZ

2.193MHZ

3.193MHZ

4.193MHZ

Question # 8 of 10 Total Marks: 1

CX register mostly use a Select correct option: Counter register

Flag register

Base register

Desination register

Question # 9 of 10 Total Marks: 1

The input frequency of the programmable interval timer (PIT) is Select correct option:

## Fixed

Depends on processor clock

Variable

Depends on hardware attached

Question # 10 of 10 Total Marks: 1

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

Select correct option: Assembler

## Scheduler

Debugger

Question # 1 of 10 Total Marks: 1

INT13 --BIOS disk services" generally uses which register to return the 'error code' ? Select correct option:

## CF

DL

AH

AL

Question # 2 of 10 Total Marks: 1

Operating system Organize data in the form of Select correct option: Folder

Batch file

## File

None of the above

Question # 3 of 10 Total Marks: 1

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

Select correct option:

## PUSH POP

CALL

MOV

Question # 4 of 10 Total Marks: 1

Which of the following interrupts is Non maskable interrupt?

Select correct option:

INT 0

INT I

# INT 2

INT 3

Question # 5 of 10 Total Marks: 1

The maximum parameters a subroutine can receive are______ when all the general registers are used.

Select correct option:

6

7

5

4

Question # 6 of 10 Total Marks: 1

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

Select correct option:

AX register

The concatenation of DX and AX

The concatenation of ES and AX

The concatenation of DS and BX

Question # 7 of 10 Total Marks: 1

COM2 is connected with Select correct option:

IRQ 2

IRQ 3

IRQ 4

IRQ 5

Question # 8 of 10 Total Marks: 1

The parallel port connector is called?

Select correct option:

BD-24

BD-25 DB-25

DB-24

Question # 9 of 10 Total Marks: 1

The instruction to call any software interrupt is Select correct option:

GO  INT  interrupt_number

Call   interrupt_number

## INT  interrupt_number

Call  INT  interrupt_number

Question # 10 of 10 Total Marks: 1

The INT 0x13 service 0x03 is use to Select correct option: Get drive parameter

Reset disk sector

## Write disk sector

Question # 1 of 10 Total Marks: 1

Data bus is

Select correct option: Uni-directional

## Bi-directional

Non-directional

None of the given

Question # 2 of 10 Total Marks: 1

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

1

2

3

4

5

## Latest Activity

2 hours ago

### phy101 Assignment 1 Fall 2021. Due Date= 10 December 2021

2 hours ago
2 hours ago
shifa arshad joined + M.Tariq Malik's group

### MGT602 Entrepreneurship

2 hours ago
shifa arshad joined + M.Tariq Malik's group

2 hours ago

### mth401 Assignment 1 Fall 2021. Due Date= 10 December 2021

2 hours ago
shifa arshad and Imran Sarwar joined + M.Tariq Malik's group

### MTH401 Differential Equations

2 hours ago
Adnan Hafeez joined + M.Tariq Malik's group

3 hours ago