0% found this document useful (0 votes)
6 views2 pages

C Programming Practice Questions Guide

The document contains a list of C programming practice questions organized into three modules: Introduction to Programming, Control Statements, and Arrays. Each module includes various exercises such as basic arithmetic operations, control flow checks, and array manipulations. The questions are designed to enhance programming skills and understanding of fundamental concepts in C.

Uploaded by

Arunarani
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views2 pages

C Programming Practice Questions Guide

The document contains a list of C programming practice questions organized into three modules: Introduction to Programming, Control Statements, and Arrays. Each module includes various exercises such as basic arithmetic operations, control flow checks, and array manipulations. The questions are designed to enhance programming skills and understanding of fundamental concepts in C.

Uploaded by

Arunarani
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

C Programming Practice Questions

MODULE I – INTRODUCTION TO PROGRAMMING


1. Add two numbers entered by the user.

2. Find the area and perimeter of a rectangle.

3. Swap two numbers using a temporary variable.

4. Swap two numbers without using a third variable.

5. Find the ASCII value of a character.

6. Convert Celsius to Fahrenheit.

7. Find the sum of digits of a three-digit number.

8. Check whether a number is even or odd.

MODULE II – CONTROL STATEMENTS


1. Find the largest of two numbers.

2. Find the largest among three numbers.

3. Check whether a number is positive, negative, or zero.

4. Check whether a year is a leap year or not.

5. Check whether a character is a vowel or consonant.

6. Print numbers from 1 to 10 using a loop.

7. Find the factorial of a number.

8. Find the reverse of a number.

9. Check whether a number is a palindrome.

10. Print the multiplication table of a number.

11. Sum all natural numbers up to n.

12. Count the number of digits in a number.

13. Create a simple calculator using switch case.

14. Display the day of the week based on number (1–7).

15. Check grade based on marks using switch case.

MODULE III – ARRAYS


1. Read and print elements of an array.

2. Find the sum and average of array elements.

3. Find the largest and smallest element in an array.

4. Count even and odd numbers in an array.

5. Find the second largest element in an array.

6. Reverse an array.

7. Add two matrices.

8. Multiply two matrices.

9. Find the transpose of a matrix.

10. Find the length of a string (without using strlen()).

11. Copy one string to another (strcpy()).

12. Concatenate two strings (strcat()).

13. Compare two strings (strcmp()).

14. Count vowels, consonants, digits, and spaces in a string.

15. Check whether a string is palindrome or not.

You might also like