Gujarat Technological UniversitySummer 2023 Examination

GTU 3110003 Programming for Problem Solving (PPS) Summer 2023 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 Hours10:30 AM – 1:00 PM
Paper Structure5 QuestionsWith internal OR choices
Jump toQ1Q2Q3Q4Q5

Question 1

14 MarksMedium
(a)

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

3 Marks
(b)
Write an algorithm to find maximum number for three given number.
4 Marks
(c)
Write a C program to compute Fahrenheit from centigrade (f=1.8*c +32).
7 Marks

Question 2

14 MarksMedium
(a)
Differentiate: Exit controlled Loop and Entry controlled Loop
3 Marks
(b)
Explain:
aswitch-case statement
bcontinue statement
4 Marks
(c)
Write a C program to find factorial of a number using recursion.
7 Marks
OR OPTION
(c)

Write a C program to generate first n number of Fibonacci series using recursion.( 0 1 1 2 3 5 8…)

7 Marks

Question 3

14 MarksMedium
(a)
Explain else… if ladder with an example.
3 Marks
(b)
List out all operators and explain any two in details.
4 Marks
(c)

Write a function in the C program to return 1 if number is prime otherwise return 0.

7 Marks
OR OPTION
(a)
Explain Type casting in C with example.
3 Marks
(b)
Explain the structure of for loop with proper example.
4 Marks
(c)
What is function? Differentiate: Call by value and Call by reference.
7 Marks

Question 4

14 MarksMedium
(a)
Explain following terms:
abreak statement
bgetch() function
cgetchar() function
3 Marks
(b)
Write a C program to print following patterns :
4 Marks
(c)

Write a C program to copy one string to other without using string handling function.

7 Marks
OR OPTION
(a)
List any three header file with its usage.
3 Marks
(b)
Write a program to print following patterns :

1 22 333 4444

4 Marks
(c)

Define a structure type struct personal that would contain person name, date of joining and salary using this structure to read this information of 5 people and print the same on screen.

7 Marks

Question 5

14 MarksMedium
(a)

What is dynamic memory allocation? Show the use of malloc() and calloc() function with their syntax.

3 Marks
(b)

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

4 Marks
(c)
Write a C program to check whether a number is prime or not.
7 Marks
OR OPTION
(a)
Explain following string handling functions: I. strcat() II. strcmp() III.

strlen

3 Marks
(b)
What is Pointer in C and how it initializes? State its advantages.
4 Marks
(c)

Write a C program to check whether a three digits number is palindrome or not.

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

Download PDF