Pps Imp Questions
Pps Imp Questions
Chapter-4 Functions
What is function? How Call by value and Call by reference passes the argument in function. 4
List the categories of User Defined Functions and Discuss any one of these 4
Differentiate between call by value and call by reference. 4
What is function? Differentiate: Call by value and Call by reference. 7
What are the steps in writing a recursive function in a program? 4
Write a program in C to calculate the power of any number using recursion. 7
Demonstrate the use of recursion with an example. 4
Write a C program to find sum of digits for a given number using the concept of User Defined Function (UDF). (Hint: For number 3278, sum of digits is 3+2+7+8
7 = 20)
Chapter-6 pointers
Explain the following File Handling functions: 1. fseek( ) 2. ftell( ) 3. fread( ) 4. fwrite( ) 5. fscanf( ) 6. fprintf( ) 7.rewind( 7
Explain error handling in file system with example. 7
What is File Pointer? What is significance of File Pointer? 3
Write a C program to copy one file to other. 7
Briefly explain memory management functions
Explain need of Dynamic Memory allocation. Compare malloc(), calloc() and realloc() functions 4
Show the use of Malloc, Calloc, Free and Realloc in context of Dynamic memory allocation 4
List down and briefly explain methods for dynamic memory allocation. 4
Programs:(ALL 7 MARKS)
Write a C program to print following patterns : 7
*
**
***
****
Write a program to print following patterns : 7
1
22
333
4444
Construct a C program to print following pattern .
1
23
456
7 8 9 10
11 12 13 14 15….
Write a program to print the triangle shown below.
A
AB
ABC
ABCD
Write a C program to check whether a three digits number is palindrome or not 7
Write a C program to copy one string to other without using string handling function.
Construct a C program to multiply 3X3 matrix.
Define a Structures which contains details of a Cricketer: • Name of Player: • Team name: • Total run scored: • Batting average:
Write a C program to check whether two strings are same or not.
Write a C program to generate first n number of Fibonacci series using recursion.( 0 1 1 2 3 5 8…)
Write a C program to compute Fahrenheit from centigrade (f=1.8*c +32).
Write a C program to find factorial of a given number.
Write a C program to make sum of digits of a given number. (if input is 145, output should be 10)
Write a C program to sort an array in ascending order.