Both examples are in BASIC language (though each is slightly different), but unless you have the manual dexterity to accurately toggle S1 at 2400 baud, then example A will not apply.