98-382 Exam Details

  • Exam Code
    :98-382
  • Exam Name
    :Introduction to Programming Using JavaScript
  • Certification
    :Microsoft Certifications
  • Vendor
    :Microsoft
  • Total Questions
    :39 Q&As
  • Last Updated
    :Jan 04, 2026

Microsoft 98-382 Online Questions & Answers

  • Question 1:

    You are writing a function that calculates the remainder for integer division. The function receives two parameters, a and b, and must return the remainder that is left over when the integer a is divided by the integer b. You create the following code. Line numbers are for reference only.

    You want to complete the function for lines 02 and 03.

    Which two sets of code segments should you use? Each correct answer presents a complete solution. (Choose two.)

    A. Option A
    B. Option B
    C. Option C
    D. Option D
    E. Option E
    F. Option F

  • Question 2:

    You are creating a JavaScript program for an accounting system.

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

    You evaluate the code to ensure that it follows JavaScript best practices. Which two lines should you change?

    A. 01
    B. 02
    C. 03
    D. 04
    E. 05

  • Question 3:

    This question requires that you evaluate the underlined text to determine if it is correct. You review the following JavaScript code:

    When this code executes, the value of x is 0.

    Review the underlined text. If it makes the statement correct, select "No change is needed". If the statement is incorrect, select the answer choice that makes the statement correct.

    A. No change is needed
    B. the value of x is 3
    C. the value of x is 5
    D. the value of x is undefined

  • Question 4:

    You are writing an engineering application. You need to create a function that will round numbers to 3 or more decimal places.

    You need to create a function that receives the following two parameters: The value parameter is the number to be formatted

    The digits parameter is the number of digits to display

    The function must return the value with the number of digits specified.

    Which function should you use?

    A. Option A
    B. Option B
    C. Option C
    D. Option D

  • Question 5:

    HOTSPOT

    You are evaluating a colleague's code to ensure it meets best practices.

    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 6:

    HOTSPOT

    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 7:

    HOTSPOT

    You are designing a function that allows you to perform unit tests on other functions in a library. You will invoke each library function by using the eval JavaScript function. If an exception occurs when invoking a function, you want to display a

    message box with the following message:

    The function does not exist.

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

    NOTE: Each correct selection is worth one point.

    Hot Area:

  • Question 8:

    HOTSPOT

    Variable x has a value of 5. Variable y has a value of 7.

    For each of the following expressions, select True if the statement evaluates to true. Otherwise, select False.

    NOTE: Each correct selection is worth one point.

    Hot Area:

  • Question 9:

    HOTSPOT

    You are creating a function that does safe division.

    The function has the following requirements:

    The function receives two parameters for the numerator and denominator.

    If the denominator is zero, the function must return false.

    If the denominator is not zero, the function must return true.

    You write the following code. 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 10:

    HOTSPOT

    You are creating a calendar application. You need to ensure that the code works correctly for all months of the year.

    How should you complete the code? To answer, select the appropriate options 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-382 exam preparations and Microsoft certification application, do not hesitate to visit our Vcedump.com to find your solutions here.