Question: 1. a) What is a mixed-mode expression? What operator usually has 3 right associativity? b) Differentiate between functions and co-routines. Name a language 3 that

1. a) What is a mixed-mode expression? What operator usually has 3 right associativity? b) Differentiate between functions and co-routines. Name a language 3 that allows multiple values to be returned from a function. c) Consider the following program written in C syntax: 4 For each of the following parameter-passing methods, what are the values of the list array after execution? a. Passed by value b. Passed by reference c. Passed by value-result 2. a) What is a friend function? What is a friend class? b) Why do you think Java opted out multiple inheritance? c) Write a comparative analysis of the throw clause of C++ and the 3 throws clause of Java. 3. a) Why do we need competition synchronization? Explain with an 3 example. b) Using the structures parent(X,Y), male(X), and female(X), write 4 a PROLOG structure that defines sister (X3,Y), c) How does a functional language implement repetition? Give 3 example
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
