Gujarat Technological UniversitySummer 2025 examination

GTU 3110003 Programming for Problem Solving (PPS) Summer 2025 Solved Paper & Solutions

B.E. · Common Engineering · Semesters 1 and 2 · Subject code 3110003
Download official PDFView PDF here
Share with your class
Total
70 marks
To pass
23 marks (33%)
Duration
2.5 Hours 10:30 AM – 1:00 PM
Questions
5 with internal choice
25 step by step solutions on this page

10 of 25 questions on this paper were also asked in other years. 2 more are types of question GTU sets again with new data. Each is marked below with the years it appeared.See all 27 repeated 3110003 questions, most asked first

Q.1

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

Q.2

14 Marks
(a)
3 marks
Demonstrate the working of ternary operator and sizeof operator with an example.
(b)
4 marksAsked in 3 of 7 papers
Differentiate between while and do..while loop.

Also asked in Winter 2025 Q2b, Winter 2024 Q3a

(c)
7 marksAsked in 3 of 7 papers
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

Also asked in Winter 2025 Q2c OR, Summer 2023 Q4b OR

(c)
7 marksSame type asked in 5 of 7 papers
Write a C program to print following pattern:

For e.g. input = 5

  • *
  • **
  • ***
  • ****

Also asked in Winter 2024 Q2c, Summer 2024 Q3c OR, Winter 2023 Q3c, Summer 2023 Q4b

Q.3

14 Marks
(a)
3 marksAsked in 4 of 7 papers
Explain type casting with example

Also asked in Summer 2026 Q2b, Winter 2024 Q3b, Summer 2023 Q3a OR

(b)
4 marksAsked in 2 of 7 papers
Differentiate between break and continue.

Also asked in Winter 2023 Q3a OR

(c)
7 marks

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

(a)
3 marksAsked in 3 of 7 papers
Explain else…if ladder with example.

Also asked in Winter 2023 Q3c OR, Summer 2023 Q3a

(b)
4 marks
Explain getch(), putch(), gets(), puts() .
(c)
7 marksAsked in 5 of 7 papers

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

Also asked in Winter 2025 Q5a OR, Winter 2024 Q3a OR, Winter 2023 Q4b, Summer 2023 Q3c OR

Q.4

14 Marks
(a)
3 marksAsked in 2 of 7 papers
Explain nested structure with example

Also asked in Winter 2025 Q5b OR

(b)
4 marks
Explain following string handling functions:
1). strcat( )
2). strlen ( )
(c)
7 marksSame type asked in 2 of 7 papers
Write a C program to check weather given integer number is palindrome or not?

Also asked in Summer 2023 Q5c OR

(a)
3 marks
State the use of Union in ‘C’ with example
(b)
4 marksAsked in 4 of 7 papers
Briefly explain memory management functions.

Also asked in Summer 2026 Q5b OR, Summer 2024 Q5b OR, Winter 2023 Q5b OR

(c)
7 marks

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

Q.5

14 Marks
(a)
3 marks
Demonstrate the use of void * with example
(b)
4 marks
Demonstrate the use of fopen( ) and fprintf( ) function of file handling
(c)
7 marksAsked in 2 of 7 papers

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

Also asked in Winter 2025 Q5c OR

(a)
3 marks
Demonstrate the pointer arithmetic with example.
(b)
4 marks
show the use of fclose( ) and fscanf( ) function of file handling
(c)
7 marksAsked in 4 of 7 papers
Write a c program to copy content of one text file to another text file

Also asked in Summer 2026 Q5c OR, Winter 2025 Q5c, Winter 2023 Q5c OR

More Programming for Problem Solving papers

Questions repeat across sessions. Working through two or three papers shows you which topics GTU asks most.

Preparing with friends?

Send this paper to your class group. Every question has its own link.

About this paper

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.

ViewDownload PDF