学年

教科

質問の種類

資格 大学生・専門学校生・社会人

この問題の2行目sbというのはなんでしょうか。 文字型sという箱の中にABCDという値が入っていて、 StringBuffer:sb←stringBuffer(s) sbという箱の中をABCDで初期化するという意味かと思ったのですが メンバ変数とかメソッドとかを説明してる枠... 続きを読む

ワグラム中の 問 11 次の記述中の [7] オブジェクト指向 頭の位置は1である。 (4)として Catsb 解説 p. 158 クラス StringBuffer は文字列処理を行うクラスである。 クラス StringBuffer a 図に示す。 に入れる正しい答えを, 解答群の中から選べ。 ここで、文字の先 明を ある。 関数 stringProcessing を stringProcessing ("ABCD") として呼び出すと, 戻り値はで ()tignod 型 説明 メンバ変数 文字列型 格納する文字列。 str 説明 コンストラクタ StringBuffer (文字列型: str) (Linersqlstsb. メソッド 戻り値 引数 strでメンバ変数 str を初期化する。 説明 append(文字列型: str) StringBuffer メンバ変数 str の末尾に引数 str を追加し,イ ンスタンスへの参照を返す。 delete(整数型: start, StringBuffer メンバ変数 str の start 番目からend - 1番 目まで削除し, インスタンスへの参照を返す。 メンバ変数 str を返す。 整数型: end) toString() 文字列型 TIDNA replace (整数型: start, StringBuffer メンバ変数 str の start番目から end 整数型 end, 文字列型: str) lastIndexOf( 整数型 文字列型: str) 目の部分文字列を引数 str に置換し, インス inersqtiqson タンスへの参照を返す。 tibne メンバ変数 str を検索し, 引数 strが最後に出 現する、先頭からの文字位置を返す。見つか らない場合は-1を返す。 図 クラス StringBuffer の説明 ISASE [プログラム] 1: ○整数型: stringProcessing (文字列型:s) 2: StringBuffer: sb ← StringBuffer(s) 3: sb ←sb.append("ABCD").delete(4, 6) 4: sb ← sb.append(sb.delete(2, 3).toString()).replace(3, 4, "D") 5: return sb.lastIndexOf("CD") 第1部 予想 ided ist ge 01508300 金を

解決済み 回答数: 1
TOEIC・英語 大学生・専門学校生・社会人

自分の回答と照らし合わせて確認したいので、答えがなにになるかどなたか教えてください。 解説もあると助かります。

5 A Matter of Taste Reading Passage 042 At the age of just 22, Jamie Oliver became well known across the UK as "The Naked Chef." He called himself this not because he cooked wearing no clothes, but because he wanted to simplify food preparation so that everybody could follow his recipes. He wanted to "strip down" the idea of cooking. Since then he has had numerous TV shows, published 50 many books, and has become a household name in the UK. Today, one of the activities Jamie Oliver is best known for is his great effort to improve the school dinners that children eat every day. One day, he visited the kitchen of a typical London secondary school, and he was shocked to see how much processed junk food the kids were given to eat each day. Fat and sugar levels were extremely high, and nutritional values very 10 low. The "turkey twizzler" became the symbol of these unhealthy meals: processed meat containing 21.2% fat and only 34% actual turkey. Oliver ran the school kitchen for one year and tried to show that it was possible to serve healthy meals on a limited budget—and that kids actually enjoyed eating them. His mission was to radically change the eating habits of children in that school, and across the country. 150 200 15 20 25 CULTIES 250 His project (the "Feed Me Better" campaign) has had some influence on school dinners in the UK. After watching the documentary Jamie's School Dinners, 271,677 people signed a petition calling for healthier school meals. This led the Prime Minister to agree to spend 280 million pounds (about 37 billion yen) on school dinners, to ban some junk food from school menus, and to create a School Food Trust to provide support and advice for people preparing school meals. Research, by the way, shows that children who stop eating sugary, fatty food and instead eat Oliver's school dinners are better behaved in class, and they get higher test 300 scores, too. 350 Of course, the project has had some problems. At first, many students (and even parents) resisted the removal of the junk food they were so used to. In one famous instance, some parents were passing local takeaway food to their children through the school fence. Also, schools that followed the plan for a while were often found to gradually drift back into bad habits. After all, it is easier and cheaper to just give the kids junk food. However, Oliver's efforts represent a positive start, and with obesity becoming such a huge problem (see Unit 4), 400 it's a very necessary start.

解決済み 回答数: 1
TOEIC・英語 大学生・専門学校生・社会人

2枚目の写真の上から3行目です。 なぜここでは waters と複数形になっていらのでしょうか?

Questions 65 through 67 refer to the following 問題65-67 は次の会話とレストランの勘定書に関するものです。 conversation and restaurant bill. すみません、ウエートレスさん。 改めて、私たちにとても早く料理を持っ てきてくれて、ありがとう。 私たちは余裕のないスケジュールでここに 来ました。というのも、間もなく乗ることになっている飛行機の便があ M Excuse me, waitress? Thanks again for getting our food to us so quickly. We came in here on a tight schedule, since Owe have that flight to catch soon. るんです。 w Glad I.could help. ®Just remember © take Route 36 to the'airport) ® There's a holiday parade today, so a lot of the other roads will be closed. お役に立ててうれしいです。 とにかく、空港へは 36号線を利用すると 覚えておいてください。 今日は祝日のパレードがあるので、ほかの多く の道路が閉鎖されるのです。 M Will do! Um, I laoked.over the bill you gave us. そうします。あの、あなたが私たちにくれた勘定書に目を通しました。 One small thing °| think there's been a sliaht bbs1つ些細なことですが、 総額にちょっとした間違いがあると思います。 私 mistake with the total. Could you fix that for us? たちのためにそれを訂正していただけますか。 照w Sure Um, you had pizzas salads and sandwiches beverages.you actually ordered were waterの And there shouldn't be any charge for that. かしこまりました。 えーと、お客様が召し上がったのは、ピザ、サラダ、 それからサンドイッチ…。 ああ、 分かりました、 そうですね、 お客様が 実際にご注文なさった唯一のお飲み物は水でした。 そして、それに対し て何も代金がかかるはずはありませんね。 Ah, I see Oright, the only Salads Sandwiches. Coffees Pizzas $15 $74 $6 $12 3 サラダ 15 ドル 2 サンドイッチ 14 ドル us- 3 コーヒー 6 ドル 2 ピザ 12 ドル TOTAL $47 合計un 47 ドル 3232

解決済み 回答数: 3
1/2