「AP過去問 令和6年度春期 午前 問11」の版間の差分
(ページの作成:「AP過去問 令和6年度春期 午前 問題に戻る AP過去問 令和6年度春期 午前 問10へ AP過去問 令和6年度春期 午前 問12へ =='''問11(問題文)'''== =='''回答・解説'''== AP過去問 令和6年度春期 午前 問10へ AP過去問 令和6年度春期 午前 問12へ AP過去問 令和6年度春期 午前#問題|AP過去問 令和6年度春期 午…」) |
(→回答・解説) |
||
(同じ利用者による、間の12版が非表示) | |||
1行目: | 1行目: | ||
<freescript></script> | |||
<style type="text/css">@font-face {font-family: NeoEulerMathJax_Main; src: url('https://wiki.yo-net.jp/font/NeoEuler/woff/NeoEulerMathJax_Main-Regular.woff?V=2.7.9') format('woff'), url('https://wiki.yo-net.jp/font/NeoEuler/otf/NeoEulerMathJax_Main-Regular.otf?V=2.7.9') format('opentype')}</style> | |||
<style type="text/css">@font-face {font-family: NeoEulerMathJax_Size1; src: url('https://wiki.yo-net.jp/font/NeoEuler/woff/NeoEulerMathJax_Size1-Regular.woff?V=2.7.9') format('woff'), url('https://wiki.yo-net.jp/font/NeoEuler/otf/NeoEulerMathJax_Size1-Regular.otf?V=2.7.9') format('opentype')}</style> | |||
<style type="text/css">@font-face {font-family: NeoEulerMathJax_Size3; src: url('https://wiki.yo-net.jp/font/NeoEuler/woff/NeoEulerMathJax_Size3-Regular.woff?V=2.7.9') format('woff'), url('https://wiki.yo-net.jp/font/NeoEuler/otf/NeoEulerMathJax_Size3-Regular.otf?V=2.7.9') format('opentype')}</style> | |||
<style type="text/css">@font-face {font-family: NeoEulerMathJax_Size2; src: url('https://wiki.yo-net.jp/font/NeoEuler/woff/NeoEulerMathJax_Size2-Regular.woff?V=2.7.9') format('woff'), url('https://wiki.yo-net.jp/font/NeoEuler/otf/NeoEulerMathJax_Size2-Regular.otf?V=2.7.9') format('opentype')}</style> | |||
<style type="text/css">@font-face {font-family: NeoEulerMathJax_Variants; src: url('https://wiki.yo-net.jp/font/NeoEuler/woff/NeoEulerMathJax_Variants-Regular.woff?V=2.7.9') format('woff'), url('https://wiki.yo-net.jp/font/NeoEuler/otf/NeoEulerMathJax_Variants-Regular.otf?V=2.7.9') format('opentype')}</style> | |||
<style type="text/css">@font-face {font-family: NeoEulerMathJax_Normal; src: url('https://wiki.yo-net.jp/font/NeoEuler/woff/NeoEulerMathJax_Normal-Regular.woff?V=2.7.9') format('woff'), url('https://wiki.yo-net.jp/font/NeoEuler/otf/NeoEulerMathJax_Normal-Regular.otf?V=2.7.9') format('opentype')}</style> | |||
<style type="text/css">@font-face {font-family: NeoEulerMathJax_Alphabets; src: url('https://wiki.yo-net.jp/font/NeoEuler/woff/NeoEulerMathJax_Alphabets-Regular.woff?V=2.7.9') format('woff'), url('https://wiki.yo-net.jp/font/NeoEuler/otf/NeoEulerMathJax_Alphabets-Regular.otf?V=2.7.9') format('opentype')}</style> | |||
<style type="text/css">@font-face {font-family: NeoEulerMathJax_Marks; src: url('https://wiki.yo-net.jp/font/NeoEuler/woff/NeoEulerMathJax_Marks-Regular.woff?V=2.7.9') format('woff'), url('https://wiki.yo-net.jp/font/NeoEuler/otf/NeoEulerMathJax_Marks-Regular.otf?V=2.7.9') format('opentype')}</style> | |||
<style type="text/css">@font-face {font-family: NeoEulerMathJax_Arrows; src: url('https://wiki.yo-net.jp/font/NeoEuler/woff/NeoEulerMathJax_Arrows-Regular.woff?V=2.7.9') format('woff'), url('https://wiki.yo-net.jp/font/NeoEuler/otf/NeoEulerMathJax_Arrows-Regular.otf?V=2.7.9') format('opentype')}</style> | |||
<style type="text/css">@font-face {font-family: NeoEulerMathJax_Operators; src: url('https://wiki.yo-net.jp/font/NeoEuler/woff/NeoEulerMathJax_Operators-Regular.woff?V=2.7.9') format('woff'), url('https://wiki.yo-net.jp/font/NeoEuler/otf/NeoEulerMathJax_Operators-Regular.otf?V=2.7.9') format('opentype')}</style> | |||
<style type="text/css">@font-face {font-family: NeoEulerMathJax_Symbols; src: url('https://wiki.yo-net.jp/font/NeoEuler/woff/NeoEulerMathJax_Symbols-Regular.woff?V=2.7.9') format('woff'), url('https://wiki.yo-net.jp/font/NeoEuler/otf/NeoEulerMathJax_Symbols-Regular.otf?V=2.7.9') format('opentype')}</style> | |||
<style type="text/css">@font-face {font-family: NeoEulerMathJax_Shapes; src: url('https://wiki.yo-net.jp/font/NeoEuler/woff/NeoEulerMathJax_Shapes-Regular.woff?V=2.7.9') format('woff'), url('https://wiki.yo-net.jp/font/NeoEuler/otf/NeoEulerMathJax_Shapes-Regular.otf?V=2.7.9') format('opentype')}</style> | |||
<style type="text/css">@font-face {font-family: NeoEulerMathJax_NonUnicode; src: url('https://wiki.yo-net.jp/font/NeoEuler/woff/NeoEulerMathJax_NonUnicode-Regular.woff?V=2.7.9') format('woff'), url('https://wiki.yo-net.jp/font/NeoEuler/otf/NeoEulerMathJax_NonUnicode-Regular.otf?V=2.7.9') format('opentype')}</style> | |||
<script type="text/x-mathjax-config"> | |||
MathJax.Ajax.config.path["Contrib"]="https://wiki.yo-net.jp/mathjax/"; | |||
MathJax.Hub.Register.StartupHook("TeX Jax Ready",function (){ | |||
MathJax.Hub.Insert( | |||
MathJax.InputJax.TeX.Definitions.macros,{ | |||
cancel: ["Extension","cancel"], | |||
bcancel: ["Extension","cancel"], | |||
xcancel: ["Extension","cancel"], | |||
cancelto: ["Extension","cancel"] | |||
} | |||
); | |||
}); | |||
MathJax.Hub.Config({ | |||
tex2jax:{ | |||
displayMath: [['$$', '$$'],['\\[', '\\]']], //displayスタイル数式に利用する記号の指定 | |||
inlineMath: [['\\@', '\\@'],['\\(', '\\)']],//inlineスタイル数式に利用する記号の指定 | |||
//ここは使う人が自由に設定する部分です。 | |||
processEscapes: true | |||
}, | |||
TeX:{ | |||
// equationNumbers:{autoNumber: "AMS"}, | |||
extensions: ["[Contrib]/physics/physics.js","[Contrib]/siunitx/siunitx.js", "color.js", "cancel.js"] | |||
}, | |||
"HTML-CSS": { | |||
availableFonts: [], | |||
preferredFont: null, | |||
undefinedFamily: "Meiryo, STIXGeneral, 'Arial Unicode MS', serif", | |||
webFont: "Neo-Euler" | |||
}, | |||
}); | |||
</script> | |||
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.9/MathJax.js?config=TeX-AMS_HTML-full"></script> | |||
<script> | |||
</freescript> | |||
[[AP過去問 令和6年度春期 午前#問題|AP過去問 令和6年度春期 午前 問題]]に戻る | [[AP過去問 令和6年度春期 午前#問題|AP過去問 令和6年度春期 午前 問題]]に戻る | ||
[[AP過去問 令和6年度春期 午前 問10]] | [[AP過去問 令和6年度春期 午前 問10]]前の問題へ | ||
[[AP過去問 令和6年度春期 午前 問12]] | [[AP過去問 令和6年度春期 午前 問12]]次の問題へ | ||
=='''問11(問題文)'''== | =='''問11(問題文)'''== | ||
15Mバイトのプログラムを圧縮して、フラッシュメモリに格納している。プログラムのサイズは圧縮によって元のサイズの40%になっている。フラッシュメモリから主記憶への転送速度が20Mバイト/秒であり、1Mバイトに圧縮されたデータの展開に主記憶上で0.03秒が掛かるとき、このプログラムが主記憶に展開されるまでの時間は何秒か。ここで、フラッシュメモリから主記憶への転送と圧縮データの展開は同時には行われないものとする。 | |||
ア 0.48 | |||
イ 0.75 | |||
ウ 0.93 | |||
エ 1.2 | |||
=='''回答・解説'''== | =='''回答・解説'''== | ||
圧縮されたプログラムの大きさは | |||
<yjavascript></script> | |||
<style>div.imadake-left mjx-container[jax="CHTML"][display="true"]{text-align: left;} | |||
.imadake-left .MathJax_Display { | |||
text-align: left !important; | |||
} | |||
</style> | |||
<script></yjavascript> | |||
<div class="imadake-left" style="transform-origin: top left;transform: scale(0.8);"> | |||
$$ 15 \text{[MByte]} \times 0.4 = 6 \text{[MByte]} $$ | |||
</div> | |||
プログラムのFLASHメモリから主記憶への転送時間は | |||
<div class="imadake-left" style="transform-origin: top left;transform: scale(0.8);"> | |||
$$ 6 \text{[MByte]} \div 20 \text{[MByte/s]} = 0.3 \text{[s]} $$ | |||
</div> | |||
圧縮されたプログラムファイルを主記憶上で展開する時間は<span id="scaled-text" style="font-size: 0.8em; display: inline-block;">\( 1 \text{[MByte]} \)</span> あたり <span id="scaled-text" style="font-size: 0.8em; display: inline-block;">\( 0.03 \text{[s]} \)</span>なので、<span id="scaled-text" style="font-size: 0.8em; display: inline-block;">\( 0.03 \text{[s/MByte]} \)</span>をかけて、 | |||
</div> | |||
<div class="imadake-left" style="transform-origin: top left;transform: scale(0.8);"> | |||
$$ 6 \text{[MByte]} \times 0.03 \text{[s/MByte]} = 0.18 \text{[s]} $$ | |||
</div> | |||
あわせてかかる時間の合計は | |||
<div class="imadake-left" style="transform-origin: top left;transform: scale(0.8);"> | |||
$$ 0.3 \text{[s]} + 0.18 \text{[s]} = 0.48 \text{[s]} $$ | |||
</div> | |||
したがって、 | |||
<span style = "background:linear-gradient(transparent 75%, #7fbfff 75%); font-weight:bold; "> | |||
ア 0.48</span> | |||
が答えです。 | |||
[[AP過去問 令和6年度春期 午前 問12]] | [[AP過去問 令和6年度春期 午前 問10]]前の問題へ | ||
[[AP過去問 令和6年度春期 午前 問12]]次の問題へ | |||
[[AP過去問 令和6年度春期 午前#問題|AP過去問 令和6年度春期 午前 問題]]に戻る | [[AP過去問 令和6年度春期 午前#問題|AP過去問 令和6年度春期 午前 問題]]に戻る |
2025年1月28日 (火) 01:34時点における最新版
AP過去問 令和6年度春期 午前 問10前の問題へ
AP過去問 令和6年度春期 午前 問12次の問題へ
問11(問題文)
15Mバイトのプログラムを圧縮して、フラッシュメモリに格納している。プログラムのサイズは圧縮によって元のサイズの40%になっている。フラッシュメモリから主記憶への転送速度が20Mバイト/秒であり、1Mバイトに圧縮されたデータの展開に主記憶上で0.03秒が掛かるとき、このプログラムが主記憶に展開されるまでの時間は何秒か。ここで、フラッシュメモリから主記憶への転送と圧縮データの展開は同時には行われないものとする。
ア 0.48
イ 0.75
ウ 0.93
エ 1.2
回答・解説
圧縮されたプログラムの大きさは
$$ 15 \text{[MByte]} \times 0.4 = 6 \text{[MByte]} $$
プログラムのFLASHメモリから主記憶への転送時間は
$$ 6 \text{[MByte]} \div 20 \text{[MByte/s]} = 0.3 \text{[s]} $$
圧縮されたプログラムファイルを主記憶上で展開する時間は\( 1 \text{[MByte]} \) あたり \( 0.03 \text{[s]} \)なので、\( 0.03 \text{[s/MByte]} \)をかけて、
$$ 6 \text{[MByte]} \times 0.03 \text{[s/MByte]} = 0.18 \text{[s]} $$
あわせてかかる時間の合計は
$$ 0.3 \text{[s]} + 0.18 \text{[s]} = 0.48 \text{[s]} $$
したがって、
ア 0.48
が答えです。
AP過去問 令和6年度春期 午前 問10前の問題へ
AP過去問 令和6年度春期 午前 問12次の問題へ