You are on page 1of 8

SET - 1

MCA (Revised)
Term-End Practical Examination
December, 2009

03788
MCSL-017 : C AND ASSEMBLY LANGUAGE PROGRAMMING
Time allowed : 2 hoursMaximum Marks : 50
Note :

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 :20
A function to input a string into an array. You may assume the maximum size of
such string to be 10 characters. The string may be of any length upto 10 characters.
A function that finds the characters at the middle of the string, for example, if the
string is 'ABC' then middle character is 'B' and if the string is 'ABCD' then the
middle characters are BC.
Write the appropriate main () function that demonstrates the use of the two
functions. Make and state suitable assumptions, if any.
MCSL-017/ S1

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 :

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 :

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 :

There are two parts (C Programming and Assembly Language Programming)


in this paper. Each part is of 1 hour duration. Each part has one
compulsory question Carrying 20 marks and 5 marks are for viva-voce on
that part. Make suitable assumptions, if any.
PART - I
C Programming
1.Write and run program in C that has the following functions :20
An input function that allows input of a 3 x 3 matrix.
A function that adds two matrices.
Write and run the appropriate main ( ) that uses the input function to input two
distinct matrices, and uses the second function to add the matrices. The resultant
matrix is then output.
MCSL-017/ S4

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

You might also like