Microsoft Introduction to Programming Using Block-Based Languages (Touch Develop) - 98-380 Exam Practice Test

DRAG DROP
You are creating a Touch Develop app that determines whether a given year is a leap year.
You are given the following leap year requirements:
* A year is a leap year if it is divisible by 4 but not by 100.
* If the year is divisible by 4 and by 100, it is not a leap year unless it is also divisible by 400.
You need to write the code to accept a year as user input and output whether it is a leap year to the wall.
How should you complete the code? To answer, drag the appropriate code segment to the correct location. Each code segment must be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.
Correct Answer:
DRAG DROP
You are designing an algorithm for a survey company. The call center wants you to call participants to gather their views on an upcoming event. You receive a call list that contains all the participants to be called. If a participant answers the phone, you must not call that participant again. If a participant does not answer the phone, you must call that participant again until the participant answers.
Which four actions should you perform in sequence to make the calls? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.
Correct Answer:
HOTSPOT
You want to allow a user to choose a picture from his or her device.
Which library includes a function that will accomplish this goal? To answer, select the appropriate library in the answer area.
Correct Answer:

Explanation:

References: https://www.touchdevelop.com/docs/how-to-search
HOTSPOT
You are hired by a taxing authority to create an algorithm for calculating income tax. The income tax system is a progressive tax system.
Any income at $10,000 or below should be taxed at 10 percent. Any income greater than
$10,000 but less than $50,000 should be taxed at 20 percent. Any income at $50,000 or greater should be taxed at 30 percent. An example of how the system works is shown in the following table.

How should you complete the pseudocode? To answer, select the appropriate pseudocode segments in the answer area.
NOTE: Each correct selection is worth one point.
Correct Answer:
DRAG DROP
You are writing code for a game that uses a random number function to determine actions within the game. The actions are described in the following table.

You need to implement the code.
Which four code 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.
Correct Answer:

Explanation:

References: https://www.touchdevelop.com/docs/if
DRAG DROP
Southridge Video is computerizing its inventory procedures. You are creating a computer program that allows Southridge to add new videos as they arrive, remove videos as they are sold, check inventory for a specific video, and print reports for how many videos games are currently on hand.
You decide to create a collection to store the titles of the videos in stock. If multiple copies of the same title are in stock, they are stored as individual items in the collection.
You need to identify the programming process that will be used to implement each business process. To answer, drag the appropriate programming process from the column on the left to its business on the right. Each programming process may be used once, more than once, or not at all.
Correct Answer:
HOTSPOT
Baldwin Museum of Science wants you to build a virtual tour guide app that visitors will use at the museum. The museum conducts a user survey which indicates that the app must meet the following requirements:
*
Users will scan a QR code to find more information about the exhibits.
*
Additional information is provided through an augmented reality (AR) view. The AR view will be displayed on top of the live direct view of the exhibit.
Due to time and budget constraints, the app can only support limited types of devices at this stage. You want to make sure that app provides the best possible user-experience based on the user survey.
You need to identify the appropriate types of devices the app should support.
For each type of device, select Yes if it is appropriate. Otherwise, select No.
Correct Answer:
Humberto wants to create a Touch Develop game that he can play with his friends competing for the highest score. Because Humberto's friends live out of state, he needs to create a game that can be played on different devices with each player's score being saved and compared to the other friend's scores. He needs help determining the right type of variable to store the highest player's score for use in his game.
You need to give Humberto advice on the correct type of variable he needs to create for his game.
Which variable type should you recommend?
Correct Answer: A
Explanation: Only visible for TrainingDump members. You can sign-up / login (it's free).
0
0
0
0