3 Hours / 80 Marks
Q.1 Attempt any EI GHT of the follow ing
a)What do you by structure? Give syntax of declaring it.
b)State four relational operators with its meaning.
c)Give the meaning of declaration int * ptr;
d)Declare and initialize the one dimensional integer array with 10 elements.
e)State four printf format codes.
What is pointer?
h)State the use of break statement.
State the use and syntax of strlen( ) function.
Explain conditional operator.
Q.2 Attempt any THREE of the follow ing:
a)Write a program to display the sum of all even numbers from one to \u2018n\u2019.
Accept \u2018n\u2019 from user.
b)What is function? Explain the need of function.
c)Explain else \u2013 if ladder with example.
d)State the arithmetic and logical operators with its meaning.
Q.3 Attempt any THREE of the follow ing:
a)Explain switch statement with flowchart.
b)What is the output of the following code?
void main( )
int i = 1, j = -1, k = 0, w, x, y, z;
w = i || j ||k ;
x = i && j && k ;
y = i || j && k ;
z = i && j && k ;
printf(\u00ab w=%d x=%d y=%d z=%d \u00bb,w,x,y,z) ;
c)Write a program using pointer to accept an integer array and print it in
d)Describe a method of declaring and initialization of two dimensional array
CPR \u2013 (W\u20192008)
- 1 -