[Q39-Q61] 100%の合格率を試そう!更新されたのは1z1-811試験問題 [2023]

Share

100%の合格率を試そう!更新されたのは1z1-811試験問題 [2023]

合格させる1z1-811試験にはリアル問題解答

質問 # 39
Which two Java reserved words are used to implement encapsulation?

  • A. static
  • B. private
  • C. public
  • D. extends
  • E. final

正解:B、C


質問 # 40
Given the code fragment:

Which statement, when inserted at line n1, enables the code to print 0 2 4 6 8 10?

  • A. count = count++;
  • B. count =+ 2;
  • C. count += 2;
  • D. count = (count++) +1;

正解:C


質問 # 41
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. while
  • C. enhanced for
  • D. do-while

正解:D


質問 # 42
Given the code

What is the result?

  • A. num = 99
  • B. num = 100
  • C. The program executes indefinitely.
  • D. num = 0

正解:A


質問 # 43
Given the code fragment:

What is the result?

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

正解:C


質問 # 44
Given the code fragment:

What is the result?

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

正解:A


質問 # 45
Given:

At which line does a compilation error occur?

  • A. line 2
  • B. line 7
  • C. line 3
  • D. line 5

正解:A


質問 # 46
Given the classes:

Which two modifications, independently, enable the Salad.java file to compile?

  • A. Replace line n1 with import fruits;
  • B. Replace line n2 with fruits.Apple apple = new fruits.Apple ();
  • C. Replace line n1 with import fruits.Apple;
  • D. Replace line n2 with fruits.Apple apple = new Apple ();
  • E. Replace line n1 with import fruits.Apple.getApple();

正解:D、E


質問 # 47
Which statement is valid?

  • A. int 2 totalScore = 0;
  • B. int total score = 0;
  • C. int totalScore2 = 0;
  • D. int total-score = 0;

正解:A


質問 # 48
Which statement is true about a Java method?

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

正解:B


質問 # 49
Given the code fragment:

What is the result?

  • A. 25.00
  • B. 25.7
  • C. 0
  • D. 25.67

正解:D


質問 # 50
Given the code fragment:

Which statement is true?

  • A. A compilation error occurs at line 3.
  • B. The code compiles without errors.
  • C. A compilation error occurs at line 7.
  • D. A compilation error occurs at line 5.

正解:B


質問 # 51
Given the code fragment:

What is the result?

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

正解:D


質問 # 52
Given:

Which statement, when inserted at line n1, enables the Course class to compile?

  • A. int newFee;
  • B. double newFee;
  • C. long newFee;
  • D. float newFee;

正解:B


質問 # 53
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, int b) {
  • C. int sum(int, int) {
  • D. int sum(int a, b) {

正解:A


質問 # 54
Given the code fragment:

What is the result?

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

正解:C


質問 # 55
Identify three features of the Java programming language.

  • A. dynamically typed
  • B. multithreaded
  • C. strongly typed
  • D. distributed
  • E. direct memory management

正解:A、B、D


質問 # 56
Given the code fragment:

What is the result?

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

正解:A


質問 # 57
Identify two features of Java.

  • A. platform independent
  • B. robust
  • C. architecture dependent
  • D. single threaded

正解:A、B


質問 # 58
Given:

Which statement is true about the main method?

  • A. It cannot be defined in a non-public class.
  • B. Its parameter can be of type Integer [].
  • C. It cannot be invoked by its name.
  • D. It can be a non-static method.

正解:C


質問 # 59
Given:

What is the result?

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

正解:A


質問 # 60
Given the contents of the Test.java file:

What is the result?

  • A. 200 : 400
  • B. A compilation error occurs at line n1.
  • C. 100 : 400
  • D. A compilation error occurs at line n2.

正解:D


質問 # 61
......

1z1-811試験問題を最新版を今すぐ試そうの[2023年最新] 正解回答付き:https://www.passtest.jp/Oracle/1z1-811-shiken.html

無料Oracle 1z1-811テスト練習問題試験問題集:https://drive.google.com/open?id=1Rj5ArQsCzL53iFQdty2Udmv0GlsDSwnd