Skip to content
Practice arena

Output-prediction drills

At least one practice question per chapter, plus deep-dive drills. Read the code, commit to an answer, then check the explanation. No compiler needed.

solved
0 / 41
#DrillLevel
01Valid IdentifierChoose the correct answerEasy02Escape SequenceChoose the correct answerEasy03Integer DivisionPredict the outputEasy04Reading an Integer SafelyChoose the correct answerEasy05Reading a Line SafelyChoose the correct answerEasy06Short-Circuit LogicPredict the outputMedium07Switch Fall-ThroughPredict the outputMedium08Loop OutputPredict the outputEasy09Bottom-Tested LoopChoose the correct answerEasy10Static Local CounterPredict the outputMedium11Valid Array IndexChoose the correct answerEasy12Partial Array InitializationPredict the outputEasy13Two-Dimensional SizeChoose the correct answerEasy14String StorageChoose the correct answerEasy15String ComparisonChoose the correct answerEasy16Prototype PurposeChoose the correct answerEasy17Recursion Base CaseChoose the correct answerEasy18Call by ValuePredict the outputMedium19Write Through a PointerPredict the outputMedium20Pointer ArithmeticChoose the correct answerMedium21Command-Line ArgumentsChoose the correct answerEasy22Double DereferencePredict the outputMedium23Structure Member AccessChoose the correct answerEasy24Array of StructuresChoose the correct answerMedium25Access Through a PointerChoose the correct answerEasy26Structure PaddingChoose the correct answerMedium27Union MemoryChoose the correct answerMedium28Tagged UnionChoose the correct answerMedium29Detecting fopen FailureChoose the correct answerEasy30EOF SemanticsChoose the correct answerMedium31malloc FailureChoose the correct answerEasy32Zero-Initialized AllocationChoose the correct answerEasy33Bitwise ANDPredict the outputMedium34Setting a BitChoose the correct answerMedium35atoi Stops at Non-DigitsPredict the outputEasy36Escape & Float ConstantsChoose the correct answerEasy37Array Element CountPredict the outputEasy38Recursion vs IterationChoose the correct answerMedium39Active Union MemberChoose the correct answerMedium40File PositioningChoose the correct answerEasy41Testing All Masked BitsChoose the correct answerMedium