Gujarat Technological UniversityWinter 2024 examination

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

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

4 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
What is Software? List various types of Software.
(b)
4 marks
Define following terms:
1Compiler
2Runtime Error
3Dynamic Memory Allocation
4Recursion
(c)
7 marks

Write an algorithm and draw the flowchart to calculate sum of digits of a given number N.

Q.2

14 Marks
(a)
3 marksAsked in 2 of 7 papers
Explain the basic structure of a C program with an example.

Also asked in Summer 2024 Q2b

(b)
4 marks
Evaluate given C programming Expressions :
1Ans = 10 + 4 * 3 / 2;
2Ans = while(1);
3Ans = 3 * 2 > 3 + 1;
4Ans = (2 + 4) > 3 && 2 < 4;
(c)
7 marksSame type asked in 5 of 7 papers
Write a C program to print the following pattern as output:

A B C D E F G H I J

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

(c)
7 marks

Write a C program that takes three coefficients (a, b and c) of a quadratic equation ; (a.x² + b.x + c) as input and compute all possible roots and print them with appropriate messages.

Q.3

14 Marks
(a)
3 marksAsked in 3 of 7 papers
Differentiate while loop and do..while loop with example.

Also asked in Winter 2025 Q2b, Summer 2025 Q2b

(b)
4 marksAsked in 4 of 7 papers
What is type conversion? Explain two types of conversion with examples.

Also asked in Summer 2026 Q2b, Summer 2025 Q3a, Summer 2023 Q3a OR

(c)
7 marks

Write a C program which takes marks (between 0 to 100) of a student for N subjects. It should print grade of a student based on Percentage of Student's marks . "A" for >=85%, "B" between >=70% and <85%, "C" between >=50% and <70%, "PASS" between >=35% and <50%, "FAIL", if any one subject marks are <35.

(a)
3 marksAsked in 5 of 7 papers

What is function? How Call by value and Call by reference passes the argument in function.

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

(b)
4 marks
What are the steps in writing a recursive function in a program?
(c)
7 marks
Write a program in C to calculate the power of any number using recursion.

Q.4

14 Marks
(a)
3 marks
What is string ? How to declare string in C?
(b)
4 marks
Explain significance of following string functions with example.
1strcat()
2strlen()
3strcpy()
4strcmp()
(c)
7 marks

Write a C program ,that reads a statement from user and prints the frequency of each of the distinct character from a-z.

(a)
3 marks
Compare Array, Structure and Union.
(b)
4 marks

Define Union. Describe how to declare, initialize and access members of Union with a programming example.

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

Write a C program which takes two NxN matrices and performs matrix multiplication.

Also asked in Winter 2025 Q4c OR, Summer 2024 Q4c

Q.5

14 Marks
(a)
3 marks
What is a pointer? What are the advantages of using pointer?
(b)
4 marks

Explain need of Dynamic Memory allocation. Compare malloc(), calloc() and realloc() functions.

(c)
7 marks

Write a C program to find the sum and mean of all elements in an array using pointer.

(a)
3 marks
What is File Pointer? What is significance of File Pointer?
(b)
4 marks
Explain signification of following functions in file operations.
1fseek()
2ftell()
3open()
4fread()
(c)
7 marks

Write a C program to read ID and marks of n number of students from user and store them in a file.

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 2024, 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