网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
判断题
short shortValue=220; byte byteValue=shortValue。
A
对
B
错
参考答案
参考解析
解析:
暂无解析
更多 “判断题short shortValue=220; byte byteValue=shortValue。A 对B 错” 相关考题
考题
执行下列程序段之后,输出的结果是( )。public class Test{ public static void main(String[ ] args) { byte a = 2; short b = 3; long c = 4; c=a%b*4%b; System.out.println(c) ; } }A.2B.1C.-1D.-2
考题
Java语言中数值数据的类型能自动转换,按照从左到右的转换次序为()。A.byte→int→short→long→float→doubleB.byte→short→int→long→float→doubleC.byte→short→int→float→long→doubleD.short→byte→int→long→float→double
考题
自动类型转换是按优先关系从低级数据转换成高级数据,规定的优先次序是( )。A.byte, short, char→int→long→float→doubleB.float→int→long→byte, short, char→doubleC.int→long→float→double→byte, short, charD.double→int→float→long→byte, short, char
考题
自动类型转换规定的优先次序是( )。A.short,byte,char→long→int→float→doubleB.short,byte,char→int→long―float→doubleC.byte,short,char→long→int→float→doubleD.byte,short,char→int→long→float→double
考题
基本数据类型精度从低到高排列正确的是()A.byte short int float doubleB.byte short int double floatC. short byte int float doubleD. short byte int double float
考题
以下代码中变量result的可能类型有哪些?byte b = 11;short s = 13;result = b * ++s;
A.byte, short, int, long, float, doubleB.boolean, byte, short, char, int, long, float, doubleC.byte, short, char, int, long, float, doubleD.byte, short, charE.int, long, float, double
考题
struct w{ char low;char high;};union u{ struct w byte;short word;}uw;main( ){ int result;uw.word=0x1234;printf(“word value:%04x\n”,uw.word);printf(“high byte:%02x\n”,uw.byte.high);printf(“low byte:%02x\n”,uw.byte.low);uw.byte.low=0x74;printf(“word value:%04x\n”,uw.word);result=uw.word+0x2a34;printf(“the result:%04x\n”,result);}
考题
都是VB.NET中的数据类型的选项是()A、Short、Integer、Long、Float、DoubleB、Short、Int、Long、Single、DoubleC、Integer、Long、Single、Double、DecimalD、Boolen、Byte、Bit、Decimal、Date
考题
在C#中下列表达式不正确的是()。A、double a,double b=2,int c=3,a=b+cB、short a,byte b=2,byte c=3,a=b+cC、string a,string b=”1” string c=”2” a=b+cD、bool a,bool b=true,bool c=false a=b==c
考题
Which statements concerning casting and conversion are true?() A、Conversion from int to long does not need a cast.B、Conversion from byte to short does not need a cast.C、Conversion from float to long does not need a cast.D、Conversion from short to char does not need a cast.E、Conversion from boolean to int using a cast is not possible.
考题
Java中整型包括()。A、int,byte,charB、int,short,long,byte,charC、int,short,long,charD、int,short,long,byte
考题
关于数据类型转换下面描述错误的是()A、byte类型数据可以转换为short、int、long类型数据B、long类型数据有可能转换为byte、short、int类型数据C、在语句int i=(int)78.67;中,变量i的值为79D、当两个数据的类型不同一时,必须先进行数据类型的转换,再运算或赋值
考题
1. public class returnIt ( 2. returnType methodA(byte x, double y) ( 3. return (short) x/y * 2; 4. ) 5. ) What is the valid returnType for methodA in line 2?() A、 IntB、 ByteC、 LongD、 ShortE、 FloatF、 Double
考题
1. public class ReturnIt { 2. return Type methodA(byte x, double y) { 3. return (short)x / y * 2; 4. } 5. } What is the narrowest valid returnType for methodA in line2?() A、 intB、 byteC、 longD、 shortE、 floatF、 double
考题
单选题有以下方法的定义,请选择该方法的返回类型()。 ReturnType method(byte x, double y){ return (short)x/y*2;}A
byteB
shortC
intD
double
考题
单选题public class returnIt ( returnType methodA(byte x, double y) ( return (short) x/y * 2; ) ) What is the valid returnType for methodA in line 2?()A
IntB
ByteC
LongD
ShortE
FloatF
Double
考题
多选题Which statements concerning casting and conversion are true?()AConversion from int to long does not need a cast.BConversion from byte to short does not need a cast.CConversion from float to long does not need a cast.DConversion from short to char does not need a cast.EConversion from boolean to int using a cast is not possible.
考题
单选题1. public class ReturnIt { 2. return Type methodA(byte x, double y) { 3. return (short)x / y * 2; 4. } 5. } What is the narrowest valid returnType for methodA in line2?()A
intB
byteC
longD
shortE
floatF
double
考题
单选题计算机存储信息的基本 单位是字节Byte,1KB是()字节。A
210B
220C
230D
21MB
热门标签
最新试卷