学年

質問の種類

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

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
英語 高校生

至急です。試験範囲なので教えてください🙏🙏

第1章 □ 13. My best friend and I ( ) each other since we were five. (神奈川大) ④knowing ①have known 2 know 3 knew 24. If it ( ) on Thursday, we will not go to the beach. (西南学院大) ids ①rains would rain ③rained has been rained 14. My friend from Africa ( ) snow until he came to Japan. (日本大) ago. ①has not seen 3 had never seen Joq was never seeing will have seen al ofie S 25. I don't know if our teacher ( ①camera ②come ien ( ) back next week.d( 3comes (東北薬科大) 4 will come gablem at 時制 15. When Mary was introduced to Mrs. Smith, she realized she ( ) her before. elids ③will meet was meeting 3 Dis meeting □ 16. At the end of next month, we ( ) here for three years. had met (東海大) ①leave 3. (this stone adoleft 30 (立命館大) 27. I wonder when he ( ①come ) next. ①have lived live ③will have lived will live betes 26. Turn off the lights when you (br) the room. ( ③will leave cause it ) yded ed Oleaving D (日本大) smod v②coming (nedloqa had come \I\e will come (日本大) ☐ 4.1 was nger in the shopping mall. Dspoken by 17. I really must go and see the dentist. One of my teeth ( ) for weeks. @being spoken Dached 2aches 3 has been aching is aching 18. I ( ) my homework for an hour when my mother came home. (大阪経済法科大) gile@ Dam doing 2 was doing 3 have been doing had been doing (共立女子大) D gaiblod od lliw bled ad lliw blod Hiw 9 ) noitools Intone A 20 Baiblod ai① 5. The room should ( Obe kept ) clean at all times @batept) bear of seeded over Y are gnitisqet need asdⓇ gairinger ai 6. When I came other hat the 東北福祉大) s building Obeing built .89mit in1976e 19. She ( ) in the accounting department for 10 years by the end of next month. ①has worked gatiog me 7. Michael ( ③3 will have been working has been working is working (国士舘大) gnibrawe need asd go ) 1015xib adf to bebrown ead bbw gingle Player three wensed and @has selected has been selecting trode) 1.8 810 Writing 20. When I woke up this morning, I decided I ( ) to get in shape. 杏林大) )vedT 8. C ①want ②wanted 3 will want 4 had wanted sqft 18beads ( 最頻出の項目を、もう一度書いて覚えよう。 ) awon ai dtime.eM nd that ☐ 1. I got your letter last week. I'm sorry (didn't / haven't/back/I/ written). boiling 21. Yesterday in science class, I learned that water ( ) at 100°C. ①was boiling 3 boils (大谷大) (1語不要) (武蔵大) 4 boil ☐ 2. (began / begun / the class / already / had) when I arrived. (1) 22. I will ask him about it as soon as he () back. ⑪come 2 comes bib@ ③will come (国士舘大) wen & Jdgood o 4 would have come (国士舘大) bassaid □ 3. もし天気 (the weather) が良ければ, 私たちは明日泳ぎに行く。 (1語不要) (防衛医科大) 23. I'll be back before it ( Drain ). ②rains wad nodw exey evil Tol nobno ni ( 3 will rain 4would rain ed (立命館大) We (the swimming / weather / will/be/is/tomorrow/go/if) fine. 6

未解決 回答数: 0