在C程序中,设一表达式中包含有int,long, unsigned和char类型的变量和数据,则表达式最后的运算结果类型是()。
A.long
B.int
C.char
D.unsigned
第1题:
二元算术运算表达式的两个操作数全是short类型的数据,则表达式的结果应该是 ( )类型。
A.short
B.int
C.byte
D.long
第2题:
若变量a是String类型的数据,那么表达式(a+a)的类型是( )。
A.char
B.String
C.int
D.long
第3题:
设变量a是int型,f是float型,i是double型,则表达式10+'a'+i*f的值的数据类型为( )。
A.int
B.float
C.double
D.不确定
第4题:
设变量a是int型,f是double型,i是float型,则表达式10+'a'+i * f值的数据类型是
A.int
B.float
C.double
D.不确定
第5题:
Java语言中数据类型之间的自动类型转换是由优先关系从低级数据类型转换成高级数据类型,下面选项中自动类型转换优先级由低到高排列正确的是
A.char→long→int→double→float
B.char→int→long→double→float
C.char→int→long→float→double
D.char→int→float→double→long
第6题:
switch(c) 语句中c可以是int, long, char, float, unsigned int 类型。( )
第7题:
设x,y和z都是int型变量,且x=3,y=4,z=5,则下面表达式中,值为0的表达式是( )。
A.
B.
C.
D.
第8题:
有如下定义:int a=1;byte b=2;则表达式a+b的数据类型为()。
A.int
B.byte
C.char
D.long
第9题:
switch(表达式)语句中的“表达式”,允许的类型是()。
第10题:
设x为float型变量,y为double型变量,a为int型变量,b为long型变量, c为char型变量,则表达式x+y*a/x+b/y+c的值为()类型。
第11题:
在C程序中,设一表达式中包含有int,long,char和unsigned类型的变量和数据,这四种类型数据的转换规则是()。
第12题:
int
long
double
char
第13题:
下列各组类型声明符中,含义相同的一组是
A.unsigned long int和long
B.signed short int和short
C.unsigned short和short
D.short int和int
第14题:
A.Float
B.char
C.int
D.double
第15题:
设变量a是 int 型,f是 double 型,i是 float 型,则表达式10+'a'+i*f值的数据类型
A.int
B.float
C.double
D.不确定
第16题:
在C语言系统中,假设int类型数据占两个字节,则double、long、unsigned int、char类型数据所占字节数分别为( )。
A.8,2,4,1
B.2,8,4,1
C.4,2,8,1
D.8,4,2,1
第17题:
设变量a是int型,f是int型,i是double型,则表达式10+a+i*f值的数据类型为A.int B.float C.double D.不确定
第18题:
设变量a是int型,f是float型,i是double型,则表达式10+′a′+i*f值的数据类型为A.int B.float C.double D.不确定
第19题:
设有以下变量定义,并已赋确定的值: char w; int x; float y; double z; 则表达式:w*x+z-y所求得的数据类型为( )。
A.char
B.int
C.float
D.double
第20题:
Windows程序中,用于表示通用字符的数据类型是()。
第21题:
在Java语言中,已知a为int型,b为double型,c为float型,d为char型,则表达式a+bc-d/a的结果类型为()。
第22题:
设a是char型变量,其值字符为’1’,则把其值变成整数1的表达式是()。
第23题:
关于数据类型转换下面描述错误的是()
第24题:
int→unsigned→long→char
char→int→long→unsigned
char→int→unsigned→long
int→char→unsigned→long