1Z0-829 Incomplete question Practice Question
Exhibit
Refer to the exhibit.
$ cat list.txt
A
B
C
D
$ cat ListDemo.java
import java.util.*;
import java.util.stream.*;
public class ListDemo {
public static void main(String[] args) {
List<String> list = new ArrayList<>(List.of("A", "B", "C", "D"));
list.removeIf(s -> s.compareTo("C") > 0);
System.out.println(list);
}
}
$ javac ListDemo.java && java ListDemoWhat is the output of the program?
⚠ Common exam trap
The question is incomplete; the program code is missing, so no answer can be determined. Candidates should request the full question or realize that the output cannot be inferred.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
[A, B, C]
The program code was not provided in the question. Without the code, it is impossible to determine the output. Therefore, none of the options can be confirmed as correct.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
[A, B, C, D]
Why it's wrong here
Without the code, we cannot verify if [A, B, C, D] is the output.
- ✗
[A, B, D]
Why it's wrong here
Without the code, we cannot verify if [A, B, D] is the output.
- ✓
[A, B, C]
Why this is correct
Without the code, we cannot verify if [A, B, C] is the output.
- ✗
[B, C, D]
Why it's wrong here
Without the code, we cannot verify if [B, C, D] is the output.
Go deeper
Related to this question
About these practice questions
This 1Z0-829 question is part of Courseiva's 513-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This 1Z0-829 practice question is part of Courseiva's free Oracle certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the 1Z0-829 exam.