Open In App

ISRO | ISRO CS 2018 | Question 42

Like Article
Like
Save
Share
Report

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:

(A) Multiply E by 0.5 to get F
(B) Add A and B to get E
(C) Add B with 0.5 to get D
(D) Add E and F to get G
(E) 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) B, C, D, A, E
(B) C, B, E, A, D
(C) A, B, C, D, E
(D) E, D, C, B, A


Answer: (B)

Explanation:

Option (B) is correct.

Quiz of this Question


Last Updated : 27 Nov, 2018
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads