Professional Documents
Culture Documents
Final - Shakib Bhai
Final - Shakib Bhai
Final - Shakib Bhai
int temp;
temp = a;
a = b;
b = temp;
void main() {
swap(value, list[0]);
swap(list[0], list[1]);
swap(value, list[value]);
For each of the following parameter-passing methods, what are all of the
values of the variables value and list after each of the three calls to
swap?
a. Passed by value
b. Passed by reference
c. Passed by value-result
CP7
2. Define operator precedence and operator associativity.
What is referential transparency?
cp8
What are the design issues for all iterative control statements?
CP9
Describe the ways that aliases can occur with pass-by-reference
parameters.
cp 11
define concurrency
What are the three possible levels of concurrency in programs?
What are the two primary design issues for language support for
concurrency?
cp16
Q: What does it mean for a language to be nonprocedural?