How To Exam?

a knowledge trading engine...


Centre for Development of Advanced Computing(C-DAC) 2005 M.C.A -105 Problem Solving Using C - Question Paper

Saturday, 02 February 2013 02:25Web

END-TERM exam
FIRST SEMESTER [MCA] - DECEMBER 2005

Paper Code: MCA-105 Subject: issue Solving Using C
Time: three Hours (Batch – 2004 & 2005) Maximum Marks: 60

Q. 1. (a) provide syntax and task performed by the subsequent functions in C language :-
getch( ), getche( ), getchar( ), fgetc( )
(b) An OS automatically opens 3 files whenever a C program is executed. Which are these 3 files and how are the referenced?
(c) provide the meaning of the subsequent format specifiers:-
%e %f %o %s %u %ld %14.5f
(d) What is Abstract Data kinds and Derived Data Type? Differentiate ranging from structure and union data kind.
(e) What is placeholder? After the execution of “ x = y = z = six ”, What will be the value of x, y and z? Clearly write your assumptions, if any.

Q. 2. (a) Write a program to convert a string of digits into corresponding number e.g. string “12345” should be converted into a number 12345 and so that it can be used in any mathematical expression.
(b) Write a function substr( ) that takes 2 strings as arguments and tests whether 1st argument is a substring of 2nd or not?

Q. 3. describe a structure containing the subsequent information: name, employee code, age, qualification (last only) and date of joining. You can presume improper data kind for every of the field. Then write a program to append record in a file called “employee.txt”.

Q. 4. (a) What is the advantage of linked list over array? provide an example in which static data allocation is better than dynamic allocation.
(b) learn the subsequent function code and provide output when input is (4, 5)
Mystry (m, n)
{
if(m=0) return(n)
else return (m-n)
}

Q. 5. (a) provide syntax of fread( ) and fwriter( ) functions and discuss the meaning of every parameters.
(b) Write a program to multiply 2 matrices. Make a provision in your program to test whether 2 matrices are compatible for multiplication.

Q. 6. (a) discuss with example, concept of parameters by passing and by reference and by value. Your example should emphasize on the advantages and disadvantages of both.
(b) Write a function to concatenate string2 to string1 and outcome remains in string1.

Q. 7. (a) Consider the variable: int A[10], x, *y, **z . Now determine valid statement from the following:-
y=A; z = &y; y=&A; A=y; z=A
(b) Differentiate “continue and break” statement and also “while and repeat until” statement

Q. 8. (a) Write a program to calculate EMI (Equated Monthly Installment) for a loan amount P for a period D years at rate of interest R% per annum on reducing balance.
(b) provide the output of the subsequent program
main( )
{
int y = 0;
unsigned int x=0;
while (x!=0) {x<<1; y--}
printf(“The value of y is %d”, y);
}


( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER Centre for Development of Advanced Computing(C-DAC) 2005 M.C.A -105 Problem Solving Using C - Question Paper