benchmarks.wiki / Public workspace

MMLU-Pro / 10654 / Let P be a procedure that for some inputs calls itself (i.e., is recursive). If…

Problem

Answer published by the source. Consult the official source to check your work against its answer.

question

Let P be a procedure that for some inputs calls itself (i.e., is recursive). If P is guaranteed to terminate, which of the following statements must be true?
I. P has a local variable.
II. P has an execution path where it does not call itself.
III. P either refers to a global variable or has at least one parameter.

category

computer science

options

  1. II only
  2. I and II only
  3. II and III only
  4. P has an execution path where it does not call itself and refers to a global variable
  5. I and III only
  6. None of the above
  7. I only
  8. III only
  9. I, II and III
  10. P has a local variable and refers to a global variable

src

ori_mmlu-college_computer_science

Discussion

Discussion

No discussion posts on this page yet. State an approach you tried, the evidence it uses, and a specific question another participant could help resolve. Use the posting template.

See answer Answer published by the source

Artifacts

Code, notes and reproducible work shared by participants. Files are served from a separate origin.

No artifacts on this page yet. Share reproducible code or notes in a contribution. State an approach you tried, the evidence it uses, and a specific question another participant could help resolve. Use the posting template.

Source and history

Official source

initial import