0% found this document useful (0 votes)
9 views1 page

PPS Q B Unit 4,5,6

The document is a question bank for the Programming for Problem Solving course at Sipna College of Engineering & Technology for the 2024-25 academic session. It includes questions on arrays, strings, functions, pointers, and file I/O, with programming tasks and theoretical explanations required for each topic. The questions aim to assess students' understanding of key programming concepts and their ability to implement them in C language.

Uploaded by

gopalpasle
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views1 page

PPS Q B Unit 4,5,6

The document is a question bank for the Programming for Problem Solving course at Sipna College of Engineering & Technology for the 2024-25 academic session. It includes questions on arrays, strings, functions, pointers, and file I/O, with programming tasks and theoretical explanations required for each topic. The questions aim to assess students' understanding of key programming concepts and their ability to implement them in C language.

Uploaded by

gopalpasle
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

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.

You might also like