float:left的时候元素是顺序向左排列的,那float:right的时候呢()。
第1题:
下面各被调用函数首部书写正确的是( )
A.void sub(float x;float y);
B.void sub(float x,y)
C.void sub(float x,float y)
D.void sub(float x,float y);
第2题:
下列程序的执行结果是______。
include<iostream.h>
float temp;
float&fn2(float r)
{
temp=r*r*3.14;
return temp;
}
void main( )
{
float a=fn2(5.0);
float&b=fn2(5.0);
b=20;
cout<<temp<<endl;
}
第3题:
下列程序的招待结果是【 】。
include <iostream. h>
float temp;
float & fn2(float r)
{
temp=r* r* 3.14;
return temp;
}
void main( )
{
float a=fn2(5.0);
float& b=fn2(5.0)
b=20;
cout<<temp<<end1;
}
第4题:
下列函数的定义,正确的是( )。
A.float sum(x,y) {float x,y;……}
B.float sum(float x,float y); {……}
C.float sum(float x,float y) {……}
D.float sum(floatx,floaty) {……}
第5题:
C语言中各种基本数据类型的存储空间长度排列为( )
A.char≤long≤int≤float≤double
B.double≤float≤long≤int≤char
C.char≤int≤long≤float≤double
D.float≤int≤long≤char≤double
第6题:
类Test定义如下,将下列______方法插入③行处是不合法的。 ( )①public class Test{②public float Method(float a,float b){}③④}
A.public float Method(float a,float b,float c){}
B.public float Method(float c,float d){}
C.public int Method(int a,int b){}
D.private float Method(int a,int b,int c){}
第7题:
下列哪条CSS样式规则是不正确的()。
A.img{float:left;margin:20px;}
B.img{float:right;width:120px;height:80px;}
C.img{float:right;right:30;}
D.img{float:left;margin-bottom:2em;}
第8题:
A.float f[][] = new float[6][6];
B.float []f[] = new float[6][6];
C.float f[][] = new float[][6];
D.float [][]f = new float[6][6];
第9题:
类Test定义如下,将下列哪个方法插入③行处是不合法的( )?
① public class Test{
② public float Method(float a,float B) { }
③ ______
④ }
A.public float Method(float a,float b,float C) { }
B.public float Method(float c,float d){ }
C.public int Method(int a,int B) { }private float Method(int a,int b,int C) { }
D.private float Method(int a,int b,int C) { }
第10题:
基本数据类型精度从低到高排列正确的是()
A.byte short int float double
B.byte short int double float
C. short byte int float double
D. short byte int double float