Exercises
Computer Organization I, HT 6
- [2 htp]
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.
- Give examples of a situation where interpretation would be better than all other ways. Give reasons, why the other execution types would be worse.
- Give similar examples and reasonings for situations where the other execution types mentioned above would be best.
- What would be the best execution mode (way) for Java programming lab project? Why?
- 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.
- When would you use C# instead of Java? What similarities/differencies are there with C# and Java?
- [2 htp] 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.
- Give JVM machine instructions to increase the value of X by 5.
- Give JVM machine instructions to set the value of X to Y+Z.
- Give JVM machine instructions to set the value of Y to Tbl[3].
- [2 htp] 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?
- [2 htp (extra)] 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.
- How many total hours did you use for this course?
For web lectures? For homework problems? For projects? For Titokone and TitoTrainer? For something else and what else?
- What part of the web lectures did you go thruogh? (100%, 90%, ...)
- Was the schedule fast/good/slow?
- How much time did you use to read the text books (Stallings, Tanenbaum)?
- Were there too many/too few homework problems?
- Did various web-components help you with course material and/or with your learning? Why or why not?
- What is your opinion on TitoTrainer problems? What proportion (%) of those problems did you do? Could all ttk-91 assembly language programming practice be done independently just with Titokone and TitoTrainer, and all ttk-91 problems could be left out from practice sessions?
- What do you think about the make-up exam? Do we need one? Is the timing (about 1 month after the course exam) good? What would be better timing?
- Is course component point distribution (exam 24p, titotrainer 8p, homework+disc problems 12p, proj 16p) good? What point distribution would be better? Should all other components also have minimum requirement for acceptable work than the course exam?
You can also give more comments in CSMoodle discussion group "Metacourse" or in the extra project 2.
">Teemu Kerola