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.

A binary's filename has no impact on its runtime memory consumption or executable size. Filename length is metadata in the filesystem and does not affect the loaded program's memory footprint. Options A, B, and D are all legitimate strategies: garbage collection reduces memory leaks, terminating other processes frees up available RAM, and upgrading to more RAM directly addresses the shortage.

Step-by-step Derivation:
Analyze each option:

  • A) Garbage collection actively manages heap memory and prevents memory leaks—this reduces memory pressure. ✓ Valid.
  • B) Terminating concurrent processes releases their allocated memory back to the system, increasing available RAM for the target program. ✓ Valid.
  • C) A filename is only a filesystem label. Whether the file is named 'program.bin' or 'a.bin', the executable code loaded into memory is identical and uses the same memory. The filename itself consumes only a few bytes of filesystem metadata, not program runtime memory. ✗ Invalid.
  • D) Running on a device with more physical RAM directly solves out-of-memory crashes. ✓ Valid.

The answer is C because it is based on a false premise—shortening a filename provides zero benefit to runtime memory usage.