Schedule‎ > ‎

Midterm 2 Preparation

^ top

^ top

Midterm Preparation

Learner Outcomes

At the end of the lesson the student will be able to:

  • Describe the ground rules for the midterm exam
  • Start preparing for the midterm exam

^ top

About the Exam

Important Midterm 2 Exam Information

Date: Wed. Nov 15, 2017 
Location: Regular classroom Rm. 829
Start time: During the regular class time

  • The exam covers material from the first 12 weeks, with an emphasis on the last five weeks
  • Exam question types include short programming problems
  • You will have about 45 minutes to complete the exam

Basic Principals

  • You must attend the exam or you will receive a score of zero (0)
    • Except by prior arrangement with the instructor
  • This will be a paper test.
  • The exam is closed books and closed notes
    • However, you may have one 3" x 5" card of handwritten notes for the exam
  • You may have a sheet of blank scratch paper
  • You may NOT communicate with anyone but the instructor during the exam

3"x5" Card Requirements (you get a free point on the exam for turning in a filled out 3"x5" card)

  • Put your name on your card
  • Maximum card or paper size is 3 inches by 5 inches
  • You may use both sides of the card
  • Notes must be handwritten and NOT photocopied
  • Notes cannot have any complete functions -- only code snippets
  • Any 3" x 5" cards violating these rules will be confiscated before the test
  • You must turn in your 3" x 5" card after the exam

^ top

Midterm 2 Topics:  Focus will be from 8. Indefinite Loops on

Test Topics

  1. Counting Loops (6B)
  2. Summing with loops (6B)
  3. Boolean values and variables (7A)
  4. Multiple Decisions (7A)
    1. Multiple alternatives (if-else-if)
    2. Switch statements
    3. Nested if-statements
    4. Logical Operators
  5. Conditional Pitfalls (7A)
  6. Nested Loops (7B)
  7. Pulse-Width Modulation (7B)
  8. Indefinite Loops (8A)
    1. Waiting for Events
    2. Finding Maximum and Minimum Values
    3. do-while Statements
  9. Overloading Functions (8B)
  10. Reference Parameters (8B)
  11. Validating Input (8B)
  12. Random Numbers (9A)
  13. Designing with Functions (9A)
  14. Arrays (9B)
  15. Vectors (9B)
  16. Summing Array Values (10A)
  17. Analyzing Array Values (10A)
  18. Changing Vector Size (10A)
  19. Insertion Sort (10A)   
  20. Sorting: Bubble Sort (10A)  
  21. Selection Sort (Lab 15)  
  22. Break and Continue (10A)  
  23. Pointers (10A - slides)   
    1. Pointer declaration  
    2. & (address of operator) 
    3. *  (indirection operator aka dereferencing)  
    4. Passing pointers to functions   
  24. Arduino Libraries (11B)  
  25. Classes (12B):
  • Classes  
  • Objects  
  • Constructors  
  • Methods  
  • Interface 
  • .h vs. .ino vs. .cpp  
  • shadowing 

Form a Study Group

  1. Form a Study Group with 1 or more students in the class
  2. Arrange to meet for at least 1 hour to study for the Midterm.  Set a time, day and place (STEM center?)
  3. Best study groups focus on Midterm prep and minimize other distractions. Help each other succeed. 
  4. Write your groups names, time, day and place on a sheet of paper and hand it in to your instructor.
  5. Remember that you should plan to spend 4-6 hours total preparing for your midterm.  It is worth 100 points.

Suggested Study Order (yes,  this will take 4-6 hours or more): 

note: focus on C++ not hardware

1.  Finish the Midterm 2 Review Supplement.

2.  Review the Test Topics list above and make sure you can write code snippets for each topic.

3.  Review the code in KEY SAMPLE CODE (at top of Schedule page).  Make sure you understand and can write snippets of each sample code.

4.  Review Quiz 1, Quiz 2, Midterm 1 and Quiz 3.  Make sure you can answer all the questions correctly.

Exam Questions Prepared by Students

Midterm 2 Review Supplement

We will break into groups and work through the Midterm 2 Review Supplements.

  • There are 9 sections in the Review Supplements.  We will pace our coverage of these sections together,  I will call randomly on groups to answer the sections.
  • Start with the last topic, Classes, first.
  • One of the purposes of an exam is to give us a chance to review the material we have covered
  • Practicing for an exam is important to doing our best
  • We do not want to wait until the night before to prepare
  • To help us practice we will review some problems during class
  • Treat the practice like homework -- because it is even more important!
  • Anything not completed in class must be completed at home and turned in before the test
  • When completing at home, you may skip the review with another student part

Turn in your Midterm 2 Review Supplement before Midterm 2

^ top

^ top