Oral exam - 2018

Rispondi
Avatar utente
andrea.bongiorno
Messaggi: 3
Iscritto il: 18/01/2019, 12:22

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
Ultima modifica di andrea.bongiorno il 27/01/2019, 17:13, modificato 3 volte in totale.
Avatar utente
andrea.bongiorno
Messaggi: 3
Iscritto il: 18/01/2019, 12:22

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?
    • Lazyness in haskell
  • 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
    • What is memoization?
Avatar utente
andrea.bongiorno
Messaggi: 3
Iscritto il: 18/01/2019, 12:22

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:
    • Memory management
    • How are lambda expressions implemented?
    • Talk about streams
  • Python:
    • What is GIL?
    • Talk about decorators and higher order functions in general
    • Namespaces and scopes
    • 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
Thomass12
Messaggi: 1
Iscritto il: 19/03/2019, 15:42

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?
    • Lazyness in haskell
  • 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
    • What is memoization?
I must admit that I do not understand some of these codes. Nevertheless, some are familiar to me.
Rispondi

Torna a “Advanced programming”