学年

教科

質問の種類

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

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
TOEIC・英語 大学生・専門学校生・社会人

英語がとっても苦手で何が書いてあるか全く分かりません。 明日の朝提出しなければならないのでどなたか解いてください。お願いしますお願いします。

44 15 20 25 30 Lecturer 10 Class times Office hours* Classroom Textbook Reading Read the following passage and answer the questions. English Writing Core I 43 ► This course is for foreign students to learn basic academic writing skills. The course is divided into three classes according to the results of a placement test. ► The placement test is on Tuesday, September 2 at 9:00 in Bldg. 10 Room 1. ▸ After the test, students must visit the student office by September 9 to register. This is a half-year course, and students who have completed one level can enter the next level in the spring term without taking the placement test. Level 1 Level 2 Level 3 Prof. Smith Friday 9:00 a.m.-10:30 a.m. Friday 10:45 a.m.-12:00 p.m. Bldg. 12 Room 1 "Advanced Writing Strategies Level 1: This course introduces students to the basics of English academic writing. Students will begin by learning how to write a coherent paragraph and then apply this skill to writing a five-paragraph essay. They will learn how to create an effective thesis statement, topic sentences, introduction and conclusion, as well as how to organize supporting sentences logically. Students are required to submit one single-paragraph composition, one essay outline and two essays on pre-selected topics at the end of the course for assessment. | 43-45 英 Green Valley University, Autumn Semester Level 2: In this course students focus on gaining an in-depth understanding of the form and function of *argumentative writing and compare and contrast representative essays. Emphasis is placed on writing effective thesis statements and developing paragraphs. Students also learn effective citation, paraphrasing and summarizing skills. Reading academic articles to improve their writing style and vocabulary is a key feature of this course. Assessment is based on two short essays and a paraphrasing and summarizing task. 4 Bldg. 19 pre-selected 24 paraphrase Prof. Simpson Prof. Wheeler Wednesday 9:00 a.m.-10:30 a.m. Monday 10:30 a.m.-12:00 p.m. Wednesday 10:45 a.m-12:00 p.m. Monday 1:20 p.m.-2:50 p.m. Bldg. 10 Room 1 "Have Fun Writing" Bldg. 10 Room 5 "Essay Writing Skills" Level 3: For more experienced students, this course aims to develop advanced essay. writing skills. Emphasis is placed on taking a position in an argumentative essay, researching, evaluating sources and logically developing ideas throughout the essay Students will also learn how to effectively integrate a range of sources into their writing. Assessment is based on one long essay on an academic topic chosen by the student. (379 words) * office hours: 大学の研究室などで教員に面談が可能な時間帯 thesis statement: (エッセイの) 主題文 argumentative: Words & Phrases 32 9 Prof. 20 assessment 29 take a position 15 coherent 21 in-depth 31 integrate A into B 19 composition 24 citation 31 a range of~ Read the passage and put T (True) or F (False) in the brackets. (各2点) (1) Students cannot choose the level of the course they want to take. (2) Students who have finished the level 2 course can enter the level 3 course without taking a test. ( ) (3) All students, whichever level they are taking, must submit at least one essay on a topic chosen by the student for assessment. ) 2 Questions Answer the following questions. [1] Choose one word which has the same pronunciation as the underlined part of the following word from the passage. (4点) thesis a. beneath b. breathe c. worthy d. smooth [2] Complete the answer to the following question. "What is a placement test?" "It is a test to [3] Hiroshi wants to see the lecturer of the Level 2 course to ask some questions. Tell him what to do to see the lecturer. (6点) [4] Choose the suitable word for each blank. (1) Level 1 students focus on how to write logical and well paragraphs. a. devised b. organized c. known (2) Level 3 students have to make their opinion essay. a. correct b. decent c. clear [5] Choose the suitable phrase for the blank. "Level 2 students are required to fully understand a. what argumentative writing is b. how important it is to write an effective thesis statement c. what the basic structure of English academic writing is d. how argumentative writing is evaluated 3 Listening Quiz (1) a. Visit the lecturer at the specified time. b. Go to Room 1 in Building 10 by September 9. d. spoken d. different (5点) c. Buy the textbook during the specified period. d. Register at the student office by the closing day. (2) a. To learn how to organize supporting sentences logically. b. To improve their writing style and vocabulary. c. To create an effective thesis statement. d. To develop ideas logically throughout the essay. (各4点) Listen to the recording and choose the best option. in an argumentative (5点) 45 回 (各3点) 33

未解決 回答数: 1
情報 大学生・専門学校生・社会人

vsコードを使ってJava言語の勉強をしてたんですけど初心者すぎて何が原因で上手くコードの実行ができてないのかわかりません… 勉強の資料として使ってるのは京都大学のJavaによるプログラミング入門 です。

17:43 7月27日 (木) 1.7 使用するサンプルプログラム (TankCalculator.java) 1: public class Tank Calculator { 2: public static void main (String args[]){ final double FLOW_RATE = 1.0; final double TANK_AREA = 20.0; final double INITIAL_LEVEL = 10.0; double time; //s double tankLevel; //m ... ocw.kyoto-u.ac.jp 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: time = 30; 14: tankLevel = INITIAL_LEVEL + FLOW_RATE*time/TANK_AREA; 15: System.out.println("Tank Level at time "+ time + "s = " + tankLevel + "m"); 16: 17: 18: 19: } 20:} 11 System.out.println("Flow Rate = + FLOW_RATE + "m** 3/s"); System.out.println("Tank Area=" + TANK_AREA + "m**2"); System.out.println("Initial Level = " + INITIAL_LEVEL + "m"); time = 60; tankLevel = INITIAL_LEVEL + FLOW_RATE*time/TANK_AREA; System.out.println("Tank Level at time "+ time + "s=" + tankLevel + "m"); 【補足】 // の後ろは,プログラムを後で読解しやすくするための注釈です. Flow Rate = 1.0m**3/s Tank Area = 20.0mm**2 Initial Level = 10.0m 8 Tank Level time 30.0s = 11.5m Tank Level at time 60.0s = 13.0m 1.7.1 サンプルプログラムの入力と実行 先ほどと同じように, 秀丸エディタを開き, 20行のプログラムを書き込んで, Tank Calculator.java と名付け, 保存して, コンパイル, 実行してください. 成功すれば,以下の実行結果が示されます。(失敗してもめげないで, 2.5.1 節を参 考に、原因を考え,再トライしてください) ちなみに, 実行結果をファイルに書き出すにはコマンドプロンプトの「リダイレク ト」 という機能を使います 11. java TankCalculator > result.txt これにより result.txt というファイルが出来ているはずです。 中身は数値や文字列 だけのテキストファイルですのでエディタなどで内容を確認できます。 @91% 11javaプログラムの中で明示的にフ ァイルに出力することもできるので すがここでは安直な方法を取ります

未解決 回答数: 1
情報 大学生・専門学校生・社会人

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
1/4