学年

教科

質問の種類

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

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

c言語プログラム 本当に分かりません。 どなたか教えてください

(2点) 【演習3】 if-else と繰り返し文 最大値(整数)と整数xをキー入力すると、1から最大値までの整数を順に表示するプログラムを if-else 文および for文を使って作成せよ。 ただし、最大値が10~50以外の場合、または整数 x が 2~9以外で 入力された場合は、「範囲エラー」 を表示すること。 また、1から最大値までの整数を表示する際、表示 する整数が整数xで割り切れる場合は を、 割り切れない場合はその整数を表示すること。 xで割り切れる値は☆を表示 <ソースプログラム> #include <stdio.h> int main (void){ イント2 ント5 } printf("最大値: "); /* 変数宣言*/ return 0; printf(" 整数x: "); cats ; /*キー入力*/ // *キー入力*/ <実行例①> |最大値: 10 ↓ 整数x2↓ 13579☆ <実行例②> |最大値: 50 ↓ 整数x 91 12345678 10 11 12 13 14 15 16 17 19 | 20 21 22 23 24 25 26 28 29 30 31 32 33 34 35 ★ 37 38 39 40 41 42 43 44 46 47 48 49 50 <実行例③> 最大値: 9 整数x2↓ 範囲エラー <実行例⑤ > 最大値: 10 ↓ 整数X : 1↓ 範囲エラー <実行例④ > | 最大値: 51 ↓ 整数X ↓ 範囲エラー <実行例⑥ > 最大値: 50 ↓ 整数x : 10↓ 範囲エラー (下線部はキー入力を、↓は Enter を示す)

未解決 回答数: 1
TOEIC・英語 大学生・専門学校生・社会人

自分の回答があっているか不安なので、4第答えて頂きたいです。 自分の回答はこちらには見にくくなってしまうため書いていません。

Working with words 1 Complete the review of a hotel. Use the answers to complete the puzzle and find the European city where the hotel is located. HOTEL REVIEWS This first-class hotel and conference centre welcomes guests from all over the world. Its 1 facilities are second to none. There are 300 en-suite rooms and five apartment suites. For business guests, it has ten meetings rooms, two of which are big enough to be used as halls. 2 The hotel can also organize events such as guided 3 around the town centre for conference 4 and hotel guests who enjoy a bit of 5 For food-lovers, the four-star restaurant serves regional 6 every evening. All in all, this is a top-class for business and for pleasure. 7 6 1 A fa 0 il i t 1 e S 2 Replace the words in italics (1-8) with the phrases from the list. Add a pronoun if necessary. you hotel? look around meet up with show someone around 3 freshen up eat out pick someone up check in drop someone off Pedro It's difficult to park here. Can I stop and leave drop you off in front of the 1 Sabrina Sure, I'll register 2 and then I'd like to have a wash, and change my clothes 3 Pedro If you like, tonight I can give you a tour of 4 the old city. We could by eat in a restaurant 5 the port. Sabrina That sounds great! I'd rather walk about and See 6 the city than stay in my hotel room. Pedro I'll collect you 7 8 8.30 p.m. We'll see Alberto and Maite in the main square. at Business communication 1 Put the words in the correct order to make expressions. 1 meet person / it's / nice / to / you / in It's nice to meet you in person 2 have / did / finding / you/ any / trouble / us? 3 worry / signing / don't / about / in 4 through / programme / I'll / run / today's 5 this my / come / way / to / office 6 need building / you'll / this / enter / badge/ the / to 7 reception / sure / make / in / at / you / sign 2 Raymond Roberts has an appointment with Janet Rose. He has just arrived at HBG premises. Complete their conversation with the phrases from the list. let me take your bag can I get you a drink Welcome to HBG publishing I thought you could catch up again how was your journey You'll need this Make sure you 1 Raymond Good morning, I'm here to see Janet Rose. Janet Hello, I'm Janet. ¹ Welcome to HBG publishing. Raymond It's nice to meet you in person. Janet Likewise. So, 2 Raymond Well, there were traffic jams on the motorway and I got a little bit lost in the industrial park. Janet Don't worry. That happens to everyone. Anyway, 3 - I'll store it in my office. Raymond I'll hang on to it if you don't mind. It's got all my stuff in it. Janet Well, if you change your mind just tell me. And 4 Raymond Thanks. I'll have a cup of tea, please. Janet Sure, I'll just get that for you in a second. First of all, I'll run through the schedule. 5 start by meeting Karen Rankin this morning and then we'll 6 at lunchtime. Raymond OK. And will I see Malcolm Briscoe? Janet Yes, in fact he's joining us for lunch. One other thing. security pass. at all times. 7 It's your 8 wear it

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