benchmarks.wiki / Public workspace

MMLU-Pro / 10748 / Determine the output of the following program READ (2, 3) I, J 3FORMAT (2I11) IF…

Problem

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

question

Determine the output of the following program READ (2, 3) I, J 3FORMAT (2I11) IF (I - J) 5,6,6 6WRITE (3,10) I 10FORMAT (1X, I11) GO TO 7 5WRITE (3,10) J 7STOP

category

computer science

options

  1. Prints the absolute value of the difference of two numbers
  2. Prints out the result of multiplying the two numbers
  3. Prints the second number twice
  4. Calculates the difference of two numbers
  5. Calculates the sum of two numbers
  6. Prints out the largest of two numbers
  7. Exits without printing anything
  8. Prints out the smallest of two numbers
  9. Prints out the result of dividing the first number by the second
  10. Prints both numbers on the same line

src

stemez-ComputerScience

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