学年

教科

質問の種類

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

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

英語の問題です。 この答えが分かる方いらっしゃいますか?

9. Though himself. statesman, James Polk was unusually successful in accomplishing his goals during his term. (A) not yla w op at odw oldiassi oimonoe ai ginimbno JisM al 13. In contrast to popular opinion, measures of intelligence have. teliable predictors of future success. -imaginative U ada t an inola Isoioiso ors 3) never been M. (B) without an (C) he was not (B) not any (C) no TI ni 2stsa2 (D) seldom (D) was not an ntaib gaol 3a uinillida ods daidw. at alolbabus( 14, The name "porpoise" sometimes 10. Blends of spices have been created by spice manufacturers to make the art of scasoning to some members of the dolphin family, (A) it is extended ons Jbodai(A) a quick and casy one ailavon usolnsas (B) is an extension *A (C) extended pollusH (D) is extended (B) casy and quick a one (C) a quick one and easyon Issiufo adh (D) one casy and quick ot 11. During nothe 1950。ch adol bag-baxits5. In old age, the immune system proponents of inguistic relativity believed that - to language or representational functioning. graduaily becomes less resistant to viral fangal, and s od thought- (A) infection by bacteria (A) can reduceitomootains ae 2s oibilids aii (B) bacteria's infection e (B) could be reduced (C) reduces (D) reducing e aoiseniaimbs zot sldienogesn al uo smezqu2 arb 3o soitaui 3oid ad.S 12.- (C) bacterial infection ida lanigho ms a (D) infectious bacteria A that nearly all households will haye broadband internet by the vear baale yiwn olo lo dsso 2015. (A) ExpectingLni s2osh os tiorual atgsimue asar ads gorW.ES (B) Many expecting (C) In expectation nwob" sd oa biea ymaqmoo adt atenoyitisamos (D) It is expected A h o obla gaoxworb po pexdmh ow nomwal nmissmA yhsbM as A

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