Grade

Type of questions

IT Senior High

昨日の全統模試の情報の問題。文字比較を3回実行するってあるけど、どんな比較をしているのかわからないです。

を訊 索」 索る こざは常にlenl ①適当でない。 str1 と str2の文 数が同じであれば1回以上実行される。 ②適当でない。 len1 < len2のときは、文字数が異な ①が正解 検索 " 東京都文京区小石川", "京都") を例に実行した場合 回となる。 ある時 問3 キ ② グ 6) 東京 京都 都文 文京 京区 区小 小石 石川 - の中から 「京都」 に一致する個数を求めるのが図2のプログラム である。 この場合、 (05) 行目のi, 0から7 (= len_h len_k)まで1ずつ増やしながら繰り返すことになる。 これを参 考に、図2のプログラムの (05)~ (08) 行目を完成させると,次 のようになる。 6. F (str2, str 行目のまくlen す。 (07)~12 ば、2をまだ 番目が異な しを終了さ たさない ち、3 i (05) を0から le len_k (キ まで1ずつ増 やしながら繰り返す: A (06) honbunchuの文字目から len_k 文字分の 文字列をsに代入 葉 (07) もし等価 (s, kensaku)== " 等しい"ならば: 「 (08) LLL kosu = kosu +1 これに従うと、検索(東京都文京区小石川 (ク " "京都") 京 の戻り値は1である。 ケ 問4 【ケ 0, コ 1が正解。 0 をう 「東京都文京区小石川」 に 「京都府」 は含まれていないので, 等 ("東京都文京区小石川", "京都府)の戻り値は0 (ケ)であ る。 「京都府京都市中京区菱屋町」に「京都府」は一つ含まれてい あるので,等価 ("京都府京都市中京区菱屋町", "京都府")の戻り 値は 1 コ である。 サシ 21 ス セ 30 が正解。 検索 東京都文京区小石川", "京都府) を実行すると, 関数 「等価」は 東京都 京都文都文京 文京区 京区小区小石 小石川 の7回呼び出され,それぞれの文字比較を3回実行するので、合 計の文字比較処理の回数は21サシである。 検索(京都府京都市中京区菱屋町", "京都府") を実行すると 関数 「等価」は 京都府 都府京 府京都 京都市 都市中市中京 中京区 京区菱 区菱屋 菱屋町 この10回呼び出され, それぞれの文字比較

Unresolved Answers: 1
English Senior High

英語です。 二枚目の文法を使って動詞を変形させる問題です。 一問目はわかったのですが、そのほかがわからなかったので教えてください🙏

Grammar A police officer is looking for a thief who stole a jewel from a shop last night. Miku Suspects Harry shop clerk Ms. Smith shop clerk 2 Mr. Sato shop owner security guard *suspect *. witness Witnesses to the Crime I'm not sure whether the thief was a man or a woman. The person had light-colored hair. Last night, I saw a person wearing glasses coming out of the shop. A few minutes later, the alarm went off. I saw a person running out of the shop at around 9 o'clock. I was talking with the shop owner, Ms. Smith, at that time. *thief E crime, light-colored, alarm, go off Q1. Complete the police officer's report. Use the words below in the correct form. [ commit / have / see / know ]umbs Asolarpotenz •stole only the most expensive jewel in the shop. The thief....seemed I have " had the key to the shop. ⚫turned off the security cameras beforehand. appears (2 )( "Known ) the details of the shop. My boss and I are (3 )( ) the most suspicious person tomorrow. We are sure of '5(4 ) the crime. *commit ~犯罪など) を犯す, beforehand 事前に, suspicious 疑わし Q2. Get into pairs and ask each other the questions below. (1) According to the witnesses' hints, who seems to have stolen the jewel? Choose one the suspects. Mr. Smith Sato (2) Why is he/she the most suspicious? Because s seems to have stolen the jewel. Key Points for Expressing (➡p. ① 述語動詞よりも前の時を表したいとき 同じ時 to have done / having done を用いる。 to be → seem to have done 「~だった [した]ようだ」 予定・義務可能 意図 運命を表したいとき be to do 「~することになっている 〈予定〉」 「~しなければならない 〈義務〉」 「~することができる <可能> 「~するつもりである 〈意図〉」 「~する運命にある〈運命〉」

Waiting for Answers Answers: 0