Friday 31 May 2013

CS401 All Current Midterm Papers Spring 2013



On Sat, Jun 1, 2013 at 8:38 AM, YASIR AWAN <yasirawan1992@gmail.com> wrote:


today my cs401 paper 25.05.13 9:00am
paper was very easy mostly from 15 to 20 lecture
MCQ mostly about print on screen and registers.
some questions
Q1 1 character store in 1 word in memory what is store in its upper byte and lower byte.
ANS:IN lower the character code and in higher its attributes.
Q2 write the procedure to clear a selective bit
Q3 write the code for these
a) print charterer on screen
b) clear the screen
how many block instruction in 8088 architecture also write there names.... (5)
a question about programming in stack.....5

-----------------------------------------------------------------
My todays CS401 Mid paper 11:00 AM (Farrukh)
2 marks....
1:- from where does the content of SI and DS register and loaded as a execution of the instruction "LDS SI,[BP+4]
2:- write the syntax of PUSH instruction.
3 marks.....
3:-How the value changes of stack Pointer(SP) after every push and pop instruction.
4:-How string instruction work on a block of data.
5 marks....
5:-In case of branching technique used in INTEL's architechtur, which instruction used to provide temporary diversion and how?
6:-in the program HELLO WORLD desired location , what functionality is achieved from the given code lines.
Mov al,[SI]
Mov [ESDI], ax
add DI,2
add SI,1
----------------------
objective portion zyada tough nahin tha. colour byte code lazmi yad kr lena ap log. uss main se 4 MCQ thay.
0= blue Fg 1= green FG 2= Reg FG
yeh walay. baki takriban kuch MOAZ ki file mai se thay.


Asslam u alikum 
35% from Moaz files, 20 MCQs 
other was new.
subjective total 6 questions
Q1: y we don't use REP with LODS? 2 marks 
Q2: how pop work? 3 marks 
Q3: what is temporary diversion and how it works? 3 mark
Q4: picture of rotation was given , we have to tell its name:answer is ROL 2 mark 
Q5: five line code was given from scrollup screen , we have to tell one by one , what these lines do, mean give comments? marks 
1 question i forgot . was from routine.
Best of luck to all students

------------------------------------------------------------
my today's paper . gud luck
Which instruction is used to determine the zero byte in string?
2. In case of multiplication of two 8-bits numbers, the product will be composed of how many bits?
3. Which two instructions are used to check whether particular bits are set or not? How these two instructions differ from each other?
4. In case of branching techniques used in Intel's architecture, which instruction is used to provide temporary diversion and how?
5.How many bytes will be moved by each of the following block of codes?
a) MOV cx, 384
REP movsb
b) MOV cx, 384
REP movsw
6.Give the new values of AX and DX for each of the following instructions, or write if the overflow occurs.
a. DIV BX, if DX contains 0000h, AX contains 0007h, and BX contains 0002h
b. DIV BX, if DX contains 0000h, AX contains FFFFh, and BX contains0010h

----------------------------------------------
How stack data structure is help full in assembly … … … 2 marks
What is the purpose of DF? What happen when DF=1. . . 2 marks
How string instruction work n data? 3 marks
Which instructions are used to call a subroutine? 3 marks
Replace the following invalid statement with a single valid statement? 5 marks
Pop IP
Mov IP,L5
Sub SP,2
How many block of instructions are available? Writ name 5 marks

--
You received this message because you are subscribed to the Google
Groups "-VU-ROCKS-" group.
To post to this group, send email to VU-ROCKS@googlegroups.com
http://groups.google.com/group/VU-ROCKS?hl=en
---
You received this message because you are subscribed to the Google Groups "-VU-ROCKS-" group.
To unsubscribe from this group and stop receiving emails from it, send an email to VU-ROCKS+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Need Your Comments.....!

-- 

For University of Pakistan Study Material Sharing, Discussion, etc, Come and join us at http://4e542a34.linkbucks.com
You received this message because you are subscribed to the Google
Groups "Study" group.
To post to this group, send email to http://ca13054d.tinylinks.co
For more options, visit this group at
http://004bbb67.any.gs

No comments:

Post a Comment

Note: only a member of this blog may post a comment.