Gujarat Technological UniversitySummer 2025 Examination

GTU 3110003 Programming for Problem Solving (PPS) Summer 2025 Paper Solution & PDF

B.E. · Common Engineering · Semester 1 · Subject Code: 3110003
Download Official GTU PDF
Share:
Total Marks70 MarksExternal theory exam
Passing Marks23 Marks33% minimum cutoff
Exam Duration2.5 Hours10:30 AM – 1:00 PM
Paper Structure5 QuestionsWith internal OR choices
Jump toQ1Q2Q3Q4Q5

Question 1

14 MarksMedium
(a)
Write an algorithm to find factorial of given number by user input.
3 Marks
(b)
Draw a flowchart to check whether the entered number is prime or not.
4 Marks
(c)
List and explain different data types available in C.
7 Marks

Question 2

14 MarksMedium
(a)
Demonstrate the working of ternary operator and sizeof operator with an example.
3 Marks
(b)
Differentiate between while and do..while loop.
4 Marks
(c)
Write a C program to print following pattern:

For e.g. input = 5 1 2 2 3 3 3 4 4 4 4 5 5 5 5

7 Marks
OR OPTION
(c)
Write a C program to print following pattern:

For e.g. input =

7 Marks

Question 3

14 MarksMedium
(a)
Explain type casting with example
3 Marks
(b)
Differentiate between break and continue.
4 Marks
(c)

Write a program to find out the maximum number from integer array of 5 elements.

7 Marks
OR OPTION
(a)
Explain else…if ladder with example.
3 Marks
(b)
Explain getch(), putch(), gets(), puts() .
4 Marks
(c)

What is function? Differentiate between call by value and call by reference with example.

7 Marks

Question 4

14 MarksMedium
(a)
Explain nested structure with example
3 Marks
(b)
Explain following string handling functions:
1). strcat( )
2). strlen ( )
4 Marks
(c)
Write a C program to check weather given integer number is palindrome or not?
7 Marks
OR OPTION
(a)
State the use of Union in ‘C’ with example
3 Marks
(b)
Briefly explain memory management functions.
4 Marks
(c)

Write a C program to count total number of vowel in given string. ( for example input string =”hello” , output=2)

7 Marks

Question 5

14 MarksMedium
(a)
Demonstrate the use of void * with example
3 Marks
(b)
Demonstrate the use of fopen( ) and fprintf( ) function of file handling
4 Marks
(c)

Write a c program to count total number of characters, words and line for any text file using file handling function

7 Marks
OR OPTION
(a)
Demonstrate the pointer arithmetic with example.
3 Marks
(b)
show the use of fclose( ) and fscanf( ) function of file handling
4 Marks
(c)
Write a c program to copy content of one text file to another text file
7 Marks
College Exam Groups

Studying for Programming for Problem Solving?

Circulate this solved paper with KaTeX formulas and 1-click AI step solvers to your batchmates on WhatsApp or Telegram.

About this Examination Paper & Attribution

Official Gujarat Technological University (GTU) examination paper and step-by-step solutions for Programming for Problem Solving (PPS) (Summer 2025, B.E. · Common Engineering, Sem 1). Features complete 70-mark regular & remedial examination pattern, official marking distribution across all 5 questions, and direct 1-click official PDF download.

Transcribed for student exam preparation from Gujarat Technological University official examination archives. Questions, syllabus guidelines, and curriculum marking schemes remain the intellectual property of Gujarat Technological University.

Download PDF