Gujarat Technological UniversityWinter 2023 examination

GTU 3110003 Programming for Problem Solving (PPS) Winter 2023 Question Paper & PDF

B.E. · Common Engineering · Semester 1 · 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
No solutions on this paper yetNeed them for your exam? Ask once. Papers that students ask for are solved first, and we aim to add them within 24 hours.

10 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 2025 Q1a

(b)
4 marks
Draw the flowchart to find the factorial of a number given by user.
(c)
7 marksAsked in 4 of 7 papers
Briefly explain different components of Computer system.

Also asked in Summer 2026 Q1b, Summer 2024 Q1a, Summer 2023 Q1a

Q.2

14 Marks
(a)
3 marks
Give the output of following C code.

int main(){ printf(“%d”, 15<2); printf(“%d”, 15&&2); printf(“%d”, 7%10); return 0; }

(b)
4 marks
Demonstrate the use of bitwise operators with an example.
(c)
7 marks
Explain C tokens in detail.
(c)
7 marks
Briefly explain different storage classes used in C with appropriate example.

Q.3

14 Marks
(a)
3 marks
Demonstrate the use of ternary operator with an example.
(b)
4 marks
Give the output of following C codes.
1int main(){ int i=10; while(i<10){ printf(“%d”, i); i++; } return 0; }
2int main(){ int i=10; do{ printf(“%d”, i); i++; }while(i<10); return 0; }
(c)
7 marksSame type asked in 5 of 7 papers
Write a C program to print following pattern using loop.

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

(a)
3 marksAsked in 2 of 7 papers
Differentiate between break and continue.

Also asked in Summer 2025 Q3b

(b)
4 marks
Demonstrate the use of forward jump and backward jump with an example.
(c)
7 marksAsked in 3 of 7 papers
Explain else if ladder with an example.

Also asked in Summer 2025 Q3a OR, Summer 2023 Q3a

Q.4

14 Marks
(a)
3 marks
Give the significance of puts(), getchar(), getch().
(b)
4 marksAsked in 5 of 7 papers
Differentiate between call by value and call by reference.

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

(c)
7 marks
Write a C program to check whether two strings are same or not.
(a)
3 marks
Give the output of following C code.

int main(){ int val=20, *p; p = &val; printf(“%d %d %d”, val, *p, sizeof(p)); return 0; }

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

Also asked in Winter 2025 Q4b OR

(c)
7 marksAsked in 2 of 7 papers

Write a C program to find sum of digits for a given number using the concept of User Defined Function (UDF). (Hint: For number 3278, sum of digits is 3+2+7+8 = 20)

Also asked in Winter 2025 Q3c OR

Q.5

14 Marks
(a)
3 marksAsked in 2 of 7 papers
Differentiate between structure and union.

Also asked in Summer 2026 Q5a

(b)
4 marks
Briefly explain any two file handling functions with an example.
(c)
7 marks

Write a C program to find maximum and minimum from an array of 10 elements.

(a)
3 marks
Give the output of following C code.

int main(){ int arr[3][2]={1,2,3,4,5,6}; printf(“%d %d %d”, arr[0][1], arr[1][0], arr[2][1]); return 0; }

(b)
4 marksAsked in 4 of 7 papers
Briefly explain memory management functions.

Also asked in Summer 2026 Q5b OR, Summer 2025 Q4b OR, Summer 2024 Q5b OR

(c)
7 marksAsked in 4 of 7 papers
Write a C program to copy one file to other.

Also asked in Summer 2026 Q5c OR, Winter 2025 Q5c, Summer 2025 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 for Programming for Problem Solving (PPS) (Winter 2023, 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