接受语言{任何不是0开头的奇正整数的集合} 的 CFG文法为 ( ) A: S→J|ABJ, B→0B|AB|e, A→J|2|4|6|8, J→1|3|5|7|9 B: S→J|ABJ, B→0B|AB|e, A→J|0|2|4|6|8, J→1|3|5|7|9 C: S→J|ABJ, B→0B|AB, A→J|2|4|6|8, J→1|3|5|7|9 D: S→J|ABJ, B→0B|e, A→J|2|4|6|8, J→1|3|5|7|9
接受语言{任何不是0开头的奇正整数的集合} 的 CFG文法为 ( ) A: S→J|ABJ, B→0B|AB|e, A→J|2|4|6|8, J→1|3|5|7|9 B: S→J|ABJ, B→0B|AB|e, A→J|0|2|4|6|8, J→1|3|5|7|9 C: S→J|ABJ, B→0B|AB, A→J|2|4|6|8, J→1|3|5|7|9 D: S→J|ABJ, B→0B|e, A→J|2|4|6|8, J→1|3|5|7|9
以下程序的输出是 ___。main() {char a[2][5]={”6937”,”8254”}; int i,j,s=0; for ( i = 0; i < 2; i++ ) for ( j = 0; a[i][j]>’0’ && a[i][j]<=’9’; j+=2 ) s=10*s+a[i][j]-’0’; printf(”s=%d\n”,s);}
以下程序的输出是 ___。main() {char a[2][5]={”6937”,”8254”}; int i,j,s=0; for ( i = 0; i < 2; i++ ) for ( j = 0; a[i][j]>’0’ && a[i][j]<=’9’; j+=2 ) s=10*s+a[i][j]-’0’; printf(”s=%d\n”,s);}
以下程序段的输出结果是intk,j,s;for(k=2;k<6;k++,k++){s=1;for(j=k;j<6;j++)s+=j;}printf("%d",s); A: 11 B: 10 C: 9 D: 1
以下程序段的输出结果是intk,j,s;for(k=2;k<6;k++,k++){s=1;for(j=k;j<6;j++)s+=j;}printf("%d",s); A: 11 B: 10 C: 9 D: 1
以下程序段:( ) int k,j,s; for(k=2;k<6;k++,k++) { s=1; for(j=k;j<6;j++) s+=j; } printf(“%d\n”,s); 其输出结果是 A: 9 B: 1 C: 11 D: 10
以下程序段:( ) int k,j,s; for(k=2;k<6;k++,k++) { s=1; for(j=k;j<6;j++) s+=j; } printf(“%d\n”,s); 其输出结果是 A: 9 B: 1 C: 11 D: 10
读下面的程序,从选项中选择出正确的输出结果:int k,j,s;for(k=2;k<;6;k++,k++){s=1;for(j=k;j<;6;j++)s+=j;}printf("%d\n",s); A: 9 B: 1 C: 11 D: 10
读下面的程序,从选项中选择出正确的输出结果:int k,j,s;for(k=2;k<;6;k++,k++){s=1;for(j=k;j<;6;j++)s+=j;}printf("%d\n",s); A: 9 B: 1 C: 11 D: 10
将字符串中的数字字符删除后输出。 #include "stdio.h" void delnum(char s[]) { int i,j; for(i=0,j=0;【1】;i++) if(s[i]<'0' 【2】 s[i]>'9') { s[j]=s[i]; j++; } 【3】; } main() { char item[50]; gets(item); 【4】; printf("%s ",item); }
将字符串中的数字字符删除后输出。 #include "stdio.h" void delnum(char s[]) { int i,j; for(i=0,j=0;【1】;i++) if(s[i]<'0' 【2】 s[i]>'9') { s[j]=s[i]; j++; } 【3】; } main() { char item[50]; gets(item); 【4】; printf("%s ",item); }
下列程序中 s = s + j 语句共执行了______次。 Dim s As Integer Dim i As Integer, j As Integer For i = 1 To 10 Step 2 For j = 1 To 5 Step 2 s = s + j Next j Next i Print s
下列程序中 s = s + j 语句共执行了______次。 Dim s As Integer Dim i As Integer, j As Integer For i = 1 To 10 Step 2 For j = 1 To 5 Step 2 s = s + j Next j Next i Print s
有以下程序段:int k,j,s;for(k=2;k<6;k++,k++){ s=1; for(j=k;j<6;j++) s+=j;}程序段的输出结果是( ) A: 11 B: 9 C: 1 D: 10
有以下程序段:int k,j,s;for(k=2;k<6;k++,k++){ s=1; for(j=k;j<6;j++) s+=j;}程序段的输出结果是( ) A: 11 B: 9 C: 1 D: 10
听力-J=Jane (Waitress ) S=Stephen Nobel (Guest) J: May I take your order, sir? S: Yes, please. I would like to 1 with a chef’s salad. J: The chef’s salad for 2 . And what would you like to have for the 3 4 ? S: I’ll have 5 6 . J: How do you like your steak done? S: 7 , please. J: What would you like to go with your steak? S: 8 and 9 . J: Potatoes? S: Yes, 10 . J: How about the dessert, sir? S: No dessert. Give me a cup of coffee. J : Yes, sir.
听力-J=Jane (Waitress ) S=Stephen Nobel (Guest) J: May I take your order, sir? S: Yes, please. I would like to 1 with a chef’s salad. J: The chef’s salad for 2 . And what would you like to have for the 3 4 ? S: I’ll have 5 6 . J: How do you like your steak done? S: 7 , please. J: What would you like to go with your steak? S: 8 and 9 . J: Potatoes? S: Yes, 10 . J: How about the dessert, sir? S: No dessert. Give me a cup of coffee. J : Yes, sir.
打印九九乘法表,要求格式为: 1*1=1 1*2=2 2*2=4 1*3=3 2*3=6 3*3=9 1*9=9 2*9=18 3*9=27 4*9=36 5*9=45 6*9=54 7*9=63 8*9=72 9*9=81 程序填空: #include void main() { int i,j; for(i=1; ;i++) { for(j=1; ;j++) printf("%d*%d=%d\t", ); ; } }
打印九九乘法表,要求格式为: 1*1=1 1*2=2 2*2=4 1*3=3 2*3=6 3*3=9 1*9=9 2*9=18 3*9=27 4*9=36 5*9=45 6*9=54 7*9=63 8*9=72 9*9=81 程序填空: #include void main() { int i,j; for(i=1; ;i++) { for(j=1; ;j++) printf("%d*%d=%d\t", ); ; } }