Pic Pyqq
Pic Pyqq
23242
3 Hours / 70 Marks Seat No.
1.
Attempt any FIVE of the following. 10
a) Draw flowchart for addition of two numbers.
b) List any four keywords used in ‘C’.
c) Explain Else If ladder with flowchart.
d) Define array. List it’s types.
e) State the recursive functions.
f) Define pointer. Write syntax for pointer deleration.
g) Draw any two symbols used to construct flow chart. Also
state their use.
2.
Attempt any THREE of the following. 12
a) Write an algorithm to find the sum of numbers from 1 to N.
b) Explain nested if-else statement with example.
c) Differentiate between character array and integer array with
respect to size and initialisation.
d) Explain pointer arithmetic with example.
P.T.O.
22226 [2]
Marks
3.
Attempt any THREE of the following. 12
a) Describe the following terms:
i) Keyword
ii) Identifier
iii) Variable
iv) Constant
b) Explain parameter passing with respect to call by value and
call by reference.
c) Describe scanf ( ) function with its syntax and example.
d) List the categories of functions and explain any one with
example.
4.
Attempt any THREE of the following. 12
a) Write an algorithm to determine whether a given number is
prime.
b) Write a program to convert temperature in fahrenheit degree
to centigrade degrees.
c) Write a C program to print following pattern using for loop
1
2 3
4 5 6
7 8 9 10
d) Write a program to accept ten numbers in an array. Sort
array elements and display it.
e) Develop a program to find the factorial of a number using
recursion.
22226 [3]
Marks
5.
Attempt any TWO of the following. 12
a) Write a program to print fibonacci series of n terms starting
from 0 and 1. (Accept value of n from user)
b) Write a program for addition of two 3 × 3 matrices.
c) Write a program to find largest number from an array using
pointer
6.
Attempt any TWO of the following. 12
a) Write a C program to declare structure employee having data
member name, age, designation and salary. Accept and display
information of three employee.
b) Write a program to demonstrate use of strcmp ( ), strcpy ( ),
strlen ( ), strcat ( ).
c) Write a c program using pointer to read an array of characters
and print them in reverse order.
22226
23124
3 Hours / 70 Marks Seat No.
Marks
P.T.O.
22226 [2]
Marks
2. Attempt any THREE of the following: 12
a) Draw flowchart for finding largest number among three numbers.
b) Write a program using switch statement to check whether entered
character is VOWEL or CONSONANT.
c) Differentiate between character array and integer array with respect
to size and initialization.
d) Explain pointer arithmetic operations with example.
P.T.O.
22226 [2]
Marks
2. Attempt any THREE of the following: 12
a) Write a ‘C’ program to find greatest number among three
numbers.
b) Explain Go-to statement with example.
c) Write ‘C’ program to add two distances given in kilometer
using structure.
d) Write a program to calculate sum of all elements stored in
given array using pointers.
P.T.O.
22226 [2]
Marks
2. Attempt any THREE of the following: 12
a) Explain any four guidelines for preparation of flowchart.
b) Differentiate between while loop and do while loop.
c) Explain declaration and initialization of one dimensional array
using example.
d) Write output for following programming code:
#include<stdio.h>
#include<conio.h>
void main ( )
{
int x, y, a, b, *P1, *P2 ;
x = 10 ;
y = 20 ;
P1 = &x ;
P2 = &y ;
a = *P1 * *P2+20 ;
b = *P1 * *P2–20 ;
print f(“x=%d, y=%d”, x,y) ;
print f(“a=%d, b=%d”, a,b) ;
}
Marks
P.T.O.
22226 [2]
Marks
2. Attempt any THREE of the following: 12
a) Write an algorithm to find largest of three numbers.
b) Explain do while loop with example.
c) Differentiate between character array and integer array with
respect to size and initialisation.
d) Explain meaning of following statements with reference
to pointers
int *a, b ;
b = 20 ;
*a = b ;
a = &b ;
Marks
1. Attempt any FIVE of the following : 10
(a) Define array. List its type.
(b) Draw & label different symbols used in flowcharts.
(c) Find the output of the following program :
# include < stdio.h>
void main( )
{
int x = 10, y = 10, v1, v2 ;
v1 = x++ ;
v2 = ++y ;
printf ("value of v1:%d", v1) ;
printf ("value of v2:%d", v2) ;
}
(d) State the syntax & use of strlen ( ) & strcat ( ) function.
(e) State the Relational operators with example.
(f) State the syntax to declare pointer variable with example.
(g) Draw flow chart for addition of two numbers.
[1 of 2] P.T.O.
22226 [2 of 2]
2. Attempt any THREE of the following : 12
(a) State the importance of flow chart.
(b) Write a program to declare structure student having rollno, name & marks.
Accept & display data for 3 students.
(c) Explain pointer arithmetic with example.
(d) Explain nested if-else with example.
Marks
1. Attempt any FIVE of the following : 10
(a) Draw flowchart for checking whether given number is even or odd.
(b) List any four keywords used in ‘C’ with their use.
(c) Write the syntax of switch case statement.
(d) State any two differences between while and do-while statement.
(e) State difference between array and string.
(f) Declare a structure student with element roll-no and name.
(g) Distinguish between call by value and call by reference.
[1 of 2] P.T.O.
22226 [2 of 2]
3. Attempt any THREE of the following : 12
(a) Write a program to sum all the odd numbers between 1 to 20.
(b) Explain any four bit-wise operator used in ‘C’ with example.
(c) With suitable example, explain how two dimensional arrays can be created.
(d) Explain any two string functions with example.
Marks
(e) Write syntax and use of pow( ) function of <math.h> header file.
[1 of 4] P.T.O.
22226 [2 of 4]
2. Attempt any THREE of the following : 12
#include<stdio.h>
int main ( )
char *ptr;
ptr=str;
ptr=ptr+11;
printf(“%s”,++ptr);
return 0;
(a) Write algorithm and draw flow-chart to print even numbers from 1 to 100.
(b) Write a program to accept marks of four subjects as input from user. Calculate
and display total and percentage marks of student.
(c) Write a program to accept the value of year as input from the keyboard &
print whether it is a leap year or not.
(d) Write a program to accept a string as input from user and determine its length.
[Don’t use built in library function strlen( )]
(a) Write a program using switch statement to check whether entered character is
VOWEL or CONSONANT.
(a) Write a program to declare structure employee having data member name,
age, street and city. Accept data for two employees and display it.
(b) If the value of a number (N) is entered through keyboard. Write a program
using recursion to calculate and display factorial of number (N).
(c) Write a program to accept two numbers from user and perform addition,
subtraction, multiplication and division operations using pointer.
_______________
P.T.O.
22226 [4 of 4]
21718
22226
3 Hours / 70 Marks Seat No.
Marks
(a) Define :
(f) State the use of following symbols used for flowchart drawing :
(i) (ii)
(iii) (iv)
(a) Develop a simple ‘C’ program for addition and multiplication of two integer
numbers.
getchar( )
putchar( )
getch( )
putch( )
palindrome or not.
(a) State the use of printf( ) & scanf( ) with suitable example.
(b) Explain any four library functions under conio.h header file.
(c) Explain how formatted input can be obtain, give suitable example.
(a) Write a program to sweep the values of variables a = 10, b = 5 using function.
(b) Develop a program using structure to print data of three students having data
members name, class, percentage.
(d) Draw a flowchart for checking whether given number is prime or not.
(a) Draw a flowchart of Do-while loop and write a program to add numbers until
user enters zero.
(b) Give a method to create, declare and initialize structure also develop a
program to demonstrate nested structure.
(a) Develop a program to swap two numbers using pointer and add swaped
numbers also print their addition.
(c) Develop a program to find diameter, circumference and area of circle using
function.
_______________
P.T.O.
22226 [4 of 4]