《C#设计》考试(A)终稿.docVIP

  • 28
  • 0
  • 约9.86千字
  • 约 12页
  • 2016-12-24 发布于湖北
  • 举报
1.下面( )是合法的变量名。 A. accp5.0 B. _Csharp C.99s D.Main 2.下面这段代码的输出为( ) A.进入了if B.进入了if,进入了else C.进入了else D.进入了if ,进入了else if,进入了else int year = 2046; if (year % 2 == 0) { Console.WriteLine(进入了if); } else if (year % 3 == 0) { Console.WriteLine(进入了else if); } else { Console.WriteLine(进入了else); } Console.ReadLine(); 3.下面程序的输出结果是 ( ) A)1 B)2 C)4.5 D)4 static void Main(string[] args) { int a=5,b =2; float

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档