Latest Activity In Study Groups

Join Your Study Groups

VU Past Papers, MCQs and More

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

Please share your current paper here for help each other.

Stay blessed and Best of Luck for exam.

Remember me in your prayers.

Best Regards,

sana

Views: 2166

Replies to This Discussion

Please share your current paper here for help each other.

Stay blessed and Best of Luck for exam.

Remember me in your prayers.

Best Regards,

sana

please share paper odf mid term cs 401 please by mustafa 923008172767  03447424571

HY Dear Some file for hlep ,,,,,,,,,,,,,,,,

Attachments:

Mohammad Shafiq Sahi upload your folder in .ZIP format. Site does not support the .rar format.

CS401 – Computer Architecture and Assembly Language

MID TERM Paper

Fall Spring 2012

 

MID TERM Paper

Dated May 11,2012

Time 1 hour

Attempt by On iaminvisible7 a href="mailto:iaminvisible7@gmail.com" target="_blank">iaminvisible7@gmail.com>  Fri, May 11, 2012 at 5:14 PM

All 20 mcqz were from past papers. So there is no need to worry about them.

Subjective:

Total there were 6 questions       

Q:1                page no 99

Explain the following instructions (solved)

             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


How many bites  will be moved by each of the following bloc of codes.

Mov cx, 384

REP movsb

Mov cx, 384

REP movsw


Write codes in assembly language of the following pseudo codes.

 

If al>Cl AND bl>al

{
dx=1

}

How Ip changes and updated when call instruction is executed.

When Call instruction is executed the stack pointer (SP) is decremented by 2 and value of IP is pushed onto

stack.

Write Procedure to clear selective bits.

The source operand is loaded with a mask containing one at positions which are retain their old value and zero at positions which are to be zeroed. The effect of applying this operation on the destination with mask in the source is to clear the desired bits. This operation is called masking.



 

Thanks

MCQS alot most 90 percent came from past papers

Q1change the instruction in one line (2MARKS)

DES CX

JNZ next char

Q2Correct the instruction (2MARKS)

MOV DS, 0x123

Q3"push AX" value how effect the Sp value (3MARKS)

what is scrolling and write the instruction code of scrolling something which it depend( like that ) question is about scrolling with 2 part

Q4what is DATA overflow Error and write the program (5MARKS)

Q5One question is in POP code also change value in it POP code (5MARKS)

CS401 Midterm Examz All Current papers in one thread Spring May 2012

Objective
All 20 mcqz were from past papers. So there is no need to worry about them.

Subjective:
Total there were 6 questions 
Q:1 page no 99
Explain the following instructions (solved)
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
Q:2
How many bites will be moved by each of the following bloc of codes.
Mov cx, 384
REP movsb
Mov cx, 384
REP movsw
Q:3
Write codes in assembly language of the following pseudo codes.

If al>Cl AND bl>al
{
dx=1
}
Q:4
How Ip changes and updated when call instruction is executed.
When Call instruction is executed the stack pointer (SP) is decremented by 2 and value of IP is pushed onto
stack.
Q:5
Write Procedure to clear selective bits.
The source operand is loaded with a mask containing one at positions which are retain their old value and zero
at positions which are to be zeroed. The effect of applying this operation on the destination with mask in the
source is to clear the desired bits. This operation is called masking.
Q:6
Which single instruction can be used at the place of 
dec 5 jnz label

yr ye dec 5 jnz k bdle kon si instruction use krain

 

One More Paper of Cs401
1.two types of call?
2.Replace the following invalid instruction with the single valid instruction
a. (a)mov IP
b. (b)mov IP,L5
3.How 16-bit operations is different from 32-bit operation? 
4.a program of subroutine with array(bubble sort) ?
5.write two prefixes for CMPS?
6.which instructions are used for insert and retrieve data from stack?

IMRAN has sent you a message on Virtual University of Pakistan

Subject: Current Midterm paper of CS401 Assembly Language 13.05.2012

------------
CURRENT PAPER OF CS401 ON 13.05.2012 (7:30)

 

CS401 subjective paper is consisted on the following topic.

CALL & RET

POP

Attribute Byte

STOS

LOADS

REP PREFIX

CMP

 

THESE WERE QUESTION IN SUBJECTIVE PORTION:                                                        marks

Why RET prefix is not used with LOADS instruction?                                                             2

REP Prefix                                                                                                                               3

How argument is used in RET instruction?                                                                             3

How work Call instruction?                                                                                                     3

 

Write instruction against the scroll on the screen follow these instruction                           5

Mov ax, 80

Mul byte[bp+4)

 

 

A)     Write instruction for print ‘A’ character in assembly language.                               5

B)     Write instruction for blue RED foreground with Blue background

 

 

 

AND THE PORTION OF OBJECTIVE WAS CONTIANED  FROM LESSON NO. 05 TO 07

Fariha Chaudhry  thanks for sharing & keep sharing 

RSS

© 2022   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service