How To Exam?

a knowledge trading engine...


Vellore Institute of Technology 2007 M.C.A Computer Aplications Continuous Assessment II(Programming in 'C') - Question Paper

Friday, 01 February 2013 07:10Web

VIT
UNIVERSITY
Continuous Assessment exam – II, November 2007
MCA – I Semester
Subject : Programming in C
Duration : 90 Minutes Max. Marks : 50

Part-A (4X5=20)
ans all the ques..

1.(i) State any 2 difference ranging from arrays and structures. (2)
(ii)State the difference ranging from a structure and a union. (1)
(iii)What is the difference ranging from a malloc and calloc functions. (1)
(iv) Specify the output or the fault for the subsequent. presume all the necessary
header files are included. (1)
typedef float balance,flt;
flt f=20.56; balance f1=10.24; float f2=30.45;
f= f1+f2; printf(“%f”,f);

2.Write a program to create an integer array dynamically using calloc function and sort the array in descending order. (5)

3.Write short notes on the subsequent with an example for every.
(a) A pointer to a structure. (3)
(b) Array of pointers. (2)

4.Create a array of structures called learner dynamically that consists the subsequent data members sid, name, marks[5], avg.. Accept the details for them from the user. compute the avg. marks for every learner. Your program should display the subsequent details.
a. All details of all students
b. Given the sid, the learner details
c. Count the number of students with avg. >70

Part - B (3X10=30)
ans all the ques..

5.Declare a structure called name with the subsequent elements : fname, lname. Declare a structure called address with the subsequent elements : doorno, streetname, city. Declare a structure called employee consisting of the subsequent data members sid, name, address,department and salary. find details for 10 employees using arrays. Write a menu driven program which does the subsequent.
a.Write a function which returns the address of the structure(employee) who receives the maximum salary in the department of “MCA”.
b.Write a function which displays all the details of the employees.(using pass by reference only).

6.(i)Explain how to access the 1 dimensional array with its name as a pointer to itself, with necessary example. (5)
(ii)Write a program which obtains the product of 2 matrices. Initialize all the elements of the matrices to zero before the manipulation. (5)

7.(i)Write a program which sorts the array of strings in alphabetical order. (5)
(ii)Write short notes on macros with arguments and enumerated data kind. (3+2)



( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER Vellore Institute of Technology 2007 M.C.A Computer Aplications Continuous Assessment II(Programming in 'C') - Question Paper