Oracle Java SE 8 Programmer I (1z0-808 Korean Version) (1z0-808 Korean) Free Practice Test
Question 1
주어진 코드 조각:

결과는 무엇입니까?

결과는 무엇입니까?
Correct Answer: D
Question 2
주어진:

결과는 무엇입니까?

결과는 무엇입니까?
Correct Answer: E
Question 3
코드 조각을 보면 다음과 같습니다.
String[] cartoons = {"tom","jerry","micky","tom"};
int counter =0;
if ("tom".equals(cartoons[0])) {
counter++;
} else if ("tom".equals(cartoons[1])) {
counter++;
} else if ("tom".equals(cartoons[2])) {
counter++;
} else if ("tom".equals(cartoons[3])) {
counter++;
}
System.out.print(카운터);
결과는 무엇입니까?
String[] cartoons = {"tom","jerry","micky","tom"};
int counter =0;
if ("tom".equals(cartoons[0])) {
counter++;
} else if ("tom".equals(cartoons[1])) {
counter++;
} else if ("tom".equals(cartoons[2])) {
counter++;
} else if ("tom".equals(cartoons[3])) {
counter++;
}
System.out.print(카운터);
결과는 무엇입니까?
Correct Answer: C
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 4
다음 배열이 주어지면:

이 배열의 각 요소를 독립적으로 인쇄하는 두 개의 코드 조각은 무엇입니까?


이 배열의 각 요소를 독립적으로 인쇄하는 두 개의 코드 조각은 무엇입니까?

Correct Answer: B,E
Question 5
주어진:

결과는 무엇입니까?

결과는 무엇입니까?
Correct Answer: C
Question 6
주어진:
class Base {
// insert code here
}
public class Derived extends Base{
public static void main(String[] args) {
Derived obj = new Derived();
obj.setNum(3);
System.out.println("Square = " + obj.getNum() * obj.getNum());
}
}
Base 클래스 내부에 독립적으로 삽입될 때 클래스가 적절하게 캡슐화되고 프로그램이 실행되어 숫자의 제곱을 인쇄할 수 있도록 하는 두 가지 옵션은 무엇입니까?
class Base {
// insert code here
}
public class Derived extends Base{
public static void main(String[] args) {
Derived obj = new Derived();
obj.setNum(3);
System.out.println("Square = " + obj.getNum() * obj.getNum());
}
}
Base 클래스 내부에 독립적으로 삽입될 때 클래스가 적절하게 캡슐화되고 프로그램이 실행되어 숫자의 제곱을 인쇄할 수 있도록 하는 두 가지 옵션은 무엇입니까?
Correct Answer: A,E
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 7
주어진:

결과는 무엇입니까?

결과는 무엇입니까?
Correct Answer: C
Question 8
주어진:

7행에 삽입하면 어떤 코드 조각이 true로 인쇄되도록 합니까?


7행에 삽입하면 어떤 코드 조각이 true로 인쇄되도록 합니까?

Correct Answer: A
Question 9
주어진 코드 조각:

코드에서 Helping... Done을 인쇄할 수 있는 작업은 무엇입니까?

코드에서 Helping... Done을 인쇄할 수 있는 작업은 무엇입니까?
Correct Answer: B
Question 10
주어진:

결과는 무엇입니까?

결과는 무엇입니까?
Correct Answer: B
Question 11
주어진:

결과는 무엇입니까?

결과는 무엇입니까?
Correct Answer: C
Question 12
주어진:

결과는 무엇입니까?

결과는 무엇입니까?
Correct Answer: D
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 13
주어진:
class Sports {
int num_players;
String name, ground_condition;
Sports(int np, String sname, String sground){
num_players = np;
name = sname;
ground_condition = sground;
}
}
class Cricket extends Sports {
int num_umpires;
int num_substitutes;
Which code fragment can be inserted at line //insert code here to enable the code to compile?
class Sports {
int num_players;
String name, ground_condition;
Sports(int np, String sname, String sground){
num_players = np;
name = sname;
ground_condition = sground;
}
}
class Cricket extends Sports {
int num_umpires;
int num_substitutes;
Which code fragment can be inserted at line //insert code here to enable the code to compile?
Correct Answer: A
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 14
조사하다:

어떤 말이 진실이야?

어떤 말이 진실이야?
Correct Answer: B
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 15
주어진:

어떤 말이 진실이야?

어떤 말이 진실이야?
Correct Answer: D
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).