wool王 发表于 2006-1-6 20:21

[转贴]某公司笔试题(.net/java)

A) In VB.Net, what is the method that is available without creating the instance of the class
• 1. Instance method
• 2. overloading method
• 3. Shared method
• 4. class methods
Ans: ______
B) In VB.Net, what is finalise method and what are the role of it?
• 1. Release object memory
• 2. Release memory
• 3. it calls when page is closed
Ans: _____
C) In VB.Net, passing an array using ByRef or ByVal makes a difference if you use a ReDim statement inside the called procedure.Which array size will be affected ?
• 1. an array passed by ByVal
• 2. an array passed by ByRef
• 3. both affected
• 4. none affected
Ans: _____
D) In VB.Net, ParamArray arguments are passed by in a function?
• 1. Always by value
• 2. Always by reference
• 3. both
• 4. none
Ans: _____
E) How are parameters referenced by default in VB.Net?
• 1. ByObject
• 2. ByVal
• 3. ByRef
• 4. None
Ans: _____
F) Does ISDBNull() exsist in VB.Net?
Select Answer:
• 1. True
• 2. False
Ans: _____
G) In VB.Net, constructor is always
• 1. sub new()
• 2. constructor()
• 3. base class()
• 4. the class name itself
Ans: _____
H) In VB.NET, what is used to join strings
• 1. Plus sign
• 2. Ampersand
• 3. both

Ans: _____

I) In Java, which statements ARE true?
1. When a thread sleeps, its locks are released
2. If a class has synchronized code, multiple threads can still access the non synchronized code.
3. Methods and variables can be protected from concurrent access problems by marking them with the synchronized keyword.
4. When a thread invokes wait(), its locks are released.
5. A static method cannot be synchronized

Ans: _____

J) Which TWO combinations below consist (and only) the necessary classes in package java.io to read a single line of Traditional Chinese text via TCP connections?
I. Socket
II. TCPSocket
III. PipedInputStream
IV. BufferedInputStream
V. BufferedReader
VI. InputStreamReader
VII. LineNumberReader
VIII. StringReader

1.        (I) + (III) + (VI) + (VII)
2.        (I) + (IV) + (VI) + (V)
3.        (II) + (VI) + (VII)
4.        (I) + (IV) + (VI) + (VII)
5.        (I) + (VI) + (VIII)

Ans: _____

wool王 发表于 2006-1-6 20:22

一间香港的做金融软件的公司,大家研究下答案。

wool王 发表于 2006-1-6 20:31

43×1×,×432×

半猜半想,暂时觉得答案如上。(×代表不懂的题目)

严重感觉自己基础不足。。。。。。。。。。。。

powerwind 发表于 2006-1-6 23:17

看过后,觉自己的英文水平还不是太差,编程嘛~~

wool王 发表于 2006-1-7 11:25

楼上的,贴出你的理解。

powerwind 发表于 2006-1-8 00:26

3,2,4,2,2,*,*,2
3,2

wool王 发表于 2006-1-8 00:29

晕。。。全部不同。。。汗。。。继续讨论。。。

wool王 发表于 2006-1-8 00:32

A) In VB.Net, what is the method that is available without creating the instance of the class
• 1. Instance method
• 2. overloading method
• 3. Shared method
• 4. class methods
Ans: ______

这道,VB.net不熟悉,不过个人感觉面向对象语言都差不多吧。。。
不用创建实例就允许调用的方法就是类方法吧?我选4。。。

wool王 发表于 2006-1-8 00:34

B) In VB.Net, what is finalise method and what are the role of it?
• 1. Release object memory
• 2. Release memory
• 3. it calls when page is closed
Ans: _____

我猜这个跟java中的finalize()方法类似吧。。。finalize就是在垃圾收集器工作前执行的方法。。。所以选了3。。。

wool王 发表于 2006-1-8 00:38

C) In VB.Net, passing an array using ByRef or ByVal makes a difference if you use a ReDim statement inside the called procedure.Which array size will be affected ?
• 1. an array passed by ByVal
• 2. an array passed by ByRef
• 3. both affected
• 4. none affected
Ans: _____


这题不懂。。。我知道java就是值传递,VB.NET是什么我就不知了。

[ Last edited by wool王 on 2006-1-7 at 16:39 ]

wool王 发表于 2006-1-8 00:41

D) In VB.Net, ParamArray arguments are passed by in a function?
• 1. Always by value
• 2. Always by reference
• 3. both
• 4. none
Ans: _____

这题不懂,猜的。。。选1

wool王 发表于 2006-1-8 00:47

E) How are parameters referenced by default in VB.Net?
• 1. ByObject
• 2. ByVal
• 3. ByRef
• 4. None
Ans: _____


这题不懂。。。

wool王 发表于 2006-1-8 01:11

F) Does ISDBNull() exsist in VB.Net?
Select Answer:
• 1. True
• 2. False
Ans: _____

这题不懂

wool王 发表于 2006-1-8 01:12

G) In VB.Net, constructor is always
• 1. sub new()
• 2. constructor()
• 3. base class()
• 4. the class name itself
Ans: _____

构造方法是同名吧,,,至少java是。。。我选4

wool王 发表于 2006-1-8 01:15

H) In VB.NET, what is used to join strings
• 1. Plus sign
• 2. Ampersand
• 3. both

Ans: _____

字符串连接,java里字符串连接重载了+号,如果是java就选1。。。
我用过asp,字符串连接是用&,估计面向对象的VB.NET两个都可以吧。。。呵呵。。。

wool王 发表于 2006-1-8 01:16

I) In Java, which statements ARE true?
1. When a thread sleeps, its locks are released
2. If a class has synchronized code, multiple threads can still access the non synchronized code.
3. Methods and variables can be protected from concurrent access problems by marking them with the synchronized keyword.
4. When a thread invokes wait(), its locks are released.
5. A static method cannot be synchronized

Ans: _____

终于是java了,线程方面懂得不多,我选2,感觉2是对的,其他怎么错说不出。。。

wool王 发表于 2006-1-8 01:16

J) Which TWO combinations below consist (and only) the necessary classes in package java.io to read a single line of Traditional Chinese text via TCP connections?
I. Socket
II. TCPSocket
III. PipedInputStream
IV. BufferedInputStream
V. BufferedReader
VI. InputStreamReader
VII. LineNumberReader
VIII. StringReader

1.      (I) + (III) + (VI) + (VII)
2.      (I) + (IV) + (VI) + (V)
3.      (II) + (VI) + (VII)
4.      (I) + (IV) + (VI) + (VII)
5.      (I) + (VI) + (VIII)

Ans: _____


这题完全不懂。。。

powerwind 发表于 2006-1-8 21:13

A) In VB.Net, what is the method that is available without creating the instance of the class
• 1. Instance method
• 2. overloading method
• 3. Shared method
• 4. class methods
Ans: ______3
因为在VB.NET中,Shared method是Static method

B) In VB.Net, what is finalise method and what are the role of it?
• 1. Release object memory
• 2. Release memory
• 3. it calls when page is closed
Ans: _____2

C) In VB.Net, passing an array using ByRef or ByVal makes a difference if you use a ReDim statement inside the called procedure.Which array size will be affected ?
• 1. an array passed by ByVal
• 2. an array passed by ByRef
• 3. both affected
• 4. none affected
Ans: _____仔细想想,是2
D) In VB.Net, ParamArray arguments are passed by in a function?
• 1. Always by value
• 2. Always by reference
• 3. both
• 4. none
Ans: _____2,一猜就是它
E) How are parameters referenced by default in VB.Net?
• 1. ByObject
• 2. ByVal
• 3. ByRef
• 4. None
Ans: _____2,同上
F) Does ISDBNull() exsist in VB.Net?
Select Answer:
• 1. True
• 2. False
Ans: _____这个不知道,五十五十
G) In VB.Net, constructor is always
• 1. sub new()
• 2. constructor()
• 3. base class()
• 4. the class name itself
Ans: _____1,它就是这样,没得解
H) In VB.NET, what is used to join strings
• 1. Plus sign
• 2. Ampersand
• 3. both

Ans: _____2,第1个应该不用了

I) In Java, which statements ARE true?
1. When a thread sleeps, its locks are released
2. If a class has synchronized code, multiple threads can still access the non synchronized code.
3. Methods and variables can be protected from concurrent access problems by marking them with the synchronized keyword.
4. When a thread invokes wait(), its locks are released.
5. A static method cannot be synchronized

Ans: _____

J) Which TWO combinations below consist (and only) the necessary classes in package java.io to read a single line of Traditional Chinese text via TCP connections?
I. Socket
II. TCPSocket
III. PipedInputStream
IV. BufferedInputStream
V. BufferedReader
VI. InputStreamReader
VII. LineNumberReader
VIII. StringReader

1.      (I) + (III) + (VI) + (VII)
2.      (I) + (IV) + (VI) + (V)
3.      (II) + (VI) + (VII)
4.      (I) + (IV) + (VI) + (VII)
5.      (I) + (VI) + (VIII)

Ans: _____

JAVA的这两题对我来说太难了,就算不小心答对了也没意思.

附:为什么我的积分全部不见了,我记得我有100多分的啊?!

powerwind
新丁

UID 5311
精华 0
积分 0
帖子 83
阅读权限 10
注册 2004-11-23
来自 guangdong

wool王 发表于 2006-1-8 21:38

原帖由 powerwind 于 2006/1/8 13:13 发表
A) In VB.Net, what is the method that is available without creating the instance of the class
• 1. Instance method
• 2. overloading method
• 3. Shared method
• 4. class ...


积分应该是因为后院改版的时候整不见的,过段时间调整应该会有回来的,至少数据库没动过。
页: [1]
查看完整版本: [转贴]某公司笔试题(.net/java)