当前位置:七七学习网文档大全求职指南求职笔试面试笔试题目雅虎笔试题目» 正文

雅虎笔试题目

[10-10 21:21:19]   来源:http://www.77xue.com  笔试题目   阅读:8529
概要:5. properties Question 38. (单选)选项中填入以下代码段中(1)处编译无法通过的是:template <class T, int h, int w>class Screen { };template <class T, int h>class Screen<T, h, 80> { };template <class T, int h>class Screen<T*, h, 25> { };template <class T, int w>class Screen<T, 30, w> { };int main(){______(1)________}1. Screen s1;2. Screen s2;3. Screen s3;4. Screen s4;5. Screen s5; Question 39. (单选)以下哪个容器默认分配的是不间断连续空间?1. vector2. l
雅虎笔试题目,标签:驾照笔试题目,腾讯笔试题目,http://www.77xue.com
5. properties
 
Question 38. (单选)
选项中填入以下代码段中(1)处编译无法通过的是:
template <class T, int h, int w>
class Screen { };
template <class T, int h>
class Screen<T, h, 80> { };
template <class T, int h>
class Screen<T*, h, 25> { };
template <class T, int w>
class Screen<T, 30, w> { };
int main()
{
______(1)________
}
1. Screen s1;
2. Screen s2;
3. Screen s3;
4. Screen s4;
5. Screen s5;
 
Question 39. (单选)
以下哪个容器默认分配的是不间断连续空间?
1. vector
2. list
3. deque
4. stack
5. queue
 
Question 40. (单选)
set的底层数据结构是:
1. Red black tree
2. Red white tree
3. Green black tree
4. Green white tree
5. Black white tree
 
Question 41. (多选)
子类不能从父类继承的有:
1. 构造函数
2. 拷贝构造函数
3. 析构函数
4. 友元函数
5. 静态成员函数
 
Question 42. (多选)
面向对象语言的一般特性有:
1. 封装
2. 组合
3. 继承
4. 多态
5. RTTI
 
Question 43. (单选)
下段代码的输出结果是:
#include <iostream>
using namespace std;
int main()
{
char a[] = "abcdef";
char *b = "123456";
cout << sizeof(a) << " "
<< sizeof(a[1]) << " "
<< sizeof(a+1) << " "
<< sizeof(*(a+1)) << " "
<< sizeof(b) << " "
<< sizeof(b[1]) << " "
<< sizeof(b+1) << " "
<< sizeof(*(b+1)) << endl;
}
1. 4 1 4 1 4 1 4 1
2. 7 1 4 1 4 1 4 1
3. 7 1 4 1 7 1 4 1
4. 4 1 5 1 4 1 5 1
5. 7 1 5 1 4 1 5 1
 
Question 44. (单选)
以下选项放入(1)处编译不能通过的是:
class A {
private:
int num;
public:
A(int n):num(n) {}
_______(1)_______

www.77xue.com哦
};
1. const void set(int n) { num = n; }
2. void set(const int n) { num = n; }
3. void set(int const n) { num = n; }
4. void set(int n) const { num = n; }
5. void set(const int& n) { num = n; }
 
Question 45. (多选)
以下选项中代入(1)处编译不能通过的有:
#include <iostream>
using namespace std;
class A {};
class B : public A {};
int main()
{
________(1)________
}
1. pb = const_cast(pa);
2. pb = static_cast(pa);
3. pb = dynamic_cast(pa);
4. pb = reinterpret_cast(pa);
5. pb = (B*)(pa);
Question 46. (单选)
如果石油供应危机导致国际市场油价上涨,那么市场开放的某些国家,如美国,油价也上涨,不管这些国家的石油是全部依赖进口还是全部自产。如果上述有关石油危机的描述为真,那么以下哪项政策如能被市场开放的。国家所采纳,则最有可能减轻国际市场油价意外急剧上涨时对该国经济的长期影响?
1. 保持石油进口量稳定在一定水平。
2. 降低国内产油量。
3. 中断与主要产油国的外交关系。
4. 厉行节约,减少石油消费。
 
Question 47. (单选)
我国多数企业完全缺乏“专利意识”。根据中国专利局最近对500家大中型企业专利工作的一次调查结果表明,在做科研或新产品规划时制定了专利计划的仅有27%。

上一页  [1] [2] [3] [4] [5]  下一页


Tag:笔试题目驾照笔试题目,腾讯笔试题目求职指南 - 求职笔试面试 - 笔试题目

《雅虎笔试题目》相关文章

联系我们 | 网站地图 | 范文大全 | 管理知识 | 教学教育 | 作文大全 | 语句好词
Copyright http://www.77xue.com--(七七学习网) All Right Reserved.
1 2 3 4 5 6 7 8 9 10