学年

質問の種類

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

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
数学 高校生

整数解を求める方法でこの三つの方法があると思うんですが、どの場合どれを使ったらいいのか見分ける方法はありますか?

460 第8章 整数の性質 例題 253 方程式の整数解 (1) 次の不定方程式の整数解を求めよ. (1) 2x-3y=21 [考え方 解答 Focus (②) 2x-38-212550305210形という関係があるに素であることを利用す。 (2) xとyの係数, 539=52×10+19 という関係がある。 (1) 2x-3y=21 より, 2x=3(y+7) ......① 2と3は互いに素であるから, xは3の倍数とな る. 撥数でかいの できたら、ユークリットやる したがって, kを整数として, x=3k とおける . これを①に代入すると, 2×3k=3(y+7) 2k=y+7 より y=2k-7 よって, 求める整数解は, (2) 52x+539y=19 x=3k, y=2k-7 (kは整数) (別解) 2x-3y=21 より, y=²x-71071081/ete yは整数より, xは3の倍数となる. したがって, x=3k (kは整数) とおけ, y=2k-7 よって, (2) 539-52x10+19 x=3k, y=2k-7 (kは整数) bibe これを与えられた方程式に代入すると, 52x+(52×10+19)y=19 NJIMACARO 倍数となり, んを整数として 整理すると 52(x+10y)=19(1-y) ...... ① 5219は互いに素であるから, x+10yは19の x+10y=19k, すなわち, x=19k-10y これを①に代入すると, 52×19k=19(1-y) 52k=1-yより y=-52k+1 よって, 求める整数解は, x=539k-10,y=-52k+1 (kは整数) 三習 次の不定方程式の整数解を求めよ. 253 (1) 2x-5y-25 * (税込) 2000 (2) 48x+491 ** 不定方程式 ax+by=c (aとbは互いに素) で, aまたはbとcが1より大きい公約数をもつとき, (xの式)=g(yの式) (pとgは互いに素) と変形する xが3の倍数でないとき yは整数にならない. 77 xとyの係数の大きい方 の数 539 を小さい方の数 52で割る. y=-52k+1 より, x=19k-10y =19k-10(-52k+1) =539k-10 181 74-10

回答募集中 回答数: 0
TOEIC・英語 大学生・専門学校生・社会人

文章を読んで上の1〜4の問題を解くものです。 分からないのでお願いします

3. Answer the following questions. 1 What is the difference between UNIX and Linux? 2 3 4 Choose one of the words in italics in the text. What is the definition of the word you have chosen? What are the three levels of a Linux system? What are the two main functions of the kernel? [Reading Text] UNIX was initially developed by researchers at Bell Labs in the 1970s. Today, UNIX and its variants are widely used mainly on servers. By far, the most well- known UNIX-like operating system is Linux. Linux is available in different distributions which include the Linux kernel and different collections of software. These distributions have various user interfaces, many experienced users preferring the command-line interface, or shell. Linux distributions include a range of software including text editors. memory. While the mechanics of Linux and other Unix operating systems are complicated, the components of a Linux system can be grouped into three levels. The lowest level is the hardware, such as Central Processing Unit (CPU) and The next level is the kernel. It enables communication between hardware and software, by providing instructions to the CPU and other hardware. The programs that are running on the system, or processes, make up the top level known as the user space. Processes in user space generally only have access to a restricted amount of memory and operations, this is called user mode. The kernel runs in kernel mode which allows it unrestricted access to hardware resources. The kernel provides functions such as process management and memory management. A computer only has limited Random Access Memory (RAM) and processor cores. Process management allows the system to run multiple programs (processes) at the same time even if the CPU can only execute only a few processes at a time. Memory management allows applications to share the system's memory while avoiding potential issues such as memory leak. Included with the kernel are device drivers that provide an interface for applications to communicate with hardware, such as hard drives. System calls allow user processes to access features that are executed at kernel mode, for example creating new processes.

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