Midterm!

So my first midterm of the semester just had to land on Friday the 13th, not that I’m suspicious or anything.

Unlike past semesters, I really haven’t been slacking off so studying for the test was less “last minute cramming/speed reading” and more review.  I’m not sure what to exepct from Downing’s tests but today’s wasn’t so bad.  The midterm emphasized reading a bit more than I thought it would, but the coding questions were fairly trivial as the material was covered in class quite a bit.

One of the questions was to create an is_prime() function using no libraries except the sqrt() from the math library.  I overthought the problem before realizing the simple answer was testing to see if the number was disable by incrementing odd numbers up to the square root of the input.

If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.

Comments

No comments yet.

Leave a comment

(required)

(required)