「AP過去問 令和7年度春期 午前 問8」の版間の差分

提供:yonewiki
編集の要約なし
編集の要約なし
63行目: 63行目:
=='''問8(問題文)'''==
=='''問8(問題文)'''==
 同じ命令セットをもつコンピュータAとBとがある。それぞれのCPUクロック周期、及びあるプログラムを実行したときのCPI(Cycles Per Instruction)は、表のとおりである。そのプログラムを実行したとき、コンピュータAの処理時間は、コンピュータBの処理時間の何倍になるか。
 同じ命令セットをもつコンピュータAとBとがある。それぞれのCPUクロック周期、及びあるプログラムを実行したときのCPI(Cycles Per Instruction)は、表のとおりである。そのプログラムを実行したとき、コンピュータAの処理時間は、コンピュータBの処理時間の何倍になるか。
<yjavascript>
</script>
<style>
.table-container {
    display: inline-block;
    text-align: left;
    margin: 20px;
}
.table-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}
</style>
<div><div class="table-container"><div class="table-header"><span class="table-title"></span><span class="table-unit">単位 億円</span></div>
<table border="0" style="border-collapse: collapse;border-style: solid">
<tr>
  <td align="center" style="border: 0px;"></td>
  <td align="center" style="border: 2px solid; width: 5em;">CPUクロック周期</td>
  <td align="center" style="border: 2px solid; width: 5em;">CPI</td>
</tr>
<tr>
  <td align="center" style="border: 2px solid; width: 5em;">コンピュータA</td>
  <td align="center" style="border: 2px solid;">1ナノ秒</td>
  <td align="center" style="border: 2px solid;">4.0</td>
</tr>
<tr>
  <td align="center" style="border: 2px solid;">コンピュータB</td>
  <td align="center" style="border: 2px solid;">4ナノ秒</td>
  <td align="center" style="border: 2px solid;">0.5</td>
</tr>
</table>
</div>
</div>
<script>
</yjavascript>





2025年4月23日 (水) 23:31時点における版

AP過去問 令和7年度春期 午前 問題に戻る

AP過去問 令和7年度春期 午前 問7前の問題へ

AP過去問 令和7年度春期 午前 問9次の問題へ

 

問8(問題文)

 同じ命令セットをもつコンピュータAとBとがある。それぞれのCPUクロック周期、及びあるプログラムを実行したときのCPI(Cycles Per Instruction)は、表のとおりである。そのプログラムを実行したとき、コンピュータAの処理時間は、コンピュータBの処理時間の何倍になるか。


単位 億円
CPUクロック周期 CPI
コンピュータA 1ナノ秒 4.0
コンピュータB 4ナノ秒 0.5


ア 132

イ 12

ウ 2

エ 8

 

回答・解説

 

AP過去問 令和7年度春期 午前 問7前の問題へ

AP過去問 令和7年度春期 午前 問9次の問題へ

AP過去問 令和7年度春期 午前 問題に戻る