sample_Midterm_2
.pdf
keyboard_arrow_up
School
Brooklyn College, CUNY *
*We aren’t endorsed by this school
Course
3620
Subject
Computer Science
Date
Apr 3, 2024
Type
Pages
15
Uploaded by EarlMorningSkunk16
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
Related Questions
COURSE Geographical Information System
Only correct answer will be upvoted. Else downvoted. DO NOT HANDWRITING
arrow_forward
Submission & Rubric
Description
↑
Purpose
Each module will have a group discussion that will
help you to see how the math we are studying in this
class may be applied to various majors including your
own. By actively participating in a conversation with
your classmates about these posts, you will gain a
deeper understanding of the course content and
improve your ability to express your ideas in writing.
Use these directions to guide your participation in
each discussion.
Prompt
Throughout the course, you have been exploring just
how mathematics can and is used in your major.
Share with the class at least one way that
mathematics is used in your major or explain what
you learned about how mathematics is used in your
field of study. Be sure to include your area of study in
your post.
arrow_forward
Systems Analysis Assignment (Microsoft Word and Excel)
You and your team have been hired to set up a computer classroom for Tech United, Inc. An up
and coming tech startup who will like to become a tech training company.
Tech United, Inc. wants to offer various different kinds of tech training at their new office location.
They have only one classroom space available that can accommodate up to 30 students. The
classroom is already equipped with tables and chairs. The classroom, however, does not have any
computers, routers, projectors, smartboard etc. This is where you come in. The company has
$40,000 as a starting budget and will like for you to determine for them what
computers/keyboards/mouse/router/printer/smartboard etc. they should buy. You determine
based on their budget, how many of each item should be purchased for the classroom.
Deliverables
Deliverable Part 1: A systems analysis report on what kind of computers and hardware the
company should use in their classroom,…
arrow_forward
Title: Music Therapy
Instruction: Please provide atleast 10 question about music therapy and how help people with this music therapy?
arrow_forward
Instruction: Identify if the following is UNIQUE IDENTIFIER or NOT.
Instructor ID
arrow_forward
excel
Task Instructions
In the Column chart, switch the data shown In the rows
and columns.
arrow_forward
Design correct remember else downvote Fgurantee.
arrow_forward
Item 17/20
O four
How many hashes ( ) will the following snippet send to the console?
var
while var < 10:
one
print ("#")
var = var << 1
eight
two
arrow_forward
help
arrow_forward
PYTHON PROGRAMMING ONLY PLEASE
I am doing a patient portal/record keeping system i already have the layout need help writing the code.
Here is my layout below
Menu:
View personal information
Update personal information
View medical history
Update medical history
Exit
DECISION BLOCKS
View personal information:
View patient personal information( Name, Date of Birth, Address, Phone Number)
Press Console: "You have chosen to view your personal information."
Update personal information:
Ask the patient to update personal information
Update the patient personal information
Print to the console: "You have chosen to update your personal information."
View historical medical information:
View patient medical history (medical history, surgery, medications, allergies, etc.)
Prints to console: "You have chosen to view your medical history."
Update medical history:
Prompt patient to enter updated medical information
Update the patient's medical history
Print to the console: "You have…
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you
Fundamentals of Information Systems
Computer Science
ISBN:9781305082168
Author:Ralph Stair, George Reynolds
Publisher:Cengage Learning
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:9780357392676
Author:FREUND, Steven
Publisher:CENGAGE L
Related Questions
- COURSE Geographical Information System Only correct answer will be upvoted. Else downvoted. DO NOT HANDWRITINGarrow_forwardSubmission & Rubric Description ↑ Purpose Each module will have a group discussion that will help you to see how the math we are studying in this class may be applied to various majors including your own. By actively participating in a conversation with your classmates about these posts, you will gain a deeper understanding of the course content and improve your ability to express your ideas in writing. Use these directions to guide your participation in each discussion. Prompt Throughout the course, you have been exploring just how mathematics can and is used in your major. Share with the class at least one way that mathematics is used in your major or explain what you learned about how mathematics is used in your field of study. Be sure to include your area of study in your post.arrow_forwardSystems Analysis Assignment (Microsoft Word and Excel) You and your team have been hired to set up a computer classroom for Tech United, Inc. An up and coming tech startup who will like to become a tech training company. Tech United, Inc. wants to offer various different kinds of tech training at their new office location. They have only one classroom space available that can accommodate up to 30 students. The classroom is already equipped with tables and chairs. The classroom, however, does not have any computers, routers, projectors, smartboard etc. This is where you come in. The company has $40,000 as a starting budget and will like for you to determine for them what computers/keyboards/mouse/router/printer/smartboard etc. they should buy. You determine based on their budget, how many of each item should be purchased for the classroom. Deliverables Deliverable Part 1: A systems analysis report on what kind of computers and hardware the company should use in their classroom,…arrow_forward
- Title: Music Therapy Instruction: Please provide atleast 10 question about music therapy and how help people with this music therapy?arrow_forwardInstruction: Identify if the following is UNIQUE IDENTIFIER or NOT. Instructor IDarrow_forwardexcel Task Instructions In the Column chart, switch the data shown In the rows and columns.arrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Fundamentals of Information SystemsComputer ScienceISBN:9781305082168Author:Ralph Stair, George ReynoldsPublisher:Cengage LearningCOMPREHENSIVE MICROSOFT OFFICE 365 EXCEComputer ScienceISBN:9780357392676Author:FREUND, StevenPublisher:CENGAGE L
Fundamentals of Information Systems
Computer Science
ISBN:9781305082168
Author:Ralph Stair, George Reynolds
Publisher:Cengage Learning
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:9780357392676
Author:FREUND, Steven
Publisher:CENGAGE L