AP Computer Science Principles Final Exam Review Questions & Answers
2 views 0 purchase
Course
AP Computer Science Principles
Institution
AP Computer Science Principles
Overflow - ANSWERSerror that results when the number of bits is not enough to hold the number, like a car's odometer "rolling over"
Round-off - ANSWERSerror that results when the number of bits is not enough to represent the actual number, like 3 digits to represent π as 3.14
Lossy - ANSWERS...
AP Computer Science Principles Final
Exam Review Questions & Answers
Overflow - ANSWERSerror that results when the number of bits is not enough to hold
the number, like a car's odometer "rolling over"
Round-off - ANSWERSerror that results when the number of bits is not enough to
represent the actual number, like 3 digits to represent π as 3.14
Lossy - ANSWERSCompressing data in a way that throws some data away and makes
it almost impossible to recover the original, great compression, like JPEG images
Lossless - ANSWERSCompressing data in a way that preserves all data away and
allows full recovery of the original, good compression -- usually not as good as lossy,
like PNG images
Metadata - ANSWERSdata about data, like a camera storing the location, aperture,
shutter speed, etc. for a digital photo
Sequencing - ANSWERScode flows line by line, one after another, like a recipe
Selection - ANSWERSa boolean condition to determine which of two algorithmic paths
are taken, aka if-then
Iteration - ANSWERSusing a looping control structure, like while, for, foreach, repeat,
repeat-until, etc.
Reasonable time - ANSWERSpolynomial in the number of steps an algorithm takes in
the worst case based on the input size
Not reasonable time - ANSWERSUsually exponential in the number of steps, like
doubling every time your input grows by one
Heuristic - ANSWERSusing a "rule" to guide an algorithm, like always walking toward
the north star if you were stuck in a forest
Undecidable - ANSWERSA problem that is so difficult, we can't ever create an algorithm
that would be able to answer yes or no for all inputs, like determining if a user's program
run on some input would always stop and not run forever
Linear vs binary search - ANSWERSGoing one by one vs starting in the middle and
going left/right like looking for a word in the dictionary -- binary search requires the list to
be sorted in order
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller Bestgrades2. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $11.49. You're not tied to anything after your purchase.