Certification Provider: Microsoft
Exam Name: Introduction to Programming Using Java
Exam Code: 98-388
Official Exam Time: 45 mins
Number of questions in the Official Exam: 40-60 Q&As
Latest update time in our database: September 27,2023
98-388 Official Exam Topics:
  • Topic1 : Describe the use of main in a Java application
  • Topic2 : Perform basic input and output using standard packages / print statements; import and use the Scanner class
  • Topic3 : Evaluate the scope of a variable / declare a variable within a block, class, or method
  • Topic4 : data types, including byte, char, int, double, short, long, float, boolean; identify when precision is lost; initialization; how primitives differ from wrapper object types such as Integer and Boolean / Construct and evaluate code that manipulates strings
  • Topic5 : string class and string literals, comparisons, concatenation, case and length; String.format methods; string operators; converting a primitive data type to a string; the immutable nature of strings; initialization; null / Construct and evaluate code that creates, iterates, and manipulates arrays and array lists
  • Topic6 : implementing code that casts between primitive data types, converts primitive types to equivalent object types, or parses strings to numbers / Construct and evaluate arithmetic expressions
  • Topic7 : Construct and evaluate code that uses branching statements / if, else, else if, switch; single-line versus block; nesting; logical and relational operators
  • Topic8 : Construct and evaluate code that uses loops / while, for, for each, do while; break and continue; nesting; logical, relational, and unary operators
  • Topic9 : Perform object-oriented programming (10-15%) / Construct and evaluate a class definition
  • Topic10 : Declare, implement, and access data members in a class / Declare, implement, and access methods
  • Topic11 : private, public, protected; method parameters; return type; void; return value; instance methods; static methods; overloading / instantiation; initialization; null; accessing and modifying data members; accessing methods; accessing and modifying static members; importing packages and classes
  • Topic12 : Compile and debug code (5-10%) / print statement debugging; output from the javac command; analyzing code for logic errors; console exceptions after running the program; evaluating a stack trace
  • Topic13 : try catch finally; exception class; exception class types; display exception information /

How should you complete the code?


You are writing a Java method that evaluates an arithmetic formula. The method accepts an int value named number, raises the value to the second power, and returns the negative value of the result.

How should you complete the code? To answer, drag the appropriate code segment to the correct position. Each code segment may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content. NOTE: Each correct selection is worth one point.


You are interviewing for a job as a Java developer. You are presented with the following code


You are interviewing for a job as a Java developer. You are presented with the following code.

Line numbers are included for reference only.

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.