1、Fill the blanks inside class definition
class Test {
public:
____ int a;
____ int b;
public:
Test::Test(int _a, int _b) : a(_a) {
b = _b;
}
};
int Test::b;
int _tmain(int argc, __TCHAR *argv[]) {
Test t1(0, 0), t2(1, 1);
t1.b = 10;
t2.b = 20;
printf(“%u %u %u %u”, t1.a, t1.b, t2.a, t2.b);
}
Running result: 0 20 1 20
A.static/const const/static
B.const static/static
C.–/static
D.None of the above
参考答案:C
2、平面内有11个点,由它们连成48条不同的直线,由这些点可连成多少个三角形
A.158
B.160
C.162
D.165
参考答案:B
3、对于JVM内存配置参数:
-Xmx10240m -Xms10240m -Xmn5120m -XXSurvivorRatio=3,其小内存值和Survivor区总大小分别是
A.5120m,1024m
B.5120m,2048m
C.10240m,1024m
D.10240m,2048m
参考答案:D
4、[多选]linux 2.6.* 内核默认支持的文件系统有哪些
A.ext3
B.ext2
C.ext4
D.xfs
参考答案:ABCD
5、若一序列进栈顺序为e1,e2,e3,e4,e5,问存在多少种可能的出栈序列
A.41
B.42
C.43
D.44
参考答案:B
6、用ls –al 命令列出下面的文件列表,哪个文件是符号连接文件
A.-rw-rw-rw- 2 hel-s users 56 Sep 09 11:05 hello
B.-rwxrwxrwx 2 hel-s users 56 Sep 09 11:05 goodbye
C.drwxr--r-- 1 hel users 1024 Sep 10 08:10 zhang
D.lrwxr--r-- 1 hel users 2024 Sep 12 08:12 cheng > peng.yan1
参考答案:D
7、设 m 和 n 都是 int 类型,以下 for 循环语句说法正确的是
for(m=0,n=-1;n=0;m++,n++)
n++;
A.循环体一次也不执行
B.循环体执行一次
C.是无限循环
D.有限次循环
参考答案:A
8、struct Date
{
char a;
int b;
int64_t c;
char d;
};
Date data[2][10];
在32位系统上,如果Data的地址是x,那么data[1][5].c的地址是
A.X+195
B.X+365
C.X+368
D.X+215
参考答案:C