Questions
Practice questions with model answers, filterable by type.
- objective · 1 marksWhat is the worst-case time complexity of Quick Sort algorithm? (a) O(n) (b) O(n log n) (c) O(n^2) (d) O(log n)
- objective · 1 marksWhich heuristic search algorithm evaluates nodes using f(n) = g(n) + h(n)? (a) Breadth-First Search (b) A* Search (c) Depth-First Search (d) Hill Climbing
- objective · 1 marksWhich of the following is an invalid variable name in C? (a) _salary (b) 1st_rank (c) total_sum (d) age2
- objective · 1 marksWhat is the return type of the `malloc()` function in C? (a) `int*` (b) `char*` (c) `void*` (d) `float*`