marvin7

marvin7

  • NA
  • 142
  • 0

QUESTION of the DAY - Good luck!

Oct 31 2003 10:26 AM
GIVEN THE FOLLOWING CODE, WHAT HAPPENS IF YOU TRY TO COMPILE AND RUN? (Ignore line numbers.) ---------------------------------- 1. using myAlias = System.Console.WriteLine; 2. 3. class Example 4. { 5. public static void Main( ) 6. { 7. int i = 32; 8. System.Console.Write( i ); 9. // myAlias(" is my favorite number!"); 10. } 11. } ---------------------------------- A. This code compiles and runs normally. B. This code does not compile because of line 1. C. This code does not compile because of line 8. D. This code compiles, but a runtime error occurs.

Answers (4)