学年

質問の種類

情報:IT 高校生

情報のプログラミングについて質問です。 写真の問題のコ、サ、に当てはまる答えがわかりません。(解答は写真二枚目です) 解答にはコ、、、⑦ サ、、、⑤ だとあったのですが、どうしてそれらが答えになるのかさっぱり分かりません。 分かりやすく教えて... 続きを読む

18 〈プログラミング1〉 次の文章を読み, 空欄 ア (2013年センター試験本試験 情報関係基礎 改題) ~ チ に入れるのに最も適当なものを、下のそれぞれの解答群 のうちから一つずつ選べ。 なお、 同じ記号を複数回選んでもよい。 に続いて、3日間の平均感染者数の推移のグラフを表示するプログラムを作成した。 なお, 「四捨五入()」は小数点以 30日間のウイルス感染者数が配列 Kansen に入っている。 Aさんは、毎日の感染者数の推移を表すグラフの表示 下を四捨五入して整数にする関数, 「棒表示 (a, b) 」 はaをb個分並べて表示する関数, 「要素数(配列)」は配列の要素数 を返す関数である。 [22,30,23, ... (略)・・ 29,35,42] ア まで1ずつ増やしながら繰り返す : (1) Kansen = (2) iを0から (3) 棒表示 ("@", イ (4) iを0から ウ まで1ずつ増やしながら繰り返す: (5) ) 棒表示 ("@", 四捨五入 ( I 図1 毎日の感染者数の推移と3日間の感染者数の推移を表すグラフを表示する手続き ⑩ 要素数 (Kansen)-3 ① 要素数 (Kansen) - 2 ② 要素数 (Kansen) - 1 ③ 要素数 (Kansen) ア ~ I の解答群 ④ 要素数 (Kansen) +1 ⑤ i ⑥ Kansen [i] ⑧ (Kansen [i] + Kansen [i + 1] +Kansen [i + 2])/3 9 (Kansen [i-1]+Kansen [i] +Kansen [i + 1]) / 3 ⑦ Kansen [i * 3] 次に,Aさんは, 7日間の平均感染者数の推移もグラフにしようと考え,まず, 七つの数値の平均値を求める関数 「平均7」を作成した。 関数の引数は複数の数値が入った配列 Hairetsu と, 平均を求める七つの要素の開始位置の添 字 start, 戻り値は平均値を整数にした値とした。 start は、 配列の先頭要素を指定する場合は0 を指定する。 (6)関数平均7 (Hairetsu, start) の定義: ↓うから (7) syoukei = オ (8) iを0から カ まで1ずつ増やしながら繰り返す : (9) (10) = syoukei syoukei + Hairetsu [start + ク 戻り値 (四捨五入 (syoukei/ キ (11) iを0から (要素数 ( ケ -7)まで1ずつ増やしながら繰り返す : (12) ( 表示("@",平均7 コ サ )) ' オ サ 0 0 ⑤ i 図2 7日間の感染者数の推移を表すグラフを表示する手続き の解答群 ① 1 ⑥ start 6 ⑧ syoukei Hairetsu Kansen (3) コンピュータとプログラミング 139

解決済み 回答数: 1
英語 高校生

372の答えが4でもいけると思うのですがなぜダメかを教えてください

Theme 97 100 ② that 371 彼女の帽子は青色だが、彼女の愛によく合っている。 Her hat, () is blue, goes well with her hair. ③ what ④ which ① where 成蹊大 ) study hard. ④ them 九州国際大) 372) There are thirty students in the class, most of ( ② which 発展 ① who ③ whom 373 I went to the supermarket near my house, () I happened to meet one of my old friends. ① that ② there ③ where Power Up! 72 非制限用法の関係詞 ④ which (愛知学院大) その意味のとり方 関係代名詞の場合は「接続詞+代名詞」 関係副詞の場合は 「接続詞+副詞」に置き 換えて、原則として前から後ろへ順に意味をとる。 He dismissed the man, who (= because he) was lazy. 彼はその男を解雇した。怠け者だったからだ) She sat up until midnight, when (= and then) she heard a strange noise. (彼女は真夜中まで起きていた, するとその時奇妙な物音が聞こえた) 368 (③) 日本人の謙虚さが誤解を生じさせる場合が多い。 69 Put the book back (to where it was when you're) through with it. マイケルはとても一生懸命働く。 だから私は彼を尊敬している。 1 (0) (3)そのクラスには生徒が30人いて、 彼らのほとんどは一生懸命勉強します。 (③) 私は家の近くのスーパーに出かけ、そこで旧友の1人に偶然出会った。 370 し終わっている」 関係副詞 why の先行詞省略 That is why 節 「そういうわけで~それが~する理由です)」 Theme 371 本間 => I respect Michael. That's because he works very hard. 「理由 + That's why + 結果」 「結果 + That's because + 理由」 97 非制限用法の関係詞 (1) 関係詞の前にコンマを置いて、先行詞について説明を付け加える用法。 (2)制限用法のある関係詞は、 関係代名詞のwho/which と関係詞の where / when だけである。 that/why/howにはこの用法はない。 (3)非制限用法では目的格関係代名詞であっても省略できない。 非制限用法の関係代名詞 which 本間は、 「人以外」 が先行詞で、 節内では主語の働きをしているので、主 代名詞の④ which が正解。 ② that はもともと限定性の強い関係代名詞 で、非制限用法では使わない。 本間のように、文の途中に挿入して先行詞に補足的説明を付け加える 「~だが」 「~で」 とあいまいに訳す。 「接続詞+代名詞」に置き換えるの 然である。 372 「前置詞 + 関係代名詞」 の非制限用法 most of whom ... 「前置詞+ 関係代名詞」にも非制限用法がある。 特に A of whom [which] がセットで関係詞節の先頭に置かれた Aにはall/ most/some/many/both neither などの数量 詞が用いられる。 ..... most of whom study hard...., and most of them st 373 非制限用法の関係副詞 where 非制限用法の where は 「そしてそこで」 (= and there) の意味 ... = where I happened to meet one of my old friends. ••• and there I happened to meet one of my old friend 旬 happen to do 「偶然[たまたま] 〜する」

解決済み 回答数: 1
英語 高校生

不適切なものを選ぶ問題。 この問題の答えが上から順に 2 4 1 3 4 2 2 4 3 2 になるのですが、回答の根拠が知りたいです。全部じゃなくてもいいので力を貸してください( ; ; )

3 (1) The Eames Chair, designed by Charles and Ray Eames, has copied and sold worldwide over the decades. 11 2 (2) The cherry tree planted in front of my office was cut down because the construction of a new 2 building. 12 2 (3) Not only did Arthur Conan Doyle created the character Sherlock Holmes, but he also wrote about martial arts and skiing and then popularized them in Britain. 13 3 (4) J. M. W. Turner, who was interested in modern technology, expressed the speed, powerful, and 1 2 3 force of nature in his painting titled Rain, Steam, and Speed - The Great Western Railway. 14 (5) Since I am moving into a new apartment next month, I would like to buy some nice, stylish 1 2 3 furnitures such as a famous brand sofa or table. 15 4 (6) He cannot help crying, especially at the sad scene of the film which the dog, Hachiko, waits for his master at Shibuya Station during the heavy rain. 16 3 (7) The Department of Foreign Studies are temporarily located in the new building opposite the 1 main gate. 17 2 3 4 (8) Hiratsuka Raicho is best remembered for a monthly feminist magazine, Seito, the first 1 2 publication of whose came out in September 1911. 3 18 (9) Canals are artificial waterways, often constructed either to manage floods or to servicing water transport vehicles. 19 3 (10) Some bacteria cause infections, but a large number of others they are harmless as well as 1 2 3 helpful to people. 4 20

解決済み 回答数: 2