Questions
Practice questions with model answers, filterable by type.
- short · 5 marksDifferentiate between Linear Queue and Circular Queue. Explain how modulo arithmetic prevents false overflow.
- short · 5 marksWhat is an admissible heuristic? Why is admissibility required for optimality in A* tree search?
- short · 5 marksExplain the difference between call by value and call by reference in C with suitable code snippets.
- short · 5 marksWhat is recursion? Write a recursive function in C to calculate the factorial of a positive integer.