How To Exam?

a knowledge trading engine...


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

Friday, 01 February 2013 07:05Web

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

1. (i) What is the difference ranging from an identifier and a variable? (1)
(ii) State the advantage and disadvantage of arrays. (2)
(iii) elaborate true and formal parameters? (2)

2.Specify the output or the errors for the subsequent. presume all the necessary header files are included in the subsequent 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 obtains the sum of the subsequent 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)
ans all the ques..


5.Explain the looping structures with necessary examples.

6.(i) Trace the execution of the subsequent 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 cause for the subsequent statement –“Size of the data kinds differ from 1 compiler to other” (1)
(iv) What is meant by pass by reference? (2)
(v) State the difference ranging from the while and do-while. (2)
(vi) Can we write a program with more than 1 main function? Justify your ans. (1)
(vii) Write a program without a header file. (2)

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






( 0 Votes )

Add comment


Security code
Refresh

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