Show answerHide answer
Correct answer: (C) Binary multiplication
Explanation
Booth's algorithm multiplies signed binary numbers in two's complement form.
BPSC TRE · Computer Science
9 Algorithms (Computer Science) questions asked in BPSC TRE previous year papers, each with the correct answer and explanation. Read them free on UTpaper, or attempt the full papers as timed online tests.
Other Computer Science topics
Correct answer: (C) Binary multiplication
Explanation
Booth's algorithm multiplies signed binary numbers in two's complement form.
Correct answer: (E) None of the above
Explanation
Binary search halves the search range at each step, so its order is O(log n). That is not among N, N log n or N².
Correct answer: (C) 14
Explanation
The number of distinct BSTs on n keys is the Catalan number C(n) = (2n)!/((n+1)! n!). For n = 4, C(4) = 14.
Correct answer: (B) It represents the upper bound of an algorithm’s runtime
Explanation
Big-O gives an asymptotic upper bound on the growth of an algorithm's running time, usually used for the worst case. Big-Omega gives the lower bound.
Correct answer: (E) None of the above
Explanation
Divide and Conquer has three steps: divide, conquer and combine. All three listed options are steps, so none of them is "NOT a step".
Correct answer: (B) Divide and Conquer
Explanation
Merge sort splits the array into halves, sorts each half recursively and merges them, which is the divide-and-conquer paradigm.
Correct answer: (C) Shortest Path Problem
Explanation
The shortest path problem can be solved in polynomial time (for example with Dijkstra's algorithm), so it is not NP-complete. TSP (decision version) and SAT are NP-complete.
Correct answer: (C) Not computable
Explanation
Turing proved the halting problem is undecidable: no algorithm can decide for every program and input whether it halts. So it has no computational complexity; it is not computable.
Correct answer: (B) O(N²)
Explanation
Note: the answer key gives (B), but infix-to-postfix conversion scans each symbol once and pushes and pops each operator at most once on the stack, so it takes O(N) time.
Every question here was asked in a real BPSC TRE paper; the paper and shift are shown on the card, and the number opens the question on its own page. Try each one before tapping Show answer, then attempt the full BPSC TRE papers as timed tests to check your speed under exam conditions.