试题通
试题通
APP下载
首页
>
财会金融
>
c语言冲就完事了家人们
试题通
搜索
c语言冲就完事了家人们
题目内容
(
单选题
)
4.表达式 ( )( )9/2)-9%2的值是______。

A、  5

B、  4

C、  0

D、  3

答案:D

试题通
c语言冲就完事了家人们
试题通
23.下列程序输出的结果为______。
#include
#define M( ) x*(x+1)
void main( )
{
int a=2,b=3;
printf(
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-fb40-c044-ce3414c8e900.html
点击查看题目
19.已知一个程序如下:
#include
int a;
void main()
{
int b=2,c=5;
a=b*c;
printf( );
}
下面说法正确的______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-9d80-c044-ce3414c8e901.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
点击查看题目
4.设有整型变量x,y,下列选项中,与表达式x*y/5值相同的表达式是______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-2c38-c044-ce3414c8e900.html
点击查看题目
23.设有预处理命令
#define d 2
和定义
int a=10;
long b=20;
char c='a';
则下列语句中错误的是_______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-4f60-c044-ce3414c8e900.html
点击查看题目
10.执行以下程序段后,输出结果是______。
int x=3,y=10;
if (x=1) y=x;
y=y+1;
printf( );
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-83f8-c044-ce3414c8e902.html
点击查看题目
14.执行以下程序段后,输出的结果是______。
int i,s=0;
for(i=0;i<10;i++)
if(i%2==0)
continue;
else
s=s+i;
printf( );
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-e7b8-c044-ce3414c8e900.html
点击查看题目
9.以下程序段输出结果是______。
int x=0x41;
printf("%c",x+1);
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fa-da30-c044-ce3414c8e900.html
点击查看题目
2.以下关于常量的说法中正确的是______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fa-ca90-c044-ce3414c8e900.html
点击查看题目
13.设有定义:int i=0,s=0;,则循环语句while(s<20) {i++; s+=i;}中循环体执行的次数是______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-39c0-c044-ce3414c8e900.html
点击查看题目
首页
>
财会金融
>
c语言冲就完事了家人们
题目内容
(
单选题
)
手机预览
试题通
c语言冲就完事了家人们

4.表达式 ( )( )9/2)-9%2的值是______。

A、  5

B、  4

C、  0

D、  3

答案:D

试题通
试题通
c语言冲就完事了家人们
相关题目
23.下列程序输出的结果为______。
#include
#define M( ) x*(x+1)
void main( )
{
int a=2,b=3;
printf(

A.   17

B.   20

C.   25

D.   30

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-fb40-c044-ce3414c8e900.html
点击查看答案
19.已知一个程序如下:
#include
int a;
void main()
{
int b=2,c=5;
a=b*c;
printf( );
}
下面说法正确的______。

A.   a是局部变量

B.   c是全局变量

C.   b是全局变量

D.   a是全局变量

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-9d80-c044-ce3414c8e901.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
点击查看答案
4.设有整型变量x,y,下列选项中,与表达式x*y/5值相同的表达式是______。

A.   x/5*y

B.   (x*y)/5

C.   (x/5)*(y/5)

D.   x*(y/5)

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-2c38-c044-ce3414c8e900.html
点击查看答案
23.设有预处理命令
#define d 2
和定义
int a=10;
long b=20;
char c='a';
则下列语句中错误的是_______。

A.   a++;

B.   b++;

C.   c++;

D.   d++;

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-4f60-c044-ce3414c8e900.html
点击查看答案
10.执行以下程序段后,输出结果是______。
int x=3,y=10;
if (x=1) y=x;
y=y+1;
printf( );

A.   3,11

B.   3,10

C.   3,4

D.   1,2

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-83f8-c044-ce3414c8e902.html
点击查看答案
14.执行以下程序段后,输出的结果是______。
int i,s=0;
for(i=0;i<10;i++)
if(i%2==0)
continue;
else
s=s+i;
printf( );

A.   0

B.   10

C.   20

D.   25

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-e7b8-c044-ce3414c8e900.html
点击查看答案
9.以下程序段输出结果是______。
int x=0x41;
printf("%c",x+1);

A.   A

B.   a

C.   B

D.   c

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fa-da30-c044-ce3414c8e900.html
点击查看答案
2.以下关于常量的说法中正确的是______。

A.   0101是二进制形式的常量

B.   0101是八进制形式的常量

C.   0101是十六进制形式的常量

D.   0101是十进制形式的常量

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fa-ca90-c044-ce3414c8e900.html
点击查看答案
13.设有定义:int i=0,s=0;,则循环语句while(s<20) {i++; s+=i;}中循环体执行的次数是______。

A.   4

B.   5

C.   6

D.   7

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