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
#DrillChapterLevel
01Valid IdentifierChoose the correct answerC Language BasicsEasy02Escape SequenceChoose the correct answerData Types, Constants & QualifiersEasy03Integer DivisionPredict the outputOperators, Expressions & PreprocessorEasy04Reading an Integer SafelyChoose the correct answerprintf, scanf & Formatted I/OEasy05Reading a Line SafelyChoose the correct answerCharacter & String I/OEasy06Short-Circuit LogicPredict the outputif/else, Relational & Logical OperatorsMedium07Switch Fall-ThroughPredict the outputswitch, case & TernaryMedium08Loop OutputPredict the outputfor, while & Nested LoopsEasy09Bottom-Tested LoopChoose the correct answerdo-while, break & continueEasy10Static Local CounterPredict the outputStorage Classes & ScopeMedium11Valid Array IndexChoose the correct answerOne-Dimensional ArraysEasy12Partial Array InitializationPredict the outputArray Initialization & BoundsEasy13Two-Dimensional SizeChoose the correct answerTwo-Dimensional ArraysEasy14String StorageChoose the correct answerStrings as Character ArraysEasy15String ComparisonChoose the correct answerString Library & Safe InputEasy16Prototype PurposeChoose the correct answerFunction Interface & Return ValuesEasy17Recursion Base CaseChoose the correct answerRecursion & Iterative SubprogramsEasy18Call by ValuePredict the outputCall by Value vs Call by ReferenceMedium19Write Through a PointerPredict the outputPointers, Address & DereferenceMedium20Pointer ArithmeticChoose the correct answerPointer Arithmetic & ArraysMedium21Command-Line ArgumentsChoose the correct answerArray of Pointers & Command-Line ArgumentsEasy22Double DereferencePredict the outputPointers to Pointers & Pointer TypesMedium23Structure Member AccessChoose the correct answerStructure Declaration & Member AccessEasy24Array of StructuresChoose the correct answerArrays of Structures & Nested StructuresMedium25Access Through a PointerChoose the correct answerPointers to Structures & Self-ReferenceEasy26Structure PaddingChoose the correct answerStructures in Functions & Memory LayoutMedium27Union MemoryChoose the correct answerUnion Syntax & Shared MemoryMedium28Tagged UnionChoose the correct answerTagged & Anonymous UnionsMedium29Detecting fopen FailureChoose the correct answerFILE Pointer, fopen & ModesEasy30EOF SemanticsChoose the correct answerReading, Writing & EOFMedium31malloc FailureChoose the correct answermalloc, free & Heap LifetimeEasy32Zero-Initialized AllocationChoose the correct answercalloc, realloc & Memory BugsEasy33Bitwise ANDPredict the outputBitwise Operators & ShiftsMedium34Setting a BitChoose the correct answerMasks, Flags & Bit ManipulationMedium35atoi Stops at Non-DigitsPredict the outputMiscellaneous Library FunctionsEasy36Escape & Float ConstantsChoose the correct answerData Types, Constants & QualifiersEasy37Array Element CountPredict the outputOne-Dimensional ArraysEasy38Recursion vs IterationChoose the correct answerRecursion & Iterative SubprogramsMedium39Active Union MemberChoose the correct answerTagged & Anonymous UnionsMedium40File PositioningChoose the correct answerFILE Pointer, fopen & ModesEasy41Testing All Masked BitsChoose the correct answerMasks, Flags & Bit ManipulationMedium