学年

質問の種類

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

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

教えてほしいです

2 次の英文を読み, 空所に入れるのに最も適切なものを,それぞれ下の①~④のうちから一つずつ選びなさい。 (6) When growing tomatoes, we know we should pick them when they're bright red. With carrots, however, ( 6 ) because they grow underground. ①we should pick them when they turn orange (2) it's hard to know when they're ready (3) we should grow them more carefully than tomatoes (4) it's easy to know when they're bright red (7) Although it is quick, easy and convenient to be able to look up information on the internet, it can sometimes be difficult ( 7 ) because there is so much information. to find what you are looking for (2) to improve the convenience of the internet (3) to get more than what you need that people often experie (4) to have good computer literacy (8) Would you be happier if you were richer? Many people believe that they would be. But research conducted over many years suggests that ( 8 ). People in the United States, for example, are, on average, richer than New Zealanders, but they are not happier. poorer people tend to worry about their financial problems 2 pleasure in life usually comes from great wealth (3) the best way to be happy is learning how to save money greater wealth doesn't generally imply greater happiness (9) Many European rivers were once heavily polluted by manufacturing industries. As a result, wild animals dependent on clean water disappeared. However, as stricter environmental standards took effect, rivers such as the Thames of London have become much cleaner. Consequently, ( 9 ). water quality has continued to decline wild animals avoid drinking from the Thames (3) wild animals are making a comeback in many rivers (4) wild animals no longer depend on clean water

回答募集中 回答数: 0
英語 中学生

(1)の答えがD、(3)の答えがウ、(6)の答えがイ なんですけど、なんでそれになるかと、5⃣で3~5程の段落で分けるとしたらどこになるのか、またその段落はそれぞれどんな題名になるのかを教えて欲しいですm(_ _)m

学院) E J 5 次の英文を読んで、あとの問いに答えなさい。 < 星野改〉 High schools in Minnesota have a problem Many students are late to school. They are often tired. Some students fall asleep in class. They often get sick, too. The local governments take that as a problem. They make a small change.) It helps a school day a little later/ A lot! What do they do? They start the D- This small change makes a big difference. Why? Most teens are very tired early in the morning. They usually don't go to bed until after midnight In the morning, they wake up between 6:00 and 6:30 for school. So they don't get enough sleep! They are still tired early in the morning. But after the change/ teens are more awake and later start time is better for a teen's body clock I be ready/class/to/in). A be in ready class Everyone has a body clock. An adult's body clock works like this: most adults get tired between 9:00 and 11:00 at night. They usually go to bed before midnight. Adults can get up early in the morning. It's not a problem. But a teen's body clock is different. Teens don't get tired at midnight. They usually stay up later. But early in the morning, they need more sleep. B FO C The schools in Minnesota pay attention to the teen's body clock. They change the start of the school day from 7:20 a.m. to 8:40 a.m., 80 minutes later. Other schools in the United States change their start times too. Some schools change the time by only 30 minutes, but they still get good results. ( 2 ), the results are amazing! ③(Many) students are on time. Morning classes are easier to teach. Students are getting ①(good) grades. Students have fewer illnesses, so they are ⑤(little) absent. In Minnesota, there is another important effect: fewer students drop out of school or change schools. D Today, more and more high schools are starting later. Most schools can't start two hours later. But they can change the start time a little. A small change can make a very big difference! Just ask the students. Minnesota ミネソタ (アメリカ合衆国中央北部の州) (1) 次の英文を入れるのに最も適する位置を, 本文中のA~Dから1つ選びなさい。 Now the students are happier, and also the parents and teachers too. D(A) (2)下線部①の ( )内の語を並べかえて正しい英文を作るとき, 3番目にくるものをア~エから1つ選びなさい。 ア be イ ready ウ class I to (3) 20)( )に適するものを, ア~エから1つ選びなさい。 7 On the other hand (4) 3~50)( 1 However ウ In fact I Even so )内の語をそれぞれ比較級にかえなさい。 (3) much (5)本文の内容にあうものを,ア~エから1つ選びなさい。 more (T!) better ⑤⑤ fewer Less High school students in Minnesota are always taking classes seriously. Most teens usually go to bed as early as possible. Most adults don't stay up late because of their body clocks. I Some schools changed the school time but their students did not have good grades. 本文のタイトルとして最も適するものを,ア~エから1つ選びなさい。 7 Fewer Illnesses 1 Late Start Body Clock I Good Sleep イ (土)

回答募集中 回答数: 0
数学 高校生

誰か分かる方(2)について詳しく解説お願いします 🙇 写真下に解説がありますが、それを読んでもよくわかりません💦

104 第2章 2次関数 例題 44 最小値の最大・最小 **** x の関数 f(x)=x2+3x+mのm≦x≦m+2 における最小値をgと おく. 次の問いに答えよ. ただし, m は実数の定数とする. (2) (1)最小値g をmを用いて表せ.dotup. (岐阜大・改) (2)の値がすべての実数を変化するとき, gの最小値を求めよ. 考え方 (1) 例題 43 と同様に考える.軸が定義域に含まれるかどうかで場合分けする。 (2) (1)より,mの値を1つ決めると,g の値がただ1つ決まる. よって,(1)で求めた mの関数とみなし、グラフをかいて考える (1)/(x)=x'+x+m=(x+2)+m-2 小豆 解答 グラフは下に凸で, 軸は直線 x=- 2 $301> 3 (i) m+2<-- 3のとき 2 e+ 小 場合分けのポイント 3は例題 43 (1) と同様 つまり,<-1のとき 20001 目はグラフは右の図のようになる。最小最大 したがって, 最小値 g=m²+8m+10(x=m+2) mm+2 3 3 (ii) m≤- ≦m+2のとき x= 2 2 7 つまり、12sms/2/2のとき 3 が区内 軸が区より左側 +2 0. グラフは右の図のようになる. したがって, 最小値 最小 432 m m+2 Stalton 9 (s=x) ex g=m-4 x=- 2 x=- 32 から、 (8=x) 8 (- 3 (iii) m>- のとき 2 グラフは右の図のようになる。 したがって, 最小値 g=m²+4m (x=m) (2)(1)より,gをmの関数とす ると,グラフは右の図のよう になる. 72- 32 のとき、 -4 TT よって, gの最小値は, " (i) -6(m=-4 のとき) | 最小 mm+2 Sp>I (vi) 94 (iii) m軸,g軸となる。 とに注意する. (m) 大量 15 64 最小 (ii) 23

回答募集中 回答数: 0