Welcome to awslagi.com – Sharing AWS, Anthropic, Google Cloud, Microsoft Azure IT Exams. It's free for all!

Introduction to Programming Using JavaScript

Start programming with JavaScript and core logic.

4.8★★★★★(389 ratings)
12,175 studentsIntermediate
Learn the essentials of programming using JavaScript, including syntax, variables, decisions, and functions. The exam provides a foundation for web development and interactive application logic. This certification is useful for beginners who want to understand one of the most important languages in modern software. It helps you prepare for front-end and full-stack learning paths.

What you'll learn

  • Write JavaScript code- Use control structures- Create functions- Handle basic input/output- Build logic foundations

98-382

Lectures1
Questions5
Duration30 week
Students12,175

$20.00

Full Free Question Bank (5 Questions)

Introduction to Programming Using JavaScript (98-382) Practice Questions & Verified Answers

Click any option to test your knowledge, or reveal the verified answer and detailed explanation below each question.

Question #1Part 1

You are designing a web page with a script that must dynamically change the content of a paragraph element to display the value returned by the function . randomQuote() You have created the following code. Line numbers are included for reference only. Which code segment should you use at line 08?

Adocument.getElementById("tester").value = randomQuote();
Bdocument.getElementById("tester").title = randomQuote();
Cdocument.getElementById("tester").innerHTML = randomQuote();
Ddocument.getElementById("tester").script = randomQuote();
Question #2Part 1

You are creating a dynamic HTML page by using JavaScript. Your page has an image of the sun. When the user's mouse pointer moves across the image of the sun, the image should change to the image of the moon. When the user's mouse pointer is no longer over the image should change back to the image of the sun. You need to write the code for the image swap. Which two events must you program for? (Choose two.)

Aonmouseup
Bonmouseout
Conmosedown
Donmouseover
Eonmouseenter
Question #3Part 1

You are writing a JavaScript program for Contoso Suites that will output HTML. You need to output each room type on a new line using the correct method. You create the following code for the function. Line numbers are included for reference only. You need to insert the correct code at Line 9. Which line should you use?

Adocument.getElementById("body").innerHTML = rooms[i] + line.innerHTML;
Bdocument.getElementById("para").innerHTML += rooms[i] + line.innerHTML;
Cdocument.getElementById("para").innerHTML += i + rooms + line.innerHTML;
Ddocument.getElementById("body").innerHTML += rooms + i;
Question #4Part 1

You are creating a web page that allows customers to choose how hot their spice is. If they choose spicy, a warning should be displayed. You create the following form. Line numbers are included for reference only. You create the following JavaScript code to display the warning. When you choose spicy and click Order, the warning fails to display. You need to solve this problem. What should you do?

AChange line 07 to Order
BChange line 07 to Order
CChange line 10 to var option.value = document.forms.orderForm["heatIndex"];
DChange line 10 to var option = document.forms.orderForm["heatIndex"].value;
Question #5Part 1

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?

AB.
CD.

📢 Unlock Full Access to Success!

"The content displayed here is a promotional preview and contains only 50% of the actual exam database. To access the complete set of updated questions, please upgrade to the Full Version."

👉 Click the button and follow the instructions to secure your full access immediately!