The questions in this quiz refer to the following two code segments:
| Code Segment I | Code Segment II |
|---|---|
if ( result == 0 )
s = "No result";
if ( result == 1 )
s = "Poor result";
if ( result == 2 )
s = "Good result";
|
if ( result == 0 )
s = "No result";
else if ( result == 1 )
s = "Poor result";
else if ( result == 2 )
s = "Good result";
|