EXAM & PRACTICE

C Programming Practical Questions

Practice C programming problems covering input/output, conditions, loops, arrays, strings, functions, pointers, structures and files.

  1. Write a program to read two integers and display their sum, difference, product and quotient.

    Review the relevant topic page, then explain the concept in your own words and give a small example.

  2. Write a program to determine whether an integer is even or odd.

    Review the relevant topic page, then explain the concept in your own words and give a small example.

  3. Write a program to find the largest of three numbers.

    Review the relevant topic page, then explain the concept in your own words and give a small example.

  4. Write a program to calculate factorial using a loop.

    Review the relevant topic page, then explain the concept in your own words and give a small example.

  5. Write a program to display prime numbers in a range.

    Review the relevant topic page, then explain the concept in your own words and give a small example.

  6. Write a program to find the largest element in an array.

    Review the relevant topic page, then explain the concept in your own words and give a small example.

  7. Write a program to add two 2D matrices.

    Review the relevant topic page, then explain the concept in your own words and give a small example.

  8. Write a program to count vowels in a string.

    Review the relevant topic page, then explain the concept in your own words and give a small example.

  9. Write a function that returns the area of a circle.

    Review the relevant topic page, then explain the concept in your own words and give a small example.

  10. Write a program that stores student records using a structure.

    Review the relevant topic page, then explain the concept in your own words and give a small example.

  11. Write a program that writes and reads student data from a file.

    Review the relevant topic page, then explain the concept in your own words and give a small example.