OA. free
Free
Accenture Core Computer Science Core Computer Science Medium

Q2 (20 points) A binary program failed to run because it crashed due to lack of memory.

Accenture technical mcq question, verified with a worked answer. Free to practise - no sign-up.

(20 points)

A binary program failed to run because it crashed due to lack of memory. Which of the following is NOT an appropriate action to solve this issue?

Choose one option.
Show answer & explanation
Answer: C. Shorten the binary filename to save memory usage.

The filename of a binary has no impact on the memory footprint during execution. The binary's memory consumption is determined by its code size, data structures, and runtime allocations—not its filename length. Options A, B, and D are all legitimate ways to address out-of-memory issues: garbage collection reclaims unused memory, terminating other processes frees system RAM, and upgrading hardware increases available memory.

Step-by-step Derivation:
To solve an out-of-memory crash, consider:

  1. Option A (Garbage Collection): Legitimately reduces memory leaks by automatically reclaiming unused objects in managed languages like Java or Python.
  2. Option B (Terminate Other Processes): Frees system RAM currently used by other applications, making more memory available to the target program.
  3. Option D (More RAM): Directly solves the problem by increasing total available memory.
  4. Option C (Rename Binary): The filename is just metadata in the filesystem and has zero correlation with the program's runtime memory usage. Renaming 'my_long_program_name.exe' to 'a.exe' does not reduce memory consumption during execution.

Therefore, C is NOT an appropriate action.