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 |
|
トピック 2 |
|
トピック 3 |
|
トピック 4 |
|
トピック 5 |
|
トピック 6 |
|
トピック 7 |
|
トピック 8 |
|
トピック 9 |
|
トピック 10 |
|
トピック 11 |
|
トピック 12 |
|
トピック 13 |
|
トピック 14 |
|
トピック 15 |
|
トピック 16 |
|
トピック 17 |
|
最新(2022)Oracle 1z1-808試験問題集:https://www.jpntest.com/shiken/1z1-808-mondaishu