0

In the sentence below, I'd like to see if "were executed" is correct in the context and if it sounds acceptable to the native ear.

What would the output be, e.g. on the computer screen, if the code fragment below were executed?

 a=5 
 b=2 
 c=a+b 
 print c

The reason I'm asking is that it didn't sound as good as

What would the output be, e.g. on the computer screen, if the code fragment below were to be executed?

3
  • Side note- not sure you’re using “e.g.” correctly, which means “for example”. Could the output appear somewhere else besides the computer screen? I think you vould omit the “e.g.” and it would sound better. Maybe you’re confusing it with “i.e.”, which basically means “in other words”.
    – Mixolydian
    Commented Mar 21, 2019 at 10:41
  • The output could possibly appear on paper by a printer.
    – learner
    Commented Mar 22, 2019 at 17:35
  • Ok sure, then never mind, "e.g." is perfectly fine here.
    – Mixolydian
    Commented Mar 22, 2019 at 17:45

1 Answer 1

2

Either of these options is acceptable; "were to be executed" sounds a little old fashioned and formal in the kind of brief question you are asking. I suggest using "were executed"

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .