Question

Assume that a programmer forgot to put any 00 (STOP) instructions into an otherwise correct Pep/8...

Assume that a programmer forgot to put any 00 (STOP) instructions into an otherwise correct Pep/8 program. Would such a program ever stop? There are three possible answers:

  • All such programs would never stop.
  • All such programs would eventually stop.
  • Some such programs would stop and others would not stop.

Homework Answers

Answer #1

The correct answer is the third option that Some such programs would stop and others would not stop.

The reason for this is that for sequential programs without any jump etc. instructions, the processor would continue executing whatever is in memory after your code, it may try to execute invalid instruction or to access memory that it is not allowed to access thus causing a segmentation fault, eventually leading to the crash & thus termination of the program. This would happen with those programs that do not enter an infinite loop.

For some programs, it may the case that a missing stop instruction may be at a place where it would make the program to continue a loop indefinitely. Such programs will not crash but would keep executing.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Problem 1: Properties of Options (8 marks) The price of a European put that expires in...
Problem 1: Properties of Options The price of a European put that expires in six months and has a strike price of $100 is $3.59. The underlying stock price is $102, and a dividend of $1.50 is expected in four months. The term structure is flat, with all risk-free interest rates being 8% (cont. comp.). a. What is the price of a European call option on the same stock that expires in six months and has a strike price of...
Professor Edwards’s “Fundamentals of Supervision” class was in the fifth week, and the class was discussing...
Professor Edwards’s “Fundamentals of Supervision” class was in the fifth week, and the class was discussing servant leadership. Professor Edwards identified three things for the students to consider. “Leaders need to create a vision for their team that will create a future for the organization based on resilience. Leaders need to use the talents and skills of their team members to get the best results. Leaders need to find ways to engage their followers to be the best they can...
Analyze the case using the 8-Step Model for Ethical Analysis; Gather the facts, Define the ethical...
Analyze the case using the 8-Step Model for Ethical Analysis; Gather the facts, Define the ethical issues, Identify the affected parties, Identify the consequences, Identify the obligations, Consider your character and integrity, Think creatively about potential actions, Check your gut. Case Information Josh O’Shaun, newly appointed CEO of Morris County Hospital (MCH), faced many problems in his 200-bed facility. One of the most pressing, in terms of patient service, was a nurse retention rate that continually caused understaffing. His root-cause...
[1] The basic problem that gives rise to the study of economics is the need to:...
[1] The basic problem that gives rise to the study of economics is the need to: A) control the effects of actions by foreign governments. B) be sure all the goods and services produced in an economy get sold. C) use scarce resources to satisfy people's unlimited material wants and needs. D) control people's tastes and wishes so that the available resources can produce all the goods and services they want. [2] Economics is concerned with: A) earning as much...
Jennifer Childs is the owner and chief executive officer of a midsize global pharmaceutical company with...
Jennifer Childs is the owner and chief executive officer of a midsize global pharmaceutical company with sales offices or manufacturing plants in eight countries.At an October staff meeting she tells her managers that company profits for the year are expected to be $2,000,000 more than anticipated. She tells them she would like to reinvest this additional profit by funding projects within the company that will either increase sales or reduce costs. She asks her three key managers to get together...
***Question is: -In Arizona, legislation was introduced to ban ethnic studies. The Dean of SFSU's College...
***Question is: -In Arizona, legislation was introduced to ban ethnic studies. The Dean of SFSU's College of Ethnic Studies wrote this editorial to explain what ethnic studies is about and why we need it. Read this editorial (below). Identify his main arguments I recently read a piece of legislative hubris from Arizona that purports to ban ethnic studies in public schools. More disturbing than outlawing instruction in the histories, philosophies, literatures, and accomplishments of nonwhite peoples is the alarming effect...
About John Daniels Chemicals Inc. This business case is about John Daniels Chemicals Inc., which is...
About John Daniels Chemicals Inc. This business case is about John Daniels Chemicals Inc., which is one the most respected and elite chemical research organization in the industry, operating since 1991, with the headquarters in Tanzania, Africa. Organizational Structure and Culture at John Daniels Chemicals Inc. Organizational culture in John Daniels Chemicals Inc. is an open and less rigid one, unlike the other usual corporations in the market. The scientists selected to work in John Daniels Chemicals Inc. are top...
1. Running On Carla Gomez is the owner of Running On—a retail store that sells shoes...
1. Running On Carla Gomez is the owner of Running On—a retail store that sells shoes and accessories to runners. Carla is trying to decide what she should do with her retail business and how committed she should be to her current target market. Carla started Running On retail store in 1994 when she was only 24 years old. At that time, she was a nationally ranked runner and felt that the growing interest in jogging offered real potential for...
CASE Wyatt Earp - The Buffalo Hunter F. Robert Jacobs, Indiana University The legend of Wyatt...
CASE Wyatt Earp - The Buffalo Hunter F. Robert Jacobs, Indiana University The legend of Wyatt Earp lives on largely based on his exploits as a gunfighter and Marshall of the frontier West in the 1880s. The classic tales of the shootout at the O.K. Corral in Tombstone or his sawed-off shotgun duel with Curly Bill are possibly the most celebrated gunfights of frontier history and cannot fail to stir the reader's imagination. Wyatt lived to be over 80 years...
provide 3-4 paragraphs post (team 2) 1-What are 4 key things you learned about the topic...
provide 3-4 paragraphs post (team 2) 1-What are 4 key things you learned about the topic from reading their paper? 2-How does the topic relate to you and your current or past job? 3-Critique the paper in terms of the organization and quality.1- Employee Stress and how it has an Adverse Effect on a Company This paper explores employee stress and how it has an adverse effect on a company, its employees and the organization. Job stress can have a...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT