avatar
c*e
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
avatar
c*e
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

avatar
c*e
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

avatar
c*e
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

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。