要求给r输入数据后计算半径为r的圆面积s。该程序有错误,错误在于( )。 #include "stdio.h " int main() { int r; float PI, s ; PI=3.14; scanf("%d", r); /* 读入半径r */ s=PI*r*r ; printf("s=%f\n, s ") ; return 0; }
A. 程序中出现汉字
B. 2
C. 所编写的scanf语句无法通过编译
D. 1
E. printf语句无法通过编译
F. 3.0
G. scanf语句无法正确输入r的值,printf语句的格式用法上也存在问题 x=50,y=100;”,则表达式10+x/y的值为_________。 10 若int a,b; 已定义, 想为a和b输入整型数据,以下五条语句中正确的有______A__条。( 第一条:scanf("%d%d", a,b); 第二条: scanf("%d%d, &a,&b“); 第三条:scanf("%d,%d”, &a,&b); 第四条: scanf("%d”, &a,&b); 第五条: scanf("%d%d”, &a,&b);
H. 4.0
查看答案
以下程序的输出结果是______ 。 fun(int x, int y) { int t; t=x;x=y;y=t; } main______ {int a=3,b=5; fun(a,b); printf("%d%d",a,b); }
以下程序是对用户输入的字母进行大小写转换。下划线1处和下划线2处填写内容应该分别是(______ )和(______ )。 #include "stdio.h" main() {char ch;printf("input a letter:\n"); scanf("%c",&ch); if (ch>='A'__1__ch<='Z') ch=ch+32; else if (ch>=97__2__ch<=97+25) ch=ch-32; printf(" the converted letter is: %c\n",ch); }
1&2 What TWO advantages does the speakers say Rexford University has for the students he is speaking to?
A. higher than average results examinations
B. good transport links with central London
C. near London Airport
D. special government funding
E. good links with local industry
contact accommodation agencies for students. C. ensure that students have suitable accommodation. The second time you listen, answer questions 5-9. Complete the summary so it best reflects the ideas expressed by the speaker. In each case, write down one word from the recording. Er… I’d like to say at this point that you shouldn’t worry if this process doesn’t work all that quickly-I mean occasionally there are postal problems, but most often the hold-up is caused by (5)( )-the people you give as referees, shall we say, take their time to reply. Anyway, it is absolutely normal for this process to take three to
A. do in this period is keep in touch with you and reassure you that things are moving along. One of the ways we’ve devised to help you decide about applying as well as later when you’ve been accepted….hopefully….is to put you in contact with, if possible, a student from your own (6)( )who is at present studying with us. What you can do is phone them up-we will, of course, liaise between you- and discuss your concerns with them. That way you can get an objective opinion of what you can expect if you come to live and study at Rexford-not only the academic (7)( ) but important details like what the leisure facilities are like and whether the English (8) ( ) and (9)( ) are really as awful as everybody says!