最新の1z1-811実際の無料試験問題更新された77問あります [Q35-Q60]

Share

最新の1z1-811実際の無料試験問題更新された77問あります

無料で使える1z1-811試験ブレーン問題集認定ガイドの問題と解答

質問 35
Which method identifier is correct according to Java naming conventions?

  • A. Calculator
  • B. calculatebill
  • C. BillCalculator
  • D. calculateBill

正解: A

 

質問 36
Given the code fragment:

What is the result?

  • A. 0
  • B. 1
  • C. 2
  • D. A compilation error occurs.

正解: C

 

質問 37
Given the code fragment:

Which code fragment can be inserted at line n1 to enable the code to compile?

  • A. int num[10];
  • B. int[] num;
  • C. new int num[];
  • D. int[10] num;

正解: B

 

質問 38
Given:

What is the result?

  • A. 0
  • B. 1
  • C. 2
  • D. A compilation error occurs.

正解: C

 

質問 39
Given:

What is the result?

  • A. The code fails to compile. To make it compile, at line n1 insert:
    Bus () { }
  • B. The code fails to compile. To make it compile, at line n1 insert:
    this () { }
  • C. The code compiles and prints:
    default
  • D. The code fails to compile. To make it compile, at line n2 insert:
    this ();

正解: A

解説:
luxury

 

質問 40
Given the code:

Which code fragment, when inserted at line n1, enables the code to print sum is 30?

  • A. int sum(int[] a, b) {
  • B. int sum(int a, b) {
  • C. int sum(int a, int b) {
  • D. int sum(int, int) {

正解: A

 

質問 41
Given the code fragment:

What is the result?

  • A. 10
    14
  • B. 10
    10
  • C. 9
    9
  • D. 9
    12

正解: B

 

質問 42
Given the code fragment:

What is the result?

  • A. Julia
    Peter
  • B. Peter
    Julia
  • C. A runtime exception is thrown.
  • D. A compilation error occurs.

正解: A

 

質問 43
Given the code fragment:

What is the result?

  • A. 0 : 1
  • B. 3 : 1
  • C. 2 : 0
  • D. 3 : 2

正解: D

 

質問 44
Given the code fragment:

What is the result?

  • A. 0
  • B. 1
  • C. 2
  • D. 3

正解: B

 

質問 45
Given the code fragment:

What is the result?

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

正解: B

 

質問 46
Given the code fragment:

What is the result?

  • A. 0
  • B. 1
  • C. 2
  • D. The program executes an infinite number of times.

正解: C

 

質問 47
Identify two Java reserved words.

  • A. string
  • B. exception
  • C. true
  • D. array
  • E. this

正解: C,E

 

質問 48
Which statement is true about exception handling?

  • A. At least one statement in a try block must throw an exception.
  • B. At least one catch block must accompany a try statement.
  • C. All catch blocks must be ordered from general to most specific.
  • D. All statements in a try block are executed, even if an exception occurs in the middle of the try block.

正解: C

 

質問 49
Given:

And the code fragment:

Which code fragment can be inserted at line n1 to enable the code to print All the best?

  • A. Messenger.writeMsg();
  • B. writeMsg();
  • C. m.writeMsg();
  • D. void writeMsg();

正解: A

 

質問 50
Given:

What is the result?

  • A. An error occurs during compilation.
  • B. The program compiles and nothing is printed.
  • C. Iteration plus an increasing number is printed 99 times.
  • D. Iteration plus an increasing number is printed 100 times.

正解: A

 

質問 51
You have been asked to develop a Java program that prints the elements of an array in reverse order.
Which looping statement cannot be used to meet the requirement?

  • A. standard for
  • B. do-while
  • C. enhanced for
  • D. while

正解: B

 

質問 52
Which statement is true about a Java method?

  • A. It must accept a parameter and return a value.
  • B. It cannot be defined as static final.
  • C. It cannot be defined within another method.
  • D. It must be declared with an access modifier.

正解: C

 

質問 53
Identify two class variables.

  • A. private static int numberOfSquares = 20;
  • B. public int size = 10;
  • C. public static int counter = 0;
  • D. private Measure cm;
  • E. int scale = 35;

正解: A,C

 

質問 54
Given the code fragment:

What is the result?

  • A. Queen
  • B. The program prints either Jack or Queen.
  • C. A compilation error occurs at line n1.
  • D. Jack

正解: C

 

質問 55
Identify three advantages of object-oriented programming.

  • A. separation of state and behavior
  • B. information hiding
  • C. information sharing
  • D. modularity
  • E. code reuse

正解: B,D,E

 

質問 56
Given the code fragment:

What is the result?

  • A. [BETATEST]
  • B. [ betaTest ]
  • C. [ BETATEST ]
  • D. [betaTest]

正解: A

 

質問 57
Given the code fragment:

What is the result?

  • A. Selected Chocolate flavor.
  • B. Selected null flavor.
  • C. An ArrayIndexOutofBoundsException is thrown at run time.
  • D. Selected Chocolate flavor.

正解: C

 

質問 58
Given the code fragment:

Which code fragment, when inserted at line n1, enables the code to print Java Programming:1?

  • A. System.out.println(Course.name + ":" + c.count);
  • B. System.out.println(c.name + ":" + Course.count);
  • C. System.out.println(c.name + ":" + count);
  • D. System.out.println(name + ":" + count);

正解: B

 

質問 59
Given:

And the code fragment:

What is the result?

  • A. White : White
  • B. White : null
  • C. A compilation error occurs at line n1.
  • D. null: null

正解: D

 

質問 60
......

1z1-811認定概要最新の1z1-811のPDF問題集:https://jp.fast2test.com/1z1-811-premium-file.html

トップクラスOracle 1z1-811試験材料で学習ガイド!練習問題バージョン:https://drive.google.com/open?id=1iv86D4y52nbUtQNGovmorPWtb0Kfuxbc


弊社を連絡する

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

我々の働いている時間: ( GMT 0:00-15:00 )
月曜日から土曜日まで

サポート: 現在連絡 

English Deutsch 繁体中文 한국어