Gujarat Technological UniversityWinter 2025 examination

GTU 3110003 Programming for Problem Solving (PPS) Winter 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 2:30 PM – 5:00 PM
Questions
5 with internal choice
25 step by step solutions on this page

14 of 25 questions on this paper were also asked in other years. 1 more is a type 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 marksAsked in 2 of 7 papers
Write an algorithm to check whether the entered number is Even or Odd.

Also asked in Winter 2023 Q1a

(b)
4 marks
Define following terms:
1)Application Software 2) System Software
3)Algorithm 4) Flowchart
(c)
7 marks

Explain different type of operators used in c language with their precedence and associativity.

Q.2

14 Marks
(a)
3 marks
Discuss the need of break and continue statements with example.
(b)
4 marksAsked in 3 of 7 papers
Differentiate while and do..while loop

Also asked in Summer 2025 Q2b, Winter 2024 Q3a

(c)
7 marks

Write a C program to check whether the entered character is alphabet, digit, space or any special character.

(c)
7 marksAsked in 3 of 7 papers
Write a C program to print following pattern:

Input : 4 Output: 1 2 2 3 3 3 4 4 4

Also asked in Summer 2025 Q2c, Summer 2023 Q4b OR

Q.3

14 Marks
(a)
3 marks
Explain switch statement with an example.
(b)
4 marksAsked in 2 of 7 papers
Write a C program to find the largest number amongst three integers entered

Also asked in Summer 2024 Q3b

(c)
7 marks
Write a C program to find factorial of a given number
(a)
3 marksAsked in 2 of 7 papers
Explain nested if-else statement with suitable example.

Also asked in Summer 2024 Q3b OR

(b)
4 marks
Find out error(s), if any in the following code and correct it:

int main() { if(25%2==0) { break; } }

(c)
7 marksAsked in 2 of 7 papers

Write a C program to make sum of digits of a given number. (if input is 145, output should be 10)

Also asked in Winter 2023 Q4c OR

Q.4

14 Marks
(a)
3 marksAsked in 2 of 7 papers
List the types of Array

Also asked in Summer 2024 Q4a

(b)
4 marksAsked in 2 of 7 papers
Summarize the methods for initialization of One-Dimensional array.

Also asked in Summer 2024 Q4b

(c)
7 marks
Write a C program to sort an array in ascending order.
(a)
3 marks

Demonstrate declaration and initialization of two dimensional array with suitable example.

(b)
4 marksAsked in 2 of 7 papers
Demonstrate the use of recursion with an example

Also asked in Winter 2023 Q4b OR

(c)
7 marksSame type asked in 3 of 7 papers

Write a program in c for multiply two matrices A and B of dimensions M x N and N x O respectively and store the result in third matrix C.

Also asked in Winter 2024 Q4c OR, Summer 2024 Q4c

Q.5

14 Marks
(a)
3 marksAsked in 2 of 7 papers

Define dynamic memory allocation. Explain malloc() and calloc() with example.

Also asked in Summer 2023 Q5a

(b)
4 marks

What is pointer? Explain how pointers are declared and initialized. .

(c)
7 marksAsked in 4 of 7 papers
Write a c program to copy content of one file into another file.

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

(a)
3 marksAsked in 5 of 7 papers
Differentiate call by value and call by reference.

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

(b)
4 marksAsked in 2 of 7 papers
Discuss Nested structure with example.

Also asked in Summer 2025 Q4a

(c)
7 marksAsked in 2 of 7 papers

Write a c program to read a file and count total no of lines, total no. of words and total number of characters.

Also asked in Summer 2025 Q5c

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) (Winter 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