Semester : SEMESTER 1
Subject : Problem Solving and Computer Programming
Year : 2016
Term : DECEMBER
Branch : MCA
Scheme : 2016 Full Time
Course Code : RLMCA 101
Page:1
^. (1002 Total No. of Pages:3
Reg. No. Name:
APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY
FIRST SEMESTER MCA DEGREE (REGULAR) EXAMINATION, DEC 2016
Course Code: RLMCA101
Course Name: PROBLEM SOLVING AND COMPUTER PROGRAMMING
Max. Marks : 60 Duration : 3Hrs
PART A
Answer All Questions, Each Question Carries 3 Marks
1. What is the purpose of a static variable in a single file program? What value of i
will be printed at last if the function func()is called twice?
func() {
staticint i=10;
printf(ā%dā,i);
1-4;
|
2. Explain the usage of break and continue statements in C using suitable examples.
3. Write a C program to read N numbers. Compute and display sum of even numbers
and product of odd numbers.
4. Explain Self referential structures.
5. Differentiate between a null pointer and a void pointer.
6. Write down the output of the following:
#include
main( )
{int x=10;
int y[2], z= 5;
int *pl=&x;
int **p2=&pl;
int *p3=&z;
printf(ā%dā, **p2);
*(y+1) = 50;
*y = *(y+l);
Page 1 of 3