Pps Sem Questions
Pps Sem Questions
UNIT-I
1.a) Write a C Program to find maximum number among three numbers using conditional operator. b)
Define Flow Chart. List some commonly used symbols and specify its purpose.
2.a) Explain in detail about relational operators with examples. b) In C if any variable is auto storage class
by default, then why auto keyword introduced in C? Explain.
3.a) Write a program to read two numbers. Then find out whether the first is a multiple of the second
number. b) Explain the use of Command line argument with an example.
4.a) Differentiate between typecasting and type conversion. b) Write a program to count the number of
vowels in a text.
6. Define operator? List and explain various operators used in C programming language.
7.a) Explain briefly about the components of a computer. b) Write an algorithm to find the factorial of a
given number.
8. List out Bitwise operators. Explain each one along with their precedence and associativity.
9.a) Write pseudo code to find biggest number of a given set. b) Write the syntaxes of While and Do-
While loops. Explain. Differentiate between them.
10. In C if any variable is auto storage class by default, then why auto keyword introduced in C? Explain.
UNIT-II
1.a) Write a C program to find given string is palindrome or not without using any string functions. b)
Define pointer. Write the advantages and disadvantages of using pointers.
2. Write a C program that performs the following operations (Use structures) a) Reading a complex
number b) Writing a complex number c) Addition of two complex numbers.
1
3.a) Write a program to perform transpose of a 3×3 matrix. b) Differentiate between structure and an
array.
4.a) Describe about the enumerated data type with an example. b) Explain about the use of pointers in
self referential structures.
5.a) Explain in detail about various types of string handling functions with an example. b) Describe
briefly about Enumerated Data Types.
6.a) Develop a C Program to perform matrix multiplication. b) What is the syntax for Structure? Explain
with an example.
7.a) Define Union? Write the advantages of Union over Structure? Justify your answer? b) Write a C
code to find string length?
8.a) Define an Array. Write a C code for Matrix multiplication using arrays. b) Write about Pointer
Arithmetic Operations.
UNIT-III
1. Write a C program to merge the contents given two existing files into new file.
2.a) Discuss the random access using fseek( ) function. b) Give a brief note on ftell( ) and rewind( )
function.
3.a) Write a program to merge two files into a third file. The names of the files must be entered using
command line arguments. b) Distinguish between #ifdef and #ifndef.
4.a) Explain the importance of #define preprocessor directive. b) Write a program to read a file that
contains lowercase characters. Then write these characters into another file with lower case characters
converted into upper case.
5.a) Explain briefly about Commonly used Preprocessor commands include and define. b) Develop a C
program to write contents in to file using file I/O.
6.a) What is the need of Pre-processor commands? Explain. b) Write a C code to find the number of
characters in a file.
7.a) Write about various operations that can be performed on files. Write various modes of file
operations. b) Write a C code to read and print the contents of a file.
2
UNIT-IV
1.a) Write a recursive function in C to find the sum of array elements. b) Explain the passing parameters
to functions.
2.a) Write a recursive program to find out the factorial of given number. b) Explain about the dynamic
memory allocation.
3.a) Explain in detail about user defined functions with an example program. b) Develop a C program to
print the Fibonacci series using recursion.
4.a) Illustrate recursive function with a suitable example. b) Differentiate call by value and call by
reference.
5.a) Differentiate call by value and call by reference. b) Write a C code to print Fibonacci sequence using
recursion.
8.a) What is dynamic memory allocation? Why it is required explain? b) Write a C code to find Factorial
of a given number using Recursion.
UNIT-V
1. Which searching technique is best among linear search and binary search, justify your answer.
2.a) Write an algorithm to find out the minimum and maximum numbers of a given set. b) Explain about
the Bubble sort with an example.
4.a) Write Linear search algorithm. Explain with example. b) Write two applications of searching.
5.a) What is sorting? Explain Selection sort algorithm with example. b) What is Time complexity?
6. Which searching technique is better among linear search and binary search, justify your answer.