Exit demo 98-380 Introduction to Programming Using Block-Based Languages (Touch Develop) PDF format · free preview

Microsoft 98-380 - Questions & Answers

Free preview · every answer includes a full explanation

Product page: https://prepkeys.com/98-380.html

Question 1
Single choice

You are creating a calculator app. The Power function must calculate the result of raising a number by a positive exponent value.

You create the following pseudocode:

Function Power(number, exponent)

DECLARE result

End Function

You need to complete the pseudocode for the function.

Which pseudocode should you use?

A.

WHILE exponent > 1 SET result TO result * number SET exponent TO exponent - 1LOOPReturn result

B.

IF exponent > 1 SET result TO result * number SET exponent TO exponent - 1END IFReturn result

C.

IF exponent > 1 SET result TO result * number SET exponent TO exponent + 1END IFReturn result

D.

WHILE exponent > 1 SET result TO result * number SET exponent TO exponent + 1LOOPReturn
result

Question 2
Single choice

You work as a game developer at Tailspin Toys.

Your colleague created a script to display an animation using the following sprite sheet and Touch Develop code.

How will many times the animation play?

A.

The animation will play once.

B.

The animation will not play.

C.

The animation will play twenty times.

D.

The animation will play infinitely.

Question 3
Single choice

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?

A.

Table

B.

Global

C.

Local

D.

Cloud

Question 4
Multiple choice

Which two problems can a computer solve efficiently by using iteration as part of the algorithm? (Choose two.)

A.

Counting the number of times a specific word appears in a book

B.

Finding the first 1000 digits of pi

C.

Evaluating two player scores to determine a winner

D.

Extracting the meaning of a paragraph of text

Question 5
Single choice

You are creating a new educational computer game. The game will randomly present an arithmetic problem to the user, ask the user to answer the arithmetic problem, and then check the user's answer.

Which data structure should you use to store the arithmetic problems?

A.

Object

B.

Variable

C.

Array or collection

D.

Function

Question 6
Multiple choice

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.)

A.

The symbol for "of" will be output once.

B.

The word "of" will appear in the dictionary once.

C.

The symbol for "of" will be output three times.

D.

The word "of" will appear in the dictionary three times.

Question 7
Single choice

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.

A.

No change is needed.

B.

cups * 2.366

C.

cups / 0.2366

D.

cups / .02366 * 10

Question 8
Multiple choice

You are decorating the gymnasium for prom. You have 100 packages of balloons. There are 18 balloons of five different colors in each package. You do not know how many balloons of each color are in a package, but you do know that each package contains some blue balloons and some white balloons and that there are at least 50 balloons of each color.

You need to initiate 50 blue balloons and 50 white balloons with helium.

A classmate has recommended the following algorithm:

You need to evaluate the result of using this algorithm.

Which three conditions will result from inflating balloons using this algorithm? (Choose three.)

A.

There might be white balloons left over in multiple open packages.

B.

You will inflate the correct number of blue balloons.

C.

You might inflate too few white balloons.

D.

There might be blue balloons left over in multiple open packages.

E.

You might inflate too few blue balloons.

F.

You will inflate the correct number of white balloons.

G.

You might inflate more than 100 balloons.

Question 9
Single choice

Your coding team is creating a weather app. The application must allow the user to input a wind speed and see if the storm is a hurricane. If the storm is a hurricane, the app should also determine which category of storm it is on the Saffir-Simpson Hurricane Wind Scale.

The Saffir-Simpson Hurricane Wind Scale is defined as follows:

Category 1 is 74-95 MPH
Category 2 is 96-110 MPH
Category 3 is 111 to 129MPH
Category 4 is 130-156 MPH
Category 5 is 157 MPH and above

Four team members have proposed pseudocode to meet this requirement.

Which pseudocode is in the appropriate logical order?

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 10
Single choice

This question requires that you evaluate the underlined text to determine if it is correct.

Sunny, Rainy, and Cloudy control the weather of a magic kingdom.

Citizens of the kingdom are not happy with their service because the weather changes too rapidly. To make the citizens happy, Sunny, Rainy, and Cloudy agree that only one of them will control the weather at a time. To determine who controls the weather next, they design a game to solve the problem.

Sunny, Rainy, and Cloudy play the game every few hours. Because Sunny is the youngest of the three.
Rainy always lets Sunny move first. The winner gets the right to control the weather. If there is no winner between Sunny and Rainy, Cloudy controls the weather. The game play for all three conditions is shown in the exhibits. (Click the Sunny wins tab, the Rainy wins tab and the Neither wins tab to view the exhibits.)

You create the following algorithm to define the game play:

This algorithm will produce the correct result.

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.

will cause an endless loop.

C.

might give Rainy control of the weather when Sunny wins.

D.

might give Sunny control of the weather when Rainy wins.

Showing 10 of 72 questions · Unlock the full set