Final Exam Topics#

Open In Colab

Day of Exam:#

What to Bring:

  • An ID

  • Your Brain

  • A writing utensil

Reminders:

  • You will put your belongings in a locker; leave time for this

  • You are NOT allowed to bring in water/coffee

  • They will provide scratch paper & a calculator

  • You’ll need to sign into your PL

Location: TTC-CBTF - Applied Physics & Mathematics (AP&M) B349 (basement)

Exam Window: 6/7-6/13 (Sat-Fri); 1h 50 min

Final Exam (13 pts; 1h 50min)#

  • 13 MC (6.5 pts total; 0.5 pt each)

    • Topics: Variables, Operators, Functions, Conditionals, Loops, Classes, Command Line, Imports/File Paths, Scientific Computing (2), Code Testing, Documentation, Code Style

  • 2 Code Reading & Debugging Qs (3.5 pts)

    • Function (1.5 pts)

    • Class (2 pts)

  • Testing Questions (3pts; 1.5 pt each unittest)

    • 1 uses pandas

Notes:

  • No mini-project

  • Practice exam will be very good practice for all of these

  • Information Provided:

    • pandas functions/methods

    • unittest framework w/ list of assert statements discussed in class

Topics from E1 & E2 (can’t forget)#

  • Variables

  • Operators

  • Functions

  • Conditionals

  • Loops

  • Objects/Classes

  • Command Line

Final Exam Topics#

Scientific Computing#

  • numpy arrays

    • general use (homogenous, numeric information stored in arrays

    • how to use methods

  • pandas

    • DataFrame (conceptual understanding; purpose)

    • how to use methods

Note: do NOT need to memorize numpy/pandas methods

Testing#

  • unittest framework

  • how to write test functions using unittest

Code Style#

  • PEP8 Guidelines discussed in class

  • Be able to edit your own code for code style

Documentation#

  • why we document our code

  • different purpose between code comments and docstrings

  • basics and components of numpy-style docstrings

Note: you do NOT need to write docstrings from scratch