CS 18000 Study Guide - Midterm Guide: Shriharsha, Race Condition, Pseudocode

45 views14 pages

Document Summary

There are 3 programming questions worth a total of 60 points. Answer the multiple choice questions on the bubble sheet given and the programming ques- tions on the exam booklet. Fill in the instructor, course, signature, test, and date blanks. Fill in the bubbles that correspond to your name, section and student id in the bubble sheet. For your section number, use the section number for your lab and project turn in. For your student id, use the 10 digit id number on your student id card. Exams without names will be graded as zero. Only the answers on the bubble sheet will be counted. Multiple choice questions (2 points each): if the run() method of foo, a subclass of thread, contains no conditional statements, the following code sample is an example of: int mid = size/2; 1: suppose both thread 1 and thread 2 need access to two separate pieces of data, m and n, and that.