Introduction to Programming Using Java

Here you have the best Microsoft 98-388 practice exam questions

  • You have 42 total questions across 9 pages (5 per page)
  • These questions were last updated on February 18, 2026
  • This site is not affiliated with or endorsed by Microsoft.
Question 1 of 42

HOTSPOT -
You need to evaluate the following code segment. Line numbers are included for reference only.
Exam 98-388: Question 1 - Image 1
Use the drop-down menus to select the answer choice that answers each question based on the information presented in the code.
NOTE: Each correct selection is worth one point.
Hot Area:
Exam 98-388: Question 1 - Image 2
Answer
Suggested Answer:
Exam 98-388: Question 1 - Image 3

Community votes

No votes yet

Question 2 of 42

You have the following code segment. Line numbers are included for reference only.
Exam 98-388: Question 2 - Image 1
What is the output of line 07?
Answer
Suggested Answer: B

Community votes

No votes yet

Question 3 of 42

HOTSPOT -
You are interviewing for a job as a Java developer.
You are presented with the following code. Line numbers are included for reference only.
Exam 98-388: Question 3 - Image 1
You need to evaluate what happens when the code runs.
Use the drop-down menus to select the answer choice that answers each question based on the information presented in the code.
NOTE: Each correct selection is worth one point.
Hot Area:
Exam 98-388: Question 3 - Image 2
Answer
Suggested Answer:
Exam 98-388: Question 3 - Image 3

Community votes

No votes yet

Question 4 of 42

HOTSPOT -
You need to evaluate the following Java program. Line numbers are included for reference only.
Exam 98-388: Question 4 - Image 1
Use the drop-down menus to select the answer choice that answers each question based on the information presented in the code.
NOTE: Each correct selection is worth one point.
Hot Area:
Exam 98-388: Question 4 - Image 2
Answer
Suggested Answer:
References:
https://docs.oracle.com/javase/tutorial/java/data/numberformat.html Exam 98-388: Question 4 - Image 3

Community votes

No votes yet

Question 5 of 42

You need to analyze the following code segment. Line numbers are included for reference only.
Exam 98-388: Question 5 - Image 1
What is the output of line 12 when you run printInt()?
Answer
Suggested Answer: A

The num variable is first declared inside the first if block but this variable is local to that block and does not affect the rest of the method. Then, num is declared again and initialized to 1 in line 9. The addOne() method is called with num passed as an argument, but it operates on a local copy of num. The change made to the local num variable in addOne() doesn't affect the num variable in printInt(). After returning from the addOne() function call, the num variable in printInt() is unchanged and still 1. Subtracting 1 from it results in 0.

Community votes

A
100%

About the Microsoft 98-388 Certification Exam

About the Exam

The Microsoft 98-388 (Introduction to Programming Using Java) validates your knowledge and skills. Passing demonstrates proficiency and can boost your career prospects in the field.

How to Prepare

Work through all 42 practice questions across 9 pages. Focus on understanding the reasoning behind each answer rather than memorizing responses to be ready for any variation on the real exam.

Why Practice Exams?

Practice exams help you familiarize yourself with the question format, manage your time, and reduce anxiety on the test day. Our 98-388 questions are regularly updated to reflect the latest exam objectives.