试题与答案

以下叙述中正确的是______。A.调用 printf 函数时,必须要有输出项 B

题型:单项选择题

题目:

以下叙述中正确的是______。

A.调用 printf 函数时,必须要有输出项

B.使用 putchar 函数时,必须在之前包含头文件 stdio.h

C.在 C 语言中,整数可以以十二进制、八进制或十六进制的形式输出

D.调用 getchar 函数读入字符时,可以从键盘上输入字符所对应的 ASCII 码

答案:

参考答案:B

解析:在使用标准输入输出库函数(除了 printf 和 scanf)前,必须要用预编译命令“#include”将头文件“stdio.h” 包括到用户源文件中。

试题推荐
题型:完形填空

If you often have a cold, headache or backache, there is something wrong with your health. Eating healthy food  good for our health. .Tofu(豆腐), milk, vegetables are healthy for us.

Tofu is a kind of traditional(传统的)   2  food. We often   3  it in China. Now more and more people   4  other countries think tofu is good for health,  5 . They also like eating it.

Milk is   6  kind of health food. Every day you should   7  one or two glasses of milk. It can   8  us strong.

Vegetables are very important. You should eat   9  them. There are vitamin(维他命) A, B, C, D , E and so on in them.

As we know, it’s important   10  a balanced diet(均衡饮食). We must have the right kinds of food. We should also eat some pork, chicken and beef. We should eat more fruit and vegetables but less meat.

(       )1 A are       B is         C will be    D was

(       )2 A Japanese  B American  C English   D Chinese

(       )3 A eat       B drink      C take     D play

(       )4 A for       B with       C in       D at

(       )5 A too       B also       C well   D either

(       )6 A the other  B other      C another  D others

(       )7 A drinking   B drink     C take     D to take

(       )8 A keep      B make    C keeps    D keeping

(       )9 A a lot       B plenty    C much    D  lots of

(       )10 A making   B to keep    C keeping   D to drink

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