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
Case Study In December 2016, Arshad Ali joined Imperial Computers Ltd. (ICL) as a Senior Programmer,...
Case Study In December 2016, Arshad Ali joined Imperial Computers Ltd. (ICL) as a Senior Programmer, with a handsome pay. Prior to this job, he worked successfully as an assistant programmer in Gem Computers (Gem). Arshad felt that ICL offered better career prospects, as it was growing much faster than Gem, which was a relatively small company. Although Arshad had enjoyed working there (at Gem), he realized that to grow further in his field, he would have to join a...
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...
1. Read the following instructions on 'How to Repair an Electric Fan' which are written in...
1. Read the following instructions on 'How to Repair an Electric Fan' which are written in three different parts before answering the question given. The instructions below are considered ineffective as they are not following the effective instructions strategy. 1 Turn your fan on to make sure that the motor works. Plug your fan in and turn it on to the highest power setting. If the fan blades move a little or it starts to turn, the motor is probably...
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...
Challenge 5 Read ALL of the instructions carefully before starting the exercise! Dear Colleague, Earlier today...
Challenge 5 Read ALL of the instructions carefully before starting the exercise! Dear Colleague, Earlier today I built my fourth website using HTML5 and CSS3. This time I wanted to try using CSS float layout options on a website dedicated to my favorite topic: robotics. I wanted my website to look like what is shown in Figure 1 (see below). However, after giving it my best effort, things once again didn’t turn out the way I wanted (see the code...
2. Probability (30%). Figure out the probability in the following scenarios. (a) A number generator is...
2. Probability (30%). Figure out the probability in the following scenarios. (a) A number generator is able to generate an integer in the range of [1, 100], where each number has equal chances to be generated. What is the probability that a randomly generated number x is divisible by either 2 or 3, i.e., P(2 | x or 3 | x)? (5%) (b) In a course exam, there are 10 single-choice questions, each worthing 10 points and having 4 choices...
[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...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT