有以下程序
main( )
{ int a[4][4]={{1,4,3,2,},{8,6,5,7,},{3,7,2,5,},{4,8,6,1,}},i,k,t;
for(i=0;i<3;i++)
for(k=i+ 1 ;k<4;k++) if(a[i][i]<a[k][k]){t=a[i][i];a[i][i]=a[k][k];a[k][k]=t;}
for(i=0;i<4;i++)printf("%d,",a[0][i]);
}
程序运行后的输出结果是
A)6,2,1,1,
B)6,4,3,2,
C)1,1,2,6,
D)2,3,4,6,
Have you checked the fire sprinklers in your work unit?
A.Yes. But they need good maintaining
B.Yes. They are in good condition
C.No. I can’t find appropriate chance to check.
D.Sure I prefer to check beforehan
有以下程序 #include <stdio.h> main() { int s[12]={1,2,3,4,4,3,2,1,1,1,2,3},c[5]={0},i; for(i=0;i<12;i++) c[s[i]]++; for(i=1;i<5;i++) printf("%d",c[i]); printf("\n"); } 程序的运行结果是
A.1 2 3 4
B.2 3 4 4
C.4 3 3 2
D.1 1 2 3
A、I(1)>I(2)=I(3)>I(4)=I(5)
B、I(1)>I(2)I(4)=I(5)
C、I(1)>I(2)>I(3)
D、I(3)>I(2)I(4)=I(5)
I can't find the key. I must have left it in the car. 翻译
Unit 4 Dont eat in class课题Unit 4第5课时课型新授编号4-5学科英语班级七年级领导签字执笔人使用人使用时间学习目标1、学习谈论家规。 2、学会使用句型:“ I must” , “ I have to” , “ I can /cant”3、能阅读有关谈论规章的文章并完成练习。学习重点、难点能阅读有关谈论规章的文章并完成练习课时安排1课时自主预习翻译1. too many rules _ 2. make your bed _ 3. be noisy_ 4. read a book_ 5. be strict with sb. _ 6. make rules to help us_ 7. 在周末 _ 8. 好运! _展示交流Step 1 Free talkT: When you are unhappy about something, who do you like to talk to? Step 2 Presentation(1) Learn the new words in 2b.(2) Read the letters and underline the rules for Molly. Check the answers.(3) Read the letters again and finish 2c. Check the answers.Step 3 Group workDiscuss the difficulties you found in 2b. Try to understand the letters.Step 4 ConsolidationRead the letters aloud. Step 5 Practice(1) Finish 3a. Check the answers.(2) Finish 1, 2 in Self Check. Check the answers.知识探究I have to keep my hair short. 我不得不留短发。点拨:“keep +sb./sth.+形容词”表示“使某人或者某物保持某种状态”。此句式中的keep是动词,意为“保留,保存,保持”。例如:Too much work keeps me busy and tired.太多的工作让我忙碌而且疲惫。拓展:keep的其他用法1)“keep+形容词”,意为“保持某种状态”。例如:Keep quiet, please!请保持安静!2)“keep sb. doing sth.”表示“让某人继续/不断地做某事”。例如:He kept me waiting for an hour.他让我等了一个小时。巩固提升( )1. Can we speak Chinese? _. A. Yes, you can B. OK, you speak C. No, you dont( )2. _. Your father is sleeping in the room. Oh, sorry. A. Not talk B. Not talking C. No talking ( ) 3. Dont eat _class. A. at B. in C. to 4.Our School Rules!1. We have kind hands and feet and dont fight with others.2. We welcome all visitors. 3. We look after each other.4. We do the very best we can.你还能加上几条?_2
有以下程序: void fun(int a*a,int i,int i) {int t; if(i<j); {t=a[i];a[i]=a[j];a[j]=t; fun(a,++i,--j); } } main() {inta[]={1,2,3,4,5,6},i; fun(a,0,5); for(i=0;i(6;i++) cout<(a[i]; } 执行后输出结果是( )。
A.6 5 4 3 2 1
B.4 3 2 1 5 6
C.4 5 6 1 2 3
D.1 2 3 4 5 6
下列程序的执行结果是______。 class A1 implements Runnable { public void run() { for(iht i = 0; i < 10; i++) { System.out.println("i =" + i); if(i == 3) break; } } } public class ex38 { public static void main(String[] args) { Thread th1 = new Thread(new A1()); th1.start (); } }
A.i=1 i=2 i=3 i=4
B.i=1 i=1 i=1 i=1
C.i=0 i=1 i=2 i=3
D.i=1 i=2 i=3
有以下程序
void fun(intā*a,int i,int i)
{ int t;
if(i<j);
{ t=a[i];a[i]=a[j];a[j]=t;
fun(a,++i,- -j);
}
}
main( )
{ int a[]={1,2,3,4,5,6},i;
fun(a,0,5);
for(i=0;i<6;i++)
cout<<a[i];
}
执行后输出结果是
A.6 5 4 3 2 1
B.4 3 2 1 5 6
C.4 5 6 1 2 3
D.1 2 3 4 5 6
A. 3
B. 4
C. 5
D. 6
E. 语句if(i= 2、编译出错
下列关于for循环的语句,正确的是()