由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - C++ Q93 - Q95
相关主题
想成为嵌入式程序员应知道的0x10个基本问题 zz来问一个关于smart pointer的弱问题
C++ Q58: size of pointer (Bloomberg)问个stl的iterator问题
菜鸟问个C++的pointer问题问Thomson Reuters两道算法题
C++ Q79: What is the size of a pointer? and why?32bit vs 64 bit
怎么准备一些hardcore C++的interview在电脑上直接写程序
谁对design pattern比较熟?array contains two integer that sum up to 7
一个简单的java题彭博 面试题
[合集] 想成为嵌入式程序员应知道的0x10个基本问题 zz又问几个c语言编程的题目
相关话题的讨论汇总
话题: c++话题: integer话题: address话题: pointer话题: operator
进入JobHunting版参与讨论
1 (共1页)
c**********e
发帖数: 2007
1
C++ Q93: formal parameter T
What is the purpose of declaring the formal parameter T?
A. T specifies that any data sent to the function template must be of type T
B. T is a place-holder for a C++ data type
C. T can only hold a single data type int
D. T can hold any language data type
C++ Q94: Pointer
Multiple choices: Identify the true statements about the use of pointers in
C++.
A. A pointer is a variable that can contain the memory address of another
variable as its value
B. Although not necessary, pointers make the use of dynamic memory
allocation more efficient
C. You can use casting to cause a pointer of one type to reference the
memory address of a variable of another type
D. In a cout statement, you can use a pointer to display a memory address,
but not the value stored at that address
C++ Q95: Files and Streams
Multiple choice: Which of the following statements are true about writing an
integer to a file?
A. The write() function must know the exact location of the integer and the
address operator (&) enables it to locate it
B. The write() function must know the size of the integer and the address
operator (&) returns the amount of storage needed for it
C. The write() function must know the exact location of the integer and the
sizeof operator enables it to locate it
D. The write() function must know the size of the integer and the sizeof
operator enables it to locate it
c**********e
发帖数: 2007
2
Q93 Answer: B.

T

【在 c**********e 的大作中提到】
: C++ Q93: formal parameter T
: What is the purpose of declaring the formal parameter T?
: A. T specifies that any data sent to the function template must be of type T
: B. T is a place-holder for a C++ data type
: C. T can only hold a single data type int
: D. T can hold any language data type
: C++ Q94: Pointer
: Multiple choices: Identify the true statements about the use of pointers in
: C++.
: A. A pointer is a variable that can contain the memory address of another

c**********e
发帖数: 2007
3
Q94 Answer: A and C.

C++ Q94: Pointer
Multiple choices: Identify the true statements about the use of pointers in
C++.
A. A pointer is a variable that can contain the memory address of another
variable as its value
B. Although not necessary, pointers make the use of dynamic memory
allocation more efficient
C. You can use casting to cause a pointer of one type to reference the
memory address of a variable of another type
D. In a cout statement, you can use a pointer to display a memory address,
but not the value stored at that address

【在 c**********e 的大作中提到】
: Q93 Answer: B.
:
: T

c**********e
发帖数: 2007
4
Q95 Answer: A and D.

C++ Q95: Files and Streams
Multiple choice: Which of the following statements are true about writing an
integer to a file?
A. The write() function must know the exact location of the integer and the
address operator (&) enables it to locate it
B. The write() function must know the size of the integer and the address
operator (&) returns the amount of storage needed for it
C. The write() function must know the exact location of the integer and the
sizeof operator enables it to locate it
D. The write() function must know the size of the integer and the sizeof
operator enables it to locate it

【在 c**********e 的大作中提到】
: Q94 Answer: A and C.
:
: C++ Q94: Pointer
: Multiple choices: Identify the true statements about the use of pointers in
: C++.
: A. A pointer is a variable that can contain the memory address of another
: variable as its value
: B. Although not necessary, pointers make the use of dynamic memory
: allocation more efficient
: C. You can use casting to cause a pointer of one type to reference the

1 (共1页)
进入JobHunting版参与讨论
相关主题
又问几个c语言编程的题目怎么准备一些hardcore C++的interview
谁给改一个线程安全的smarter pointer类谁对design pattern比较熟?
这道题是选A 吗?一个简单的java题
请教一个问题,发两个包子。[合集] 想成为嵌入式程序员应知道的0x10个基本问题 zz
想成为嵌入式程序员应知道的0x10个基本问题 zz来问一个关于smart pointer的弱问题
C++ Q58: size of pointer (Bloomberg)问个stl的iterator问题
菜鸟问个C++的pointer问题问Thomson Reuters两道算法题
C++ Q79: What is the size of a pointer? and why?32bit vs 64 bit
相关话题的讨论汇总
话题: c++话题: integer话题: address话题: pointer话题: operator