1z1-808練習問題集で検証済みで更新された225問題あります [Q118-Q140]

Share

1z1-808練習問題集で検証済みで更新された225問題あります

更新された1z1-808試験問題集でPDF問題とテストエンジン

質問 118
Given:

What is the result?

  • A. Option A
  • B. Option C
  • C. Option D
  • D. Option B

正解: D

 

質問 119
Given the code fragment:

What is the result?
(green, red, yellow, cyan)

  • A. (green, blue, yellow, cyan)
  • B. An IndexOutOfBoundsExceptionis thrown at runtime.
  • C.
  • D. (green, red, cyan, yellow)

正解: C

 

質問 120
Given the code fragment:

How many times is 2 printed?

  • A. Thrice
  • B. Zero
  • C. Once
  • D. It is not printed because compilation fails
  • E. Twice

正解: C

解説:
The outer loop will run three times, one time each for the elements in table. The break statement breaks the inner loop immediately each time. 2 will be printed once only.
Note: If the line int ii = 0; is missing the program would not compile.

 

質問 121
Given the code fragment:

Which code fragment, when inserted at line 9, enables the code to print true?

  • A. String str2 = str1;
  • B. String str2 = "Duke";
  • C. String str2 = new String (str1);
  • D. String str2 = sb1. toString ();

正解: A

 

質問 122
Given the code fragment:

What is the result?

  • A. A B C D Work done
  • B. A B C Work done
  • C. Compilation fails
  • D. A Work done

正解: A

解説:

 

質問 123
Given:

What is the result?

  • A. Welcome Log 2:1
  • B. Hello Log 1:2
  • C. Welcome Log 1:2
  • D. Hello Log 2:2

正解: D

解説:

 

質問 124
Given:

and the code fragment:

What is the result?

  • A. true:true:false
  • B. false:true:true
  • C. true:false:true
  • D. false:true:false

正解: B

 

質問 125
The following grid shows the state of a 2D array:

This grid is created with the following code:

Which line of code, when inserted in place of //line n1, adds an X into the grid so that the grid contains three consecutive X's?

  • A. grid[1][3] = 'X';
  • B. grid[2][0] = 'X';
  • C. grid[3][1] = 'X';
  • D. grid[0][2] = 'X';
  • E. grid[1][2] = 'X';

正解: D

 

質問 126
Given the code fragment:

Which code fragment, when inserted at line 9, enables the code to print true?

  • A. String str2 = str1;
  • B. String str2 = "Duke";
  • C. String str2 = new String (str1);
  • D. String str2 = sb1. toString ();

正解: A

 

質問 127
Given a code fragment:

What is the result?

  • A. They match
  • B. Nothing is printed to the screen
  • C. They match They real match
  • D. They really match

正解: D

 

質問 128
Given the code fragment:

Which two modifications, when made independently, enable the code to print joe:true: 100.0?

  • A. Option B
  • B. Option A
  • C. Option E
  • D. Option D
  • E. Option C

正解: B,E

 

質問 129
Given:
class Test
int a1;
public static void doProduct(int a) {
a = a * a;
)
public static void doString(StringBuilder s) {
s.append(" " + s);
}
public static void main(String[] args) {
Test item = new Test();
item.a1 = 11;
StringBuilder sb = new StringBuilder("Hello");
Integer i = 10;
doProduct(i);
doString(sb);
doProduct(item.a1);
System.out.println(i + " " + sb + " " + item.a1);
}
}
What is the result?

  • A. 10 Hello Hello 11
  • B. 10 Hello Hello 121
  • C. 100 Hello Hello 121
  • D. 100 Hello 121
  • E. 10 Hello 11

正解: A

 

質問 130
Given the code fragments:

And,

Which statement is true?

  • A. After line 11, none of the objects are eligible for garbage collection.
  • B. After line 11, one object is eligible for garbage collection.
  • C. After line 11, two objects are eligible for garbage collection.
  • D. After line 11, three objects are eligible for garbage collection.

正解: B

 

質問 131
What is the name of the Java concept that uses access modifiers to protect variables and hide them within a class?

  • A. Inheritance
  • B. Instantiation
  • C. Encapsulation
  • D. Polymorphism
  • E. Abstraction

正解: C

解説:
Using the private modifier is the main way that an object encapsulates itself and hide data from the outside world. Reference:http://www.tutorialspoint.com/java/java_access_modifiers.htm

 

質問 132
Given the code fragment:

What is the result?

  • A. Compilation fails only at line n2.
  • B. Compilation fails only at line n1.
  • C. Compilation fails at both line n2 and line n3.
  • D. Compilation fails only at line n3.
  • E. Reading CardChecking Card

正解: D

 

質問 133
Given:

What is the result?

  • A. Area is 3.0
  • B. Compilation fails at line n1
  • C. Compilation fails at line n2.
  • D. Area is 6.0

正解: C

 

質問 134
Given the code fragment:

What is the result?

  • A. Null element 0Null element 1
  • B. Element 0Element 1
  • C. NullNull
  • D. A NullPointerException is thrown at runtime.

正解: D

 

質問 135
Given the code fragment:

Which code fragment, inserted at line n1, pints The Top element: 30?

  • A. Option B
  • B. Option A
  • C. Option C
  • D. Option E
  • E. Option D

正解: B

 

質問 136
Given the code fragment:

Which code fragment, inserted at line n1, prints The Top element: 30?

  • A.
  • B.
  • C.
  • D.
  • E.

正解: D

解説:
Explanation

 

質問 137
Given the code fragment:

Test.java:

Which is the result?

  • A. Option E
  • B. Option A
  • C. Option B
  • D. Option C
  • E. Option D

正解: A

 

質問 138
You are asked to develop a program for a shopping application, and you are given the following information:
- The application must contain the classes Toy, EduToy, and consToy. The Toy
class is the superclass of the other two classes.
- The int caicuiatePrice (Toy t) method calculates the price of a toy.
- The void printToy (Toy t) method prints the details of a toy.
Which definition of the Toy class adds a valid layer of abstraction to the class hierarchy?

  • A. Option B
  • B. Option A
  • C. Option C
  • D. Option D

正解: B

 

質問 139
Which statement will empty the contents of a StringBuilder variable named sb?

  • A. sb. delete (0, sb. size () );
  • B. sb. delete (0, sb. length () );
  • C. sb. removeAll ();
  • D. sb. deleteAll ();

正解: B

 

質問 140
......


Oracle 1z1-808 認定試験の出題範囲:

トピック出題範囲
トピック 1
  • Java演算子を使用します。括弧を使用して演算子の優先順位をオーバーライドする
トピック 2
  • 変数の宣言と初期化(プリミティブデータ型のキャストを含む)
  • オブジェクト参照変数とプリミティブ変数の区別
トピック 3
  • ブール値、倍精度浮動小数点数、整数などのラッパークラスを使用するコードを開発します
  • 引数と戻り値を使用してメソッドを作成します。オーバーロードされたメソッドを含む
トピック 4
  • オブジェクトフィールドの読み取りまたは書き込み方法を知っている
  • オブジェクトのライフサイクルを説明する(作成、「再割り当てによる間接参照」およびガベージコレクション)
トピック 5
  • 値を変更するメソッドに渡されたときのオブジェクト参照とプリミティブ値への影響を判別する
トピック 6
  • ポリモーフィズムを利用するコードを開発します。メソッドをオーバーライドするコードを開発する
  • 参照のタイプとオブジェクトのタイプを区別する
トピック 7
  • 静的キーワードをメソッドとフィールドに適用する
  • カプセル化の原則をクラスに適用する
トピック 8
  • 変数のスコープを定義する
  • Javaクラスの構造を定義する
トピック 9
  • Super And Thisを使用して、オブジェクトとコンストラクターにアクセスします
  • JavaAPIから選択したクラスを操作します
トピック 10
  • 演算子と決定コンストラクトの使用
  • Switchステートメントの使用、IfとIf
  • ElseとTernaryコンストラクトの作成
トピック 11
  • メインメソッドを使用して実行可能Javaアプリケーションを作成する
  • コマンドラインからJavaプログラムを実行する。コンソール出力を生成する
トピック 12
  • 他のJavaパッケージをインポートして、コードでアクセスできるようにします
トピック 13
  • 拡張Forループを含むForループを作成して使用する
トピック 14
  • Stringbuilderクラスとそのメソッドを使用してデータを操作する
  • Java.Time.Localdatetimeのクラスを使用してカレンダーデータを作成および操作する
トピック 15
  • プラットフォームに依存しない、オブジェクト指向、カプセル化など、Javaの機能とコンポーネントを比較対照します。
トピック 16
  • whileループの作成と使用、Do
  • Whileループの作成と使用、ループ構造の比較、ブレークと続行の使用
トピック 17
  • メソッドとカプセル化の操作
  • コンストラクターの作成とオーバーロード。デフォルトコンストラクタとユーザー定義コンストラクタを区別する

 

最新(2022)Oracle 1z1-808試験問題集:https://www.jpntest.com/shiken/1z1-808-mondaishu

弊社を連絡する

我々は12時間以内ですべてのお問い合わせを答えます。

オンラインサポート時間:( UTC+9 ) 9:00-24:00
月曜日から土曜日まで

サポート:現在連絡