Q2 /20 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.
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?
Show answer & explanation
The filename of a binary has negligible impact on memory consumption during program execution. A binary's memory footprint is determined by its code size, data structures, and runtime allocations—not the name of the file on disk. Options A, B, and D are all legitimate approaches: garbage collection prevents memory leaks, terminating other processes frees RAM, and upgrading hardware increases available memory.
Step-by-step Derivation:
When a program runs out of memory, the actual causes are: (1) inefficient code or memory leaks (solved by GC, option A), (2) competing processes consuming resources (solved by terminating them, option B), or (3) insufficient total system RAM (solved by hardware upgrade, option D). The filename is just a filesystem label stored separately from the executable's in-memory footprint. Renaming 'very_long_binary_name.exe' to 'a.exe' does not reduce runtime memory usage at all, making option C the inappropriate action.