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

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter10: Classes And Data Abstraction
Section: Chapter Questions
Problem 6SA
icon
Related questions
Question

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

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Methods of StringBuilder class
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,