Sipna College of Engineering & Technology, Amravati
(An Autonomous Institute)
Department of Applied Science and Humanities
Session 2024-25 Sem II (Even)
Question Bank
Subject –Programming for Problem Solving (BTALES08IT2T)
Unit 4- Arrays & Strings
Q1. Develop C program that simply takes elements of the array from the user and finds the sum of these elements.
Q2. Elaborate the term Searching with its type .Explain binary search with the help of example
Q3. Explain string manipulation/handling functions with suitable example of each(Any Two)
Q4 Write a c program to implement strlen (), strcat (),strcpy () using the concept of functions.?
Q5. Define an array. Explain how to declare and initialize an array with the help of an example.
Q6. Explain string with its syntax and explain (any one) of the string manipulation function with suitable example.
Q7. Write a C program that simply takes elements of the array from the user and finds the sum of these elements.
Q8.What is the result of multiplying the binary numbers 101101and 1011
Unit 5- Functions & Pointers
Q1. Define function ?Explain Call by value and Call by reference
Q2. Analyze the concept of Pointer ?Write a c program to swap to numbers using concept of pointer.
Q3. What is dynamic memory allocation? Explain in detail any two dynamic memory allocation function.
Q4 Write a c program to create, initialize, assign and access a pointer variable.
Q5 Define function with its syntax. Write a C program to find cube of any number using function.
Q6. Describe recursive function with the help of diagram and example.
Q7. Develop a C program to add two numbers using function.
Q8. Explain types of functions and five types of user-defined functions divided on the basis of arguments they accept and
the value they return with its example.
Unit6- File I/O
Q1. Define file ? Explain the types of files in detail.
Q2. Develop a C program to read name and marks of n number of students and store them in a file.
Q3. Explain any two macros in detail with its example.
Q4. Write a c program to write all the members of an array of structures to a file using fwrite(). Read the array from the file and
display on the screen.
Q5. .What is macros? Explain Object like macro and Function like macro with suitable example.
Q6. Define file concept. Write a C program to open and close the file.
Q7. Define file and streams. Explain the types of files in detail
Q8. Develop a C program to demonstrate predefined macros. (DATE, TIME, FILE, LINE STDC)..
Q9. What is command line arguments. Give appropriate example of it.