PPS Model Question Paper - 2
PPS Model Question Paper - 2
:22CS102001 SET-1
MOHANBABU UNIVERSITY
SreeSainathNagar,Tirupati 517102
IB.Tech.ISemester(MBU22)RegularExaminations,November,2022
(22CS102001)Programming for Problem solving
PART-A
AnswerAllQuestions.AllQuestionsCarryEqualMarks 10x2=20Marks
Question BL CO PO
1. a) List the advantages of ASCII Code L1 CO2 PO1
PART-B
3. a) Describe comparison, logical and bitwise operators in detail 8Marks L1 CO1 PO1
with examples.
b) Write a C program to check the given number is Fizzbuzz 8Marks L3 CO1 PO3
number or not.
MODULE-II
4. a) Explain Structure of C programming with real time example. 8Marks L2 CO2 PO2
b) Write a C program to check whether the given number is a 8Marks L2 CO2 PO3
palindrome or not without using any inbuilt functions.
OR
5. a) In a meeting there are n people sitting, and they are giving 8Marks L3 CO2 PO3
handshake for all exactly once for a person. Write a program
to display the number of handshakes by all.
b) Write a C program to display the arithmetic operations 8Marks L1 CO2 PO2
without using the respective symbol and bitwise operations
MODULE-III
6. a) Write a C program to delete the particular element in array 8Marks L3 CO3 PO3
with explanation.
b) Write a C program to find the sum of a n number using 8Marks L3 CO3 PO3
recursive function with explanation.
OR
7. a) Write a C program to display the following pattern . 8Marks L2 CO3 PO2
a
bc
def
ghil
klmno
.
b) Write a C program to compare two strings without using 8Marks L3 CO3 PO3
inbuilt function with explanation.
MODULE-IV
8. a) Write a program to find GCD and LCM of two numbers using 8Marks L3 CO4 PO3
concept of functions.
b) Explain Call by Value and Call by reference with example. 8Marks L1 CO4 PO1
OR
9. a) Explain the following with a suitable example: 8Marks L1 CO4 PO1
i) Pointer arithmetic. ii) Array of pointers.
b) Write a C program to reverse order of the array elements 8Marks L3 CO4 PO3
using functions.
MODULE-V
10. a) Explain fseek() and ftell() functions in file handling with 8Marks L2 CO5 PO1
example
b) Explain fgets(), fgetc(), fputc() and fputs() functions in file 8Marks L2 CO5 PO1
handling with example
OR
11. a) Explain Union with syntax and example. 8Marks L2 CO5 PO1
b) Write a C program that uses pointers to initialize the 8Marks L3 CO5 PO3
members of the structure.
***