Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

1.

ASSIGNMENT_1

a. Write an algorithm to find the minimum element in a given list.

b. Develop an algorithm to insert a new card into a list of sorted cards.

c. Create an algorithm to guess an integer number within a specified range.

d. Explain the recursive approach for solving the Towers of Hanoi problem.

2. ASSIGNMENT_2

a. Illustrate the basic structure of a C program and explain the purpose of each section.

b. Provide examples of applications where C language is widely used.

c. Explain the different data types in C with examples.

d. Discuss the importance of constants and keywords in C programming.

e. Compare and contrast preprocessor directives with the compilation process.

3. ASSIGNMENT_3

a. Declare and initialize a one-dimensional array in C. Provide examples.

b. Implement a C program to perform selection sort on an array.

c. Write a C program to demonstrate string operations like length, comparison, concatenation,


and copying.

4. ASSIGNMENT_4

a. Discuss the concept of modular programming with a focus on function prototypes and
definitions.

b. Create a C program that uses recursive functions to perform binary search.

c. Explain the role of pointers in C programming and demonstrate their use with examples.

d. Discuss different methods of parameter passing in C (pass by value, pass by reference).

e. Explore the built-in functions in C, with a special emphasis on string and math functions.

5. ASSIGNMENT_5

a. Define a structure in C to represent a student's information (name, roll number, marks).


Provide examples.

b. Discuss the concept of unions and provide a use case where unions are beneficial.

C. Implement a C program to read and write data to a sequential access file.

d. Describe dynamic memory allocation in C and its application in a singly linked list.

You might also like