问题 填空题

以下程序中,函数fun的功能是计算x2-2x+6,主函数中将调用fun函数计算:
y1=(x+8)2-2(x+8)+6
y2=sin2(x)-2sin(x)+6
请填空。
double fun(double x)return(x*x-2*x+6);
double x,y1,y2;
printf("Enter x:");scanf("%lf",&x);
y1=fun( [6] );
y2=fun( [7] );
printf("y1=%lf,y2=%lf\n",y1,y2);

答案

参考答案:[6] x+8
[7] sin(x)

解析:[命题目的] 考查考生对函数调用相关知识的了解。
[解题要点] 用x+8代替函数fun(double x)中形式参数 x;用sin(x)代替函数fun(double x)中形式参数x。
[考点链接] 形参与实参。

选择题
单项选择题

College sports in the United States are a huge deal. Almost all major American universities have football, baseball, basketball and hockey programs, and (1) millions of dollars each year to sports. Most of them earn millions (2) as well, in television revenues, sponsorships. They also benefit (3) from the added publicity they get via their teams. Big-name universities (4) each other in the most popular sports. Football games at Michigan regularly (5) crowds of over 90, 000. Basketball’s national collegiate championship game is a TV (6) on a par with any other sporting event in the United States, (7) perhaps the Super Bowl itself. At any given time during fall or winter one can (8) one’s TV set and see the top athletic programs--from schools like Michigan, UCLA, Duke and Stanford-- (9) in front of packed houses and national TV audiences.

The athletes themselves are (10) and provided with sch61arships. College coaches identify (11) teenagers and then go into high schools to (12) the country’s best players to attend their universities. There are strict rules about (13) coaches can recruit--no recruiting calls after 9 p. m. , only one official visit to a campus--but they are often bent and sometimes (14) . Top college football programs (15) scholarships to 20 or 30 players each year, and those student-athletes, when they arrive (16) campus, receive free housing, tuition, meals, books, etc.

In return, the players (17) the program in their sport. Football players at top colleges (18) two hours a day, four days a week from January to April. In summer, it’s back to strength and agility training four days a week until mid-August, when camp (19) and preparation for the opening of the September-to-December season begins (20) During the season, practices last two or three hours a day from Tuesday to Friday. Saturday is game day. Mondays are an officially mandated day of rest.

20()

A. in principle

B. in confidence

C. in name

D. in earnest