V.V.P.
ENGINEERING COLLEGE
DEPARTMENT OF COMPUTER EBGINEERING
Assignment-2
A.Y. 2024-2025(Even)
Semester: 2
Subject : Programming for Problem Solving (BE01000121)
Sr no Questions CO CL
What is user define function? Why it is used? Explain the elements of
1 CO4 R, E, U
UDF (Function prototype, Function call & Function definition).
2 Explain the different categories (types) of functions with example. CO4 AP
State the difference between call by value and call by reference
3 CO4 A, AP
with example.
What is recursion? What do you mean by recursive function explain
4 CO4 R, AP
with example.
What is pointer? Explain how pointers are declared and initialized.
5 CO3 R, U
State its advantages.
6 Explain pointer to array with example. CO3 AP
What is structure? How to access the elements of structure? How to
7 CO3 R, AP
calculate size of structure? Explain with example.
8 Write difference between structure and union. CO3 A
State the difference between static memory allocation and
9 CO3 A, U
dynamic memory allocation. Explain malloc() and calloc().
What is file management? List different file management functions
10 CO4 R, U
and explain various file modes.
11 What is Unit Testing? Explain test case with example. CO5 R, A
Submission Date : On or before 24/04/2025