A data-driven machine is one that executes an instruction if the needed data is available. The physical ordering of the code listing does not dictate the course of execution. Consider the following pseudo-code 1) Multiply E by 0.5 to get F 2) Add A and B to get E 3) Add B with 0.5 to get D 4) Add E and F to get G 5) Add A with 10.5 to get C Assume A, B, C are already assigned values and the desired output is G Which of the following sequence of execution is valid?

A data-driven machine is one that executes an instruction if the needed data is available. The physical ordering of the code listing does not dictate the course of execution. Consider the following pseudo-code 1) Multiply E by 0.5 to get F 2) Add A and B to get E 3) Add B with 0.5 to get D 4) Add E and F to get G 5) Add A with 10.5 to get C Assume A, B, C are already assigned values and the desired output is G Which of the following sequence of execution is valid? Correct Answer C, B, E, A, D

Instruction 1: Multiply E by 0.5 to get F

Instruction 2:  Add A and B to get E

Instruction 3:  Add B with 0.5 to get D

Instruction 4:  Add E and F to get G

Instruction 5: Add A with 10.5 to get C

Correct Order:

Add B with 0.5 to get D, 

Add A and B to get E

Add A with 10.5 to get C

Multiply E by 0.5 to get F

Add E and F to get G

Explanation:

Since G is the desired output. Therefore Instruction 4, that is, Add E and F to get G must perform at the end. 

Also Instruction 1, that is, Multiply E by 0.5 to get F, cannot happen before instruction 2,  also instruction 4 cannot happen before either instruction 1) or instruction 2).

The only option satisfying this is option 2.

option 2 is correct.

Related Questions

Read the passage carefully and choose the best answer to each question out of the four alternatives.
In mid-2012 I completed my first massive online open course, or MOOC, the kind widely offered by Coursera, EdX, Udacity and so on in partnership with different educational institutions. It was on clinical trials and ethical practices, offered by Johns Hopkins, on Coursera. This was shortly before the MOOC sensation hit India, and when Coursera, which was founded by two Stanford professors, itself was just a few months old. The MOOC bug had bit me. The course Id completed was mainly designed for health care professionals who would be involved in actual clinical trials, not college students who had no prior knowledge of that area. I decided to enroll in the course because it was the only biology related course open at the time. However, I did see hope in that sometime in the future Id be able to get a glimpse of what classes are like in the hallowed halls of major educational institutions around the world. By early 2013, Coursera and EdX had partnered with so many educational institutions and expanded their course offerings to include everything from food and nutrition to Greek mythology to business, that I was spoilt for choice. I spent hours going through course catalogues and poring over course descriptions, almost delirious with excitement at the fact that I was actually going to be able to take classes offered by universities I had only dreamt of attending.
The course the author completed on MOOC was related to which subject?
Read the passage carefully and choose the best answer to each question out of the four alternatives.
In mid-2012 I completed my first massive online open course, or MOOC, the kind widely offered by Coursera, EdX, Udacity and so on in partnership with different educational institutions. It was on clinical trials and ethical practices, offered by Johns Hopkins, on Coursera. This was shortly before the MOOC sensation hit India, and when Coursera, which was founded by two Stanford professors, itself was just a few months old. The MOOC bug had bit me. The course Id completed was mainly designed for health care professionals who would be involved in actual clinical trials, not college students who had no prior knowledge of that area. I decided to enroll in the course because it was the only biology related course open at the time. However, I did see hope in that sometime in the future Id be able to get a glimpse of what classes are like in the hallowed halls of major educational institutions around the world. By early 2013, Coursera and EdX had partnered with so many educational institutions and expanded their course offerings to include everything from food and nutrition to Greek mythology to business, that I was spoilt for choice. I spent hours going through course catalogues and poring over course descriptions, almost delirious with excitement at the fact that I was actually going to be able to take classes offered by universities I had only dreamt of attending.
Which of the following is the name of a university and not an online education delivery company?
Read the passage carefully and choose the best answer to each question out of the four alternatives.
In mid-2012 I completed my first massive online open course, or MOOC, the kind widely offered by Coursera, EdX, Udacity and so on in partnership with different educational institutions. It was on clinical trials and ethical practices, offered by Johns Hopkins, on Coursera. This was shortly before the MOOC sensation hit India, and when Coursera, which was founded by two Stanford professors, itself was just a few months old. The MOOC bug had bit me. The course Id completed was mainly designed for health care professionals who would be involved in actual clinical trials, not college students who had no prior knowledge of that area. I decided to enroll in the course because it was the only biology related course open at the time. However, I did see hope in that sometime in the future Id be able to get a glimpse of what classes are like in the hallowed halls of major educational institutions around the world. By early 2013, Coursera and EdX had partnered with so many educational institutions and expanded their course offerings to include everything from food and nutrition to Greek mythology to business, that I was spoilt for choice. I spent hours going through course catalogues and poring over course descriptions, almost delirious with excitement at the fact that I was actually going to be able to take classes offered by universities I had only dreamt of attending.
The C in MOOC stands for which word?
Read the passage carefully and choose the best answer to each question out of the four alternatives.
In mid-2012 I completed my first massive online open course, or MOOC, the kind widely offered by Coursera, EdX, Udacity and so on in partnership with different educational institutions. It was on clinical trials and ethical practices, offered by Johns Hopkins, on Coursera. This was shortly before the MOOC sensation hit India, and when Coursera, which was founded by two Stanford professors, itself was just a few months old. The MOOC bug had bit me. The course Id completed was mainly designed for health care professionals who would be involved in actual clinical trials, not college students who had no prior knowledge of that area. I decided to enroll in the course because it was the only biology related course open at the time. However, I did see hope in that sometime in the future Id be able to get a glimpse of what classes are like in the hallowed halls of major educational institutions around the world. By early 2013, Coursera and EdX had partnered with so many educational institutions and expanded their course offerings to include everything from food and nutrition to Greek mythology to business, that I was spoilt for choice. I spent hours going through course catalogues and poring over course descriptions, almost delirious with excitement at the fact that I was actually going to be able to take classes offered by universities I had only dreamt of attending.
Coursera was founded by professors from which university?
Consider the following statements: 1. A computer will have a multiply instruction 2. Multiply instruction will be implemented by a special multiply unit. Which of the following is correct?
Read the passage carefully and choose the best answer to each question out of the four alternatives.
In mid-2012 I completed my first massive online open course, or MOOC, the kind widely offered by Coursera, EdX, Udacity and so on in partnership with different educational institutions. It was on clinical trials and ethical practices, offered by Johns Hopkins, on Coursera. This was shortly before the MOOC sensation hit India, and when Coursera, which was founded by two Stanford professors, itself was just a few months old. The MOOC bug had bit me. The course Id completed was mainly designed for health care professionals who would be involved in actual clinical trials, not college students who had no prior knowledge of that area. I decided to enroll in the course because it was the only biology related course open at the time. However, I did see hope in that sometime in the future Id be able to get a glimpse of what classes are like in the hallowed halls of major educational institutions around the world. By early 2013, Coursera and EdX had partnered with so many educational institutions and expanded their course offerings to include everything from food and nutrition to Greek mythology to business, that I was spoilt for choice. I spent hours going through course catalogues and poring over course descriptions, almost delirious with excitement at the fact that I was actually going to be able to take classes offered by universities I had only dreamt of attending.
What aspect of MOOC excited the author?