This was in a collection I read in the 80s. Target group was Young adult and I think the theme was education, entering adulthood, etc. I can't recall the names or characters. Collection was hardback. This is second of two stories in this collection I am curious about and will post about.
It was a short story about a dystopian future post second civil wr America where everyone was indoctrinated in education machines at school. They retained no memory of what they learned and the hero worries as to whether he's learning anything. He hates the government for what they did to his father.
His father is super patriotic now, having been tortured and brainwashed in one of the regime prison camps. The hero h and decides to deliberately fail his exam, only to find that when the exam starts his conditioning kicks in and he cannot help acing the exam and talking about how to run a prison camp like the one that destroyed his father as he's been trained for the role of camp commander. It ends with his graduating and his father exclaiming in delight and pride at his son's graduation as Prison Camp Commander.