PPS GTU Paper Solution Winter 2023 | 310003

Here, We provide Programming For Problem Solving GTU Paper Solution Winter 2023. Read the Full PPS GTU Paper Solution Winter 2023 given below.

(a) Write an algorithm to check whether the entered number is Even
or Odd.

(b) Draw the flowchart to find the factorial of a number given by

(c) Briefly explain different components of Computer system.

(a) Give the output of following C code.
Int main(){
Return0; }

(b) Demonstrate the use of bitwise operator with an example.

(c) Explain C tokens in detail.

(c) Briefly explain different storage classes used in C with appropriate example.

(a) Demonstrate the use of ternary operator with an example.

(b)Give the output of following C codes.

(c) Write a C program to print following pattern using loop.

4 4
3 3 3
2 2 2 2
1 1 1 1 1

(a) Differentiate between break and continue.

(b)Demonstrate the use of forward jump and backward jump with an example.

(c) Explain else… if ladder with an example.

(a) Give the significance of puts(), getchar(), getch().

(a) puts() is a function defined in header <stdio.h> that prints strings character by character until the NULL character is encountered.
(b) The puts() function prints the newline character at the end of the output string.
(a) getchar is a standard library function that takes a single input character from standard input.
(b) It is defined inside the <stdio.h> header file.
(a) getch() is a nonstandard function and is present in conio.h header file.
(b) getch() also reads a single character from the keyboard. But it does not use any buffer, so the entered character is immediately returned without waiting for the enter key

(b) Differentiate between call by value and call by reference.

(c) Write a C program to check whether two strings are same or not.

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

(b) Demonstrate the use of recursion with an example.

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

(a) Differentiate between structure and union.

(b) Briefly explain any two file handling functions with an example.

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

Give the output of following C code.
int main() {
int arr r[3][2] = {1, 2, 3, 4, 5, 6} ;
printf(“%d %d %d”, arr[0][1], arr[1][0], arr[2][1] );
return 0;

(b) Briefly explain memory management functions.

(c) Write C program to copy one file to other.

Solved By : Hetvi Boricha - IT (GEC Bhavnagar)