subject

Dexter is trying to draw a rhombus and play the pop sound at the same time in his program. How should he correct the error in this algorithm? When space key pressed, draw rhombus, play pop sound. Add another when space key pressed event and move play pop sound to that event.
Change the draw rhombus command to a draw triangle command.
Put the code inside a loop block with two iterations.
Use a conditional block so that the code is if draw rhombus, then play pop sound.
Question 5(Multiple Choice Worth 2 points)
(04.04 MC)

Madison wants to create a code that will turn on the lights if it is dark, and turn off the lights if it is sunny. There is a bug in her code. Which block is the bug?

block-based code with the commands if it is sunny, then turn on lights, if it is dark then turn on lights

block-based code with the commands if it is dark then empty space
block-based code with the commands if it dark, then turn on the lights
block-based code with the commands if it is sunny then turn on the lights
block-based code with the commands turn off the lights
Question 6(Multiple Choice Worth 2 points)
(04.04 MC)

Tamara wants to program her sprite to say hello after it moves 10 steps and draws a green triangle. How can she correct the error in this algorithm? Move 10 steps, set pen color to red, draw triangle, say hello.

Add pen up command so that it comes after say hello command.
Remove the set pen color to red command.
Change set pen color to red to set pen color to green.
Switch the move 10 steps and set pen color to red commands.
Question 7(Multiple Choice Worth 2 points)
(04.04 LC)

In order to draw a shape on the stage, what does the following function need? Move 100 steps, turn right 90 degrees with four iterations.

Event block with the commands when space key pressed, then draw square
If-then block with the commands if draw square, then run function
Known initial condition using the pen down command
Loop block with two iterations
Question 8(Multiple Choice Worth 2 points)
(04.04 LC)

Select the code that a program would follow to draw a triangle after the pen down command.

Move 100 steps, turn right 120 degrees, move 100 steps with two iterations
Move 100 steps, turn right 120 degrees with three iterations
Turn right 120 degrees, move 100 steps, turn right 120 degrees with two iterations
Turn right 120 degrees, move 100 steps with zero iterations
Question 9(Multiple Choice Worth 2 points)
(04.04 LC)

Select the code that a program would follow to draw a rectangle after the pen down command.

Move 100 steps, turn right 90 degrees, move 50 steps, turn right 90 degrees with four iterations
Move 100 steps, turn right 90 degrees, move 50 steps, turn right 90 degrees with two iterations
Move 100 steps, turn right 90 degrees with four iterations
Move 100 steps, turn right 90 degrees with two iterations
Question 10(Multiple Choice Worth 2 points)
(04.04 LC)

Select the function that will tell the sprite to draw a square.

block-based code with the commands draw square left bracket right bracket, pen down, and move 100 steps turn 90 degrees with 4 iterations
© Scratch 2018
block-based code with the commands draw square left bracket right bracket, pen down, and move 100 steps turn 100 degrees with 4 iterations
© Scratch 2018
block-based code blocks with the commands draw square left bracket right bracket, pen down, and move 100 steps turn 90 degrees with 3 iterations
© Scratch 2018
block-based code with the commands draw square left bracket right bracket, and move 100 steps turn 90 degrees with 4 iterations
© Scratch 2018
FDK291.11

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 21:00
In this lab, you add a loop and the statements that make up the loop body to a c++ program that is provided. when completed, the program should calculate two totals: the number of left-handed people and the number of right-handed people in your class. your loop should execute until the user enters the character x instead of l for left-handed or r for right-handed. the inputs for this program are as follows: r, r, r, l, l, l, r, l, r, r, l, x variables have been declared for you, and the input and output statements have been written.
Answers: 3
question
Computers and Technology, 22.06.2019 10:40
Program using c++ only on visual studio pig is a simple two player dice game, played with one die. the first player to reach or surpass 50 is the winner. each player takes a turn rolling the dice. they add to the pot with each roll, having to decide to roll again and increase the pot, or cash out. the risk being they could lose the amount they’ve accumulated into the pot. the rules for each player’s die roll. 1. roll the dice. a. if user rolled a 1, i. the pot gets set to zero ii. the other player goes to step 1. b. a roll of 2-6 is added to the pot. 2. user can choose to hold or roll again. a. choice roll. return to step 1. b. choice hold. i. increment player score by the pot amount. ii. pot gets set to 0. iii. second player gets to roll and goes to step 1. program requirements: ● before each opponent begins ○ output the score for the person and the computer. ○ output the opponents whose turn is beginning and ask the user to hit enter to continue. ● with each dice roll. ○ output the die value, and amount of the round pot. ○ if it’s the users roll ask if they want to roll again ( r ) or hold ( h ). your program should allow r, r, h or h as valid input. if input is anything else, ask the user again until valid input is obtained. ○ the ai will continue playing until the round pot is 20 or more. ● once a player’s score is greater or equal to 50 then they have won, it will no longer ask if they want to keep rolling the die or not. ● once there is a winner ○ score totals are output along with who the winner was. user or computer ○ player is asked if they want to play again y or n. valid input should be y, y, or n, n. ● when a new game starts the starting roll goes to the player that did not roll last. if the user rolled last in the previous game, then the computer rolls first and vice versa. when the program first begins, the player will make the first roll of the first game. development notes : ● you will need a way to roll dice in your program. the rand() function works well, but returns an integer. if we want numbers 0 – 9 we can get the value modulus 10. ● call srand() with a value to seed it. it’s common to seed it with the current computer clock, include ctime, and then call srand(time(
Answers: 1
question
Computers and Technology, 22.06.2019 13:30
Write lines of verse that rhyme to remember the following information: acid rain is a type of air pollution caused by chemicals in the air.
Answers: 1
question
Computers and Technology, 22.06.2019 17:00
The two main ways in which marketers address the competition with their strategies are by satisfying a need better than a competition and by
Answers: 2
You know the right answer?
Dexter is trying to draw a rhombus and play the pop sound at the same time in his program. How shoul...
Questions
question
Business, 17.04.2020 21:01
Questions on the website: 13722361