Quiz Date & Location

The CIS 5480 Quiz will be held Tuesday September 29th during the first half of class period (5:15 - 6:00 pm) in the lecture hall (Towne 100).

Quiz Policies

You will have 45 minutes to complete the quiz. We will be beginning as soon as possible, so please show up to class early if you can. We will distribute the quiz early so that you can read and fill out the front page of the quiz, but you should not look at the quiz questions until you are told to begin. During the quiz, some course staff will be walking around the room to answer any clarifying questions and watch out for any cheating cases.

Materials

  • To Bring: pencil, eraser, one double-sided sheet (standard letter size, 8.5 x 11 inch) of notes.
  • Provided: printed quiz with space to show work, and time keeping.
  • Not Allowed: watch, hat, calculator, cell phone, or any other electronic device.

Clobber Policy

The clobber policy allows you to demonstrate mastery of past material with regard to quizzes and exams. In particular, you can replace your quiz score with the score of the overlapping sections of the midterm exam, if you do better on those topics in the midterm. This does not apply in reverse, we will not replace part of your midterm grade with the quiz.

To accommodate for the subsection of the midterm exam being harder/easier than the quiz itself, we have a formula that accounts for average and standard deviation.

  1. First, we calculate Potential Quiz Clobber Score with: (midterm_sub_score - midterm_sub_mean) / midterm_sub_stddeviation * quiz_std_deviation + quiz_mean, capped at the max score of the quiz.
  2. Then we take the maximum score between the calculated potential clobber score and the grade you had on the quiz. The higher of the two will be used to calculate your course grade.

Cheating

Cheating is a very serious issue and will be vigorously prosecuted. You are not allowed to:

  • Discuss the exam with anyone who has taken it before you or will take it after you
  • Bring in outside information outside of the allowed note sheet mentioned above
  • Pass off any work as your own
  • Starting the exam early or ending the exam late

We cannot create a detailed list of everything that would be considered cheating, this would be beyond reasonable to create and to expect students to read. It is up to you know when you are cheating, if you are unsure for any reason if something is cheating, you can ask the instructor. Though if you have to ask, it will likely be considered cheating.

Remember that we have the Clobber policy in place for the quiz, if you end up doing badly, there is always the chance to make it up on the midterm exam.

Quiz Topics

The midterm topics will cover everything from the beginning of the class up to, but not including the week prior to the midterm. Below you can find a list of some of the course topics and some of the topics that are exempt from the midterm. If a topic is not listed below, you can ask about whether it is testable material.

Topic Exceptions

  • We will not ask questions to see if you memorized the minutiae of various C functions, C syntax, and C types. If needed, we will provide the relvant parts of the corresponding man page(s) for you. (e.g. We will expect you to know what a uint32_t is but not where it is defined.)

Potential Topics:

  • General C
    • General Memory Layout
      • stack, heap, text, data, etc.
    • Memory Allocation
      • malloc, free, realloc
  • Processes
    • Process Groups, Process IDs, Process States, etc.
    • Process Control Block
    • Terminal Control / Shell
      • Foreground/Background Jobs and Job Control
      • Redirection
      • Simple Shell Commands (cat, ls, echo, etc)
  • Inter Process Communication
    • pipes and signals
    • Signal Delivery Semantics
      • blocked vs ignored signals
      • Restart Behavior
        • SA_RESTART
      • Default Dispositions vs Custom Handlers
    • SIGCHLD, SIGINT, SIGTSTOP, SIGSTOP, SIGKILL, etc.
  • File Descriptors, File Descritor Tables, etc.
  • System Calls
    • General C
      • read, write, open, close
      • open flags: O_RDNLY, O_RDWR, etc.
    • Processes
      • fork, wait, waitpid, execve, execvp, etc.
      • pipe, pipe2, dup2
    • Signals
      • sigaction, struct sigaction, sigprocmask, sigsuspend, sigwait
      • sigemptyset, sigaddset, sigfillset, etc.
    • Terminal Control
      • tcsetpgrp
  • How System Calls Work
  • I/O Buffering

If you don’t see something listed above as a potential topic or an exception, then feel free to post on Ed and we will clarify whether you may be tested on it in the exam. It might seem like a long list but we’ve really covered all the previous topics.

Practice

Advice

Note that we have not had a quiz in previous versions of this course, so you may find it useful to look at the old midterms and specifically look at the questions that are relevant to the topics we laid out above.

You may also find it helpful to review old homework assignments and lecture polls while studying.

Practice Questions

Old Review Questions

Note that these review questions are written by a different instructor, so while they still may be useful for practicing the course topics and exam-taking skills, the midterm will feel different in the kind of questions that are asked. Some of the questions will also ask things not gone over in this course. If you are unsure if something has been covered, feel free to ask on the course ed.

Old Exams

Note that the 23fa exams was written following a different topic ordering, so some of the topics have not been covered yet. Some of these questions may be useful for practicing the course topics and exam-taking skills, but some of the questions will also asked things not gone over in this course yet. If you are unsure if something has been covered, feel free to ask on the course ed.

23fa also had two midterms instead of a midterm and a final, which affects the exam design. 26sp also had two midterm AND a final, which also affects the design of those exams.

Note that all of the exams below were designed for 90 minutes, double the time you will have for the quiz. Your quiz will be shorter to compensate