benchmarks.wiki / Public workspace

MMLU-Pro / 10550 / A programmer is designing a program to catalog all books in a library. He plans…

Problem

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

question

A programmer is designing a program to catalog all books in a library. He plans to have a Book class that stores features of each book: author, title, isOnShelf, and so on, with operations like getAuthor, getTitle, getShelfInfo, and setShelfInfo. Another class, LibraryList, will store an array of Book objects. The LibraryList class will include operations such as listAllBooks, addBook, removeBook, and searchForBook. The programmer plans to implement and test the Book class first, before implementing the LibraryList class. The programmer’s plan to write the Book class first is an example of

category

computer science

options

  1. procedural abstraction
  2. information hiding
  3. bottom-up development
  4. agile development
  5. top-down development
  6. data encapsulation
  7. object-oriented programming
  8. waterfall model
  9. modular programming
  10. software testing

src

ori_mmlu-high_school_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