试题通
试题通
APP下载
首页
>
财会金融
>
c语言冲就完事了家人们
试题通
搜索
c语言冲就完事了家人们
题目内容
(
单选题
)
12.若i为整型变量,则下列循环体执行次数是______。
for(i=2;i==0;) printf( );

A、  2次

B、  1次

C、  0次

D、  无限次

答案:C

试题通
c语言冲就完事了家人们
试题通
5.设有int x=7,y;,执行语句y=( )+3;后,变量x,y的值是______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-7c28-c044-ce3414c8e901.html
点击查看题目
1.计算机能直接执行的程序是_______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-2250-c044-ce3414c8e900.html
点击查看题目
21.设有定义:float a=3;,则对实型指针变量p的定义和初始化正确的是______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-4b78-c044-ce3414c8e900.html
点击查看题目
3.以下叙述中正确的是______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-7840-c044-ce3414c8e901.html
点击查看题目
10.下列程序段输出的结果是______。
int a=5,b=4,c=3;
if( ) a=b+c,b=2*c;
else a=b-c,b=3*c;a=b+c;
printf( );
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-37f0-c044-ce3414c8e900.html
点击查看题目
10.执行以下程序段后,输出结果是______。
int x1=1,x2=2,t=1;
if (x1=x2) t=10;
printf("%d,%d\n",x1,t);
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-31f0-c044-ce3414c8e901.html
点击查看题目
18.下列函数值的类型是______。
fun( )
{
int y;
y=3*x-1;
return y;
}
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-43a8-c044-ce3414c8e902.html
点击查看题目
13.执行如下程序段后,输出结果是_______。
int i=0,a=1;
while( )
{ i++; a=a+2; }
printf( );
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fa-e200-c044-ce3414c8e900.html
点击查看题目
11.设有int a=1,b=2,c;,则执行c=( );后c的值为______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-87e0-c044-ce3414c8e900.html
点击查看题目
3.下列定义变量的语句中错误的是______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-d048-c044-ce3414c8e902.html
点击查看题目
首页
>
财会金融
>
c语言冲就完事了家人们
题目内容
(
单选题
)
手机预览
试题通
c语言冲就完事了家人们

12.若i为整型变量,则下列循环体执行次数是______。
for(i=2;i==0;) printf( );

A、  2次

B、  1次

C、  0次

D、  无限次

答案:C

试题通
试题通
c语言冲就完事了家人们
相关题目
5.设有int x=7,y;,执行语句y=( )+3;后,变量x,y的值是______。

A.   7,10

B.   8,10

C.   7,11

D.   8,11

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-7c28-c044-ce3414c8e901.html
点击查看答案
1.计算机能直接执行的程序是_______。

A.   可执行程序

B.   目标程序

C.   源程序

D.   汇编程序

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-2250-c044-ce3414c8e900.html
点击查看答案
21.设有定义:float a=3;,则对实型指针变量p的定义和初始化正确的是______。

A.   float *p=a;

B.   float p=a;

C.   float *p=&a;

D.   float *p=*a;

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-4b78-c044-ce3414c8e900.html
点击查看答案
3.以下叙述中正确的是______。

A.   C语言中用户自定义标识符必须“见名知意”,如果随意定义,则会出编译错误

B.   C语言的关键字不能作变量名,但可以作为函数名

C.   C语言标识符的长度不能任意长,最多只能包含16个字符

D.   C语言标识符是由字母、数字和下划线组成,且首字符不能是数字

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-7840-c044-ce3414c8e901.html
点击查看答案
10.下列程序段输出的结果是______。
int a=5,b=4,c=3;
if( ) a=b+c,b=2*c;
else a=b-c,b=3*c;a=b+c;
printf( );

A.   9 6

B.   7 3

C.   1 9

D.   4 2

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-37f0-c044-ce3414c8e900.html
点击查看答案
10.执行以下程序段后,输出结果是______。
int x1=1,x2=2,t=1;
if (x1=x2) t=10;
printf("%d,%d\n",x1,t);

A.   1,1

B.   1,10

C.   2,10

D.   2,1

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-31f0-c044-ce3414c8e901.html
点击查看答案
18.下列函数值的类型是______。
fun( )
{
int y;
y=3*x-1;
return y;
}

A.   int

B.   float

C.   void

D.   double

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-43a8-c044-ce3414c8e902.html
点击查看答案
13.执行如下程序段后,输出结果是_______。
int i=0,a=1;
while( )
{ i++; a=a+2; }
printf( );

A.   0,1

B.   1,3

C.   1,0

D.   3,1

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fa-e200-c044-ce3414c8e900.html
点击查看答案
11.设有int a=1,b=2,c;,则执行c=( );后c的值为______。

A.   1

B.   2

C.   3

D.   4

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-87e0-c044-ce3414c8e900.html
点击查看答案
3.下列定义变量的语句中错误的是______。

A.   int _abc;

B.   double int_;

C.   char For;

D.   float US%;

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-d048-c044-ce3414c8e902.html
点击查看答案
试题通小程序
试题通app下载