• 2022-06-09
    在C#中,下列代码的运行结果是(选一项) static void Main(string[]args) { Console.WrinteLine("运行结果是:{0}","运行结果"); }
  • 运行结果是:运行结果

    内容

    • 0

      public class Test { public static void main(String[] args) { String s1 = "abc"; String s2 = new String ("abc"); System.out.println(s1 == s2); } } 程序运行结果是

    • 1

      运行以下代码:public class StringRef{public static void main(String[] args){ String s1=”abc”; String s2=”def”; String s3=s2; s2=”ghi”; System.out.println(s1+s2+s3);}}运行结果是( )。 A: abcdefghi B: abdefdef C: abcghidef D: abcghighi

    • 2

      下列代码的运行结果是 ( ) public static void main(String[] args){ int a = 7; System.out.println(a%3); } A: 2.0 B: 2 C: 1.0 D: 1

    • 3

      下面程序段的运行结果 static void Main(string[] args) { int a = 0; for (int i = 1; i < 5; i++) { int c = 0, b = 2; a += 3; c = a + b; Console.Write(c + ","); } } 程序运行结果是( )

    • 4

      阅读下段代码片段,选择正确的运行结果 public static void main(String&#91;&#93; args) { { int a = 1; System.out.print(a); } { int a = 2; System.out.print(a); } int a = 3; System.out.print(a); }