试题与答案

以下程序的输出结果是 。 # define MCNA(m)2*m # def

题型:填空题

题目:

以下程序的输出结果是
# define MCNA(m)2*m
# define MCNB(n, m)2*MCRA(n)+m
# define f(x)(x*x)
main()
int i=2, j=3;
printf("% d\\n", MCRB(j, MCRA(i)));

答案:

参考答案:P

解析: 本题定义了两个宏MCRA(m)和MCRB(n, m),展开宏MCRB(n, m),得到:MCRB(j, MCRA(i)=2*MCRA(j)+MCRA(i)=2×2×j+2×i=4×3+2×2=12+4=16,因此printf函数的输出结果为16。

试题推荐
题型:填空题

Happy 75th Birthday, Social Security


1. On its 75th anniversary Social Security is once again under attack and so are its defenders. Those who would axe benefits are spreading myths designed to make you think there is a looming crisis. Well, it is just not true. The stark reality is that it will be several decades before the program encounters any financial problems. The program’s trust fund will have a $4.3 trillion surplus by 2023, and can pay all its obligations for decades to come. And strengthening Social Security is easy—making the very rich pay their fair share by lifting the cap on contributions by the wealthy would allow the program to pay all its obligations indefinitely.
2. Social Security was a centerpiece of FDR(Franklin Delano Roosevelt)’s New Deal reforms that helped this country recover from the Great Depression. These programs provided Americans a measure of dignity and hope and lasting security against the vicissitudes of the market and life. FDR therefore accomplished what the venerable New Deal historian David Kennedy says is the challenge now facing President Obama—a rescue from the current economic crisis which will also make us "more resilient to face those future crises that inevitably await us."
3. This anniversary is also a reminder of how major social reforms in this country have come about—in fits and starts. As former Clinton adviser Paul Begala observed in a Washington Post op-ed, "No self-respecting liberal today would support Franklin Roosevelt’s original Social Security Act... If that version of Social Security were introduced today, progressives like me would call it cramped, parsimonious, mean-spirited and even racist. Perhaps it was all those things. But it was also a start. And for 74 years we have built on that start."
4. Indeed when Social Security was first passed it left out African Americans and migrant workers. It was an imperfect piece of legislation but one that progressives built on to create the program we know today—a program like Medicare—that people feel an emotional connection to and will fight to protect. A new campaign from MoveOn and Campaign for America’s Future will tap into that energy, enlisting candidates to pledge their support to Social Security this election season—opposing any cuts in benefits, including raising the retirement age. And these candidates would be wise to pay attention: A just-released poll shows that 65% of voters reject raising the retirement age to 70. And a separate AARP (American Association of Retired Persons) poll shows the vast majority oppose cutting Social Security to reduce the deficit, and 50% of non-retired adults are willing to pay more now in payroll taxes to ensure Social Security will be there when they retire.
5. Progressives can also mark this anniversary by not only rededicating themselves to defending Social Security, but also going on the offensive to expand and improve our social security system to provide economic security for everyone.

Paragraph 5

查看答案
题型:单项选择题

下列有关PenTool(钢笔工具)的描述不正确的是:()

A、使用钢笔工具绘制直线路径时,单击放置了起始锚点后,需要拖拽鼠标,拉出方向线后,再确定下一个锚点

B、选中工具箱中的钢笔工具,将光标移到页面上,钢笔工具右下角显示“X”符号,表示将开始绘制一条新路径

C、钢笔工具绘制出的曲线,曲线上锚点的方向线和方向点的位置确定了曲线段的形状

D、在使用钢笔工具绘制直线的过程中,按住Shift键,可以得到0度或45度的整数倍方向的直线

查看答案
微信公众账号搜索答案