【单选题】已知一个运算被定义为(define (firstCalc x) (* x x)),在其基础上进一步定义新运算secondCalc为【图片】,下列运算组合式书写正确的是_____。
A. (define (secondCalc x y z) (+ (firstCalc x) (firstCalc y) (firstCalc z)))
B. (define secondCalc (+ (firstCalc x) (firstCalc y) (firstCalc z)))
C. (define (secondCalc x y z) (+ firstCalc x y z))
D. (define secondCalc x y z (+ (firstCalc x) (firstCalc y) (firstCalc z)))
E. (define (secondCalc x y z) (+ (firstCalc x) (firstCalc x) (firstCalc x)))
A. (define (secondCalc x y z) (+ (firstCalc x) (firstCalc y) (firstCalc z)))
B. (define secondCalc (+ (firstCalc x) (firstCalc y) (firstCalc z)))
C. (define (secondCalc x y z) (+ firstCalc x y z))
D. (define secondCalc x y z (+ (firstCalc x) (firstCalc y) (firstCalc z)))
E. (define (secondCalc x y z) (+ (firstCalc x) (firstCalc x) (firstCalc x)))
举一反三
- 已知一个运算被定义为(define (firstCalc x) (* x x)),在其基础上进一步定义新运算secondCalc为,下列运算组合式书写正确的是_____。 eb83511cce0ce4612edc7c97bca56c22.PNG
- 已知一个运算被定义为(define(firstCalcx)(*xx)),在其基础上进一步定义新运算为(define(secondCalcx)(firstCalc(firstCalc(firstCalcx)))),问secondCalc表达的运算功能为_____
- 已知一个运算被定义为(define (firstCalc x) (* x x))...ondCalc表达的运算功能为_____
- 对于以下宏定义: #define M(x) x*x #define N(x, y) M(x)+M(y)执行语句z=N(2, 2+3);后,z的值是 。
- 【单选题】求点(x,y,z)关于原点和x轴,y轴,z轴的对称点坐标分别为 A. (-x,-y,-z),(x,-y,-z),(x,-y,z),(x,y,-z), B. (-x,-y,-z),(-x,y,z),(x,y,-z),(x,y,-z) C. (-x,-y,-z),(-x,-y,z),(x,-y,-z),(-x,y,-z) D. (-x,-y,-z),(x,-y,-z),(-x,y,-z),(-x,-y,z)