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!
举一反三
- “早上好”应该说___________ A: Good<br/>morning! B: Good afternoon! C: Good night!
- 下列程序段执行后的输出结果是( )。 A: t n='c'; switch(n++) B: default: printf("error"); break; C: se 'a': case 'A': case 'b': D: se 'B': printf("good");break; E: se 'c': F: se 'C': printf("pass"); G: se 'd': H: se 'D': printf("warn"); } I: good J: passwarn K: pass L: goodpass
- 如果month=4,下面代码的输出结果是( ) int days=0; switch(month) { case 2: days=28; break; case 4: case 6: case 9: case 11: days=30; break; default: days=31; break; } Console.WriteLine(days);
- 下面程序段的输出结果是______。 int n= int n='c'; switch(n++) {default: printf("error"); break; case 'a': case 'A': case 'b': case 'B': printf("good"); break; case 'c': case 'C': printf("pass"); case 'd': case 'D': printf("warn"); }
- They often say"_______" to greet each other in the morning. A: in the morning B: Good morning C: Good afternoon D: Good evening
内容
- 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); } }