Шукаєте відповіді та рішення тестів для COMP 6411 AA 2251 (Summer 2025)? Перегляньте нашу велику колекцію перевірених відповідей для COMP 6411 AA 2251 (Summer 2025) в moodle.concordia.ca.
Отримайте миттєвий доступ до точних відповідей та детальних пояснень для питань вашого курсу. Наша платформа, створена спільнотою, допомагає студентам досягати успіху!
Which of the following languages is homoiconic?
Which of the following is equivalent to the expression below
(let ((foo 16)) (sqrt foo))Assume that we have the following expression in Scheme:
(bar (foo thing) (baz stuff))
What would be the order of evaluation for the function calls?
What would be the output if we evaluated the following two lines of Haskell code?
foo (b:a) = bprint(foo [7,8,9,10] )
Note that this is perfectly valid Haskell code - the print function is just Haskell's method for displaying output
Assume the following function definition:
thing( y ) = y*y
and the expression:
α(thing, (16, 26, 43, 99, 10, 14) )
(that first symbol is the Greek letter alpha, and can be interpreted as map)
If the expression is evaluated, how many values will be found in the list that is produced as output
Logically, what does the following function actually do?
(define (foo x y) (cond ((null? y) #f) ((eq? x (car y)) #t) (else (foo x (cdr y))) ))
Which of the following languages can NOT guarantee that when we invoke a function or method with a specific set of parameter values, that function or method will produce the same output value no matter when or where it is called in the program? You may select more than one answer.
Note that incorrect answers result in a reduction of the total score for this question, so you can not simply select all answers (your score for the question will never be negative).
In a functional language like Clojure, it should not possible to permanently (or globally) modify the contents of a data structure that has been passed into a function as a parameter.
So, with a vector parameter for example, which of the following approaches is used by the Clojure environment to ensure that accidental modifications do no occur?
Which of the following statements is FALSE
What would the following Haskell expression evaluate to?
[y + y | y <- [4..6]]