CS 149 Intro to Programming

Fall 2020

Practice Exam 1

As a reminder, the first midterm will consist of two parts (35 minutes for a 'written' portion and 35 minutes for a programming coding). You are encouraged to study all previous activities and labs, textbook chapters and reading quizzes, and programming homework assignments. Materials here are presented for you to help prepare for the exam(they are not a study guide for exact format/content, but as an aide to prepare for the exam). The solutions will NOT be posted, but you may ask questions about individual items on these via Piazza or in class.

Written Exam

  • Sample Written Exam (Fall 2015)
  • Coding Practice Exam
  • Objectives

    Students will be able to...

    • Recognize vocabulary/concepts from Ch1-4.
    • Declare and assign variables and constants.
    • Evaluate arithmetic expressions (type and value).
    • Define and invoke methods with parameters.
    • Predict the output of programs with 2+ methods.
    • Write methods that require I/O, arithmetic, and multiple methods.

    Logistics

    • This is a closed-book, closed-notes, no-calculator exam. Do not refer to any materials other than the exam itself.

    • Do not look at anyone else's exam. Do not talk to anyone but the instructor during the exam. Turn off all cell phones, etc.

    • Use the restroom and take care of personal needs before you arrive. If you need to leave during the exam, ask for permission.

    Students will be able to...
    • Meet any objectives from HW 1–4.
    • Perform integer division and modulo.
    • Invoke methods from the Math class.

    Coding Portion Logistics

    • You must use jGrasp as you IDE.
    • You must use a Linux lab machine and log in with the student account (no password). It's strongly recommended that you practice the sample exam in the lab so there will be no surprises on Thursday.

    • The following reference card will be supplied in paper form for the coding portion of the exam (you can not use any notes during the written portion of the exam).

    • You may only run the following programs: jGrasp, a terminal, a PDF viewer, and a web browser. All windows should be arranged so that the instructor can see what you're doing.

    • The use of any pre-existing code (other than that provided as part of the exam), other documents/pages/sites, and/or other programs will be considered a violation of the Honor Code.

    • You will submit your code via Autolab. You may not use Autolab for any other purpose (e.g., looking at solutions to prior labs) during the exam.