Professional Documents
Culture Documents
MCA (Revised)
Term-End Practical Examination
December, 2009
03788
MCSL-017 : C AND ASSEMBLY LANGUAGE PROGRAMMING
Time allowed : 2 hoursMaximum Marks : 50
Note :
1P.T.O.
PART - II
Assembly Language Programming
Note : Answer the following question. It carries 20 marks. 5 marks are for viva-voce of this part.
1.Write and run a program in 8086 assembly language that sorts three numbers stored in 20
the consecutive memory locations in the ascending order. The sorted numbers should
be stored into the memory. Make and state suitable assumptions, if any.
- o 0 o -
MCSL-017/ S1
26,000
SET - 2
MCA (Revised)
Term-End Practical Examination
December, 2009
03426
MCSL-017 : C AND ASSEMBLY LANGUAGE PROGRAMMING
Time allowed : 2 hoursMaximum Marks : 50
Note :
20
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.
MC SL-017/ S2
1
P.T.O.
PART - II
Assembly Language 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 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.
- o 0 o -
MCSL-017/ S2
24,000
SET-3
MCA (Revised)
Term-End Practical Examination
December, 2009
01086
MCSL-017 : C AND ASSEMBLY LANGUAGE PROGRAMMING
Time allowed : 2 hours
Maximum Marks : 50
Note :There are two parts (C Programming and Assembly Language
Programming) in this paper. Each part is of 1 hour duration. Attempt
only that part(s) in which you are not successful as yet.
Each part has one compulsory question carrying 20 marks. 5 marks are
for viva-voce of that part.
Make suitable assumptions, if any.
PART - I
C Programming
1.Write and run a C program having the following functions : 20
A function to convert lower case alphabtes in the string to upper case alphabets.
(Write your own function).
A function to count the number of vowels in the string.
Write and run the appropriate main () that accepts the string from the input, uses
the functions written by you and outputs the upper case string and the number
of vowels
MCSL-017/ S3
1P.T.O.
PART - II
Assembly Language Programming
1.Write and run a program using 8086 assembly language that squares each digit of a 20
2-digit packed BCD number, and then adds the two squares. You may assume that the
two digit BCD number is stored in memory location. The result is left in the DX register.
- o 0 o -
MCSL-017/ S3
23,000
SET - 4
MCA (Revised)
Term-End Practical Examination
December, 2009
01461
MCSL-017 : C AND ASSEMBLY LANGUAGE PROGRAMMING
Time allowed : 2 hours
Maximum Marks : 50
Note :
1P.T.O.
PART - II
Assembly Language Programming
1.Write a program in 8086 assembly language that counts the number of alphabet "a" in 20
a given string. You may assume that the string is of 10 characters long and is stored in
the memory. The result is left in the AL register.
- o 0 o -
MCSL-017/ S4
22,000