问题 单项选择题

设有定义:long x= -123456L;,则以下能够正确输出变量x值的语句是( )。

A.printf("x=%d\n",x);

B.printf("x=%1d\n",x);

C.printf("x=%8dL\n",x);

D.printf("x=%LD\n",x);

答案

参考答案:B

解析:在语言环境下,输出long型数时,在%和d之间必须加1(L的小写);输出double型数时,在% 和f(e)之间也必须加1。

完形填空

根据短文内容,从短文后的选项中选出能填入空白处的最佳选项,并在答题卡上将该选项的字母标号涂黑。选项中有两项为多余选项。

Easy ways to get healthy

I always hate the first few weeks of the new year, mostly because I-m sick to death of people in commercials who are all. "Let's diet !  It's a new year! "

You can always choose to switch it up! 小题1:Here are some simple ways to get your healthy on all year around.

Switch out bad habits for good ones. 小题2:Do something as simple as swapping nighttime cookies for nighttime vitamins.

Catch some sleep. One of the most important things we can do for our minds and bodies is to make sure. we're getting enough sleep on a regular schedule. 小题3:

Feed your mind. Keep your mind flexible and smart. Do crosswords, sudoku(数独). Start a new hobby, read a book about something you don't understand-anything that challenges you to think differently and exercise that brain of yours.

小题4:I'm not suggesting you take on a brand new fitness quest, but take the stairs, park farther away, and find a hobby you enjoy that allows you to be active..

Get organized. I'm not saying a whole repair of your entire world; start small. Organize a kitchen  cabinet.  Purge (清除 )yourself of stuff you  don't need.

Get rid of the mess. That means your mind is included too!  Make lists. Get a calendar and mark down important days. Clear your mind and your home. 小题5:

Smile. Overlook some of the bad things that are going on in your life. and focus on the good. There are positives in nearly every situation, even if it doesn't feel like it. Staying positive can help in nearly every aspect of your life!

A.Change your activity up.

B.Try exercising your brain too.

C.You'll find it improves your mood.

D.You are the one to improve yourself. E. lt’s time to take charge of your health!

F. Sounds boring, I know, but trust me --- sleep is amazing for you.

G. Start small, and don't plan to change your entire life in a week.

判断题