PPSC(23GES01)-QBANK
PPSC(23GES01)-QBANK
COLLEGE
(An Autonomous Institution)
(Approved by AICTE, New Delhi, Accredited by NAAC & Affiliated to Anna
University)
Rasipuram - 637 408, Namakkal Dist., Tamil Nadu.
Part A
Part B
Part A
Part B
Part A
Part B
1. What is an Array? Discuss how one dimensional array can be declared and their elements
are accessed.
2. Explain the process for inserting and deleting an element into a 1D-Array with suitable
examples.
3. Write short note on two-dimensional arrays and multi-dimensional array with example.
4. Explain declaration and initialization of a string in C.
5. Write a C program to convert the given string from lowercase characters to uppercase
character and uppercase to lowercase.
6. Write a C program to find the sum and differences of matrices using 2D-Array.
7. Explain the strings and string operations with example.
8. Develop a program to matrix multiplication using two-dimensional arrays.
9. Develop a program to concatenate two strings and determine the length of the
concatenated string.
10. Develop a program to insert a number at a given location in an array.
UNIT-IV: FUNCTIONS AND POINTERS
Part A
Part B
1. What are functions? How are they useful? What are the different kinds of user defined
functions and what is the need of user defined functions?
2. With suitable example illustrate “call by value and call by reference” techniques of
passing parameters for functions.
3. Analyze the built-in function and user defined functions with example.
4. Write short notes about function types with example
5. Write short notes about pointer and how to declare pointer and initialize variable.
6. Explain about pointer and its types.
7. Analyze the function definition, function declaration and function call with suitable
example.
UNIT-V: STRUCTURES, UNION AND FILE HANDLING
Part A
1. Define Structure in C.
2. How will you define a structure?
3. How will you declare structure variables?
4. List the features of structures.
5. List the main aspects of working with structure.
6. What are the two ways of passing a structure to function in C?
7. Write any two advantages of Structure.
8. Define Union in C.
9. Compare Structure and Union.
10. How will you define a Union?
11. What are file attributes?
12. What is the use of functions fseek(),fread(),fwrite() and ftell()?
13. How is a file opened and file closed?
14. What are the statements used for reading a file?
15. Differentiate text file and binary file.
16. What is random access file?
17. State the two types of data files.
18. State the two categories of standard data files.
19. Compare fread() and fwrite().
20. What is mean by command line arguments?
Part B
1. What is a structure? Create a structure with data members of various types and declare
two structure variables. Write a program to read data into these and print the same.
2. Explain array of structure in C.
3. Write a C program to create mark sheet for students using structure.
4. How can you insert structure within another structure?
5. Explain the concept of structures and functions, structures and pointers with example.
6. Write a C program using structure to store date, which includes day, month and year.
7. What is file in C? Give a brief introduction about files and its operations.
8. How to read and write the binary file? Explain with an example.