Exercise:   Identifying Parts of Expressions

Exercise: Identifying Parts of Expressions

Directions: Answer each of the following questions in the space provided:
  • What is the name of the innermost function being used in(+ (string-length "broccoli") 8)?

  • What is the domain of the outermost function being used in(scale 2 (circle 40 "solid" "blue"))?

  • What is the domain of the innermost function being used in(scale 2 (circle 40 "solid" "blue"))?

  • How many arguments does the + function take in (+ (string-length "broccoli") 8)?

  • What is the range of the function string-length?

  • Is text a string, a function, or an image?

  • Is the range of text a string or an image?

  • What is the first argument to the circle function in(scale 2 (circle 40 "solid" "blue"))?

  • Do the rectangle and the square function have the same domain?