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!
Let's say that we are running a C program. In the function that is currently executing, we are referencing a variable that is not defined in the function itself. Which of the following statements is therefore true?
With respect to the four main storage allocation mechanisms, which is the fastest in terms of the time taken to access the data associated with a variable.
Let's say that we have a fictional language that contains the following source code (you can assume that the code is valid and compiles/runs properly)
function
main() {
var animal = 11;
function
foo(){
var animal = 22;
function bar(){
var animal = 33;
print animal;
}
baz();
animal = 44;
bar();
}
function
baz() {
var result = animal;
print result;
}
foo();
}
This language uses dynamic scoping. If we call the main method, What would be the value printed in the the baz method?
Which of the following languages support variables that can have global scope? You may select more than one answer.
Note that incorrect answers will reduce the total score for the question, so you can't simply select every answer (your score for the question can never be negative)
In which sort of language implementation would a symbol table be used?
Which of the following languages would generally be considered to be the most portable, as per our discussion of the issue.
Assuming the conventional Von Neumann computing architecture, which component would be associated with a hard drive? In other words, if we added a hard drive to the standard Von Neumann diagram, where would it go?
Let's say that we have a language that allows the use of a variable or reference called Name to refer to the string "Ahmed". At another point in the code, the variable Person also refers to this same string. What can we say about this type of language?
Let's say that we have a language that allows us to do the following
x = 4 + 5; // the integer x now = 9
y = 6.43 + 3.2; // the real number y now = 9.63
z = "abc" + "123"; // the string z now = "abc123"
So here we have the + operator being used in a very consistent way, for each of the three types of data. We generally we refer to this element of language design as...?
Given an assignment statement in a typical imperative language, what type of operation would this correspond to on the Von Neumann model?