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

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.

Shortening a binary filename has no effect on memory usage during runtime. A filename is merely a label in the filesystem metadata and does not impact the loaded executable's memory footprint. Options A, B, and D are all legitimate approaches to resolve out-of-memory crashes: garbage collection reduces memory leaks, terminating background processes frees RAM, and upgrading hardware provides more available memory.

Step-by-step Derivation:
Evaluate each option for actual impact on runtime memory:

A) Garbage collection: Actively reclaims unused heap memory by identifying and freeing orphaned objects. This directly reduces memory consumption. ✓ Appropriate

B) Terminate other processes: Reduces system-wide memory pressure, freeing RAM for the target program. ✓ Appropriate

C) Shorten binary filename: A filename (e.g., 'program.exe' vs 'p.exe') is stored only in filesystem metadata, not loaded into the program's address space. It has zero impact on runtime memory usage. ✗ NOT appropriate

D) Run on device with more RAM: Increases total available memory capacity, directly solving insufficient memory. ✓ Appropriate

The question asks which is NOT appropriate, so the answer is C.