Oracle 1z0-811 Practice Exam - 77 Unique Questions
Latest Questions 1z0-811 Guide to Prepare Free Practice Tests
NEW QUESTION 43
Given the code fragment:
What is the result?
- A. 0
- B. 1
- C. Nothing is printed.
- D. 2
Answer: A
NEW QUESTION 44
Given the code fragment:
What is the result?
- A. 0
- B. 1
- C. 2
- D. A compilation error occurs.
Answer: A
NEW QUESTION 45
Identify two Java reserved words.
- A. array
- B. true
- C. exception
- D. this
- E. string
Answer: B,D
NEW QUESTION 46
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 Enterprise Edition
- B. Java Standard Edition with a Compact Profile
- C. Java Micro Edition
- D. Java SE Embedded
Answer: D
NEW QUESTION 47
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(c.name + ":" + count);
- D. System.out.println(Course.name + ":" + c.count);
Answer: A
NEW QUESTION 48
Given the code fragment:
What is the result?
- A. The program executes an infinite number of times.
- B. 0
- C. 1
- D. 2
Answer: C
NEW QUESTION 49
Which statement is true about primitive variables?
- A. They can be compared with the compareTo method only.
- B. They can be compared with the equals method only.
- C. They can be compared with the == operator.
- D. They cannot be compared.
Answer: B
NEW QUESTION 50
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.
Answer: C
NEW QUESTION 51
Given the code fragment:
Which code fragment can be inserted at line n1 to enable the code to compile?
- A. int[10] num;
- B. new int num[];
- C. int num[10];
- D. int[] num;
Answer: D
NEW QUESTION 52
Which statement is true about exception handling?
- A. At least one catch block must accompany a try statement.
- B. All catch blocks must be ordered from general to most specific.
- C. All statements in a try block are executed, even if an exception occurs in the middle of the try block.
- D. At least one statement in a try block must throw an exception.
Answer: B
NEW QUESTION 53
Given the code fragment:
What is the result?
- A. 25.67
- B. 25.00
- C. 0
- D. 25.7
Answer: A
NEW QUESTION 54
Given the code fragment:
What is the result?
- A. Peter
Julia - B. Julia
Peter - C. A compilation error occurs.
- D. A runtime exception is thrown.
Answer: B
NEW QUESTION 55
Given the code fragment:
What is the result?
- A. A runtime exception is thrown.
- B. pen pencil erasers paper
- C. A compilation error occurs.
- D. paper pen pencil erasers
Answer: A
NEW QUESTION 56
What does import java.io* mean?
- A. All classes in the io package and the subpackages of io packages, if any, are imported.
- B. All classes whose names start with io are imported.
- C. All classes in the io package are imported.
- D. Only the io class is imported.
Answer: A
NEW QUESTION 57
Given these class definitions:
Which class or classes compile?
- A. MyClassA, MyClassB, MyClassC, and MyClassD
- B. only MyClassB and MyClassD
- C. only MyClassB
- D. only MyClassB, MyClassC, and MyClassD
Answer: B
NEW QUESTION 58
Identify two valid data types for the operands of the addition (+) operator?
- A. boolean
- B. array
- C. numeric
- D. string
Answer: B,D
NEW QUESTION 59
Given the code fragment:
What is the result?
- A. true
false - B. false
true - C. true
true - D. false
false
Answer: C
NEW QUESTION 60
Identify two class variables.
- A. public int size = 10;
- B. private static int numberOfSquares = 20;
- C. int scale = 35;
- D. private Measure cm;
- E. public static int counter = 0;
Answer: B,E
NEW QUESTION 61
Which two Java reserved words are used to implement encapsulation?
- A. private
- B. final
- C. extends
- D. static
- E. public
Answer: A,E
NEW QUESTION 62
Which two statements are true about the Java Runtime Environment (JRE)?
- A. It contains the JDK and Java APIs.
- B. It is responsible for garbage collection.
- C. You must install the JRE to compile a .java file.
- D. It is platform independent.
- E. It interprets bytecode stored in a .class file.
Answer: D,E
NEW QUESTION 63
Which two components can class declarations include?
- A. Interfaces implemented by the class
- B. The public modifier
- C. The main method
- D. A list of instance methods
Answer: A,B
NEW QUESTION 64
Given the code fragment:
What is the result?
- A. 2 : 0
- B. 0 : 1
- C. 3 : 1
- D. 3 : 2
Answer: D
NEW QUESTION 65
......
Correct and Up-to-date Oracle 1z0-811 BrainDumps: https://www.exam4pdf.com/1z0-811-dumps-torrent.html
Reliable 1z0-811 Dumps Questions Available as Web-Based Practice Test Engine: https://drive.google.com/open?id=1QMevsKnkAFbVXG1QbYY46lW89V35SLFi

