subject

This question uses a robot in a grid of squares. the robot is represented as a triangle, which is initially facing toward the right side of the grid. the robot is moved according to the following instructions.
instruction explanation
move forward the robot moves one square forward in the direction it is facing
rotate right the robot rotates in place 90 degrees clockwise (i. e., makes an in-place right turn).
rotate left the robot rotates in place 90 degrees counter-clockwise (i. e., makes an in-place left turn).
repeat n times the block of instructions contained between the braces {} is repeated n times.
consider the following incorrect program, which is intended to move the robot around the perimeter of the grid below, as indicated by the arrows.
line 1: repeat 4 times
{
line 2: move forward
line 3: rotate right
line 4: repeat 4 times
{
line 5: move forward
}
line 6: rotate right
}
which lines of code should be removed so the program will work as intended? select two answers
a. line 2
b. line 3
c. line 4
d. line 5

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 14:50
Drag each label to the correct location on the image list the do’s and don’ts of safeguarding your password. a. keep yourself logged in when you leave your computer.b. don’t write your password down and leave it where others can find it.c. share your password with your friends.d.each time you visit a website,retain the cookies on your computer.e. use a long password with mixed characters.1. do's 2. don'ts
Answers: 2
question
Computers and Technology, 23.06.2019 17:30
Per the municipal solid waste report, what are the most common sources of waste (trash
Answers: 3
question
Computers and Technology, 23.06.2019 19:30
Anul 2017 tocmai s-a încheiat, suntem trişti deoarece era număr prim, însă avem şi o veste bună, anul 2018 este produs de două numere prime, 2 şi 1009. dorel, un adevărat colecţionar de numere prime, şi-a pus întrebarea: “câte numere dintr-un interval [a,b] se pot scrie ca produs de două numere prime? “.
Answers: 3
question
Computers and Technology, 24.06.2019 18:00
Why is a multiview sketch drawinf different from other sketches like isometric, two point, and oblique
Answers: 1
You know the right answer?
This question uses a robot in a grid of squares. the robot is represented as a triangle, which is in...
Questions
question
Mathematics, 26.01.2020 06:31
question
Business, 26.01.2020 06:31
question
Mathematics, 26.01.2020 06:31
Questions on the website: 13722367