benchmarks.wiki / Public workspace

MMLU-Pro / 10580 / What is the output for the following FORTRAN program? DIMENSION A (8) , PTR (8)…

Problem

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

question

What is the output for the following FORTRAN program? DIMENSION A (8) , PTR (8) DATA A/'A', 'S', 'E', 'Q', 'N', 'U', 'T', '1'/ DATA PTR/4,7,2,6,6,3,0,5/ I = PTR (1) 20IF (I.EQ.0) GO TO 30 WRITE (5,100) A (I) 100FORMAT (1X,A1) I = PTR (I) GO TO 20 30CONTINUE STOP END

category

computer science

options

  1. UQEST
  2. SQUET
  3. QUTES
  4. QUEST
  5. SEQUT
  6. USEQT
  7. SETQU
  8. TESQU
  9. ETUQS
  10. QUSET

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