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
    :Mar 24, 2025

Microsoft Microsoft Certifications 98-382 Questions & Answers

  • Question 21:

    HOTSPOT

    You are using JavaScript to create a function that calculates admission price.

    The function must meet the following requirements: The function accepts the age of the customer as a parameter A customer who is less than 5 years old gets in free A customer who is 65 years old or older gets in free A customer who is 5 years old to 17 years old, pays $10 USD All other customers pay $20 USD

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

    HOTSPOT

    The ABC company offers a mid-week discount of 10% on Wednesdays.

    You need to write a JavaScript function that meets the following requirements:

    Accepts the day of the week as a string

    Returns the appropriate discount

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

    You must complete the code at lines 03, 04, and 07.

    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 using JavaScript to write a safe root math utility that has the following requirements:

    Given the function safeRoot(a, b):

    If the radicand (a) is non-negative, return Math.pow (a, 1/b);

    Otherwise,

    If the index (b) is divisible by 2, then return text indicating the result is imaginary.

    Otherwise return -Math.pow (-a, 1/b)

    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

    You are creating a function named countdown. The function accepts a single parameter, start, and displays a countdown from that number down to zero in increments of one.

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

    Hot Area:

  • Question 25:

    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:

  • Question 26:

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

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

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

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

    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:

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.