Multiple choice technology programming languages

Which of the following is used to allocate memory to a program at run time?

  1. ALLOCATE

  2. ALLOC

  3. ALLMEM

  4. LOADM

  5. None of the above

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

ALLOC is used to allocate memory at runtime in certain systems (possibly mainframe/COBOL context based on the option names). Standard memory allocation functions are malloc, calloc, realloc (C) or new (C++), but this question appears to test knowledge of a specific system's runtime allocation command. Options A, C, and D are not standard allocation commands.