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

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?

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

A binary filename stored on disk has virtually no impact on runtime memory consumption. The filename is metadata that exists in the filesystem, not in active memory during program execution. Options A, B, and D are all legitimate approaches to addressing out-of-memory errors: garbage collection reclaims unused memory, terminating other processes frees system resources, and upgrading hardware directly solves insufficient RAM.

Step-by-step Derivation:
Analyzing each option's effectiveness for solving an out-of-memory crash: (A) Garbage collection is a standard memory management technique that reclaims unreferenced objects—directly addresses memory leaks. (B) Terminating concurrent processes reduces competition for available RAM—effectively increases memory available to the target program. (C) Binary filename length (e.g., 'program.exe' vs 'prog.exe') is stored in the filesystem's directory structure, consuming negligible bytes and never loaded into process memory—has zero impact on runtime memory. (D) More RAM directly solves insufficient memory capacity—the most straightforward hardware solution. Therefore, C is the inappropriate action.