Gujarat Technological UniversityWinter 2025 Examination

GTU 3110003 Programming for Problem Solving (PPS) Winter 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 Hours2:30 PM – 5:00 PM
Paper Structure5 QuestionsWith internal OR choices
Jump toQ1Q2Q3Q4Q5

Question 1

14 MarksMedium
(a)
Write an algorithm to check whether the entered number is Even or Odd.
3 Marks
(b)
Define following terms:
1)Application Software 2) System Software
3)Algorithm 4) Flowchart
4 Marks
(c)

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

7 Marks

Question 2

14 MarksMedium
(a)
Discuss the need of break and continue statements with example.
3 Marks
(b)
Differentiate while and do..while loop
4 Marks
(c)

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

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

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

7 Marks

Question 3

14 MarksMedium
(a)
Explain switch statement with an example.
3 Marks
(b)
Write a C program to find the largest number amongst three integers entered
4 Marks
(c)
Write a C program to find factorial of a given number
7 Marks
OR OPTION
(a)
Explain nested if-else statement with suitable example.
3 Marks
(b)
Find out error(s), if any in the following code and correct it:

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

4 Marks
(c)

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

7 Marks

Question 4

14 MarksMedium
(a)
List the types of Array
3 Marks
(b)
Summarize the methods for initialization of One-Dimensional array.
4 Marks
(c)
Write a C program to sort an array in ascending order.
7 Marks
OR OPTION
(a)

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

3 Marks
(b)
Demonstrate the use of recursion with an example
4 Marks
(c)

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.

7 Marks

Question 5

14 MarksMedium
(a)

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

3 Marks
(b)

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

4 Marks
(c)
Write a c program to copy content of one file into another file.
7 Marks
OR OPTION
(a)
Differentiate call by value and call by reference.
3 Marks
(b)
Discuss Nested structure with example.
4 Marks
(c)

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

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

Download PDF