Gujarat Technological UniversityWinter 2023 Examination

GTU 3110003 Programming for Problem Solving (PPS) Winter 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 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)
Draw the flowchart to find the factorial of a number given by user.
4 Marks
(c)
Briefly explain different components of Computer system.
7 Marks

Question 2

14 MarksMedium
(a)
Give the output of following C code.

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

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

Question 3

14 MarksMedium
(a)
Demonstrate the use of ternary operator with an example.
3 Marks
(b)
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; }
4 Marks
(c)
Write a C program to print following pattern using loop.
7 Marks
OR OPTION
(a)
Differentiate between break and continue.
3 Marks
(b)
Demonstrate the use of forward jump and backward jump with an example.
4 Marks
(c)
Explain else if ladder with an example.
7 Marks

Question 4

14 MarksMedium
(a)
Give the significance of puts(), getchar(), getch().
3 Marks
(b)
Differentiate between call by value and call by reference.
4 Marks
(c)
Write a C program to check whether two strings are same or not.
7 Marks
OR OPTION
(a)
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; }

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

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)

7 Marks

Question 5

14 MarksMedium
(a)
Differentiate between structure and union.
3 Marks
(b)
Briefly explain any two file handling functions with an example.
4 Marks
(c)

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

7 Marks
OR OPTION
(a)
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; }

3 Marks
(b)
Briefly explain memory management functions.
4 Marks
(c)
Write a C program to copy one file to other.
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 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