0% found this document useful (0 votes)
3 views

C PYQ Coding Questions

The document contains a series of coding-based questions for C programming from various years, including tasks such as reversing a number, printing patterns, computing sums, and checking leap years. It also includes questions on array manipulation, matrix operations, string handling, and recursion. Additionally, there are backlog questions covering similar topics and functions.

Uploaded by

Shounak Mondal
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

C PYQ Coding Questions

The document contains a series of coding-based questions for C programming from various years, including tasks such as reversing a number, printing patterns, computing sums, and checking leap years. It also includes questions on array manipulation, matrix operations, string handling, and recursion. Additionally, there are backlog questions covering similar topics and functions.

Uploaded by

Shounak Mondal
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

C Programming PYQs - Coding Based Questions

2023 - Q6

i) Write a C program to print the reverse of a number.

ii) Write a C program to print the pattern:

BB

CCC

DDDD

2023 - Q7

i) Write a C program to compute the sum of two input values. If they are the same, return triple their sum.

iii) Write a C program to check whether a year is a leap year or not.

2023 - Q8

i) Write a program to find the second smallest element in an array.

iii) Write a C program to print integers from 1 to n omitting those divisible by 7.

2023 - Q9

i) Write a program to find the sum of right diagonals of a matrix.

iii) Write a function-based program to compute the cube of an integer.

2023 - Q10

i) Write a C program to find the frequency (number of occurrences) of a character in a string.

iii) Write a program to compute the total number of spaces in a sentence.


C Programming PYQs - Coding Based Questions

2023 - Q12

d) Write a C program to calculate the power of any number using recursion.

2024 - Q7

a) Write a C program to sort a 1-D array in descending order (input from user).

c) Write a C program to read N integers into an array and find the sum of all odd numbers.

2024 - Q10

a) Write a program to read and display student information, edit ith student details, and redisplay.

2024 - Q11

a) Write C programs to interchange two numbers using call by value and call by address.

b) Write a C program to take two strings as input and display the concatenated string without using strcat().

2024 - Q12

b) Write a recursive function to generate Fibonacci series up to nth term.

c) Write a C program to copy the content of a file into a new file.

Backlog - Q6

i) Write a C program to print the sum of digits of a number.

Backlog - Q7

i) Write a C function to multiply two numbers. If the same, return double their sum.
C Programming PYQs - Coding Based Questions

iii) Write a program to compute the sum of the series: S = 1 + 1/3 + 1/9 + ... up to N terms.

Backlog - Q8

i) Write a program to find the smallest element in an array.

iii) Write a C program to print integers from 1 to n which are divisible by 5.

Backlog - Q9

i) Write a program to find the sum of two matrices.

iv) Write a recursive function to compute the power of an integer number.

Backlog - Q10

i) Write a C program to find the total number of white spaces in a sentence.

iii) Write a complete program to print the Fibonacci series up to nth term.

Backlog - Q12

d) Write a C program to calculate the factorial of a number using recursion.

You might also like