in English suomeksi Exercises

Computer Organization I, HW 6

  1. Java programs (byte code) can be executed in (at least) four different ways: interpretation, ordinary translation, Just-In-Time translation, or directly in a Java processor.
    1. Give examples of a situation where interpretation would be better than all other ways. Give reasons, why the other execution types would be worse.
    2. Give similar examples and reasonings for situations where the other execution types mentioned above would be best.
    3. What would be the best execution mode (way) for Java programming lab project? Why?
    4. What processes are needed in the system, if your Java program MyProg is executed with 1) interpretation, 2) ordinary translation, 3) Just-In-Time translation, or 4) directly in a Java processor.
    5. When would you use C# instead of Java? What similarities/differencies are there with C# and Java?
    6. What is programming language Scala? What does it have to do with Java?

  2.  
  3. Java virtual machine (JVM). Do the following assumptions. X, Y and Z are local variables 3, 4, and 5. Tbl points to a 20 element array, and it (Tbl) is stored into local variable 6.
    1. Give JVM machine instructions to increase the value of X by 5.
    2. Give JVM machine instructions to set the value of X to Y+Z.
    3. Give JVM machine instructions to set the value of Y to Tbl[3].

  4.  
  5. What does program mystery.k91 do? How does it do it? What about program mystery3.k91? How does it do it?
    How could one use this type of programmig style? What problems does this type of programming have?

  6.  
  7. [1 htp] Fill in the Student Feedback form.
    In question 14 (" How would you like to develop the course?") answer also to the underlying extra questions. Mark down each question part (a, b, ...) in your answer. Take copies of the answers to discuss them in your study circle and in the group meeting.
    1. What part of the web lectures did you go through? (100%, 90%, ...)
    2. How did you find the summary/discussion lectures (in Finnish)?
    3. How much time did you use to read the text books (Stallings, Tanenbaum)?
    4. Did you find the start-up web-lecture useful?
    5. Were there too many/too few homework problems?
    6. What is your opinion on TitoTrainer problems? What proportion (%) of those problems did you do?
    7. How did you find the grade scoring method? Which method would be better?
    8. How should the course be developed in future?

  8.  
  9. Do level E TitoTrainer problems e-300, e-310 and e-450.

Teemu Kerola