学年

教科

質問の種類

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

この問題の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・英語 大学生・専門学校生・社会人

今からこの問題のテストがあります! 答えを教えて頂きたいです!

I. mani"X" bnt Quiz 1al insmatste pniwallolantOpel llsw art no ftel mooooysterio Fill in the blanks with the appropriate words or phrases to match the following statement. 01. インターネットのない生活なんて想像もできない。 ) hardly imagine life without the Internet. ) 1 g to brossert) asyl as all anoutalbBQ rexland bed new pail nail art Innil bonteal V 30 ns ahenda sill lent benelque asinspo dT 80 nuzelmibe jut eg lon ed of ar leum and TO asamem Viimist lie yd have 02. コックピットは安全な場所どころではない。 The cockpit ( ) ( ) ( )( )( ) place. 03. 電話を切るやいなや、 また電話が鳴った。 No sooner ( ( oyoT yd ourpoind aew | 80 beaute all tudominib otomoomin bates Wo Hood art stelgmus al emot ansay wool 1.01 ) hung up than the phone rang again. 04. 愛というものは、言わば、心のための栄養である。LIGHmment na ro Love is, so ( ) ( ), a nutrient for the heart. bongenadyeing alt 05. 彼は毎晩誰かが事務所に残っていたらよいと提案した He ( ) that someone stay in the office every night. Vew art to to slam of soigston art live to draw all Co 06. 担保付きのローンから始めた方がよいと勧めたい。 I would ( ) that you start out with a secured loan. hom yde slevou a to poles conse of categ 07. 「ご用は承っておりますか」 「ありがとう。 ただ、 ぶらりとみているだけです」 "Are you (m) (i)?" "Thanks. I'm just browsing." nort 08. 先生が見えるまで、ロビーでお掛けになってお待ちになってください」 ) in the lobby while you wait for the doctor to arrive!" “Please be ( 09. パソコンがあれば、こんな手間はすべて省けますよ。 (パソコンを使えばこの手間はすべて省ける) Als) (c) you all this (c). A personal computer ( 10. 雨が激しく降っていたにもかかわらず、彼女は仕事に行った。 ) ( ) the heavy rain, she went to work. ( )( TO

回答募集中 回答数: 0
TOEIC・英語 大学生・専門学校生・社会人

英語の問題です。 教えて欲しいです🙇‍♀️

(2) I had my teeth 1 check 1( )に入る最も適切な語句を ① ~ ④から選びなさい。 (1) He went on speaking as if she ( 1 can't 2 hasn't ) there. Son 3 wouldn't ) by a dentist this morning. ult niles 3 checking wahiwon (青山学院大 ) ④weren't pomibinand (岩手医科大) 24 to check 2 checked (3) You should not keep any pets ( 1 after 2 unless ) you can take good care of them. 3 when (中央大) ④which 1 as 2 in ) all be correct. ②anytime (6) If the weather ( ①must have been (4) This town will change ( ) another ten years. (5) Those may not ( 1 absolute ) fine yesterday, I would have done the laundry. 2 is (7) Studying takes up a lot of my time during the week, ( ) little time for hobbies. (芝浦工業大) since 3 of (國學院大) 3 everything ④necessarily (関西学院大 ) ③ wasn't 4 had been (皇學館大) ①1 has left (8) Have you heard the rumors ( 1 that 2 what leaves leaving 4 left ) Susan has returned to this town? ③ which (麗澤大) ④ who 1 by (9) What was found in this experiment is ( 2 for (10)( ) what to say, she remained silent. ) great importance to researchers. 3 in (立命館大) 4 of (愛知工業大) 1 Not knowing 2 Being not knowing ③No knowing ④Knowing no (11) I tried to ( 1 have 2 make ) her to tell me what happened last night. 3 get (十文字学園女子大) 4 let How gimon and (12) Do what you like, as ( 1 far 2 much B in 1 in 2 with bnat am ) as you leave me alone. 3 long (13) This tool is dangerous. Please read the instructions ( (14) If I hadn't drunk so much last night, I ( 1 feel (15) I wish you 1 attend (16) If I ( 1 were ) 2 will feel ) the party yesterday. 2 were attending ) much better than I do right now. ③ would feel ③ have attended (中京大) 4 would have felt (目白大) ④had attended ) in your situation, I would be more careful about what you post on social media. (フェリス女学院大) 4 many ) care. (聖隷クリストファー大) at ④take gwol 3 will be (南山大) ④would be

回答募集中 回答数: 0
TOEIC・英語 大学生・専門学校生・社会人

下線部(1)の文構造が分かりません。特に2行目の文構造が分かりません。強調のdoであることは分かりますが、その後のthat以降が関係詞?かすらも分からないので、誰か教えて下さい!

次の英文は1991年に出版された本からのもので、 研究分野としての「人工知 能」 (Artificial Intelligence) について述べています。 下線部(1)~(3)を日本語に訳 しなさい。 What is Artificial Intelligence (AI)? Just about the only characterization of Al that would meet with universal acceptance is that it involves trying to make machines do tasks which are normally seen as requiring intelligence. There are countless refinements of this characterization: what sort of machines we want to consider; how we decide what tasks require intelligence and so on. One of the most important questions concerns the reasons why we want to make machines do such tasks. AI has always been split between people who want to make machines do tasks that require intelligence because they want more useful machines, and people who want to do it because they see it as a way of exploring how humans do such tasks. We will call the two approaches the engineering approach and the cognitive-science respectively. (2) (1) approach The techniques required for the two approaches are not always very different. For many of the tasks that engineering AI wants solutions to, the only systems we know about that can perform them are humans), so that, at least initially, the obvious way to design solutions is to try to mimic what we know about humans. For many of the tasks that cognitive-science Al wants solutions to, the evidence on how humans do them is too hard to interpret to enable us to construct computational models, so the only approach is to try to design solutions from scratch" and then see how well they fit what we know about humans. The main visible difference between the two approaches is in (3) their criteria for success; an engineer would be delighted to have create something that outperformed a person; a cognitive scientist would regard it as a failure. -1- M7 (492-61

未解決 回答数: 1
物理 大学生・専門学校生・社会人

大学古典力学の2質点系の問題です。 この問題の(II)で重心Gに対する相対位置ベクトルとして、解答下線部のようにおいていますが、何故こうなるのですか?分かる方がいましたら教えて下さい。

演習問題 96 2質点系の運動 (I) 右図のように xyz 座標をとる。 長さ 3r の質量の無視できる棒の両端に,それ ぞれ質量 2mmの質点を取り付けたも のが、その重心Gのまわりを一定の角 速度で回転している。 重力はy軸の負voy = の向きに働くものとし、この2質点系の y4 2m cart ro Wo m Vo. vosino- Pox VoCose ス 重心Gを, 原点から、時刻 t = 0 のときに 仰角6 (0<</2)初速度 Do = [Vox, Voy, 0]. (vo=||vo||) で投げ上げるものとする。 このとき、この回転しながら運動する 2質点系について、時刻におけ る (i) 全運動量P, (ii) 全運動エネルギーK, () 全角運動量Lを 求めよ。 また, (iv) この2質点系の位置エネルギーを求め、力学的 ネルギーが保存されることを示せ。 ただし, 2質点系の回転はxy 平面 内で起こるものとし、 空気抵抗は無視する。 ヒント! (i) 全運動量P=PG, (ii) 全運動エネルギーK=KG+K', (i) 全角運動量L=Lc+L' の公式通りに求める。 (iv) 位置エネルギーの基 準を zx平面にとる。 解答&解説 P=Pc=3mUG (ii) 2質 K = (KG ここ KG= 質量 重心 K質重Gがで対 G が, で 対 Vol (速 V01 G Toz こ Vo さ V02 -v=jo =[var-gt+v 以 G (3m) (i) 2質点系の全運動量Pは,全質量 3m が集中したと考えたときの重心Gの運動 量 Pc に等しい。 重心Gには,重力に よる加速度g = [0,-g, 0] が生じるので, その速度UGx成分は, Per PacOS (一定成分は, Voy = - gt+ vosino となる。 t = 0 のとき Poy= Posin より ∴Uc=rc=[vocose, -gt + vasin0, 0] ……① より, P=Pc=3mUc=3m [vocoso, gt + vesin 0, 0] となる。 K 162

解決済み 回答数: 1
情報 大学生・専門学校生・社会人

Oracle certified Java Programmer Gold SE11 IT系ベンダー資格のOracle certified Java Programmer Gold SE11の資格勉強をしているのですが、もし、Javaに詳しい人がいるのでしたら、 第6章... 続きを読む

8. 次のコードをコンパイル、 実行したときの結果として、正しいものを びなさい。 (1つ選択) } var sql = "select * from item where id = ?": try (var ps = con.prepareStatement (sql)){ ResultSet rs = ps.executeQuery(); // do something 0件の検索結果が戻される 11. 次のコードをコンパイル、実行したときの結果として、正しいものを選 びなさい。(1つ選択) var sql = "select * from emp"; try (PreparedStatement ps = con.prepareStatement(sql){ ResultSet rsps.executeQuery(); System.out.println(rs.getString(2)); なお、 検索する対象となるempテーブルは、以下のレコードが登録さ れているものとする。 DEPARTMENT A. B. 全件の検索結果が戻される C. コンパイルエラーが発生する D. 実行時に例外がスローされる ID NAME 1 ALLEN R&D A. B. executeQueryメソッド C. executeメソッド D. executeBatch メソッド メソッドとして、最も適切なものを選びなさい。 (1つ選択) executeUpdate メソッド 19. JDBCを使ったデータベースプログラミングをしている。 UPDATE文を 実行した結果、 何件更新されたかを調べたい。 PreparedStatementの P314 2 SCOTT SALES 3 BILL ACCOUNTING A. 「1」 と表示される Marit B. 「2」 と表示される C. 「ALLEN」 と表示される D. 「SCOTT」 と表示される E. コンパイルエラーが発生する F. 実行時に例外がスローされる 第6章 JDBCによるデータベース連携 (問題) <->P316 P314 10. 次のコードをコンパイル、 実行したときの結果として、正しいものを選 びなさい。 (1つ選択) var sql = "delete from item where id = ?"; try (var ps = con.prepareStatement(sql))( ps.setInt(1, 1); ps.executeUpdate("update item set name="test' where id = ?'); 12. 次のコードをコンパイル、 実行したときの結果として、正しいものを選 びなさい。 (1つ選択) var sql = "select count(*) from item"; try (PreparedStatement ps = con.prepareStatement(sql)){ System.out.println(ps.execute()); なお、検索する対象となるitemテーブルは、以下のレコードが登録さ れているものとする。 A. DELETE文が実行される id name 1 B. UPDATE文が実行される banana 2 C. コンパイルエラーが発生する apple 3 D. 実行時に例外がスローされる P316 orange 298 ※次ページに続く 299

回答募集中 回答数: 0