学年

教科

質問の種類

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

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

分からないので教えて欲しいです🙇‍♀️

Entrance Exam 否定表現 1. almost 2. I( 1()に入れる最も適切な語句を1~4から選びなさい。 1. I don't think David would make a good leader because he can ( difficult circumstances and tends to give up too quickly. 2. extremely 3. hardly ) go to karaoke, I go only once or twice a year. ) be expected to act honorably in 4. neither (明治大) (芝浦工業大 4. never 1. often 3. Unfortunately, ( seldom ) of the 1. a few 2. few 3. ever passengers escaped injury. 3. many (大阪学院大 推) 4. much 4. ( ) children are born with musical talent. (日本大) 1. none of 2. not all. 3. not every 4. no one 5. ( 2. No 1. as far as 2. far from ) of the workers accepted the director's proposal to cut bonuses. 1. Not 6. The future of English society looked ( 7. I didn't like the food at that restaurant. It was (. (東海大 3. Never ) promising in the 1840s. None (立命館大) 3. for far 4. too far ) delicious. (福岡大) 1. anything but 2. nothing but 3. without 4. out of 8. He was so drunk that he could ( ) walk. (大阪学院大) 9. 1. all 1. able 2. unable This train doesn't stop at ( a few 3. hard 4. hardly ) station. 大阪商業大推) 2. 3. little 4. every 2. few 12. " Can 10. The latest model of this mobile phone is ( 1. not seldom 3. all not 11. Before I watched the documentary, I knew ( 1. little à you come to the party tonight?" "( 1. Yes, I can ) easy to use. (獨協大) 2. not necessarily 4. ever not 3. seldom ) about life under the sea. 4. hardly (東京工科大) ). I have a lot of homework." (拓殖大) 2. Yes, I do 3. No, I'm afraid not 13. Japan has ( 1. a little 2. few 4. No, I hope not ) oil and therefore is almost entirely dependent on imports. (センター) 3. little 4. small

回答募集中 回答数: 0