Active Members
TodayLast 7 Days
more...

 Join our online Google+ community for Bloggers, Content Writers and Webmasters

Download Model question papers & previous years question papers

Posted Date: 29 Aug 2008      Posted By:: E.Suganya    Member Level: Bronze    Points: 5 (Rs. 1)

# 2008 Vellore Institute of Technology M.C.A Continuous Assessment Examination-I(Programming in 'C') University Question paper

 Course: M.C.A University/board: Vellore Institute of Technology

VIT
U N I V E R S I T Y
(Estd. u/s 3 of UGC Act 1956)
Continuous Assessment Examination – I, August 2008
MCA – I Semester
Subject : Programming in C
Subject Code : 05MCA505.
Duration : 90 Minutes Max. Marks : 50
Part-A (4X5=20)
Answer all the questions.

1. (i) What is the difference between an identifier and a variable? (1)
(ii) State the advantage and disadvantage of arrays. (2)
(iii) What are actual and formal parameters? (2)

2.Specify the output or the errors for the following. Assume all the necessary header files are included in the following codes.

(i)void main( )
{
int i=10;
float i=20;
printf(“%d%f”, &i, i);
}

(ii)void main( )
{ printf(“%d”, 10>5?10:5); }
(iii) void main( )
{ while(TRUE)
{ printf (“Welcome”); }}

(iv)void main( )
{ switch(1)
{ case 0+1: printf(“Java code is compiled ”);
case 0+2: printf(“and interpreted”);
default: printf(“Java is portable”);
}}

(v)void main( )
{ int i ,j;
scanf(“%d”,&i);
scanf(“%d”,j);
printf(“%d%d”,i,j);
}

3.Write a program that finds the sum of the following series.
1+X+X^2+X^3+…+X^n.
4.Write a program which generates the Fibonacci series using a recursive function.

Part - B (3X10=20)
Answer all the questions.

5.Explain the looping structures with necessary examples.

6.(i) Trace the execution of the following segment of code.
for(i=0;i<8;i++)
printf(“%d”,i>0); (1)
(ii) What is the scope of a variable declared in a function? (1)
(iii) State the reason for the following statement –“Size of the data types differ from one compiler to other” (1)
(iv) What is meant by pass by reference? (2)
(v) State the difference between the while and do-while. (2)
(vi) Can we write a program with more than one main function? Justify your answer. (1)
(vii) Write a program without a header file. (2)

7.Write a program to eliminate all the duplicates in an integer array except the first occurence. For example, Input array A={1,2,3,1,2,5,6,7,6,7}, Output should be eliminating all the duplicates of each number in the array “A” and it should be as follows A={1,2,3,5,6,7}

### Related Question Papers:

• Analysis & Design of Digital Integrated Circuits

• Model paper(Digital Computer Fundamentals)

• term end

• Data Communication and Computer Networking

• ### Categories

Submit Previous Years University Question Papers and make money from adsense revenue sharing program

Are you preparing for a university examination? Download model question papers and practise before you write the exam.

Subscribe to Email
• Get Jobs by Email
• Forum posts by Email
• Articles by Email
• Online MembersK Mohan
siddiq
More...