作业帮 > 综合 > 作业

关于C++的英文选择题?跪求大神解答!!!!

来源:学生作业帮 编辑:大师作文网作业帮 分类:综合作业 时间:2024/11/10 21:43:36
关于C++的英文选择题?跪求大神解答!!!!
1: All of the following are true of functions except:
a. They define specific tasks that can be used at many points in a program.
b. A function call must specify the name and arguments of the function.
c. The definition of a function usually is visible to other functions.
d. The implementation of a function is hidden from the caller.

2: Functions can:
a. Be used as building blocks to create new programs.
b. Return a result to the caller function.
c. Be reused any number of times.
d. Do all of the above.

3: Which of the following expressions returns the trigonometric sine of x?
a. sin( x ).
b. sine( x ).
c. trig_sin( x ).
d. trig_sine( x ).

4: Which of the following is not included in ?
a. pow.
b. floor.
c. ln.
d. log.

5: A function prototype does not have to:
a. Include parameter names.
b. Terminate with a semicolon.
c. Agree with the function definition.
d. Match with all calls to the function.

6: A function prototype can always be omitted when:
a. A function is defined before it is first invoked.
b. A function is invoked before it is first defined.
c. A function takes no arguments.
d. A function does not return a value.

7: Converting from type ________ to type ________ will result in the loss of data.
a. bool, char.
b. float, double.
c. int, char.
d. short, long.
关于C++的英文选择题?跪求大神解答!!!!
1.b有些函数没参数
2.d
3.a
4.c
5.a
6.a
7.c 短->长