In Racket, which of the following is a call of the predicate for the defined movie struct? Select all that apply. A) (check-expect (movie-length TOY) 81) B) (make-movie "Beauty and the Beast" "Gary Trousdale" 92 true) C) (check-expect (movie-title LION) “Toy Story") D) (movie? 81) E) (movie-dvd? LION) (define-struct movie (title director length dvd?)) ; a Textbook is a (make-book String String Natural Boolean) ; interp: a movie where ; title is the movie’s title ; director is the name of the movies’ director ; length is the length of the movie in minutes ; dvd? is whether the movie is available in dvd format (if true) (define TOY (make-movie “Toy Story" "John Lasseter" 81 true)) (define LION (make-movie "The Lion King" "Rob Minkoff" 89 false))
In Racket, which of the following is a call of the predicate for the defined movie struct? Select all that apply.
A) (check-expect (movie-length TOY) 81)
B) (make-movie "Beauty and the Beast" "Gary Trousdale" 92 true)
C) (check-expect (movie-title LION) “Toy Story")
D) (movie? 81)
E) (movie-dvd? LION)
(define-struct movie (title director length dvd?))
; a Textbook is a (make-book String String Natural Boolean)
; interp: a movie where
; title is the movie’s title
; director is the name of the movies’ director
; length is the length of the movie in minutes
; dvd? is whether the movie is available in dvd format (if true)
(define TOY (make-movie “Toy Story" "John Lasseter" 81 true))
(define LION (make-movie "The Lion King" "Rob Minkoff" 89 false))
Trending now
This is a popular solution!
Step by step
Solved in 2 steps