Exam Details

  • Exam Code
    :98-388
  • Exam Name
    :Introduction to Programming Using Java
  • Certification
    :Microsoft Certifications
  • Vendor
    :Microsoft
  • Total Questions
    :42 Q&As
  • Last Updated
    :Mar 26, 2025

Microsoft Microsoft Certifications 98-388 Questions & Answers

  • Question 21:

    HOTSPOT

    You are interviewing for a job as a Java developer. You need to demonstrate your understanding of switch statements.

    For each of the following code segments, select Yes if the code segment can be changed to a switch statement with up to three case statements. Otherwise, select No.

    NOTE: Each correct selection is worth one point.

    Hot Area:

  • Question 22:

    HOTSPOT

    You are writing a Java method.

    The method must meet the following requirements:

    Accept a String array named entries

    Iterate through entries

    Stop the iteration and return false if any element has more than 10 characters

    Otherwise, return true

    How should you complete the code? To answer, select the appropriate code segments in the answer area.

    NOTE: Each correct selection is worth one point.

    Hot Area:

  • Question 23:

    HOTSPOT

    You are writing a Java method named countdown. The method must meet the following requirements:

    Accept an int parameter named start

    Display all numbers from start to zero in decrements of one

    How should you complete the code? To answer, select the appropriate code segments in the answer area.

    NOTE: Each correct selection is worth one point.

    Hot Area:

  • Question 24:

    HOTSPOT

    The program is supposed to display a message to the console while it counts down from 60. The method does not work as intended.

    How should you complete the code? To answer, select the appropriate code segments in the answer area.

    NOTE: Each correct selection is worth one point.

    Hot Area:

  • Question 25:

    HOTSPOT

    You are writing a Java console program.

    The program must meet the following requirements:

    Read a line of text entered by the user

    Print each word in the text to the console on a separate line

    How should you complete the code? To answer, select the appropriate code segments in the answer area.

    NOTE: Each correct selection is worth one point.

    Hot Area:

  • Question 26:

    HOTSPOT

    You need to evaluate the following code. Line numbers are included for reference only.

    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:

  • Question 27:

    HOTSPOT

    You work for Woodgrove Bank as a Java programmer.

    You need to evaluate the following class. Line numbers are included for reference only.

    For each of the following statements, select Yes if the statement is true. Otherwise, select No. NOTE: Each correct selection is worth one point.

    Hot Area:

  • Question 28:

    HOTSPOT

    You have the following code segment. Line numbers are included for reference only.

    The code does not compile.

    For each of the following statements, select Yes if the action is required to resolve the compilation error. Otherwise, select No.

    NOTE: Each correct selection is worth one point.

    Hot Area:

  • Question 29:

    HOTSPOT

    You work on a team that develops e-commerce applications. A member of the team creates a class named DB that connects to a database. The class contains a method named query.

    You need to initiate the DB class and invoke the query method.

    How should you complete the code? To answer, select the appropriate code segments in the answer area.

    NOTE: Each correct selection is worth one point.

    Hot Area:

  • Question 30:

    HOTSPOT

    You are writing a Java class named SavingsAccount. The class must meet the following requirements:

    Inherit from an existing class named Account

    Include a constructor that uses the base class constructor to initialize the starting balance

    Include a substitute toString() method How should you complete the code? To answer, select the appropriate code segments in the answer area. NOTE: Each correct selection is worth one point.

    Hot Area:

Tips on How to Prepare for the Exams

Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Microsoft exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your 98-388 exam preparations and Microsoft certification application, do not hesitate to visit our Vcedump.com to find your solutions here.