Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

CS 3377 Dollinger Exam 2 Questions With Correct Answers

Rating
-
Sold
-
Pages
24
Grade
A+
Uploaded on
23-05-2026
Written in
2025/2026

CS 3377 Dollinger Exam 2 Questions With Correct Answers

Institution
CS 3377
Course
CS 3377

Content preview

CS 3377 Dollinger Exam 2 Questions
With Correct Answers

In Board Game assignment, we used a binary file to store the
| | | | | | | | | | | |



intermediate values (current balance for each player) primarily because
| | | | | | | |




A) the program kept track of the money instead of points
| | | | | | | | | |




B) the program used the player names instead of ID numbers
| | | | | | | | | |




C) the program ended after processing each transaction
| | | | | | |




D) the program may handle too much data that cannot fit in main
| | | | | | | | | | | | |



memory - CORRECT ANSWER✔✔-C) the program ended after
| | | | | | | |



processing each transaction | |




Including the initial parent process, the total number of the processes
| | | | | | | | | | |



(in total) will be ____ after executing the code segment below.
| | | | | | | | | |


|




if (fork() && fork()) { fork();}
| | | | |




A) 8 |




B) 4 |

,C) 16 |




D) 2 |




E) 5 - CORRECT ANSWER✔✔-4
| | | |




Including the initial parent process, the total number of the processes
| | | | | | | | | | |



(in total) will be ____ after executing the code segment below.
| | | | | | | | | | |




if (fork() < 0) {fork();}
| | | |




A)1 |




B)2 |




C)3 |




D)4 |




E)0 - CORRECT ANSWER✔✔-B) 2
| | | |




In "Data crunching using IPC" assignment, a computational network of
| | | | | | | | | |



processes connected by pipes is created based on the rst line in data.txt.
| | | | | | | | | | | |



|If the rst line contains a - b * c / d - e / f how many pipes are created to
| | | | | | | | | | | | | | | | | | | | | |



handle this computation? | |




A) 10 | |




B) 6 | |

, C) 11 | |




D) 15 | |




E) 5 - CORRECT ANSWER✔✔-C) 11
| | | | |




Given fork program as shown below, how many lines will be output?
| | | | | | | | | | | |




fork(); |




if (fork())
| |




| puts("I am the parent."); | | |




A) 1 |




B) 2 |




C) 4 |




D) 8 - CORRECT ANSWER✔✔-B) 2
| | | | |




With a C program (memory map), ____ stores the information that is
| | | | | | | | | | | |



saved each time a function is called. Each time a function is called, the
| | | | | | | | | | | | | |



address of where to return to and certain information about the caller's
| | | | | | | | | | | |



environment, such as some of the machine registers, are saved on ____.
| | | | | | | | | | |




A)Heap |




B) Garbage Collection Area
| | | |




C) Object Container
| | |




D) Shared Memory
| | |

Written for

Institution
CS 3377
Course
CS 3377

Document information

Uploaded on
May 23, 2026
Number of pages
24
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$15.49
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Lectphilip West Virginia University
Follow You need to be logged in order to follow users or courses
Sold
263
Member since
2 year
Number of followers
6
Documents
24100
Last sold
2 days ago
WELCOME TO LECTPHILIP, A PLACE WHERE WE UNLOCK YOUR ACADEMIC OPPORTUNITIES

On this page, you find all documents, package deals and flashcards offered by seller lectphilip

4.0

41 reviews

5
20
4
8
3
9
2
2
1
2

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions