Schedule‎ > ‎

Assignment 6 Midterm 1 Prep


  • Prepare for the midterm.
  • Help other students study for the midterm.

^ top

Academic Honesty

Read the Scholastic Honesty Policy and Assignment Integrity policies of the syllabus. Here are some clarifications for this particular lab:

  • You must write the questions yourself and not copy from another person or source.
  • You may discuss the test questions with other students for this lab.
  • You may get ideas for test questions from other students, but must write the actual question in your own words.
  • For any ideas you use from another student or person, you must give them credit by stating their name in parenthesis like: (idea for this question was from Emma Programmer).

In addition, read the Assessment Integrity part of the syllabus to ensure you understand what is expected of you during an exam.

^ top

Project Specifications

There are two parts to this assignment with different due dates.

  1. The first part is to help you prepare self-study questions for the midterm exam for yourself and other students. This part is due Sunday, Mar. 11.
  2. The second part is to complete a review question worksheet, which is to be turned in to the Instructor before the Midterm.

Suggested Study Order 

Yes,  this will take more than a couple of hours.

1.  Review Quiz 1 & Quiz 2.  Make sure you can answer all the questions.

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

3.  Finish the Assignment 6 Midterm 1 Prep

4.  Review the code in each Assignment.  Completed code for each Assignment is now at the bottom of each Assignment.

5.  Review the code inKEY SAMPLE CODE at the top of the Schedule Page.

Part 1: Self-Study Question Specification

Exam Topics Assignments (Instructions follow):

  1. Compiling, errors and debugging: (1.3.5, 2.1.1, 2.4)
  2. Variable declaration: (2.2.2, 3.1)
  3. Variable assignment flow: (3.1.4, Exercise 3.1)
  4. User I/O: (2.2.3, 3.2.4)   JoseQ
  5. Arithmetic: (2.3.1-3, 4.1.1)
  6. Integer division and modulus: (2.3.4)  Tasha
  7. Math functions: (2.3.5)
  8. Type char and ASCII: (3.2.1)  PeterD
  9. Type string: (3.2.2-3)  Gabriel
  10. String concatenation: (3.2.5)  Manuel
  11. String functions: (3.2.6)  Cristian
  12. if-statements: (3.3.1)  Marco
  13. if-else statements: (3.3.4)  David
  14. Relational operators: (3.3.2-3)  Luis
  15. Exponential notation: (4.1.2)  Adrian
  16. Decimal formatting: (4.1.3)  Remi
  17. Constants and magic numbers: (4.1.4)  Sierra
  18. Assignment operators: (4.1.5)  JonathanV
  19. Type casting: (4.1.6)    Diego
  20. Integer range and overflow: (4.1.7)  Alan
  21. Numeric precision: (4.1.7) Cesar
  22. Multiple alternatives: (4.2.2-3)  Max
  23. Nested branches: (4.2.4)  Brian
  24. Boolean variables : (4.2.5)  JohnV
  25. Boolean (logical) operators: (4.2.6)   Kyle
  26. Loops and while statements: (4.3, 5.1-5.3)  Christina Loops & Maureen while
  27. Strings and Characters (6.1)  Ryan Strings JoseV Characters
  28. Arrays (6.2)   Valeria

This part is to help you prepare self-study questions for the midterm exam.

  1. For your assigned topic from class, look through the lecture notes and textbook to gain an in-depth understanding of the material.
  2. Prepare a list of five (5) five potential multiple choice exam questions on your assigned topic, using the instructions below.
  3. Each question must have four or more plausible answers, of which one is correct.
  4. Add answers at the end of the questions such that people can read the questions without easily seeing the answers.
  5. After developing your questions, have another student try the questions and provide feedback. Correct any issues discovered with this quality check
  6. Post the questions in the Discussions area of Canvas titled "Midterm 1 Study Questions".

    Please post in the text box provided. Do NOT upload the questions as an attachment. However, you may upload attachments for images or other supporting files.

  7. In your posting, include the name of the student who tested your questions like:
    Questions reviewed by: Emma Programmer

How To Write Self-Study Multiple Choice Questions

Multiple choice questions are an effective and efficient type of self-study question that will prepare us well for most tests. A multiple choice question consists of a question and a list of possible answers.

  1. Review your topic thoroughly, looking for important concepts. As an example:

    Our assigned topic is classes and objects. We study the lecture notes and textbook pages discussing classes and objects.

  2. Write a question that is meaningful and presents a definite problem. In addition, questions should:
    • be posed as a question or be a partial sentence
    • avoid negative phrasing
    • avoid irrelevant material

    As an example of a test question:
    We want to know why we write comments.
  3. The question should not contain irrelevant material, so we rewrite our question as:
    The purpose of a comment is _____.
  4. Notice that we can rewrite our question as an actual question:
    Why do we add comments to our code?
  5. When writing possible question answers, each possible answer alternative should be:
    • plausible
    • clear and concise
    • mutually exclusive (no overlap between answers)
    • presented in alphabetical or numerical order (to remove bias)
    • free from clues about correct responses in the grammar and content
    For example:
    Why do we add comments to our code?
    1. explain unusual or obscure code
    2. explain the purpose of a code file
    3. explain how to use a function
    4. explain all of these

Example Question Posting

Test Topic: Comments

  1. Comments are notes to ________.
    1. compilers
    2. computers
    3. people reading your source code
    4. people using your compiled programs
  2. Why do we add comments to our code?
    1. explain unusual or obscure code
    2. explain the purpose of a code file
    3. explain how to call a function
    4. explain all of these
  3. The code that indicates a single line of commentary will follow is ________.
    1. /*
    2. /**
    3. //
    4. */
  4. The code to use for the start of a multi-line comment is ________.
    1. /*
    2. */
    3. <--
    4. //
  5. The comment to use at the top of each program file to describe the program is ________.
    1. //...//
    2. //...
    3. #...
    4. /*..*/

Answers: 1-c, 2-d, 3-c, 4-a, 5-d

Questions reviewed by: Emma Programmer

Part 2: Review Worksheet

Complete the worksheet here. Turn in the handwritten paper copy before the test.

^ top

Grading Criteria

The instructor will evaluate your lab using the following criteria. Thus you should check your assignment against these criteria to maximize your score.

Self-Study Questions (12)

  • 1 point for each question developed. (5 possible)
  • 1 point for each question with plausible incorrect answers that are free from clues about correct responses. (5 possible).
  • 1 point for reviewing your questions with another student of the class.
  • 1 point for providing answers to your questions.
  • -1 per question that is not multiple choice with 4 answers. (-5 possible)
  • -1 per question with irrelevant or unclear material. (-5 possible)
  • -1 per question with spelling or grammar errors. (-5 possible)
  • -1 per answer that is not credible. (up to -5 possible)
  • -1 per question that is similar to another question posted previously.
  • -2 per missing question and answers.

Review Worksheet (8)

  • 1 point for each Review Topic completed correctly and completely. (8 possible)
  • -1: point for NOT reviewing with another student.
  • 0 points if answers are typed and not handwritten.

Total possible points: 20

^ top


Submit means that you are presenting your work for consideration and grading.

  1. Post the Self-Study Questions in the Discussions area of Canvas named "Midterm 1 Study Questions" by Sunday,  Mar. 11 midnight.
  2. Turn in your Review Worksheet paper to the instructor on the day of the exam but before the midterm exam starts.

^ top

Last Updated: November 06 2017 @01:03:56