Professional Documents
Culture Documents
03426
Maximum Marks : 50
There are two parts (C Programming and Assembly Language Programming) in this paper. Each part is for 1 hour duration. Attempt only that part(s) in which you are not successful as yet. Make suitable assumptions, if any. PART - I C Programming
Note : Answer the following question. It carries 20 marks. 5 marks are for viva-voce on this part.
1.
Write and run a program in C having the following functions : An input function that requests the user to enter two numbers in the range 1 to 1000. The function makes sure that the numbers entered by the user are in the given range. A function that evaluates the Greatest Common Divisor (GCD) of the two numbers passed to this function. Write and run the appropriate main () that uses the two functions such that the GCD of the two input numbers is calculated and printed.
20
MC SL-017/ S2
P.T.O.
1. Write and run a program in 8086 assembly language that finds the sum of two unpacked 20
single digit BCD numbers. You may assume that the numbers are stored in AL and AH registers. The resultant is converted to equivalent ASCII and stored in the memory. -o0o-
MCSL-017/ S2
4,000