JAVA软件工程师入学测试题

bambooboy 2005-01-17 08:41:44
试题信息 本试题共有 14 道小题,总分 70 分,标准答题时间 20 分钟

全班学生排成一排,从左数和从右数Mike都是第十五名,全班学生有多少人?

A:31; B:25 C:29; D:30






A football team won 6 games and lost 18.What fraction of its games did the team win?

A:1/3; B:1/4; C:2/3; D:3/4;



Select the number that would be next in the series
6.546, 6.659, 6.772, 6.885, 6.998

A:7.111; B:7.10; C:7.011; D:None of these;




A television manufacturer offers a distributor successive discounts of 15 and 10 percent on one of its new color models. The distributor pays $459.00 net for the TV set. What was the original price before any discount?

A:$612.00; B:$600.00; C:580.00; D:473.75;



If you can paint three standard-size rooms in two days, how many similar rooms can you and three of your friends paint in three days?

A:6; B:13.2; C:18; D:54;



If snow is falling at the rate of 11/2 inches per hour, how many inches of snow will fall in X minutes?

A:X/40; B:X/30; C:30X; D:40X;



假设某种语言有三个运算符:==,&,||,其中==的优先级最高,&次之,||最低,给以下表达式加上括号:
varA||varB&varC==varD

A:((varA||varB)&varC)==varD; B:varA||(varB&(varC==varD)); C:(varA||varB)&var(C==varD); D:(varA||varB)&(varC)==varD;



执行以下操作后a的值为多少?
a=a+b
b=a-b
a=a-b

A:a; B:b; C:a-b; D:a+b;



The following function is meant to reverse the numbers in an array of 7 integers, but may have a bug.Where is the error,if any?(Mark it with circle)

Void reverse(int A[7])
{
int IO=0;
int hi;
while (IO<7) //Line 1
{
hi=6-IO; //Line 2
int swap=A[hi]; //Line 3
A[hi]=A[IO]; //Line 4
A[IO]=swap; //Line 5
IO=IO+1; //Line 6
}
}

A:Line 1; B:Line 2; C:Line 3; D:Line 4; E:Line 5; F:Line 6;



What function does the following recursive(递归) subroutine compute,when passed two non-negative values?
int f(int a, int b)
{
if(a equals 0)
return 0;
else
return f(a-1,b)+b;
}

A:Sum: a+b; B:Difference: a-b; C:Exponentiation(求幂): a**b; D:Product: a*b; E:Factorial(阶乘); F:Square root; G:The subroutine diverges (does not return a value);



According to the following code, what is the value of the function’s result?
int t(int a)
{
int s=0;
for (int i=1;i<=a,i++)
{
s=s+1;
}
}
when executing the t(10),what result will you get?

A:20; B:55; C:10; D:25;



What is the negation of the following expression?
0<n AND n<MAX

A:n>=0 AND MAX>=n; B:0>n OR n>MAX; C:n<=0 OR n>=MAX; D:n>0 AND MAX>n; E:0<n OR n<MAX; F:n>=0 OR MAX>=n; G:0<n AND n<MAX;



Choose the best answer:A Pointer …

A:is a single link in a linked list.; B:Is a variable holding the (x,y) coordinates of a point.; C:Is the address of an object.; D:Is a variable holding an IP address; E:Is a variable holding the address of another variable.; F:Is the header section of an operating system block.; G:Separates frames on the runtime stack;



小明比小强大,小红比小明小。下列陈述中哪一句最正确?

A:小红比小强大; B: 小红比小强小 ; C: 小红与小强一样大 ; D: 无法确定小红与小强谁大

...全文
355 13 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
13 条回复
切换为时间正序
请发表友善的回复…
发表回复
bambooboy 2005-01-18
  • 打赏
  • 举报
回复
继续做。。。。
yiong 2005-01-18
  • 打赏
  • 举报
回复
1、C
2、B
3、A
4、B
5、C
6、11X/120
7、B
8、B
9、A
10、D
11、C
12、C
13、E
14、D
xpboy 2005-01-18
  • 打赏
  • 举报
回复
楼主快出来公布答案,关注ing....
ksndyjs 2005-01-18
  • 打赏
  • 举报
回复
好象第二题很多人选错啊。呵呵。应该是6/(6+18)
另外这道题有点问题
According to the following code, what is the value of the function’s result?
int t(int a)
{
int s=0;
for (int i=1;i<=a,i++)
{
s=s+1;
}
}
when executing the t(10),what result will you get?

没有返回啊。所以随便选了那个起码还有点像的。难道有什么蹊跷?
ksndyjs 2005-01-18
  • 打赏
  • 举报
回复
C
B
A
不懂
C
A
B
C
A
D
C
C
E
D
fitLion 2005-01-18
  • 打赏
  • 举报
回复
mark
jzpone 2005-01-17
  • 打赏
  • 举报
回复
呵呵,太多了,没时间看.顶一下先!
Proyang 2005-01-17
  • 打赏
  • 举报
回复
真的??
zbo 2005-01-17
  • 打赏
  • 举报
回复
给题目加个序号。再做一次
1).全班学生排成一排,从左数和从右数Mike都是第十五名,全班学生有多少人?

A:31; B:25 C:29; D:30

C




2)A football team won 6 games and lost 18.What fraction of its games did the team win?

A:1/3; B:1/4; C:2/3; D:3/4;


A
3)Select the number that would be next in the series
6.546, 6.659, 6.772, 6.885, 6.998

A:7.111; B:7.10; C:7.011; D:None of these;

A千分位+3,百分位+1,十分位+1,带进位的。

4)A television manufacturer offers a distributor successive discounts of 15 and 10 percent on one of its new color models. The distributor pays $459.00 net for the TV set. What was the original price before any discount?

A:$612.00; B:$600.00; C:580.00; D:473.75;
B这个没太读懂,不知道是不是意思是先降了15%,又降了10%,最后459买的。


5)If you can paint three standard-size rooms in two days, how many similar rooms can you and three of your friends paint in three days?

A:6; B:13.2; C:18; D:54;

C每人每天刷7.5面.4个人3天是90面,18个房间

6)If snow is falling at the rate of 11/2 inches per hour, how many inches of snow will fall in X minutes?

A:X/40; B:X/30; C:30X; D:40X;
题目中的11/2是1又1/2吗?这样的话结果是A


7)假设某种语言有三个运算符:==,&,||,其中==的优先级最高,&次之,||最低,给以下表达式加上括号:
varA||varB&varC==varD

A:((varA||varB)&varC)==varD; B:varA||(varB&(varC==varD)); C:(varA||varB)&var(C==varD); D:(varA||varB)&(varC)==varD;

B

8)执行以下操作后a的值为多少?
a=a+b
b=a-b
a=a-b

A:a; B:b; C:a-b; D:a+b;
B


9)The following function is meant to reverse the numbers in an array of 7 integers, but may have a bug.Where is the error,if any?(Mark it with circle)

Void reverse(int A[7])
{
int IO=0;
int hi;
while (IO<7) //Line 1
{
hi=6-IO; //Line 2
int swap=A[hi]; //Line 3
A[hi]=A[IO]; //Line 4
A[IO]=swap; //Line 5
IO=IO+1; //Line 6
}
}

A:Line 1; B:Line 2; C:Line 3; D:Line 4; E:Line 5; F:Line 6;
不会


10)What function does the following recursive(递归) subroutine compute,when passed two non-negative values?
int f(int a, int b)
{
if(a equals 0)
return 0;
else
return f(a-1,b)+b;
}

A:Sum: a+b; B:Difference: a-b; C:Exponentiation(求幂): a**b; D:Product: a*b; E:Factorial(阶乘); F:Square root; G:The subroutine diverges (does not return a value);

D


11)According to the following code, what is the value of the function’s result?
int t(int a)
{
int s=0;
for (int i=1;i<=a,i++)
{
s=s+1;
}
}
when executing the t(10),what result will you get?

A:20; B:55; C:10; D:25;

不知道

12)What is the negation of the following expression?
0<n AND n<MAX

A:n>=0 AND MAX>=n; B:0>n OR n>MAX; C:n<=0 OR n>=MAX; D:n>0 AND MAX>n; E:0<n OR n<MAX; F:n>=0 OR MAX>=n; G:0<n AND n<MAX;

从答案猜是F,nagation是不是相反的意思?

13)Choose the best answer:A Pointer …

A:is a single link in a linked list.; B:Is a variable holding the (x,y) coordinates of a point.; C:Is the address of an object.; D:Is a variable holding an IP address; E:Is a variable holding the address of another variable.; F:Is the header section of an operating system block.; G:Separates frames on the runtime stack;

C

14)小明比小强大,小红比小明小。下列陈述中哪一句最正确?

A:小红比小强大; B: 小红比小强小 ; C: 小红与小强一样大 ; D: 无法确定小红与小强谁大
D
基本知识都忘光了。还得看书。
xpboy 2005-01-17
  • 打赏
  • 举报
回复
1C
2
3A
4B
5C
6
7
8B
9A
10C
11C
12C
13
14D

mark,有点挑战性,估计俺错了不少,回去反省
bergkamps 2005-01-17
  • 打赏
  • 举报
回复
1c
2a
3a
4
5c
6
7b
8c
9a
10b
11
12
13 d
14 B
fuxia 2005-01-17
  • 打赏
  • 举报
回复
surrender
zbo 2005-01-17
  • 打赏
  • 举报
回复
1A
2A
3
4
5
6
7
8
9
10
11 B
12 F
13 C
14 B
不行,我20分钟不够用

662

社区成员

发帖
与我相关
我的任务
社区描述
提出问题
其他 技术论坛(原bbs)
社区管理员
  • community_281
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧