AP CSP EXAM PREPARATION WITH
FULL PACK SOLUTIONS
syntax terror t- tcorrect tanswers-A tmistake tin ttyped tcode tthat tviolates tthe trules tof tthe
tprogramming tlanguage. tTypically, tcode twith tsyntax terrors twill tnot trun.
logic terror t- tcorrect tanswers-A tmistake tin tan talgorithm tor tprogram tthat tcauses tit tto
tbehave tunexpectedly tor treturn tthe tincorrect tvalue.
run-time terror t- tcorrect tanswers-A tmistake tin ta tprogram tthat thappens tonly twhen tthe
tprogram tis tactually trun, tsuch tas ta tprogram tattempting tto taccess tmemory tthat tdoes tnot
texist.
overflow terror t- tcorrect tanswers-Error tthat tresults twhen tthe tnumber tof tbits tis tnot
tenough tto trepresent tthe tnumber t(like ta tcar's todometer t"rolling tover")
bit t- tcorrect tanswers-A tbinary tdigit, teither t0 tor t1
byte t- tcorrect tanswers-A tsequence tof t8 tbits
roundoff t- tcorrect tanswers-Error tthat tresults twhen tthe tnumber tof tbits tis tnot tenough tto
trepresent tthe tnumber twith tfull tprecision t(like tusing t3 tdigits tto trepresent t\piπpi tas t3.14)
FULL PACK SOLUTIONS
syntax terror t- tcorrect tanswers-A tmistake tin ttyped tcode tthat tviolates tthe trules tof tthe
tprogramming tlanguage. tTypically, tcode twith tsyntax terrors twill tnot trun.
logic terror t- tcorrect tanswers-A tmistake tin tan talgorithm tor tprogram tthat tcauses tit tto
tbehave tunexpectedly tor treturn tthe tincorrect tvalue.
run-time terror t- tcorrect tanswers-A tmistake tin ta tprogram tthat thappens tonly twhen tthe
tprogram tis tactually trun, tsuch tas ta tprogram tattempting tto taccess tmemory tthat tdoes tnot
texist.
overflow terror t- tcorrect tanswers-Error tthat tresults twhen tthe tnumber tof tbits tis tnot
tenough tto trepresent tthe tnumber t(like ta tcar's todometer t"rolling tover")
bit t- tcorrect tanswers-A tbinary tdigit, teither t0 tor t1
byte t- tcorrect tanswers-A tsequence tof t8 tbits
roundoff t- tcorrect tanswers-Error tthat tresults twhen tthe tnumber tof tbits tis tnot tenough tto
trepresent tthe tnumber twith tfull tprecision t(like tusing t3 tdigits tto trepresent t\piπpi tas t3.14)