Computer Programming – PYQ Analysis
& Prediction (CUK)
🔁 Common & Repeated Questions (2022-2024)
1. Difference Between Structure and Union – Repeated all 3 years.
2. Pointers (theory + program) – Consistent presence every year.
3. Recursion – Appears in various forms (reverse, sum, pattern).
4. Break, Continue, Go to – Frequently asked with example programs.
5. File Handling – Especially text vs binary, and functions like getc(), fprintf().
📌 Important Questions/Topics from PYQs
1. Section A (Short Theory Concepts):
What are pre-processors?
Types of input/output functions: formatted vs unformatted.
What are conditional operators? (with example)
Base address calculation in arrays.
Self-referential structures.
Null pointer vs dangling pointer.
Compilation steps.
What is a function declaration? Why is it necessary?
2. Section B (Coding/Explanation Based):
Pattern printing (Floyd’s Triangle, star pattern).
Second max/second min using function.
Reverse string/array using function or pointer.
Pass array to function & return largest element.
Palindrome check using algorithm.
String operations: strcpy(), strcat(), reverse, concat (user-defined).
Array of structures (e.g., employee details).
🔮 2025 Predicted Questions
3. Section A Predictions (Attempt All):
Define preprocessor.
Explain Break, Continue with example.
Explain conditional operators with syntax.
What are different pointer operations?
Difference between binary and text files.
Explain self-referential structure.
4. Section B Predictions (Attempt Any 3):
Differentiate between structure and union (with program).
Write a program to reverse array using pointers / recursion / print Floyd’s triangle.
File handling functions (getc(), putchar(), fprintf()) with example.
Pass array to function and return largest element.
Algorithm to check if number is palindrome.
Explain inbuilt and user-defined string functions.
📚 Study Strategy
Priority Topic Reason
🔥 High Pointers, Recursion, Repeated in all papers
Structures & Unions
✅ Sure File Handling, String Always in Section B
Functions
🌟 Likely Pattern Printing, Array Simple but common
Operations
⚠️Watch Compilation Steps, Null Appear inconsistently but
Pointer, Break/Continue often