学年

質問の種類

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

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点で英文を見てもらいたいです。全部で5文で、対話の穴埋め問題です。 ⤵︎ ⤵︎私が描きたかったことです。 1、電気を変えるのを手伝って欲しい 2、あなたの誕生日は2月25じゃなかった?(2月のスペルが間違ってます🙇‍♂️)... 続きを読む

II. 以下に指示された二人の対話を完成させるのに, 最もふさわしいと考えられる 英文を6語以上で書きなさい。 1) A: I'm thinking about changing the design of my bedroom. B: What were you thinking of doing? A: ( ) B: That will really brighten the atmosphere of the room. Let me know if you need a hand. : 2) A Hi, George. Happy birthday! B: Huh? What do you mean? It's not my birthday today. A: ( ) B: No, it's the 25th of March. But, that's okay. You can say it to me again next month. 3) A Did you hear that Tracey and Belinda decided to get married? B Yes, Belinda called me last night. It's wonderful news. We need to think about a present. A: ( ) B: That's a great idea; they both love entertaining at home. 4) A Why were you late this morning? B Well, there was no room to leave my bicycle at the station. A Really? Were all the spaces taken? B: Yes. I think people should be able to leave their bicycles anywhere. A: ( ) 5) A Don't you think John did really well in the debate contest? B: Yes, I was surprised. He is usually quite shy.

回答募集中 回答数: 0
物理 高校生

(2)の右ねじの法則の考え方がわからないです。教えて頂きたいです。よろしくお願いします。

120.〈直線電流と円形電流がつくる磁場〉 図1に示すように、互いに直交するx軸, y 軸, z軸をとる。 z軸に平行で無限に長い導線 1と導線2を考える。導線1は原点O(0, 0, 0)を通り, 導線2は点Q(2d, 0, 0) を通る。 導 線1には直線電流Iがz軸の正の向きに、導線2には直線電流Iがz軸の負の向きに流れ ている。ただし,電流の大きさは L<I とする。 導線の周囲の物質の透磁率をμとして, 次の問いに答えよ。 向きについての解答は, 「z軸の正の向き」のように、軸の名称と正負で 答えよ。 (1) 導線1の長さの部分が導線2のつくる磁場から受ける力の大きさFを, I, Iz, μ, d, を用いて表せ。 またその向きを答えよ。 (2)P(d, 0, 0) での磁場の強さを, I, I2, μ, dの中から必要なものを用いて表せ。 ま たその向きを答えよ。 次に図2に示すように, 点R (4d, 0, 0) を中心に半径dの円形コイルを xz 平面内に置き, dos それに電流を流す。 (3)点Rでの磁場の強さが0になったとする。 このときの円形コイルに流れる電流の大きさ Iを, I と Iを用いて表せ。 また, 点S(5d, 0, 0)での電流Iの流れる向きを答えよ。 導線1 導線2 導線1 導線2 11 12 I PQ I2 Q R S 2d 4d 5dx d 2d x 図2

回答募集中 回答数: 0
英語 高校生

英語の長文です どこに文法表現があるか知りたいです! よろしくお願いします。

5 UNIT3 Reading Passage 10 15 20 20 25 30 Listening When important events are happening around the world, most people turn to traditional media sources, such as CNN and BBC,¹ for their news. However, during the invasion of Iraq by the United States and its allies in early 2003, a significant number of people followed the war from the point of view of an anonymous² Iraqi citizen who called himself "Salam Pax" (salam means "peace" in Arabic, and pax means "peace" in Latin). Salam Pax wrote a diary about everyday life in Baghdad during the war, and posted it on his web site. Pax's online diary was a kind of web site known as a "blog." Blogs, short for "web-logs," are online diaries usually kept by individuals, but sometimes they are written by companies and other groups of people. They are a rapidly growing type of web site on the Internet. There are estimated to be several hundred thousand blogs on the Internet, and with the popularity of other social media sites, the number of people writing online about their lives continues to grow. may find A blog differs from a traditional web site in several ways. Most importantly, it is updated much more regularly. Many blogs are updated every day, and some are updated several times a day. Also, most blogs use special software or web sites which are specifically aimed at bloggers, so you do not need to be a computer expert to create your own blog. This means that ordinary people who computers difficult to use can easily set up and start writing their own blog. In 2003, the Internet company AOL³ introduced their own blogging service, enabling its 35 million members to quickly and easily start blogging. There are many different kinds of blogs. The most popular type is an online diary of links, where the blog writer surfs the Internet and then posts links to sites or news articles that they find interesting, with a few comments about each one. Other types are personal diaries, where the writer talks about their life and feelings. Sometimes these blogs can be very personal. There is another kind of blogging, called "moblogging," short for "mobile blogging." Mobloggers use cell phones to take photo's, which are posted instantly to the Internet. When the content and images posted online involve news subjects, mobloggers become citizen journalists. In fact, the Korean web site OhMyNews was a well known source for articles from international citizen journalists. However, in 2010, OhMyNews stopped posting new articles. Instead, it is now a blog site where citizen journalists can choose what makes the headlines, or just share ideas about how regular people are changing the news world. Anyone who visits the web site of a big media company can clearly see how the idea of blogging has changed the reporting of news. Quite often, a list of reader comments follow news articles. It seems that the news is becoming less like a report or a lecture, and more like a conversation, where anyone can join in. CNN, BBC Cable News Network, British Broadcasting Corporation anonymous not named; unknown 3 AOL America Online

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

29番の(1)で必要十分条件を求める問題で、どちらが必要条件でどちらが十分条件か分からなくなってしまいました。考え方を教えて頂きたいです。

28 よって ここで ゆえに −(n=k+1}{n+k+1)+(n−k)(n+k) n→∞0 =-2k²+(2n²+2n+1) f(n)=-4 f(x)=x(2k² +2n² +2n+1) k²=0+22k², 1=2n+1 TA³5 k=1 −42 k²+(2n²+2n+1) (2n+1) k=1 − n(n+1)(2n+1)+(2n²+2n+1)(2n+1) lim 72-00 n³ (2) f(n) -1/(1+1/2)(2+1/2)+(2+1/2)(2+1)} =--²--1-2+2-2= 8 3 3 別解n≦x≦k, k≦x≦n と k<x<kに分けて,直線 y軸に平行な直線につ x=i (-n≦i≦n) 上にある格子点の数を求める。 さて格子点を数える。 = -n≦i≦k のとき, 格子点の数は k=-n 1+3++{2(n−k+1)−1}=(n−k+1)² = (+_____________ k<i<kのとき, 直線 x = i の本数は ←-k+1≦isk-1 各直線上の格子点の数は よって k-1-(−k+1)+1=2k-1 = I=gb S=b 2(n-k+1)-1=2n-2k+1 Nk=2(n-k+1)+(2n-2k+1)(2k-1) =-2k²+(2n²+2n+1) 総合を複素数とする。 自然数nに対し、2” の実部と虚部をそれぞれxとyとして、2つの数列 29 {Xn},{yn}を考える。 つまり, z=xn+iy" (iは虚数単位) を満たしている。 (1) 複素数zが正の実数と実数0を用いて z=r (cos0+isine) の形で与えられたとき、 数列{x},{ym} がともに0に収束するための必要十分条件を求めよ。 1+√3 10 = n(n+1)(2n+1) のとき、無限級数Σx とΣy はともに収束し, それぞれの和は n=1 71=1 x=2y=イロである。 (1) z=r (cos0+isin0) [r>0] のとき HINT (1) x²+y² = (r")2 となることに注目し, まず必要条件を求める。 (2) z を等比数列の和の公式を利用した式で表してみる。 ORAN z"=r" (cosnotisinn()=r"cosn0 +ir” sinne Xn=r" cosnd, yn=r"sinno よって ゆえに x2+yn²=(r")' (cos2nd+sin'nb)=(x2)" limxn=limyn=0のとき lim(x²+ym²)=0 〔類 慶応大] 本冊 例題 13,102 ←ド・モアブルの定理。 ←=xn+iy 0sr²<1 よって に0<r<1のとき 1-400 0<r<1より, lim|rl"=0であるから ゆえに 0≦|x|=||"|cos nolsrp. よって 0≦ly|=|||sinner| また 以上から、求める必要十分条件は +③iのとき 10 lim|x|=lim|y|= 0 71-00 ゆえに 1110 Z ここで1-2 lim xnn-000 ZR= ここで k=1 z(1-2)= 1-² よって 1- 1+√3 i 10 1+√3 i 10 k=1 84 3+5√3 i 42 (1+√3i)(9+√3 i) (9-√3i)(9+√3 i) 6+10√3i_3+5√3i 2x= k=1 1-2 (1-(xn+iyn)) 1+√3 i 9-√3i 11-0 0721 0<r<1 n=1] -(1-Xn-iyn) 2R= = 1/2 (3(1-xn) +5√3 yn+(5√/3 (1–xn)—3yn}i) z*= (xn+iyn)= xx+iZyn k=1 3(1-x₂)+5√√3 yn 42 ΣXn² n=1 42 5√3 (1-xn)-3yn 42 0</1/3 <1であるから, (1) の結果より limxn=limyn = 0 „=lim 11-00 2 k=1 2 = = = = ( 1²/2 + √²³_i) = = = (cos / 1 + isin) Σyn=lim- 11-0 ←Sa<1のとき a²19 a=1のとき、 α>1のとき、18 42 ←xel Saxolxel から、 xel 0のとき 初項z. 公比zの等比 数列の初項から第 環 までの和 12-00 3 (1-x)+5√3ym_3_71 42 5√3 (1-xn)-3yn_15√/3 42 -419 ←分母の実数化。 42 14 ← 22 のもう1つの表現。 ←実部、虚部をそれぞれ 比較。 (12) 結果を利用 総合 N=1 £ =lim ży

回答募集中 回答数: 0