Pagina 1 di 1
Oral exam - 2018
Inviato: 19/01/2019, 15:46
da andrea.bongiorno
Hi! I've created this thread in order to collect all the questions made by prof. Corradini during the oral exams.
Topic chosen by the student: Python (almost all, excluding GIL)
Assignments:
- Given a bean, how can we tell what is its public API?
- Question about complexity of some haskell function. What are the problems between arrays and generics in Java? What happens with generic at runtime/after compilation?
- Is Python more OO or more functional, according to your opinion?
Questions on the syllabus:
- Explain the concept (with written example) of covariance and contravariance in a language with universal polymorphism and explain in what cases their use is safe
- Explain inversion of control and dependecy injection
- What is lazy evalutaion in haskell and explain the spirit of IO Monads
Re: Oral exam - 2018
Inviato: 21/01/2019, 15:13
da andrea.bongiorno
Topic chosen by the student: lambda expressions in Java
Questions:
- Java:
- What are streams in java?
- Example of lambdas in a context different from streams
- What are functional interfaces?
- How the java compiler manges lambdas?
- Differences between component, packages and classes
- Talk about the lifecycle of a sw component
- How can we interact with java beans?
- How can Netbeans (or another builder tool) provides "live interaction" with a bean?
- What kind of properties a bean can have?
- Haskell:
- What is "Functor" in haskell?
- What relationships there are between functor and maybe type class?
- Python:
- What are python decorator?
- How can we write functions with a variable number of arguments
- Other:
- Describe the different kind of parameter passing strategies
Re: Oral exam - 2018
Inviato: 27/01/2019, 17:29
da andrea.bongiorno
Topic chosen by the student: JVM internals and JVM instruction set
For this exam, most of the questions were asked during the presentation of the topic chosen by the student.
Questions:
- Java:
- How are lambda expressions implemented?
- Python:
- Talk about decorators and higher order functions in general
- What does the "@staticmethod" decorator do?
- Other:
- Differences between "reduce" in functional programming and "collect" in the Java Stream API
- Give an example of list comprehension and write a function using a functional language that does the same thing, using combinators such as filter, foldr, map ecc
Re: Oral exam - 2018
Inviato: 19/03/2019, 16:02
da Thomass12
andrea.bongiorno ha scritto: ↑21/01/2019, 15:13
Topic chosen by the student
rachat de credit bancaire: lambda expressions in Java
Questions:
- Java:
- What are streams in java?
- Example of lambdas in a context different from streams
- What are functional interfaces?
- How the java compiler manges lambdas?
- Differences between component, packages and classes
- Talk about the lifecycle of a sw component
- How can we interact with java beans?
- How can Netbeans (or another builder tool) provides "live interaction" with a bean?
- What kind of properties a bean can have?
- Haskell:
- What is "Functor" in haskell?
- What relationships there are between functor and maybe type class?
- Python:
- What are python decorator?
- How can we write functions with a variable number of arguments
- Other:
- Describe the different kind of parameter passing strategies
I must admit that I do not understand some of these codes. Nevertheless, some are familiar to me.