|
a****o 发帖数: 686 | 2 a),b)应该都可以写成需要this的形式。
请问什么是 skillport???
多谢。
但是如果b)不是 “in the same object”,则可以取地址&。而不是this。 |
|
c**********e 发帖数: 2007 | 3 The answer is b).
Skillport is a training company. |
|
a****o 发帖数: 686 | 4 【 以下文字转载自 JobHunting 讨论区 】
发信人: careerchange (Stupid), 信区: JobHunting
标 题: C++ Q73: template (skillport)
发信站: BBS 未名空间站 (Mon Oct 11 20:04:18 2010, 美东)
Which of the following statements are true? Multiple choices.
a) Non-template classes can be nested
b) It is possible to nest one class template inside another
c) Class templates cannot be nested
d) Class templates can be nested |
|
a****o 发帖数: 686 | 5 【 以下文字转载自 JobHunting 讨论区 】
发信人: careerchange (Stupid), 信区: JobHunting
标 题: C++ Q70: this pointer (skillport)
发信站: BBS 未名空间站 (Mon Oct 11 20:02:47 2010, 美东)
Which one of the following operations requires explicit use of a this
pointer?
a) Calling a member function that requires a pointer to that object from
another member function in the same object?
b) Calling a global function that requires a pointer to that object from
a member function? |
|
c**********e 发帖数: 2007 | 6 What type of linkage does global variables and functions preceded by the
storage class specifier static have?
a) Internal
b) Intern
c) External
d) Extern |
|
|
c**********e 发帖数: 2007 | 8 You are right. It is a). |
|
c**********e 发帖数: 2007 | 9 Assume that the following are defined in a class as private data members.
Identify the data member that can't be initialized in a class constructor.
a) static char c
b) char *ps
c) char c
d) char c[80] |
|
t*****j 发帖数: 1105 | 10 a
members.
constructor. |
|
c**********e 发帖数: 2007 | 11 a) is right.
It is a training company. |
|
M********5 发帖数: 715 | 12 肯定是a啊,理由是static的只能在class之外初始化 |
|
c**********e 发帖数: 2007 | 13 Any number of which of the following directives can appear between the #if
and #endif directives? Choose an option.
a) #elif
b) #endif
c) #else
d) #if |
|
|
|
|
|
c**********e 发帖数: 2007 | 18 Which one of the following operations requires explicit use of a this
pointer?
a) Calling a member function that requires a pointer to that object from
another member function in the same object?
b) Calling a global function that requires a pointer to that object from
a member function? |
|
c**********e 发帖数: 2007 | 19 When can binary operators be declared as member functions?
a) when the left argument of a binary operator is an object of that class.
b) when the right argument of a binary operator is an object of that class.
c) when both arguments of a binary operator is an object of that class. |
|
|
c**********e 发帖数: 2007 | 21 The answer is a). But why c) is not correct? |
|
M********5 发帖数: 715 | 22 c的限制太宽了
举一个很简单的例子,你定义一个BigInt,你的类应该是允许 BigInt + int的,而不
是只允许BigInt + BigInt的 |
|
c**********e 发帖数: 2007 | 23 What range of functions does a single function template define?
a) Related overloaded functions called function templates
b) Related overloaded functions called template functions
c) Unrelated overloaded functions called template functions
d) Unrelated overloaded functions called function templates |
|
|
c**********e 发帖数: 2007 | 25 The answer is b). I do not know why.
Any progress on your job searching? |
|
c**********e 发帖数: 2007 | 26 Which of the following statements are true? Multiple choices.
a) Non-template classes can be nested
b) It is possible to nest one class template inside another
c) Class templates cannot be nested
d) Class templates can be nested |
|
|
c**********e 发帖数: 2007 | 28 The answer is a) and c). |
|
|
|
k*******d 发帖数: 1340 | 31 b)
这选项读起来还真拗口,不仅考C++,还考阅读了。。 |
|
h*******s 发帖数: 8454 | 32 a是什么意思,怎么回有个member function非要自己的指针呢 |
|