0% found this document useful (0 votes)
16 views3 pages

PSP-I End Sem Question Bank Final

The document is an end-semester question bank for the Problem Solving and Programming-I course for the academic year 2024-25. It contains a series of programming tasks in C, focusing on array manipulation, mathematical operations, string processing, pointers, structures, and unions. Each question provides specific programming challenges aimed at enhancing students' coding skills.

Uploaded by

ccpatil.24
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)
16 views3 pages

PSP-I End Sem Question Bank Final

The document is an end-semester question bank for the Problem Solving and Programming-I course for the academic year 2024-25. It contains a series of programming tasks in C, focusing on array manipulation, mathematical operations, string processing, pointers, structures, and unions. Each question provides specific programming challenges aimed at enhancing students' coding skills.

Uploaded by

ccpatil.24
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/ 3

Department of Engineering Sciences

Subject:-Problem Solving and Programming-I

END SEM QUESTION BANK

Academic Year 2024-25

Que. No. Problem Statement


1 1.Write a program in C to read n number of values in an array and display them in
reverse order.

2. Write a program in C to find the sum of all elements of the array.

2 1.Write a program in C to copy the elements of one array into another array.

2. Write a program in C to count the total number of duplicate elements in an


array.
3 1.Write a program in C to check if a given number is even or odd using the user
defined function.

2.Write a program in C to check Armstrong and Perfect numbers using the user
defined function.

4 1.Write a program in C to swap two numbers using a user defined function.

2.Write a program in C to convert a decimal number to a binary number using the


user defined function.
5 Write a C program that implements this menu-driven functionality to process a
given string. Use the standard C library string functions to accomplish the
following tasks:
1. Find and display the length of the input string.
2. Create a copy of the input string and display the copied string.
3. Concatenate the input string with another predefined string and display the
result.
4. Compare the input string with another predefined string and display
whether they are equal or not.
6 Write a C program that performs various mathematical operations using functions.
Write a C program that includes the following functions:
Menu:
1. Addition
2. Subtraction
3. Multiplication
4. Division
5. Power

7 Write a C program that performs various mathematical operations using functions


and pointer. Write a C program that includes the following functions:
Menu:
1. Addition
2. Subtraction
3. Multiplication
4. Division

8 1.Write a program in C to add numbers using call by reference.

2.Write a program in C to find the maximum number between two numbers using
a pointer.
9 1.Write a program in C to store n elements in an array and print the elements
using a pointer.

2. Write a program in C to calculate the length of a string using a pointer.

10 1.Write a C program to swap two numbers using pointers.

2. Write a program in C to multiply two numbers using pointers.


11 1.Write a program in C to compute the sum of all elements in an array using
pointers.

2. Write a program in C to store n elements in an array and print the elements


using a pointer.
12 Write a program in C to define a structure for Customer bank account that holds
Information like Account Number, Name of account holder, balance, Internet
banking facility availed(Yes or No), Pin code ( 422001 to 422013) , Account
type(saving, recurring, deposit).
a) Read account details for N customers
b) Identify the golden, silver and general customers. Golden customers: Balance>
10,00000 Silver Customers: Balance >500000 and <10,00000
c) Display the list of customers availing the Internet banking facility
d) Display the customers belonging to a particular geographical location
depending on postal code
e) Display the customer list as per their account type.

13 Write a program in C to define a structure that holds Information of items like-


Item Number, Item Names, Item Category( Electronics, Food, Cosmetics etc),
Available stock. Display the available items.

14 Write a program in C using structure for maintaining extracurricular activities of


students
( roll, name, year, activity name, and prize). The prize can be either cash prize or
memento but not both. Cash prize is to be recorded as integer and memento is to
be recorded as character string. Use union within structure for prize. Read
extracurricular activity record for n students and Display extracurricular activities.
15 Write a program in C using union for maintaining extracurricular activities of
students( roll, name, year, activity name, and prize). The prize can be either cash
prize or memento but not both. Cash prize is to be recorded as integer and
memento is to be recorded as character string. Use union within structure for
prize. Read extracurricular activity record for n students and Display
extracurricular activities.

Dr. P. B. Wakhare
Subject Coordinator

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy