You are on page 1of 1

MCA (Revised) Term-End Practical Examination December,2ooS 02963

MCSL-OLT C AND ASSEMBLYTANGUAGE PROGRAMMING z


Timeallowed:2hours Note : Maximum Marks : 50

There are two parts (C Programmingand AssemblyLanguageProgramming) in this paper. Eachpart is for L hour duration. Attempt anly that part(s) in which you are not successful yet, as
PART I C Programming

Nofe : Anstnerthefollowing question. It carries20 marks. 5 marksarefor oiaa-aoce this part. on 1. Write and run a program that has the following functions/features : ' It has a recursive function to find the Greatest Common Divisor (GCD) of two numbers. It has a main( ) program that acceptstwo integer values as input after checking that these values are in the range 1 to 50. The main( ) function then calls the function that finds GCD and prints the GCD value. Make suitable assumptions, if any.

PART II Assembly Language Programming Note: Answer thefollorning question. It carcies marks. 5 marksarefor aiaa-uou on this part. 20 1. Write and run a program in 8086 assembly language that takes a packed 2 digit BCD number and displays the sum of squaresof the digits. You may assumethe number to be in AL register. (Examp_le: _Assuming AL contains 43 then the program should output 2 5 a s : 4 2 + 3= L 6 + 9 : 2 5 ) 2 -oOo20

MCSt-0L7/53

3,000

You might also like