Gujarat Technological UniversitySummer 2025 examination

GTU BE01000121 Programming for Problem Solving Summer 2025 Question Paper & PDF

B.E. · Common Engineering · Semesters 1 and 2 · Subject code BE01000121
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.

Q.1

14 Marks
(a)
3 marks

Draw block diagram of computer and explain functionalities of various components of computer.

(b)
4 marks
Brief about computer hardware and software.
(c)
7 marks

Write algorithm or flowchart for finding maximum out of three numbers entered by user.

Q.2

14 Marks
(a)
3 marks
Explain the structure of for loop with proper example.
(b)
4 marks
Explain nested if-else statement with suitable example.
(c)
7 marks
Explain different bit-wise operators with the example.
(c)
7 marks
Explain different string functions with example.

Q.3

14 Marks
(a)
3 marks
Discuss the need of break and continue statements with example.
(b)
4 marks
Explain recursion with example.
(c)
7 marks

Explain Declaration, initialization and Printing on screen of a String using suitable program.

(a)
3 marks
Explain while loop and do-while loop with example
(b)
4 marks
What are header files? List any three with its usage.
(c)
7 marks

Explain one dimensional array, two-dimensional array and multi-dimensional array with their syntax and example.

Q.4

14 Marks
(a)
3 marks
What is pointer? Which arithmetic operations are valid on pointers?
(b)
4 marks

What is structure? How it is different from union? Explain nested structure with example.

(c)
7 marks

Write a C program to find the largest number amongst three numbers entered by user.

(a)
3 marks

What is pointer to pointer? Write suitable example to demonstrate the concept.

(b)
4 marks
Define Union in ‘C’ with suitable example.
(c)
7 marks
Write a C program to check if entered integer is a prime number or note.

Q.5

14 Marks
(a)
3 marks
Explain various file management function in C.
(b)
4 marks

Show the use of Malloc, Calloc, Free and Realloc in context of Dynamic memory allocation.

(c)
7 marks
Explain error handling in file system with example.
(a)
3 marks
Explain debugging techniques.
(b)
4 marks
Differentiate call by value and call by reference.
(c)
7 marks

Explain the following File Handling functions: 1. fseek( ) 2. ftell( ) 3. fread( ). 4. fwrite( ) 5. fscanf( ) 6. fprintf( ) 7.rewind( )

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