GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Quiz

[CPSC313 Final] Focus Quiz Unit 2

Zim Brightwood 25 Fragen

Quiz starten

Dieses Quiz enthält Fragetypen, die sich im gewohnten Player öffnen.

Fragen in diesem Quiz (25)

  1. 1Consider the variables a and b. A causal dependency is defined as A<B (Instruction A immediately precedes B) if
    1. AB reads value written by A
      Example:
      a = 1;
      b = a;
    2. BB write to visible location written by A
      Example:
      a = 1;
      a = 2;
    3. CB write to a location read by A
      Example:
      b = a;
      a = 1;
  2. 2Consider the variables a and b. An anti dependency is defined as A<B (Instruction A immediately precedes B) if
    1. AB write to a location read by A
      Example:
      b = a;
      a = 1;
    2. BB reads value written by A
      Example:
      a = 1;
      b = a;
    3. CB write to visible location written by A
      Example:
      a = 1;
      a = 2;
  3. 3To prevent a data hazard by stalling, we can
    1. Aread registers in decode that are written by instructions in E, M, or W and then stall the instruction in decode until writer is retired
    2. Bread registers in fetch that are written by instructions in E, M, or W and then stall the instruction in fetch until writer is retired
    3. Cread registers in execute that are written by instructions in E, M, or W and then stall the instruction in execute until writer is retired
  4. 4How would we resolve a conditional jump control hazard by stalling?
    1. Astall fetch until jump exits execute
    2. Bstall execute until jump exits decode
    3. Cstall fetch and execute until jump exits decode
    4. Dstall fetch, decode, and execute until jump exits memory
    5. Estall fetch, decode, execute, and memory until jump exits write back
    6. Fjust stall everything after fetch indefinitely and go finish off a bottle of wine in one go
  5. 5How would we resolve a return control hazard by stalling?
    1. Astall fetch until return exits memory
    2. Bstall decode until return exits memory
    3. Cstall fetch and decode until return exits memory
    4. Dstall fetch, decode, and execute until return exits memory
    5. Estall fetch, decode, execute, and memory until return exits memory
    6. Freturn to cpsc313 in the summer after you fail this midterm
  6. 6How would we handle a load-use hazard?
    1. AStall use one cycle, forward to D from M or W
    2. BStall use one cycle, forward to D from E or M
    3. CStall use one cycle, forward to E from D, M, or W
    4. DStall use one cycle, forward to E from M or W
  7. 7valC is the address for the jump as if it were [blank_start]not taken[blank_end] and valP is the address for the jump as if it were [blank_start]taken[blank_end].
    1. Anot taken
    2. Btaken
  8. 8When a mis-predicted jump is in M, what should we do?
    1. Ashootdown D and E to prevent them from doing damage
    2. Bshootdown F and D to prevent them from doing damage
    3. Cshootdown M and W to prevent them from doing damage
  9. 9Which of these are attributes of super-scalar?
    1. Amultiple pipelines that run in parallel
    2. Bissue multiple instructions on each cycle
    3. Cinstructions execute in parallel and can even bypass each other
    4. Dif I shut my eyes tight enough, will the midterm disappear?
  10. 10What does hyper-threading consist of? (Only one of the following is correct)
    1. AOS loads multiple runnable threads into CPU, usually from the same process
    2. BCPU does fast switching between threads to hide memory latency

Informationen

Beschreibung
CS313 Quiz am [CPSC313 Final] Focus Quiz Unit 2, erstellt von Zim Brightwood am 10/12/2016.
Sprache
English
Aufrufe
0
Schlagwörter
cs313
Bewertung
Noch keine Bewertungen
Bewerte dieses Quiz
Bewerte dieses Quiz

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck