MarchApril 2023
MarchApril 2023
6.a) List the various differences between binary file and text file.
b) Write a C program which copies one file to another, replacing all lowercase characters
with their uppercase equivalents. [5+5]
OR
7. Explain in detail file handling functions with example each. [10]
JN
8.a) Discuss the type of functions based on parameters and return type.
b) Write a program in C using functions to swap two numbers using global variables
concept and call by reference concept. [5+5]
OR
TU
9.a) Explain the various differences between user defined and library functions.
b) What is recursion? What are the advantages and disadvantages of recursion? [5+5]
10.a) Explain the technique Insertion sort with the help of an example array.
H
b) Describe the linear search algorithm with an example. Find the time complexity of it in
all cases. [5+5]
OR
U
11.a) Discuss binary search algorithm with an example.
b) Write an algorithm to find the sum of all elements in an array and find the time
se
complexity of it. [5+5]
d
---ooOoo---
pa
pe
rs
20
23