Online Access Free 98-380 Practice Test
Exam Code: | 98-380 |
Exam Name: | Introduction to Programming Using Block-Based Languages (Touch Develop) |
Certification Provider: | Microsoft |
Free Question Number: | 72 |
Posted: | Sep 06, 2025 |
Your friend Erin created the following algorithm:
You apply the algorithm to the following sentence:
The treasure chest contains 100 pieces of gold, 50 pieces of silver, and a handful of rubies.
What are the two outcomes? (Choose two.)
DRAG DROP
You are writing code to draw the following illustration by using the Turtle object.
The Turtle starts in the center of the screen. You declare a variable named Steps and initialize it to 1.
Which four pseudocode segments should you use to develop the solution? To answer, move the appropriate code segments from the list of code segments to the answer area and arrange them in the correct order.
NOTE: More than one order of answer choices is correct. You will receive credit for any of the correct orders you select.
HOTSPOT
You are creating an algorithm that moves a sprite from its current position to a new position represented by x and y, where x is the new horizontal position and y is the new vertical position. You will use the hypotenuse of a right triangle to calculate the sprite's path, as shown in the following illustration.
You need to move the sprite to its new location along a straight line at a speed of 100 pixels per second.
How should you complete the algorithm? To answer, select the appropriate pseudocode segments in the answer area.
NOTE: Each correct selection is worth one point.
This question requires that you evaluate the underlined text to determine if it is correct.
You are writing an app for Best For You Organics Company.
The app needs to allow the user to convert a recipe from cups to liters. The app will use the conversion ratio of 1 cup is equal to 0.2366 liters.
You define the pseudocode as follows:
INPUT cups
liters = cups * 0.2366
OUTPUT liters
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.
DRAG DROP
Your class is going to have a party and your teacher has asked you to create a guessing game. In the game, you need to ask the player to choose a number between 1 and 20. The player loses two points for each incorrect guess. The game ends when the player has either lost all points or guesses the number correctly.
You need to design the logic for the game.
Which five pseudocode segments should you use to develop the solution? To answer, move the appropriate pseudocode segments from the list of code segments to the answer area and arrange them in the correct order.