Home About Contact
vustudents.org
Connect with Facebook



CS401 CS401 Computer Architecture and Assembly Language Programming

Download/upload Video Lectures, Handouts, Helping Materials, Assignments Solution, Online Quizzes, GDB, Past Papers, Solved Papers and more….
Reply
  #1  
Old 12-01-2011, 08:00 PM
lubna lolo's Avatar
Senior Member
 
Join Date: Nov 2011
Posts: 325
Default cs401 midterm nov paper 2011****

Question No: ( Marks: 1 ) - Please choose one
The first instruction of “COM” file must be at offset:
► 0x0010
► 0x0100
► 0x1000
► 0x0000



Question No: ( Marks: 1 ) - Please choose one
The execution of the instruction “mov word [ES : 0], 0x0741” will print character “A” on screen , background color of the screen will be
► Black
► White
► Red
► Blue



Question No: ( M a r k s: 1 )

The iAPX888 architecture consists of _______ register.

o 12

o 14

o 16

o 18



Question No:

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

o Black

o White

o Red

o Blue





Question No:

One screen location corresponds to a

Byte

Word

Double byte

Double word



Question No:

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



Question No:

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

The character code

The attribute byte

The parameters

The dimensions



if 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



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





Question No: 6 ( Marks: 1 ) - Please choose one

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



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

► 3

► 4

► 5

► 6



Question # 11




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




1) :


Shl




2) :


sar




3) :


Shr




4) :


Sal



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



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






_______________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













Q: Affected flag of AND operation marks 2

Q: Relation between RET and CALL is dependent or independent. Marks 2

Q: What is the difference between LES and LDS instruction? marks 3

Q: What is wrong with this program? Marks 5





Two question or the 3 or 5 marks k bohat different the past papers se nahi aye the is liye yaad nahi.



What is the syntax of PUSH instruction? 2 Marks



For what purpose DS and ES registers are generally used in the context of video memory. 2 Marks



When the instructions “push ax” is executed in decrementing stack how the value of SP will change. 3 Marks



What colors are repeated by 0th, 1st and 2nd bits (from least significant side) in Attribute Byte? 3 Marks



How SCAS instructions can be used to detect Null at the end of a string?

5 Marks



What is the wrong with this program? 5 Marks
Attached Files
File Type: doc TodayCS401PaperFall2011.doc (51.0 KB, 7 views)
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Eco403 midterm paper 2011 um abdullah ECO403 0 11-26-2011 06:37 PM
Eco401 current midterm paper 2011*** um abdullah ECO401 0 11-26-2011 03:10 PM


All times are GMT +5. The time now is 03:09 PM.
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.

 

Gravatar as Default Avatar by 1e2.it