[2022年08月]更新の1z1-808認定実際の問題を提供します [Q87-Q111]

Share

[2022年08月]更新の1z1-808認定実際の問題を提供します

更新されたのは1z1-808問題集PDFで1z1-808リアル有効なブレーン問題集には225問があります!


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

トピック出題範囲
トピック 1
  • ポリモーフィズムを利用するコードを開発します。メソッドをオーバーライドするコードを開発する
  • 参照のタイプとオブジェクトのタイプを区別する
トピック 2
  • 他のJavaパッケージをインポートして、コードでアクセスできるようにします
トピック 3
  • プラットフォームに依存しない、オブジェクト指向、カプセル化など、Javaの機能とコンポーネントを比較対照します。
トピック 4
  • whileループの作成と使用、Do
  • Whileループの作成と使用、ループ構造の比較、ブレークと続行の使用
トピック 5
  • ブール値、倍精度浮動小数点数、整数などのラッパークラスを使用するコードを開発します
  • 引数と戻り値を使用してメソッドを作成します。オーバーロードされたメソッドを含む
トピック 6
  • 静的キーワードをメソッドとフィールドに適用する
  • カプセル化の原則をクラスに適用する
トピック 7
  • メソッドとカプセル化の操作
  • コンストラクターの作成とオーバーロード。デフォルトコンストラクタとユーザー定義コンストラクタを区別する
トピック 8
  • 変数の宣言と初期化(プリミティブデータ型のキャストを含む)
  • オブジェクト参照変数とプリミティブ変数の区別
トピック 9
  • 変数のスコープを定義する
  • Javaクラスの構造を定義する
トピック 10
  • オブジェクトフィールドの読み取りまたは書き込み方法を知っている
  • オブジェクトのライフサイクルを説明する(作成、「再割り当てによる間接参照」およびガベージコレクション)
トピック 11
  • 継承とその利点を説明する
  • キャストが必要な場合を判断する
  • 抽象クラスとインターフェイスを使用する

 

質問 87
Give:

What is the result?

  • A. Compilation fails
  • B. The program fails to execute due to runtime error
  • C. 0
  • D. An exception is thrown at runtime
  • E. 1

正解: D

 

質問 88
Given the code fragment:

What is the result?

  • A. 1 2 3 4
  • B. 1 2 3 4followed by an ArrayIndexOutOfBoundsException
  • C. 1 2 3
  • D. Compilation fails.

正解: B

 

質問 89
Given:
public class SampleClass {
public static void main(String[] args) {
AnotherSampleClass asc = new AnotherSampleClass(); SampleClass sc = new
SampleClass();
sc = asc;
System.out.println("sc: " + sc.getClass());
System.out.println("asc: " + asc.getClass());
}}
class AnotherSampleClass extends SampleClass {
}
What is the result?

  • A. sc: class AnotherSampleClass asc: class AnotherSampleClass
  • B. sc: class AnotherSampleClass asc: class SampleClass
  • C. sc: class Object asc: class AnotherSampleClass
  • D. sc: class SampleClass asc: class AnotherSampleClass

正解: A

 

質問 90
Which two are valid array declaration?

  • A. Object array[];
  • B. Boolean array[3];
  • C. Float[2] array;
  • D. int[] array;

正解: A,D

 

質問 91
Given the following class: And given the following main method, located in another class:


Which three lines, when inserted independently at line n1, cause the program to print a o balance?

  • A. amount = 0;
  • B. this.amount = 0;
  • C. acct (0) ;
  • D. acct. getAmount () = 0;
  • E. acct.amount = 0;
  • F. acct.changeAmount(0);
  • G. acct.changeAmount(-acct.getAmount());
  • H. acct.changeAmount(-acct.amount);

正解: E,G,H

 

質問 92
Given:

What is the result?
10 Hello Hello 11

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

正解: C

解説:
Explanation/Reference:

 

質問 93
Given:

What is the result?

  • A. 0
  • B. 1
  • C. 2
  • D. 3
  • E. Compilation fails.

正解: B

 

質問 94
Given the code fragments:

Which modification enables the code to compile?

  • A. Replace line n1 with:import p1. A;Replace line n2 with:import p1. A;import p1. p2.B ;
  • B. Replace line n1 with:import p1;Replace line n2 with:import p1;import p1. p2;
  • C. Replace line n1 with:import p1. A;Replace line n2 with:import p1.*;
  • D. Replace line n1 with:import p1.*;Replace line n2 with:import p1. p2.*;

正解: A

 

質問 95
Which two code fragments cause compilation errors? (Choose two.)

  • A. float fit = (float) 1_11.00;
  • B. float fit = 100.00F;
  • C. double y1 = 203.22; float fit = y1;
  • D. Float fit = 100.00;
  • E. int y2 = 100;
    float fit = (float) y2;

正解: A,E

 

質問 96
Given the code fragment:

What is the result?

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

正解: B

 

質問 97
Given:

And given the commands:

What is the result?
1 null

  • A.
  • B. A ClassCastExceptionis thrown at runtime.
  • C. false false
  • D. true true
  • E. true false

正解: A

 

質問 98
Given the code fragment:

And given the requirements:
1. Process all the elements of the array in the order of entry.
2. Process all the elements of the array in the reverse order of entry.
3. Process alternating elements of the array in the order of entry.
Which two statements are true? (Choose two.)

  • A. Requirement 3 CANNOT be implemented by using either the enhanced for loop or the standard for loop.
  • B. Requirements 1, 2, and 3 can be implemented by using the standard for loop.
  • C. Requirements 2 and 3 CANNOT be implemented by using the standard for loop.
  • D. Requirement 1 can be implemented by using the enhanced for loop.
  • E. Requirements 1, 2, and 3 can be implemented by using the enhanced for loop.

正解: A,D

 

質問 99
Given the code fragment:

What is the result if the integer aVar is 9?

  • A. 10 Hello Universe!
  • B. 10 Hello World!
  • C. 9 Hello World!
  • D. Compilation fails.

正解: A

 

質問 100
Given:

What is the result?

  • A. DerivedBDerivedA
  • B. DerivedBDerivedB
  • C. BaseDerivedB
  • D. A classcast Exception is thrown at runtime.
  • E. BaseDerivedA

正解: B

 

質問 101
Given the code snippet from a compiled Java source file:

Which command-line arguments should you pass to the program to obtain the following output? Arg is 2

  • A. java MyFile 1 2 2 3 4
  • B. java MyFile 1 3 2 2
  • C. java MyFile 0 1 2 3
  • D. java MyFile 2 2 2

正解: B

 

質問 102
Given the code fragment:

What is the result?

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

正解: D

 

質問 103
Given:

This class is poorly encapsulated. You need to change the circle class to compute and return the area instead.
What three modifications are necessary to ensure that the class is being properly encapsulated?

  • A. When the radius is set in the Circle constructor and the setRadius () method, recomputed the area and store it into the area field
  • B. Change the getRadius () method:
    public double getRadius () {
    area = Math.PI * radius * radius;
    return radius;
    }
  • C. Change the access modifier of the setradius () method to private
  • D. Change the getArea () method public double getArea () { return area; }

正解: A,B,D

 

質問 104
Given the code fragment:

Which code fragment, when inserted at line n1, enables the App class to print Equal?

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

正解: A

 

質問 105
Given the code fragment:

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

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

正解: B

 

質問 106
Given these classes:

And given this main method:

Which two options compile when placed at line n1 of the main method? (Choose two.)

  • A. director.stockOptions = 1_000;
  • B. manager.budget = 1_000_000;
  • C. director.salary = 80_000;
  • D. employee.budget = 200_000;
  • E. manager.stockOption = 500;
  • F. employee.salary = 50_000;

正解: C,F

 

質問 107
Given the following array:

Which two code fragments, independently, print each element in this array? (Choose two.) A:

B:

C:

D:

E:

F:

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

正解: B,F

 

質問 108
Given:

What is the result?

  • A. AnArrayIndexOutOfBoundsExceptionis thrown at runtime.
  • B. ANullPointerExceptionis thrown at runtime.
  • C. RichardDonald
  • D. nullRichardDonald
  • E. Compilation fails.

正解: B

 

質問 109
Given:

What is the result?

  • A. 0 0
  • B. 9 25
  • C. 3 5
  • D. Compilation fails.

正解: C

 

質問 110
Given the code fragment:

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

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

正解: D,E

 

質問 111
......

あなたをお手軽に1z1-808試験合格させるし100%試験合格保証:https://www.jpntest.com/shiken/1z1-808-mondaishu

弊社を連絡する

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

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

サポート:現在連絡