![]() |
![]() |
|
exam02 will be 2023-May-02 (Tue) 10:15, in-class, on-paper, closed-notes.
A practice-exam and solution is available on practice exam (D2L). (A solution for the practice-exam's solution will be released Sunday eve 18:00, to help encourage a practice-take before looking at the solution).
The following topics may be on the exam:
The following will not be on the exam:
The following instructions will be included on the exam:
Instructions:
str+for
string-append,
str=?for
string=?,
def/cfor
define/contract,
def-str/cfor
define-struct/c,
mk-…for
make-…, and
nat?for
natural?.
// Java: boolean hasNextDouble() /* Is the next token a numeral? Consumes no input. */ boolean nextDouble() /* Return the next token from the input stream as a double, consuming it. */ boolean hasNext( String s ) /* Is the next token equal to `s` (or, matches `s` as a regex)? Consumes no input. */ String next() /* Return the next token from the input stream, consuming it. */ throw exception if the token doesn't match the regular expression `s`. */ ;; Racket: peek : (-> scanner? (or/c string? number?)) ; return the next token from the input stream, not consuming it. pop! : (-> scanner? (or/c string? number?)) ; return the next token from the input stream, consuming it. |
This page licensed CC-BY 4.0 Ian Barland Page last generated | Please mail any suggestions (incl. typos, broken links) to ibarland ![]() |