[2023年02月12日] 最新でリアルな1z1-811試験問題集解答
あなたを簡単に合格させる1z1-811試験問と正確なJava FoundationsのPDF問題
質問 29
What does import java.io* mean?
- A. All classes in the io package are imported.
- B. All classes in the io package and the subpackages of io packages, if any, are imported.
- C. Only the io class is imported.
- D. All classes whose names start with io are imported.
正解: B
質問 30
Given:
What is the result?
- A. Iteration plus an increasing number is printed 100 times.
- B. The program compiles and nothing is printed.
- C. Iteration plus an increasing number is printed 99 times.
- D. An error occurs during compilation.
正解: D
質問 31
Given the code fragment:
What is the result?
- A. 25.67
- B. 25.7
- C. 25.00
- D. 0
正解: A
質問 32
Given the code fragment:
What is the result?
- A. 0 : 1
- B. 3 : 1
- C. 2 : 0
- D. 3 : 2
正解: D
質問 33
Given the code fragment:
Which for loop statement can be used to print 135?
- A. for(int idx = 1; idx < arr.length; idx+=2) {
System.out.print (arr[idx]);
} - B. for(int idx = 0; idx < arr.length; idx+=2) {
System.out.print (arr[idx]);
} - C. for(int idx = 1; idx < arr.length-1; idx++) {
System.out.print (arr[idx++]);
} - D. for(int idx = 0; idx < arr.length; idx++) {
System.out.print (arr[idx]);
}
正解: B
質問 34
Given:
Which statement, when inserted at line n1, enables the Course class to compile?
- A. long newFee;
- B. float newFee;
- C. int newFee;
- D. double newFee;
正解: D
質問 35
Given:
What is the output?
- A. Compilation fails
- B. 1 2 3 aaaa
- C. 1 2 aaa
- D. a
正解: D
質問 36
Given the code fragment:
Which code fragment can be inserted at line n1 to enable the code to print 0.0?
- A. Ball.weight = 0.0;
- B. Ball b = null;
b.weight = 0.0; - C. Ball b = new Ball(0.0);
- D. Ball b = new Ball();
正解: D
質問 37
Given the code fragment:
What is the result?
- A. 0
- B. 1
- C. 2
- D. 3
正解: A
質問 38
You have a microprocessor board, such as Raspberry PI, wired to control a drone.
Which edition of Java is geared towards use of simple, closed systems with constrained memory requirements, such as a microprocessor board?
- A. Java Standard Edition with a Compact Profile
- B. Java SE Embedded
- C. Java Micro Edition
- D. Java Enterprise Edition
正解: B
質問 39
Identify three advantages of object-oriented programming.
- A. code reuse
- B. information sharing
- C. modularity
- D. information hiding
- E. separation of state and behavior
正解: A,C,D
質問 40
Given:
At which line does a compilation error occur?
- A. line 2
- B. line 3
- C. line 5
- D. line 7
正解: A
質問 41
Given the code fragment:
Which code fragment, when inserted at line n1, enables the code to print Java Programming:1?
- A. System.out.println(c.name + ":" + Course.count);
- B. System.out.println(name + ":" + count);
- C. System.out.println(Course.name + ":" + c.count);
- D. System.out.println(c.name + ":" + count);
正解: A
質問 42
What is the meaning of "write once, run anywhere" in Java?
- A. It is a marketing statement because Java programs must be compiled for a specific platform in order to run.
- B. Java programs are designed to run only in web browsers and, thus, can run wherever there is a browser.
- C. Java programs can run on any Java Virtual Machine without being recompiled.
- D. Java programs, after being compiled, can run on any platform or device even without a Java Virtual Machine.
正解: C
質問 43
Identify two Java reserved words.
- A. true
- B. this
- C. array
- D. string
- E. exception
正解: A,B
質問 44
Which two components can class declarations include?
- A. The public modifier
- B. Interfaces implemented by the class
- C. A list of instance methods
- D. The main method
正解: A,B
質問 45
Given the code fragment:
What is the result?
- A. true
true - B. false
false - C. false
true - D. A runtime exception is thrown
正解: A
質問 46
Given the code fragment:
Which two code fragments are valid at line 2?
- A. for (int count = 0; count < 5; count++) {
System.out.print(count);
} - B. import java.util.*;
public void display() {
List<Integer> nums = new ArrayList<> ();
} - C. private String name = "John";
public void display() {
System.out.print(name);
} - D. package p1;
- E. {
private int num;
}
正解: C,D
質問 47
Given the code fragment:
What is the result?
- A. false
false - B. false
true - C. true
false - D. true
true
正解: A
質問 48
Identify two valid data types for the operands of the addition (+) operator?
- A. string
- B. boolean
- C. numeric
- D. array
正解: A,D
質問 49
Which statement is true about a mutator method?
- A. It must be declared private.
- B. It returns mutated instance members.
- C. It can be used to assign data to instance members.
- D. It replaces the default constructor.
正解: B
質問 50
Given the code fragment:
What is the result?
- A. [ BETATEST ]
- B. [ betaTest ]
- C. [betaTest]
- D. [BETATEST]
正解: D
質問 51
Given:
What is the result?
- A. A compilation error occurs in the modify method.
- B. A compilation error occurs in the main method.
- C. 0
- D. 1
正解: B
質問 52
Identify three features of the Java programming language.
- A. multithreaded
- B. strongly typed
- C. dynamically typed
- D. direct memory management
- E. distributed
正解: A,C,E
質問 53
......
1z1-811認証試験問題集の解答を提供しています:https://drive.google.com/open?id=1wHNxxj2Bl0jlakQlYYLuq8QSTGxcsIOx
更新された1z1-811試験練習テスト問題:https://www.passtest.jp/Oracle/1z1-811-shiken.html