• 2022-06-18
    请阅读下面的代码,此段代码运行的结果是()
    A: t time = 3 ;
    B: itch(time)
    C: se "1": Console.WriteLine("Good morning!"); break; case "2": Console.WriteLine("Good afternoon!"); break; case "3": Console.WriteLine("Good night!"); break; default: Console.WriteLine("Selection error!");
    break;
    D: Good morning!
    E: Good afternoon!
    F: Good night!
    G: Selection error!
  • D

    内容

    • 0

      "________" means they wish you to have a good sleep. A: In the evening B: Good night C: Good morning D: Good evening

    • 1

      We can use “Good morning” or “Good afternoon” in the beginning of an email as salutation.

    • 2

      Reading practice: choose the best answers.Which statement below is TRUE? A: We should say “good evening” if we go to sleep. B: We should say “good night” if it is time to go to bed. C: We can say “good morning” when the sun sets down. D: We can say “good afternoon” when sun rises up

    • 3

      ()类可以显示消息对话框。 A: Console B: WriteLine C: MessageBox D: ReadLine

    • 4

      下列程序的输出结果是()。 using System; class Program { public static void Main(string[] args) { int x=1,a=0,b=0; switch(x) { case 0: b++; break; case 1: a++; break; case 2: a++; b++; break; } Console.WriteLine(“a={0},b={1}”,a,b); } }