logo

Crowdly

Browser

Add to Chrome

COMP 6411 AA 2251 (Summer 2025)

Looking for COMP 6411 AA 2251 (Summer 2025) test answers and solutions? Browse our comprehensive collection of verified answers for COMP 6411 AA 2251 (Summer 2025) at moodle.concordia.ca.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

Which of the following languages is homoiconic?

0%
0%
0%
0%
View this question

Which of the following is equivalent to the expression below

(let ((foo 16)) (sqrt foo))

0%
0%
0%
0%
View this question

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?

0%
0%
0%
0%
0%
View this question

What would be the output if we evaluated the following two lines of Haskell code?

foo (b:a) = b

print(foo [7,8,9,10] )

Note that this is perfectly valid Haskell code - the print function is just Haskell's method for displaying output

0%
0%
0%
0%
0%
View this question

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

0%
0%
0%
0%
0%
View this question

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

 )

)

0%
0%
0%
View this question

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

0%
0%
0%
0%
View this question

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?

View this question

Which of the following statements is FALSE

0%
0%
0%
0%
0%
View this question

What would the following Haskell expression evaluate to?

[y + y | y <- [4..6]]

0%
0%
0%
0%
View this question

Want instant access to all verified answers on moodle.concordia.ca?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome