0% found this document useful (0 votes)
31 views27 pages

Pic Pyqq

Programing in c previous question paper set
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views27 pages

Pic Pyqq

Programing in c previous question paper set
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 27

22226

23242
3 Hours / 70 Marks Seat No.

Instructions – (1) All Questions are Compulsory.


(2) Answer each next main Question on a new page.
(3) Illustrate your answers with neat sketches wherever
necessary.
(4) Figures to the right indicate full marks.
(5) Assume suitable data, if necessary.
(6) Mobile Phone, Pager and any other Electronic
Communication devices are not permissible in
Examination Hall.
Marks

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.

Instructions – (1) All Questions are Compulsory.


(2) Illustrate your answers with neat sketches wherever
necessary.
(3) Figures to the right indicate full marks.
(4) Assume suitable data, if necessary.
(5) Mobile Phone, Pager and any other Electronic
Communication devices are not permissible in
Examination Hall.

Marks

1. Attempt any FIVE of the following: 10


a) Draw flowchart for checking whether given number is positive or
negative.
b) list any four keywords used in 'C'.
c) State any two decision making statements.
d) Define array and list its type.
e) List the categories of user defined function.
f) Define pointer. Write syntax for pointer declaration.
g) Draw and label any four symbols used in flowcharts.

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.

3. Attempt any THREE of the following: 12


a) State the use of print f( ) and scan f ( ) with suitable example.
b) Explain any two string handling functions with syntax and example.
c) Describe the following terms:
i) Keyword
ii) Identifier
iii) Variable
iv) Constant
d) Write a program to find area of circle using user defined function.

4. Attempt any THREE of the following: 12


a) Write algorithm and draw flowchart to print even numbers from
1 to 50.
b) Explain increment and decrement operator with example.
c) Write a program to sum all the odd numbers between 1 to 20.
d) Illustrate initialization of one dimensional array with example.
e) Difference between call by value and call by reference.
22226 [3]
Marks
5. Attempt any TWO of the following: 12
a) Write a program to print fibonacci series starting from 0 and 1.
b) Write a program for addition of two 3 × 3 matrices.
c) Write a program to compute the sum of all elements stored in an
array using pointer.

6. Attempt any TWO of the following: 12


a) Write a program to declare structure employee having data
member name, age, city. Accept data for three employees and
display it.
b) Write a program to find factorial of a number using recursion.
c) Write a program to accept two numbers from user and perform
addition, subtraction, multiplication and division operations using
pointers.
22226
22223
3 Hours / 70 Marks Seat No.

Instructions – (1) All Questions are Compulsory.


(2) Answer each next main Question on a new page.
(3) Illustrate your answers with neat sketches wherever
necessary.
(4) Figures to the right indicate full marks.
(5) Assume suitable data, if necessary.
(6) Mobile Phone, Pager and any other Electronic
Communication devices are not permissible in
Examination Hall.
Marks

1. Attempt any FIVE of the following: 10


a) List the symbols used in flowchart. (any four)
b) Give the use of printf(  ).
c) Give the syntax of for loop.
d) Define array.
e) List any two string handling function.
f) Explain pointer with example.
g) Define algorithm.

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.

3. Attempt any THREE of the following: 12


a) Explain use of comment in C language.
b) Explain any two math function with syntax and give example
of each.
c) Describe use of header files in C language.
d) Explain call by value with an example.

4. Attempt any THREE of the following: 12


a) Write a ‘C’ program to determine whether a given number is
prime or not and also draw flowchart for this program.
b) Explain formatted input-output function with example in C.
c) Explain do-while loop in C with proper example.
d) Write a ‘C’ program for multiplication of two 3 × 3 matrices.
e) Write a ‘C’ program to generate Fibonacci series for a given
number using recursion.
22226 [3]
Marks
5. Attempt any TWO of the following: 12
a) Write a ‘C’ program to print following pattern
1 2 3 4 5
1 2 3 4
1 2 3
1 2
1
b) Explain how to initialize and define structure in ‘C’
programming.
c) Develop a ‘C’ program to find sum of all elements stored in
given array using pointers.

6. Attempt any TWO of the following: 12


a) Write a ‘C’ program to find the largest and smallest number
in a given array.
b) Write a ‘C’ program to find factorial of a number using
recursion.
c) Write a ‘C’ program to demonstrate access structure members
using pointer.
22226
12223
3 Hours / 70 Marks Seat No.

Instructions – (1) All Questions are Compulsory.


(2) Answer each next main Question on a new page.
(3) Illustrate your answers with neat sketches wherever
necessary.
(4) Figures to the right indicate full marks.
(5) Assume suitable data, if necessary.
(6) Use of Non-programmable Electronic Pocket
Calculator is permissible.
(7) Mobile Phone, Pager and any other Electronic
Communication devices are not permissible in
Examination Hall.
Marks

1. Attempt any FIVE of the following: 10


a) Define the terms :
i) Flow chart
ii) Algorithm
b) State any four data types used in ‘C’.
c) List logical operators in ‘C’.
d) Define structure. Give one example of structure declaration.
e) State any two advantages of function.
f) Write the meaning of ‘&’ and * with respect to pointer.
g) Draw any two symbols used to construct flow chart. Also state
their use.

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) ;
}

3. Attempt any THREE of the following: 12


a) Explain data type conversion with example.
b) Explain any two string handling functions with syntax and
example.
c) Describe scanf() function with its syntax and example.
d) Describe how recursive function is used in calculating factorial
of a number.
22226 [3]
Marks
4. Attempt any THREE of the following: 12
a) Write an algorithm and draw a flowchart to find largest
number from three numbers.
b) Write a program to convert temperature in Fahrenheit degrees
to Centigrade degrees.
c) Write a C program to print following pattern using loop
1
2 2
3 3 3
4 4 4 4
5 5 5 5 5
d) Write a program to declare an array of 5 elements and
display sum of all array elements.
e) Write a C program using function to find area of circle.

5. Attempt any TWO of the following: 12


a) Write a C program with comments to reverse the digit of
integer number. For example the number 12345 should be
displayed as 54321.
b) Write a program to add two 3 × 3 matrices. Display the
addition.
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 1 employee.
b) Write a program to find factorial of a number using recursion.
c) Write a C program using pointer to read an array of
characters and print them in reverse order.
22226
21222
3 Hours / 70 Marks Seat No.
15 minutes extra for each hour

Instructions – (1) All Questions are Compulsory.


(2) Illustrate your answers with neat sketches wherever
necessary.
(3) Figures to the right indicate full marks.
(4) Assume suitable data, if necessary.
(5) Mobile Phone, Pager and any other Electronic
Communication devices are not permissible in
Examination Hall.

Marks

1. Attempt any FIVE of the following: 10


a) Draw and label different symbols used in flowchart.
b) List any four keywords used in ‘C’
c) State any four decision making statements.
d) Define array. List its types.
e) Write syntax and use of PQW ( ) function or <math.h>
header file.
f) State the syntax to declare a pointer variable with example.
g) Draw flowchart for addition of two numbers.

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 ;

3. Attempt any THREE of the following: 12


a) Describe the following terms :
(i) Keyword
(ii) Identifier
(iii) Variable
(iv) Constant
b) List the categories of functions and explain any one with
example.
c) State the use of printf( ) and scanf( ) with suitable example.
d) Give any four differences between call by value and call by
reference.
22226 [3]
Marks
4. Attempt any THREE of the following: 12
a) Draw flowchart for finding largest number among three
numbers.
b) Write a program to display table of given number (Accept
number from user).
c) Write a program to sum all the even numbers between
1 to 100.
d) Develope a program to find the factorial of a number
using recursion.
e) Write a program to accept ten numbers in an array. Sort
array elements and display it.

5. Attempt any TWO of the following: 12


a) Write a program to print Fibonacci series starting from
0 and 1.
b) Write a program for addition of 3 × 3 matrices.
c) Write a program to compute the sum of all elements stored
in an array using pointers.

6. Attempt any TWO of the following: 12


a) Write a program using structure to display information of
employee which consist of employee id, name, age and salary.
b) Write a program to demonstrate use of strcmp( ), strcpy( ),
strlen( ), strcat( ).
c) Write a program to perform arithmetic operations on pointer.
11920
22226
3 Hours / 70 Marks Seat No.

Instructions : (1) All Questions are compulsory.


(2) Answer each next main Question on a new page.
(3) Illustrate your answers with neat sketches wherever necessary.
(4) Figures to the right indicate full marks.
(5) Assume suitable data, if necessary.
(6) Mobile Phone, Pager and any other Electronic Communication
devices are not permissible in Examination Hall.

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.

3. Attempt any THREE of the following : 12


(a) Describe the following terms :
(i) Keyword
(ii) Identifier
(iii) Variable
(iv) Constant
(b) Differentiate between call by value and call by reference.
(c) Explain conditional operator with 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 the given number is odd or even.
(b) Illustrate the use of break and continue statement with example.
(c) Write a program to add, subtract, multiply and divide two numbers, accepted
from user using switch case.
(d) Illustrate initialization of two dimensional array with example.
(e) Write a program to read two strings and find whether they are equal or not.

5. Attempt any TWO of the following : 12


(a) Write a program to calculate sum of all the odd numbers between 1 to 20.
(b) Write a program for addition of two 3  3 matrices.
(c) Write a program to compute the sum of all elements stored in an array using
pointers.

6. Attempt any TWO of the following : 12


(a) Write a program to sort elements of an array in ascending order.
(b) Write a function to print Fibonacci series starting from 0, 1.
(c) Calculate factorial of a number using recursion.
_______________
21819
22226
3 Hours / 70 Marks Seat No.

Instructions : (1) All Questions are compulsory.


(2) Answer each next main Question on a new page.
(3) Illustrate your answers with neat sketches wherever necessary.
(4) Figures to the right indicate full marks.
(5) Assume suitable data, if necessary.
(6) Use of Non-programmable Electronic Pocket Calculator is permissible.

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.

2. Attempt any THREE of the following : 12


(a) State four arithmetic operations perform on pointer with example.
(b) Draw flowchart for checking weather given number is prime or not.
(c) Write a program to reverse the number 1234 (i.e. 4321) using function.
(d) Differentiate between character array and integer array with respect to size
and initialisation.

[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.

4. Attempt any THREE of the following : 12


(a) Draw flowchart for finding largest number among three numbers.
(b) Describe generic structure of ‘C’ program.
(c) Write a program to take input as a number and reverse it by while loop.
(d) Write a program to accept 10 numbers in array and arrange them in ascending
order.
(e) Explain meaning of following statement with reference to pointers :
int *a, b;
b = 20;
*a = b;
A = &b;

5. Attempt any TWO of the following : 12


(a) Write a program to perform addition, subtraction, multiplication and division
of two integer number using function.
(b) Define Array. Write a program to accept ten numbers in array. Sort array
element and display.
(c) Write a program to print reverse of a entered string using pointer.

6. Attempt any TWO of the following : 12


(a) Explain recursion with suitable example. List any two advantages.
(b) Write a program to accept ten numbers and print average of it.
(c) Enlist different format specifiers with its use.
_______________
11819
22226
3 Hours / 70 Marks Seat No.

Instructions : (1) All Questions are compulsory.


(2) Illustrate your answers with neat sketches wherever necessary.
(3) Figures to the right indicate full marks.
(4) Assume suitable data, if necessary.
(5) Mobile Phone, Pager and any other Electronic Communication devices
are not permissible in Examination Hall.
(6) Preferably, write the answers in sequential order.

Marks

1. Attempt any FIVE of the following : 10

(a) Define Algorithm.

(b) Give the significance of <math.h> and <stdio.h> header files.

(c) Give syntax of if-else ladder.

(d) Define Array.

(e) Write syntax and use of pow( ) function of <math.h> header file.

(f) Define pointer. Write syntax for pointer declaration.

(g) Draw and label symbols used in flow chart.

[1 of 4] P.T.O.
22226 [2 of 4]
2. Attempt any THREE of the following : 12

(a) Write an algorithm to determine whether a given number is divisible by 5 or


not.

(b) Explain do – while loop with example.

(c) Explain one dimension and two dimension arrays.

(d) Write the output of following c program

#include<stdio.h>

int main ( )

char *ptr;

char str[]=“MAHARASHTRA STATE BOARD OF TECHNICAL


EDUCATION”;

ptr=str;

ptr=ptr+11;

printf(“%s”,++ptr);

return 0;

3. Attempt any THREE of the following : 12

(a) Explain increment and decrement operator.

(b) Explain User defined function with example.

(c) Explain conditional operator with example.

(d) Explain strlen( ) and strcpy( ) function with example.


22226 [3 of 4]
4. Attempt any THREE of the following : 12

(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( )]

(e) Write a program to swap two numbers using call by value.

5. Attempt any TWO of the following : 12

(a) Write a program using switch statement to check whether entered character is
VOWEL or CONSONANT.

(b) Write a program for addition of two 3  3 matrices.

(c) Write a program to Print values of variables and their addresses.

6. Attempt any TWO of the following : 12

(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.

Instructions : (1) All Questions are compulsory.


(2) Answer each next main Question on a new page.
(3) Illustrate your answers with neat sketches wherever necessary.
(4) Figures to the right indicate full marks.
(5) Assume suitable data, if necessary.
(6) Mobile Phone, Pager and any other Electronic Communication
devices are not permissible in Examination Hall.
(7) Preferably, write the answers in sequential order.

Marks

1. Attempt any FIVE of the following : 10

(a) Define :

(i) Two dimensional array

(ii) Multi-dimensional array

(b) Give any four advantages of pointer.

(c) Define type casting. Give any one example.

(d) State any four decision making statements.

(e) State any four math functions with its use.

(f) State the use of following symbols used for flowchart drawing :

(i) (ii)

(iii) (iv)

(g) State use of while loop with syntax.


[1 of 4] P.T.O.
22226 [2 of 4]
2. Attempt any THREE of the following : 12

(a) Develop a simple ‘C’ program for addition and multiplication of two integer

numbers.

(b) Explain how to pass pointer to function with example.

(c) Explain following functions :

getchar( )

putchar( )

getch( )

putch( )

with suitable examples.

(d) Develop a program to accept an integer number and print whether it is

palindrome or not.

3. Attempt any THREE of the following : 12

(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.

(d) Develop a program to find factorial of a number using recursion.


22226 [3 of 4]
4. Attempt any THREE of the following : 12

(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.

(c) Design a program to print a message 10 times.

(d) Draw a flowchart for checking whether given number is prime or not.

(e) Implement a program to demonstrate logical AND operator.

5. Attempt any TWO of the following : 12

(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.

(c) Implement a program to demonstrate concept of pointers to function.

6. Attempt any TWO of the following : 12

(a) Develop a program to swap two numbers using pointer and add swaped
numbers also print their addition.

(b) Design a programme in C to read the n numbers of values in an array and


display it in reverse order.

(c) Develop a program to find diameter, circumference and area of circle using
function.

_______________

P.T.O.
22226 [4 of 4]

You might also like