GithubHelp home page GithubHelp logo

exams's Introduction

Exams | MSc in Computer Science @ Unipi

Collection of oral questions and exam material

Template

🇺🇸 2019-20
  • Your questions here... (leave don't remove spaces for a correct visualization)

ADVANCED DATABASES

  • Be the first to contribute, open a pull request with your oral questions or other relevant material!

ADVANCED PROGRAMMING

🇺🇸 2018-19

Topic chosen by the student: Python (almost all, excluding GIL)

Questions on the 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

Topic chosen by the student: lambda expressions in Java

Questions on 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?

Questions on Haskell

  • What is "Functor" in haskell?
  • What relationships there are between functor and maybe type class?
  • Lazyness in haskell

Question on Python

  • What are python decorator?
  • How can we write functions with a variable number of arguments

Other questions

  • Describe the different kind of parameter passing strategies
  • What is memoization?

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 on Java

  • Memory management
  • How are lambda expressions implemented?
  • Talk about streams

Question on Python

  • What is GIL?
  • Talk about decorators and higher order functions in general
  • Namespaces and scopes
  • What does the "@staticmethod" decorator do?

Other questions

  • 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

ADVANCED SOFTWARE ENGINEERING

  • Be the first to contribute, open a pull request with your oral questions or other relevant material!

ALGORITHM DESIGN

  • Be the first to contribute, open a pull request with your oral questions or other relevant material!

ALGORITHM ENGINEERING

🇮🇹 Jan 2021
  • mi sa parlare del bloom filter? qual'è l'errore ottimo che si fa quando si considerano le funzioni?
  • cos'è un ternary search tree?
  • dimostrazione lower bound permuting
  • cooko-hasing: celle vuote + piene : c'è un modo per compattare in maniera efficiente per usare i vetori binari rank and select?

  • cos'è una classe di funzioni hash universali? dove ci serve?
  • algoritmo che fa un campionamento da uno stream di un elemento su n elementi. idea della dimostrazione per il caso di m elementi invece che 1
  • three-way partition: vantaggio rispetto ai classici metodi che usano le partizioni in due
  • definizione di minimal order perfect hashing
  • huffman: lunghezza in media di un codeword e in quale range, entropia
  • se ho un vettore ordinato di key e voglio estrarre la chiave k-esima accedo a k, e se non è ordinato come faccio ad accedere alla k-esima?

  • definisci il bloom filter
  • example of universal hash function + dimostrazione that it is an UHF
  • instead of using arithm. coding., how can i improve the extra bit of huffman?
  • define the treap. how do you search for a key in a treap?

  • treap: how do you solve split and merge operations? build a treap of logarithmic height: the way to build the treap balanced. prove that in this way the average height is logarithmic
  • what is a suffix array?
  • do you know elias-fano?

  • come venivano trovate le copie più lunghe di elias-fano?
  • lz77
  • p-for-delta

ARTIFICIAL INTELLIGENCE FUNDAMENTALS

  • Be the first to contribute, open a pull request with your material!

BIOINFORMATICS

  • Be the first to contribute, open a pull request with your oral questions or other relevant material!

COMPETITIVE PROGRAMMING AND CONTESTS

  • Be the first to contribute, open a pull request with your oral questions or other relevant material!

COMPUTATIONAL MATHEMATICS FOR LEARNING AND DATA ANALYSIS

  • Be the first to contribute, open a pull request with your oral questions or other relevant material!

COMPUTATIONAL MODELS FOR COMPLEX SYSTEMS

  • Be the first to contribute, open a pull request with your oral questions or other relevant material!

COMPUTATIONAL NEUROSCIENCE

  • Be the first to contribute, open a pull request with your oral questions or other relevant material!

DATA MINING

🇺🇸 Before 2020
  • Differences between Apriori and FP-Grow. Hierarchical Transactional clustering -> Rock and differences with classic hierarchical clustering. MLE: expectation phase and maximization Phase, comparison with the same phases in KMeans

  • two questions about FP-Grow.

  • fp-growth; the difference between different kinds of clustering algorithms.

FOUNDATION OF COMPUTING

  • Be the first to contribute, open a pull request with your oral questions or other relevant material!

HUMAN LANGUAGE TECHNOLOGIES

  • Be the first to contribute, open a pull request with your oral questions or other relevant material!

ICT INFRASTRUCTURES

🇺🇸 2020-21 - From various oral exams
  • Cooling system of a physical DC affect the service catalog and SLA defined by the private cloud that runs on the physical infrastructure ?
  • What can we say about the service catalog?
  • How can service catalog be affected by physical constraints? Example of service that you can run with 15 kwatts per rack of power?
  • What's a Full Fat Tree
  • What's Spine and Leaf architecture? Is there a limit of leaf in a network? What can i do if i finish the spine's ports?
  • What's thin provisioning?
  • What happen when you do a snapshot of a VM? How is the drive snapshoted?
  • What is the main problem of SAN architecture in storage? (Bandwith)
  • Why we use virtualization in servers?
  • How does live migration works? What are its physical constraints?
  • What's Capacity management/planning? How CAPEX and OPEX are related to it?
  • What's RAID?
  • What is the Pizza Model? (asked different times) (the explanation of pizza analogy is very important)
  • Cooling and energy management. Definition of PUE.
  • What is NvME?
  • What's a Hyperconvergent infrastructure?
  • We want to implement a storage service with hundred thousand users how do you think about the infrastructure? Tell me about storage, servers and cooling.
  • What's a LUN.
  • How is possible in an hypervisor to overbook the memory? How can you guarantee that a VM does not go in space memory of another VM.
  • Why Monitoring is important?
  • What are the strategy to build a HA system?

ICT RISK ASSESSMENT

  • Be the first to contribute, open a pull request with your oral questions or other relevant material!

INFORMATION RETRIEVAL

🇺🇸 2020-21
  • Compression of WebGraph, meaning of "near pages", how to optimize the saving of the "extra nodes"
  • Karp-Rabin fingerprints, properties, proof
  • Pearson's Chi-Square test. Meaning of the tables used in this test
  • Zsynch (exercise like in written exams, but explaining your thoughts while writing)
  • Delta compression (zdelta)
    • Delta compression for groups of files (the one with the graph)

INTELLIGENT SYSTEMS FOR PATTERN RECOGNITION

  • Be the first to contribute, open a pull request with your oral questions or other relevant material!

LABORATORY FOR INNOVATIVE SOFTWARE

  • Be the first to contribute, open a pull request with your oral questions or other relevant material!

LANGUAGES, COMPILERS AND INTERPRETERS

  • Be the first to contribute, open a pull request with your oral questions or other relevant material!

MACHINE LEARNING

🇺🇸 2020-21
  • List all the differences between SVM and NN (without actually explaining what they are)
  • Explain why SOMs are better than K-Means
  • RBF kernel (especially from the point of view of the LBE)
  • Approximation theorem of NNs
🇺🇸 2019-20
  • Write the loss for a linear model in form of ridge regression (with Tikhonov regularization)
  • Write (and briefly comment on) the most important factors ruling the flexibility of the SVM and of the NN approaches Compute dE/do_i for a NN (the same seen in class) showing the single steps of the derivation for the dE/do_i (assuming to have already delta for the units of the other layers indexed by h and k. Finally, write delta_k, delta_t, delta_i
  • Define the VC-dim. Does the VC-dim in Phi_1 increase or decrease if the value of the regularization parameter increases? Explain.

  • Write the net_t(x) of a preceptron with inputs i in [1, ..., k]
  • Write the radial basis function kernel
  1. Answer true or false to the following and motivate your answer
  • In a SVM can the alpha values help to select the best features? False (they only select some input patterns and not the components)
  • To estimate the (future) predictive capability of your model is it a good practice to consider the result and accuracy obtained by the model selection phase without looking to the training results? False (only the test result cares to estimate the (future) predictive capability)
  • Increasing the VC-dim, th VC-bound on the risk R (according to SLT) increases. True
  1. Write the derivation of the bias-variance decomposition (assuming without proving the variance lemma)

  2. Show a picture of:

  • undercomplete autoencoder
  • overcomplete autoencoder
  1. Equation of the RBF Kernel. Equation of the Loss for Ridge regression + comments on the role of lambda.

  2. Equations used for SOM. Why is the Neural Network able to approximate every function? Why do we use deep learning if one layer is enough?

MOBILE AND CYBER-PHYSICAL SYSTEMS

  • Be the first to contribute, open a pull request with your oral questions or other relevant material!

PARALLEL AND DISTRIBUTED SYSTEMS: PARADIGMS AND MODELS

🇮🇹 La maggior parte dell'orale verte sul progetto e molte delle domande di teoria sono collegate.

🇮🇹 2020-21 - Map fusion, differenze tra regola di equivalenza `comp(map(f), map(g)) == map(comp(f, g))` e `pipe(map(f), map(g)) == map(comp(f, g))`. Quante risorse si impiegano in ciascun caso? - Che cos'è la vettorizzazione e com'è implementata a livello hardware? ------------------------------ - A quali condizioni posso implementare la vettorizzazione? Se ho una chiamata di libreria all'interno del corpo del for e forzo la vettorizzazione (es. con un `pragma`) cosa succede? E se ho iterazioni dipendenti e forzo la vettorizzazione? - Autonomic management della farm. Come si può implementare autonomic management in FastFlow? Posso implementare `farmout(pipe(s1, s2, s3))` a runtime in FastFlow? (No) Cambierebbe qualcosa se la libreria non fosse header-based ma fosse in un file `.so`? (No perché dipende dalle API di FastFlow)
🇮🇹 2019-20
  • Macro Data Flow con esempio

  • Buildin blocks per streming e data.

  • Point to point e collective comunication in fast flow. Qunado serve collective comunication.

  • Service time, latency, efficiency più esempi su quando voglio ottimizzare cosa

🇮🇹 2018-19
  • Perchè non hai usato un manager e hai fatto fare tutto all’emitter? Con il manager hai dei movimenti di dati in più? L’emitter ha qualche guadagno se c’è il manager?
  • Perchè parti subito con un numero fissato di worker? Non sarebbe stato meglio farlo lavorare uno e poi capire quanti worker servono dinamicamente?
  • Sarebbe stato giusto fare un’analisi del tempo che ci metto per fare uno switch del numero di worker in modo da capire ogni quanto cambiare
  • Se ho due map quali ottimizzazioni posso fare? Se faccio la map fusion poi ho un guadagno? Ce l’ho sempre?
  • Se metto una map dentro ad una farm che guadagno ho se aumento il numero di worker della map o se aumento il numero di worker della farm? Se tolgo la map e lascio la farm aumentando i worker cambia qualcosa? L’efficiency come cambia? Se tolgo tutto e lascio solo un nodo sequenziale cambia qualcosa? L’efficiency come varia (diventa 1)?
  • Differenza tra work span model e amdahl law, voleva sapere che i nodi devono avere lo stesso tempo di esecuzione

  • Come si calcola lo speedup?
  • Amdahl Law (con limite)
  • Cosa devo aggiungere ad un farm che tenga in conto sia il tempo che il consumo energetico (considerando che entrambi dipendono dal nw)? Devo tenere conto di grado di parallelismo e frequenza del processore. Nel collector posso calcolare il service time Ts. Posso variare il numero di worker e vedere all'aumentare del nw come varia l'energia. Più worker = meno tempo di uso di CPU con più consumo. Posso fermarmi quando diventa sconveniente aumentare il nw per l'overhead.
  • Tipi di pattern
  • Vettorizzazione del codice
🇮🇹 2017-18
  • Hamdal law
  • Macro data flow, con un esempio di conversione fra "farm(pipe(f1,f2))", chiedendo di disegnare il grafico

🇺🇸 Most of the oral exam focuses on the project and many of the theory questions are related.

🇺🇸 2020-21 - Map fusion, difference between equivalence rules `comp(map(f), map(g)) == map(comp(f, g))` and `pipe(map(f), map(g)) == map(comp(f, g))`. How many resources are needed for each of those cases? - What's vectorization and how is it implemented? ------------------------------ - Under what conditions can I implement vectorization? If I have a library call inside the for body and force vectorization (e.g. with a `pragma`) what happens? What if I have dependent iterations and force vectorization? - Autonomic farm management. How can I implement autonomic management in FastFlow? Can I implement `farmout(pipe(s1, s2, s3))` at runtime in FastFlow? (No) Would it change anything if the library was not header-based but was in a `.so` file? (No because it depends on the FastFlow API)
🇺🇸 2019-20
  • Macro Data Flow with examples

  • Buildin blocks for streming and data.

  • Point to point and collective comunication in fast flow. When to use collective comunication.

  • Service time, latency, efficiency and example where to use what metrics.

🇺🇸 2018-19
  • Why didn't you use a manager and have the emitter do everything? Do you have more data movements with the manager? Does the emitter have any earnings if there is a manager?
  • Why do you start immediately with a fixed number of workers? Wouldn't it have been better to have him work one and then figure out how many workers they need dynamically?
  • It would have been right to do an analysis of the time it takes to make a switch of the number of workers in order to understand how often to change
  • If I have two maps, which optimizations can I do? If I do map fusion then do I have a profit? Do I always have it?
  • If I put a map inside a farm, what profit do I have if I increase the number of workers on the map or if I increase the number of workers in the farm? If I remove the map and leave the farm increasing the workers does something change? How does efficiency change? If I remove everything and leave only a sequential node, does something change? How does the efficiency vary (becomes 1)?
  • Difference between work span model and amdahl law, he wanted to know that nodes must have the same execution time

  • How is the speedup calculated?
  • Amdahl Law (with limit)
  • What should I add to a farm that takes into account both time and energy consumption (considering that both depend on the nw)? I have to take into account the degree of parallelism and the frequency of the processor. In the collector I can calculate the service time Ts. I can vary the number of workers and see how the energy changes as the nw increases. More worker = less CPU usage time with more consumption. I can stop when it becomes inconvenient to increase the nw for overhead.
  • Types of patterns
  • Vectorization of the code
🇺🇸 2017-18
  • Hamdal law
  • Macro data flow works, with an example of conversion between "farm(pipe(f1, f2))", asking to draw the graph

PEER TO PEER SYSTEMS AND BLOCKCHAINS

  • Be the first to contribute, open a pull request with your oral questions or other relevant material!

PRINCIPLES FOR SOFTWARE COMPOSITION

  • Be the first to contribute, open a pull request with your oral questions or other relevant material!

ROBOTICS

  • Architectures for robot behavior described by the three primitive functions
  • Motion control with gravity compensation (robot control)
  • Potential fields (robot navigation)
  • Histograms of an image (robot vision)
  • ZMP components (bipedal locomotion)

SCIENTIFIC AND LARGE DATA VISUALIZATION

  • Be the first to contribute, open a pull request with your oral questions or other relevant material!

SECURITY METHODS AND VERIFICATION

  • Be the first to contribute, open a pull request with your oral questions or other relevant material!

SEMANTIC WEB

  • Be the first to contribute, open a pull request with your oral questions or other relevant material!

SMART APPLICATIONS

  • Be the first to contribute, open a pull request with your oral questions or other relevant material!

SOCIAL AND ETHICAL ISSUES IN INFORMATION TECHNOLOGY

  • Be the first to contribute, open a pull request with your oral questions or other relevant material!

SOFTWARE VALIDATION AND VERIFICATION

  • Be the first to contribute, open a pull request with your oral questions or other relevant material!

exams's People

Contributors

daquinoaldo avatar alexpasqua avatar francescofact avatar dilettagoglia avatar gaspareg avatar melfnt avatar mariobonse avatar giacomodeliberali avatar karjudev avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.