学年

質問の種類

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

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

答え合わせがしたいので教えてください🙇‍♀️

Come under this heading, and are spending an average of 4 hours each day on care. 60% d of second-year public junior high and 4.1% of second-year public senior high school students |I|次の文を読んで、あとの問いに答えなさい。(~~~~のついた語句は文末に注があります。 |was to create opportunities for the yOung to talk to a school social worker about the domestic issues that were keeping them from attending class without young people who are obliged to help with the care of a family member. It reports that 5.7% has revealed one very different reason for absence, and that is the increase in the number d In its latest study, the Japanese government is making an effort to identify the rees for long-term absence from school. Long-term absence at elementary, junior and senior high levels has various causes, not least of which is the ongoing coronavirus pandemic. The study ow the former, and more than half of the A are looking after a younger brother or siste- though the exact figure is not known. The Asahi Shimbun's article of April 14", 2021 also described the case of one shudee who was looking after a grandparent with dementia because both her parents were working and her absence from school was because she could not get up in the morning. Instead of being treated as a separate reason in itself, like a student's refusal to attend school, or sickness, or economic considerations, family care is put into the category of 'other B to highlight the problem. Despite the recent introduction of reasons'. This does not school social workers, and the understanding that domestic issues are often at the root of school absence, much more needs to be done to provide support to enable these young carers Japanese society still expects the C to have enough time to spend on their studies. family to care for its members. The mental health of these young carers is an important issue, though this problem cannot be solved unless the whole domestic environment in which they are placed Is improved. This has led to the criticism that. although the government study may hdVC nelped to identify some of these young carers, there is not enough actual support bes offered. AS early as 2015, Minami Uonuma City conducted a survey which tried to ldeirers) specific cases in which young children were acting as carers. and then started to p them with real support. D the fear that this might reflect badly on their family.

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