Question
Given a list L in Scheme with contents of ((x y) s (t)). What will be returned if the command (cdr (car L)) is executed?
Given a list L in Scheme with contents of ((x y) s (t)). What will be returned if the command (cdr (car L)) is executed? Select one: a.(y) b.(x c.(x y) d.(t)
Given a list L in Scheme with contents of (3 7 2 8). What will be returned if the command (cdr L) is executed? Select one: a.(8) b.(3) c.(2 8) d.(7 2 8)
If the ML command Val h::t = [4 5 6]; is executed, what value will t have? Select one: a.[1] b.[2] c.[1 2] d.[2 3]
Which of the following represents a list in ML? Select one: a.(1 2 3) b.{1 2 3} c.[1, 2, 3] d.(1, 2, 3)
Which of the following statements about functional programming languages is incorrect? Select one: a.In pure functional programming, there are no assignments. b.In pure functional programming, there are no loops. c.In pure functional programming, loops are replaced by recursive calls. d.The value of a function depends on the order of evaluation of its parameters.
Which of the following statements about Scheme is correct? Select one: a.Scheme function applications use pass by value, while special forms in Scheme use delayed evaluation. b.Scheme function applications use pass by name, while special forms in Scheme use delayed evaluation. c.Scheme special forms use pass by value, while function applications in Scheme use delayed evaluation. d.Scheme special forms use pass by value, while function applications in Scheme use delayed evaluation.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started