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. How did you find the used method to run the practice sessions? Would you have preferred the "usual" method (each table discusses one problem and presents it in English in its turn in front of the class) to run the practice sessions?
    2. What part of the web lectures did you go through? (100%, 90%, ...)
    3. Was the schedule fast/good/slow?
    4. How much time did you use to read the text books (Stallings, Tanenbaum)?
    5. Did you find the start-up web-lecture useful?
    6. Were there too many/too few homework problems?
    7. What is your opinion on TitoTrainer problems? What proportion (%) of those problems did you do?
    8. How did you find the grade scoring method? Which method would be better?
    9. How should the course be developed in future?

    You can also give more comments in the extra project 3.

  8.  
  9. Do level E TitoTrainer problems e-300, e-320 ja e-350.

Teemu Kerola