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)?

    string-length

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

    number image

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

    number string string

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

    2

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

    number

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

    function

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

    image

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

    40

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

    No. The domain of rectangle is number number string string and the domain of square is number string string.