Exam-Oriented Previous Year Questions

Functions, Structures and Unions in C – Previous Year Questions (PYQs)

JNTUH • CBIT • VASV • VCE | IPLTS

This page provides a comprehensive collection of Previous Year Questions (PYQs) on Functions, Structures, and Unions in C Programming compiled from engineering examinations conducted by autonomous colleges such as JNTUH, CBIT, VASV and VCE. The questions are organized in an exam-oriented manner to help students strengthen their understanding of function concepts, structure definitions, and union usage, making this page ideal for semester exams, viva preparation, and last-minute revision.

FUNCTIONS - Short & Long Answer Questions

    Year – 2024


    1. What is call by value? (CBIT–2023, VCE–2024) 2M
    2. Define recursion. (CBIT–2023, VCE–2024) 2M
    3. What is a function prototype? (JNTUH–Jan/Feb-2024) 1M
    4. Define the term function signature. (JNTUH–Jan/Feb-2024) 1M
    5. Define functions. Describe the elements of function definition. (CBIT–2023, VCE–2024) 5M
    6. Explain call by reference with example. (JNTUH–Jan/Feb-2024) 5M
    7. Discuss any two categories of functions with respect to return type and number of arguments with a sample program. (CBIT–2023, VCE–2024) 5M
    8. Write a program to find the factorial of a given number using function. (CBIT–2023, VCE–2024) 5M
    9. Define recursion. Write a C program to find the factorial of a given number using recursion. (CBIT–2023, VCE–2024) 5M
    10. Explain limitations of recursive functions. (JNTUH–Mar/Apr-2023) 5M
    11. Explain categories of user-defined functions. (JNTUH–Mar/Apr-2023) 5M
    12. Write a recursive function to calculate xn. (VASAVI–2024) 5M

    Year – 2023


    1. List any two advantages of functions. (VCE–2025) 2M
    2. What is recursion? (JNTUH–Mar/Apr-2023) 1M
    3. Explain about function signature. (JNTUH–Mar/Apr-2023) 1M
    4. What is recursion? (JNTUH–Sep-2023) 1M
    5. What is the signature of a function? (JNTUH–Sep-2023) 1M
    6. Explain passing parameters to functions. (JNTUH–Sep-2023) 10M
    7. Write a program to find the maximum and minimum digit in a given number using user-defined functions. (VASAVI–2023) 5M

    Year – 2022


    1. Write a recursive C function to find the nth term in the Fibonacci series. (CBIT–2022, VCE–2024) 5M

STRUCTURES & UNIONS–Short & Long Answer Questions

Year – 2025


  1. Write a C program to read N student records (roll number, name and marks of six subjects) and display average marks using array of structures. (CBIT–2025) 5M

Year – 2024


  1. Define union. (CBIT–2023, VCE–2024) 2M
  2. Differentiate between structure and union. (CBIT–2023, VCE–2024, VASAVI–2024) 5M
  3. Explain pointers in self-referential structures. (JNTUH–Jan/Feb-2024) 4M
  4. Define array of structures with an example. (CBIT–2023, VCE–2024) 5M
  5. Explain arrays of structures with suitable examples. (CBIT–2023, VCE–2024) 5M
  6. Write a C program to read and print book details such as book name, author, book ID and price using structures. (CBIT–2023, VCE–2024) 5M
  7. Define a union named Data that can store an integer, a float and a character. (VCE–2024) 3M
  8. What is a nested structure? How are its members accessed? (VASAVI–2024) 5M

Year – 2023


  1. Explain union and structure differences. (JNTUH–Sep-2023) 5M
  2. Write a program to find factorial using recursion. (JNTUH–Mar/Apr-2023) 5M
  3. Write a program on structure bit fields. (JNTUH–Mar/Apr-2023) 5M
  4. Write a program to store and manage product information using structures in C. (VASAVI–2023) 5M