Gujarat Technological UniversitySummer 2024 Examination

GTU 3110003 Programming for Problem Solving (PPS) Summer 2024 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)
Draw neat Block Diagram illustrating the Anatomy of a Computer System.
3 Marks
(b)
Illustrate an Algorithm to check whether the given year is leap year or not.
4 Marks
(c)

Define Flow chart, List the rules for designing a Flow chart and Rephrase the merits and demerits of flow chart.

7 Marks

Question 2

14 MarksMedium
(a)
List the rules to assign a name to an Identifier (Variable)
3 Marks
(b)

Illustrate the basic structure of a C Programs and highlight usual sections of main function.

4 Marks
(c)

Construct a C program which receives number of days as input and converts them in to Year, Months and Days,

7 Marks
OR OPTION
(c)

Construct a C program to swap the values of two integers with use of only two variables.

7 Marks

Question 3

14 MarksMedium
(a)
Contrast the Entry Control loop and Exit Control loop.
3 Marks
(b)

Construct a C program to find the largest number amongst three integers entered.

4 Marks
(c)
Construct a C program to check if entered integer is a prime number or note.
7 Marks
OR OPTION
(a)
Debug the following codes and show the output for this:

For ( i=0 ; i<=50 ; i++ ); { printf( “\n %d” , i ) }

  • consider header files and declaration of variable is done.
3 Marks
(b)
Explain nested if-else statement with suitable example.
4 Marks
(c)

Construct a C program to print following pattern 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15…..

7 Marks

Question 4

14 MarksMedium
(a)
List the types of Array.
3 Marks
(b)
Summarize the methods for initialization of One-Dimensional array.
4 Marks
(c)
Construct a C program to multiply 3X3 matrix.
7 Marks
OR OPTION
(a)
List the application of gets getchar and puts functions.
3 Marks
(b)

Summarize the method for Declaration, initialization and Printing on screen of a String.

4 Marks
(c)
Define a Structures which contains details of a Cricketer:
  • Name of Player:
  • Team name:
  • Total run scored:
  • Batting average:
7 Marks

Question 5

14 MarksMedium
(a)
Write True / False against following statements:
1)Pointer is a variable which holds address of location where value of other variable is stored.
2)Pointer holds the address in form of float or integer.
3)The address of a variable can be stored in two or more pointers.
3 Marks
(b)
List the categories of User Defined Functions and Discuss any one of these.
4 Marks
(c)

Construct a C program which used a user define function that receives an integer and returns square and cube of it and prints in main function.

7 Marks
OR OPTION
(a)
What are the arithmetic operators that are permitted on pointers?
3 Marks
(b)

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

4 Marks
(c)
List and discuss file handling functions used in C.
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 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.

Download PDF