Looking for COMP 6411 AA 2261 (Summer 2026) test answers and solutions? Browse our comprehensive collection of verified answers for COMP 6411 AA 2261 (Summer 2026) at moodle.concordia.ca.
Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!
In C, the word "while" can be considered to be...
In the C language, the standard libraries provide a function called malloc that programmers can use to dynamically create space for large data elements like arrays or structures.
Which of the 4 "lifetime" categories would represent the allocation of memory for these large structures?
In which of the following languages is the list of reserved words NOT the same as the list of keywords?
Which of the following languages use the $ symbol as a prefix for variable names?
Assume that we have the following Java code:
class Thing { static double foo = 3.5; static int bar = 1; public void baz( ){ int bar = 22; int x = 0; while(x < 4){ int bar = 99; System.out.println(bar); x += 1; }}
What would be the output of the println call in the baz method?
Assume that you have the following snippet of F# code:
let thing(a, b) = let boo(a, b) = let bump = 4 bump + a + b let baz(a, b) = a * b boo(a,b) - baz(a,b)System.Console.WriteLine(thing(10, 5))
What can you say about this little "program"? (Note that you don't have to be an F# expert to answer this question - this is a conceptual question)
Which of the following languages would use lexical scoping?
Fortran is a very old language. In the original version, the type of a variable could be determined by the first letter of the variable name. In fact, this "feature" remains in more recent versions of Fortran.
Given this model (i.e., using the first letter of the variable), what is the binding time of the type to the variable name?
Let's say that you see the following code, which has been written in a new programming language (you can assume that this is just one part of the full program):
function f(x) { return x * 2}
What can you conclude about this function definition?
Which of the following languages would not allow the use of a variable alias?