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

C PYQ Coding Questions Sorted

The document contains a list of C programming coding questions categorized by difficulty level: easy, medium, and tough. Each question includes a specific task, such as reversing a number, checking for leap years, or calculating the power of a number using recursion. The questions are designed to test various programming skills and concepts in C.

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 Sorted

The document contains a list of C programming coding questions categorized by difficulty level: easy, medium, and tough. Each question includes a specific task, such as reversing a number, checking for leap years, or calculating the power of a number using recursion. The questions are designed to test various programming skills and concepts in C.

Uploaded by

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

C Programming PYQs - Coding Questions (Easy to Tough)

Easy Level

Reverse a Number

(2023 - Q6.i)

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

Leap Year Check

(2023 - Q7.iii)

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

Sum of Two Numbers (Triple if Equal)

(2023 - Q7.i)

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

Sum of Digits

(Backlog - Q6.i)

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

Pattern Printing

(2023 - Q6.ii)

Write a C program to print the pattern:

BB

CCC

DDDD

Skip Multiples of 7

(2023 - Q8.iii)

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


C Programming PYQs - Coding Questions (Easy to Tough)

Print Numbers Divisible by 5

(Backlog - Q8.iii)

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

Frequency of Character in String

(2023 - Q10.i)

Write a C program to find the frequency of a character in a string.

Count Spaces in a Sentence

(2023 - Q10.iii)

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

Sum of Odd Numbers in Array

(2024 - Q7.c)

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

Medium Level

Smallest Element in Array

(Backlog - Q8.i)

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

Second Smallest Element in Array

(2023 - Q8.i)

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

Sort Array in Descending Order

(2024 - Q7.a)

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

Sum of Right Diagonal of Matrix


C Programming PYQs - Coding Questions (Easy to Tough)

(2023 - Q9.i)

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

Sum of Two Matrices

(Backlog - Q9.i)

Write a C program to find the sum of two matrices.

Fibonacci Series (Recursive)

(Backlog - Q10.iii & 2024 - Q12.b)

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

Factorial using Recursion

(Backlog - Q12.d)

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

Tough Level

Power of a Number using Recursion

(2023 - Q12.d & Backlog - Q9.iv)

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

Series: 1 + 1/3 + 1/9 + ...

(Backlog - Q7.iii)

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

Cube of Number using Function

(2023 - Q9.iii)

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

Concatenate Strings without strcat()

(2024 - Q11.b)
C Programming PYQs - Coding Questions (Easy to Tough)

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

Edit and Redisplay Student Data

(2024 - Q10.a)

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

Swap Numbers using Call by Value & Address

(2024 - Q11.a)

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

Copy File Content to Another File

(2024 - Q12.c)

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

You might also like