sample_Midterm_2

.pdf

School

Brooklyn College, CUNY *

*We aren’t endorsed by this school

Course

3620

Subject

Computer Science

Date

Apr 3, 2024

Type

pdf

Pages

15

Uploaded by EarlMorningSkunk16

Report
Spring 2024 CISC 3320 MW3 Sample Midterm CUNY Brooklyn College Instructions Note : This is a sample exam – do not submit it! The instructions below will be provided during the actual Midterm exam and are here to help you practice! During the exam, you are ALLOWED to use the textbook, the lectures notes, any notes taken by you, the sample exams, a calculator, Web search engines, Google, etc. During the exam, you are DISALLOWED to talk to/ask any person (except for the instructor), either in-person or online, about any part of the exam. Type the answers inside this very questionnaire file (in the text boxes under the ques- tions) and submit the file by attaching it on Blackboard at Exams Midterm . Exam duration: 03:40 PM – 04:55 PM. Exam Location: at the West End Building (WEB), 1st floor, computers M126 – M165. Any Questions? I will approach you when I finish answering questions your class- mates asked earlier. Tip: Use the slide numbers + links listed under questions to look up answers and hints. Tip: You can always give a short explanation if you are unsure about an answer to get partial credit. Tip: You can submit the exam times until it is due. The last attempt is the one to be graded. Sections & Points in the Midterm : Section # of Questions Points per Question Topic 1: Overview of operating systems – Short Answer 2 10 Topic 2: Functions & Services of an OS – Short Answer 2 10 Topic 3: I/O and Interrupts – Short Answer 2 10 Topic 4: Processes – Short Answer 2 10 Topic 5: Threads – Short Answer 2 10 Extra Credit – Short Answer 5 2 # of Questions Points Total (without Extra Credit) 10 100 Total (with Extra Credit) 15 110 Updated: 02/04/2024, 03:40 1 of 11 Return to Top of Syllabus
Spring 2024 CISC 3320 MW3 Sample Midterm CUNY Brooklyn College Topic 1: Overview of operating systems – Short Answer Instructions: Respond to each of the following question by typing a (textual) answer into the boxes provided under each question. The response to each question should be at least 2 sentences in length (unless otherwise noted,) and must be written using your own words. 1. Operating systems can be divided into types, such as real-time OS, batch OS, etc. Suppose you landed a computer engineer job, and your boss assigned you to make decisions on a new operating system that your company will soon create. Specifically, your task is to decide what type the operating system will be. What type would you recommend to your boss if you know that the device that runs this operating system must alert a soldier in a battlefield as fast as possible when an enemy soldier is approaching ? Explain your answer. (Slides: Topic 1, slides 14 – 16. Link (copy and paste in a new browser tab/window:) ) (10 points) 2. (a) In 1-3 sentences, explain briefly what a Main Memory device is (i.e., what is its purpose?) (b) Is Main Memory an input device, output device, or storage device? Explain your answer in at least one sentence. (Slides: Topic 1, slides 18 – 24. Link (copy and paste in a new browser tab/window:) ) (10 points) Updated: 02/04/2024, 03:40 2 of 11 Return to Top of Syllabus
Spring 2024 CISC 3320 MW3 Sample Midterm CUNY Brooklyn College Topic 2: Functions & Services of an OS – Short Answer Instructions: Respond to each of the following question by typing a (textual) answer into the boxes provided under each question. The response to each question should be at least 2 sentences in length (unless otherwise noted,) and must be written using your own words. 3. Data structures are ubiquitously employed by operating systems to help the OSes organize data correctly and efficiently. We mentioned some data structure types in Topic 2. Mention one data structure that is mentioned anywhere in Topic 5: Threads , and explain what its purpose or use is in the context of this chapter using your own words . (Slides: Topic 2, slides 13 – 21. Link (copy and paste in a new browser tab/window:) ) (10 points) 4. Booting is a synonym for launching an operating system on a device and occurs in a few stages. Suppose that the bootstrap program finished copying the instructions of the operating system to memory and the OS started running . Describe the im- mediate next step in the booting process (that is, describe what will occur next on) in one or more sentences. (Slides: Topic 2, slides 42 – 43. Link (copy and paste in a new browser tab/window:) ) (10 points) Updated: 02/04/2024, 03:40 3 of 11 Return to Top of Syllabus
Spring 2024 CISC 3320 MW3 Sample Midterm CUNY Brooklyn College Topic 3: I/O and Interrupts – Short Answer Instructions: Respond to each of the following question by typing a (textual) answer into the boxes provided under each question. The response to each question should be at least 2 sentences in length (unless otherwise noted,) and must be written using your own words. 5. Slides 26 through 30 discuss 5 categories of I/O devices. One of these categories is Block and Character devices. Describe the main difference between Block and Character devices. (Slides: Topic 3, slides 26 – 30. Link (copy and paste in a new browser tab/window:) ) (10 points) 6. The slides for Topic 3 starting at slide 13 introduce various methods in which an operating system can handle I/O events. State one advantage that Interrupt-driven I/O has over Polling I/O , and explain what aspect in the architecture/mechanics of Interrupt-driven I/O leads to the advantage you mentioned in the previous part. (Slides: Topic 3, slides 13 – 20. Link (copy and paste in a new browser tab/window:) ) (10 points) Updated: 02/04/2024, 03:40 4 of 11 Return to Top of Syllabus
Spring 2024 CISC 3320 MW3 Sample Midterm CUNY Brooklyn College Topic 4: Processes – Short Answer Instructions: Respond to each of the following question by typing a (textual) answer into the boxes provided under each question. The response to each question should be at least 2 sentences in length (unless otherwise noted,) and must be written using your own words. 7. (a) What is a zombie program? (b) Does a zombie exist forever? What happens to it after some time? (Slides: Topic 4, slides 25 – 26. Link (copy and paste in a new browser tab/window:) ) (10 points) 8. Explain the difference between the fork() system call and the exec() system call. (Slides: Topic 4, slides 19 – 20. Link (copy and paste in a new browser tab/window:) ) (10 points) Updated: 02/04/2024, 03:40 5 of 11 Return to Top of Syllabus
Spring 2024 CISC 3320 MW3 Sample Midterm CUNY Brooklyn College Topic 5: Threads – Short Answer Instructions: Respond to each of the following question by typing a (textual) answer into the boxes provided under each question. The response to each question should be at least 2 sentences in length (unless otherwise noted,) and must be written using your own words. 9. As a professional programmer, you are frequently create threads in the programs your write. You have been notified by your boss that you are to work on a new program that should involve multi-threading. If the computer where the program is destined to run has 3 CPUs, and the portion of the program that is supposed to manifest multi-threading is 61% , what would be the maximum possible overall speedup of the whole program? Fully show your computation! (as on the example on slide 25.) Hint : Use Amdahl’s Law. (Slides: Topic 5, slides 24 – 25. Link (copy and paste in a new browser tab/window:) ) (10 points) 10. Mention exactly one advantage and exactly one disadvantage in implementing/apply- ing the One-To-One threading model . (Slides: Topic 5, slides 15 – 18. Link (copy and paste in a new browser tab/window:) ) (10 points) Updated: 02/04/2024, 03:40 6 of 11 Return to Top of Syllabus
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help