Schedule‎ > ‎

Lab 04: Test Questions


  • 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).

^ top

Preparing Exam Questions

This lab 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. Add answers at the end of the questions such that people can read the questions without seeing the answers.
  4. After developing your questions, have another student try the questions and provide feedback. Correct any issues discovered with this quality check.
  5. Post the questions in the Discussions area of Canvas titled "Midterm 1 Study Questions".
  6. In your posting, include the name of the student who tested your questions.

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 String functions. We study the lecture notes and textbook pages discussing strings.

  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 might start with:
    We want to write a message to our Mom. The best way to determine the length of a message is _____.
  3. The question should not contain irrelevant material, so we rewrite our question as:
    To measure length of a string call the function _____.
  4. Notice that we can rewrite our question as an actual question:
    What is the function that measures the length of a string?
  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:
    Which function measures the length of a string?
    1. length()
    2. strLength()
    3. numChars()
    4. countChars()

Example Question Posting

Test Topic 1a: Comments

  1. Comments are notes to ________.
    1. compilers
    2. computers
    3. people reading your source code
    4. people using your compiled programs
  2. Add comments to your code to ________
    1. explain unusual or obscure code
    2. explain the purpose of an external JavaScript file
    3. explain how to use 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 tested by: Paula Programmer

^ top

Grading Criteria (14)

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

Lesson Exercises

  • 2: All lesson exercises from last Wednesday's class attempted and turned in
  • 1: Some lesson exercises completed and turned in
  • 0: No lesson exercises completed or turned in

Lab Test Questions

  • 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 with another student.
  • 1 point for providing answers.
  • -1 per question that is not multiple choice. (-5 possible)
  • -1 per question with irrelevant or unclear material. (-5 possible)

Total possible: 14

^ top

How to Submit

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

Turn in the lesson exercise files to Canvas.

Here are the names of the lesson and lab files. Let the instructor know right away if you find a discrepancy.

Last Week's Lessons

  • multiply.ino (04B: Functions and Temperature sensors)
  • trace.txt (04B: Functions and Temperature sensors)
  • tmp36.ino (04B: Functions and Temperature sensors)
  • initials.ino (05A: Characters: Strings, and Midterm Preparation)

This Lab

Post the questions in the Discussions area of Canvas titled "Midterm 1 Study Questions".

^ top