Decembet, 2OO7 MCS L - O1 7 : CA NDA S S E MB L Y PROGRAMMI NG Ti me q l l o we d : 2 h o u r s LANGUAGE Mqxi mum Marks ; 50 Nofe : There are two parts (C paper. Each part i s fo, not success/ul os yet. Programmi ng qnd Assem bl y Languqge Progrommi ng) i n fhi s t hour durat i on. At t empt onl y t hat psrt (s) i n whi ch you are PART I C Programming Note : Answer the following question. It cqrries 20 marks and the uiua-uoce is for 5 marks. 1. Write an interactive C program to generate a pay-slip for 7 employees in a small organisation whose Basic, TA, DA, Allowances, Perks, Deductions (like GPF, loans, LIC) are given by the user. The pay-slip should contain the name, scale of pay, month and year, designation, department, gross-pay, net-pay and attendance. 20 Notei : Use "Structuresl' concept. PART II Assembly Language Programming Note: Answer the following question. lt carries 20 marks and the uiua-uoce is for 5 marks. l. Write a program in assembly language to find the total and average of 5 decimal numbers given by the user. 20 MCSL- 017P/ S1 5, 000 MCA (Revised) Terr['End Practical Examination Decembet, 2OO7 MCSL-O17 : C AND ASSEMBLY LANGUAGE PROGRAMMI NG ' ! Ti mesl l owed: 2hour s Maxi mum Marks ; 50 Note: There are two parts (C Programming and Assembly Language Programming) in this poper. Each part is for 7 hour duration. Attempt only that part(s) tn which you are not successful as yet. PART I C programming Note : Answer the following que:stion. It carries 20 marks and the uiua-uoce is for S marks. l. Write a program in C to concatenate two character strings and find the length of the resultant string using Pointers. You are not allowed to use the string handling functions like strcat( ) and strlen( ) in C. 20 PART II ' Assembly Language programming Note : Answer the following question. It carries 20 marks and the uiua-uoce is for S marks. 1- Write a program in assembly language to convert a 4-digit BCD number to its binary equivalent. 20 MCSL- 017P t S2 3, 000 MCA (Revised) Term-End Practical Examination Decembet, 2OOT MCSL -O17 : C AND ASSEMBLY LANGUAGE PROGRAMMI NG Ti meal l owed: 2hour s Max' mum Marks ; 50 Note : There are two parts (C Programming and Assembly Language programming) in this paper' Each part is lor 7 hour durqtion. Attempt only that part(s) in which you are not successful as yet. PART I C programming Note : Answer the following question. It carries 20 marks and the uiua-uoce is lor S marks. 1' Write an interactive program in C to print the upper and lower triangle of the matrix. 20 PART II Assembly Language programming Note : Answey the following ques;tion. It carries 20 marks and the biua-uoce is lor S marks. l' Write a program in assembly language to reverse a given string and also find its stringJength. 20 MCSL- 017Pl S3 2, OOO MCA (Revised) Term-End Practical Examination Decemb et, 2OO7 1 MCSL -O17 : C AND ASSEMBLY LANGUAGE PROGRAMMI NG Ti me a l l o we d : 2 h o u r s Maxi mum Marks : 50 Note: There are tio parts (C Programming and Assembly Language Programming) in this paper. Each part is lor t hour durotion. Attempt only that part(s) in which you ore not successful as Yet. PART I C Programming Note: Answer thte following question. It carries 20 marks and the uiuo-uoce is for 5 morks. l. Write an interactive program in C to direct the even and odd numbers to the respective files namely even.trrt and odd.txt, given a list of 10 numbers 20 Note ; Use File-hsndling conceqts. PART N " AssemblY Language Programming Note : Answer the following question. lt carries 20 marks'and the uiua-uoce is for 5 morks' l. Wiitn u program in assembly language to add h,vo 4-bit binary numbers. 20 M CS L- O 17P I S4 2, 000