All books

Professional

Apps About Coach Log in Start reading

Quantitative Finance · Glossary

What is Output-prediction question?

Definition 22.1 The Interview Book · Chapter 22 — C++

An output-prediction question shows a short program and asks what it prints. It tests the language’s rules (order of construction and destruction, overload resolution, value categories, conversions) and the candidate’s ability to say when the answer is guaranteed, implementation-defined, unspecified, or not defined at all.

Read in context →