学年

教科

質問の種類

情報 大学生・専門学校生・社会人

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

総合英語FACTBOOK English Grammar Advanced New Editionの第7章p25の問題の答え持っている方がいましたら教えて頂きたいです!よろしくお願いします。

PP.86. できごとが 37~88 未来の時点 058 > 参照)。 p.88 059 がずっ はあ い Exercise 7 →A 1 Change the verb to the appropriate form and complete the sentences. 1) When I (arrive) at school, the class (already start). My teacher was angry. ¹0 2) I (never see ) Kabuki until I became a college student. A NO TEN 3) The actor (be) an extra for 20 years before he became famous. Helsink Doy bedefimar O 4) Miki noticed that she (lose) the key somewhere. the concede lbovoilen od tamm DOY Sevorse J'nei yu 2 Change the verb to the appropriate form and complete the sentences. leum JAKO-O 1) It (stop) raining by this time tomorrow. 2) Brazil (win) the World Cup six times if it wins it again. Menur of SVBIl (3) She (be) a math teacher for 30 years by March next year.m alterow hat bedone. 4)She will email us when she (read) the report (「読んだら」の意で lanks isla (0707 754300 penlo sitt bus no 3 Change the verb to the appropriate form and complete the sentences. →C 1) Kate (watch) TV since she came home from school. 2) yem 8 My father (work) for over 15 hours when he left the office. 3) She (travel ) abroad since last month. Sni smoo I ysM O つける 4) We (run) for 10 minutes before the teacher shouted, "Stop!" in nisqe of og ysm sW 25 VEAU CO 20 4 Choose the appropriate form of the verb and complete the sentences. → A B C 1) I (read/ have been reading / had been reading) the book for six hours until I realized it was dark outside. compl c513 VIBEE 2) I want to read your novel first after you (wrote / have written / will have written) it. VE met / will have met ) him before. 3) I suddenly remembered I (have met / had 4) He (tries / has tried / has been trying) to solve the problem since this morning. 5 Put the words in the correct order to complete the sentences. 1) [in/people/ already / long before / arrived / America / had ] Columbus came. 2) Yesterday I found the book [ had / for a long time / for / been / looking /I]. 3) [long/you/ French literature / studying / have / how / been ]?ow an ingin W 4) The news says that they [ for / stayed / space / have / in / a month / will ] tomorrow. Put it into English - Context writing - 1) 父が帰宅したとき 私はテレビを2時間見ていた。 llow idgim \ yam I 078 11m B II WOTTOmol nis: lliw (O naquad Hiw etnobis.A 2) 彼は雨の中を歩いて帰宅したと私に言った。 3) 彼がバス停に着いたときには,最終バスはすでに出発していた。 nato biwow beh yM 4) その夜以前に父が歩いて帰宅したことは一度もなかった。 basd 6 yoy ovig ILO MA 312) Imid ymise I X40).sgo f'ow toob aidT ABC 25

回答募集中 回答数: 0
1/2