In Racket, which of the following contains (or is by itself) a call of a selector for the defined movie struct? (Select all that apply) A) (make-movie "Beauty and the Beast" "Gary Trousdale" 92 true) B) (movie-dvd? LION) C) (check-expect (movie-length TOY) 81) D) (movie? 81) (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’s 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 contains (or is by itself) a call of a selector for the defined movie struct? (Select all that apply)
A) (make-movie "Beauty and the Beast" "Gary Trousdale" 92 true)
B) (movie-dvd? LION)
C) (check-expect (movie-length TOY) 81)
D) (movie? 81)
(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’s 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