由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - C++ Q 103-105
相关主题
C++ template还有一个C++的考试题,请大家指点一下
请教一个IT题目一个电面
问一个c++问题关于reference vs. pointerBB家电面
C++: Q75 copy constructor 问什么用 const reference?find the first missing positive number
问一个C++ set和unordered_set iterator的问题一些oop的概念
C++ online Test 一题static initialization dependency c++ (转载)
C++ template question也来一道c++的题
问一个constructor的问题有面过knight的吗
相关话题的讨论汇总
话题: function话题: c++话题: objects话题: when
进入JobHunting版参与讨论
1 (共1页)
c**********e
发帖数: 2007
1
C++ Q 103: stream manipulators
Multiple choices
Which options are true of stream manipulators?
a. To use manipulators, you need only to include iostream.h as a header in
your C++ program
b. To use manipulators, you need only to include iomanip.h in your program
c. Stream manipulators are special functions which can be included in an I/O
expression
d. endl is a stream manipulator
Answer: b, c, d
C++ Q 104: object reference
Multiple choices
Which of the following statements are correct?
a. When passing an object to a function, the object must be initialized
prior to being passed to the function argument
b. When returning objects from a function, the objects in the calling
function
must be compatible to the returned objects
c. When returning an object to a function, the object must be initialized
prior
to being passed to the function argument
d. When passing objects from a function, the objects in the calling function
must be compatible to the objects returned by the called function
Answer: a and b
C++ Q 105: function templates
Multiple choices
Identify the true statements about function templates
a. All template definitions must be preceded by the keyword 'class'
b. The code in a template changes every time the function template is
instantiated
c. Every formal parameter in the template definition must appear at least
once
in the function's parameter list
d. Formal parameter names must be unique in the parameter list of a template
function
Answer: c and d
1 (共1页)
进入JobHunting版参与讨论
相关主题
有面过knight的吗问一个C++ set和unordered_set iterator的问题
programming pearl看不懂这个题C++ online Test 一题
C++ Q68: initialization (skillport)C++ template question
【我自己写的LinkedList为什么总有错?】问一个constructor的问题
C++ template还有一个C++的考试题,请大家指点一下
请教一个IT题目一个电面
问一个c++问题关于reference vs. pointerBB家电面
C++: Q75 copy constructor 问什么用 const reference?find the first missing positive number
相关话题的讨论汇总
话题: function话题: c++话题: objects话题: when