CS 115: Introduction to Computer Science 1

Built-in functions and special forms allowed on assignments

Each assignment identifies the modules that are covered. Unless the question specifically describes exceptions, you are restricted to using the functions and special forms covered in lectures and described in this post for all assignment solutions. As the term goes on, more functions will be added for each module.

Module 1

  • any mathematical function found in the section 1.5 of the Racket documentation found here
  • quotient
  • remainder
  • define

Assignment 1 solutions may only use functions and special forms from Module 1.

Module 2

  • any String functions included in the documentation found here except string-ref.
  • max, min

Assignment 2 solutions may only use functions and special forms from Modules 1 and 2.

Module 3

  • any comparison function, e.g. =, >, >=, <, <=, string=?, symbol=?, equal?, etc.
  • and, or, not
  • any type predicate function, e.g. string?, number?, integer?, symbol?, etc.
  • any predicate that tests the nature of its parameter, e.g. even?, negative?, zero?, etc.
  • cond, else

Assignment 3 solutions may only use functions and special forms from Modules 1, 2, and 3.

Module 4

  • define-struct
  • any of the automatically generated functions associated with user-defined structures or the built-in stucture posn

Assignment 4 solutions may only use functions and special forms from Modules 1, 2, 3, and 4.

Module 5

  • cons
  • first, rest
  • empty?, cons?
  • length, member?
  • string->list, list->string
  • any Char functions included in the documentation found here

Assignment 5 solutions may only use functions and special forms from Modules 1, 2, 3, 4, and 5.

Module 6

  • zero?
  • add1, sub1
  • number->string
  • list
  • second, third, fourth, fifth, sixth, seventh, eighth

Assignment 6 solutions may only use functions and special forms from Modules 1, 2, 3, 4, 5, and 6.

Module 7

  • append
  • string-ref

Assignment 7 solutions may only use functions and special forms from Modules 1, 2, 3, 4, 5, 6, and 7.

Module 8

No new functions.

Module 9

  • filter
  • map
  • foldr
  • build-list
  • local
  • lambda

Assignment 9 solutions may only use functions and special forms from any module.

Valid XHTML 1.0 Strict Valid CSS!

Last modified on Monday, 20 November 2017, at 12:41 hours.

Course Supported by Instructional Support Group