学年

質問の種類

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

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

英語の問題を教えてほしいです💦 赤で囲ってある部分の( )内の並びかえと和訳がわかりません! よろしくお願いします!!🙇‍♀️

ー HEFant Worker8 are unsknlled theinumberlof highly educated and experienced migrants has been steadily rising. (ぁ)They represent a 10 wide spectrum of occupations ー from computer programmers to awyers, doctors, and teachers.| They move largely within a relatively small community of developed nations (⑬(being / destinations / preferred / with) Europe, Asia, and increasingly the wealthy Middle Eastern countries. 1 According to an analysis of the World Bank, (のthe number of college-educated 1s migrants in developed Western countries rose almost 70%6 between 1990 and 2000. By contrast。 the mumber of those without a university degree rose by only 81% over the same period. Analysts agree that tougher entry requirements for unskiled workers are the major reason behind this difference. *(⑮)Over the course of our history we have come to take it for granted that 20 migration in the world is dominated by movements of people hoping to escape poverty and oppression," commented a senior offcial at a research institute. “Now these patterns are much more complex and multi-directional' he added. Tndeed, surveys iustrate that in todays global village' (6)a wide range of factors isi r. Sure, some are after a may account for ones decieion to mOVe acrOSS the borde < EBIRIIII昌昌時EE

回答募集中 回答数: 0