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 05:30
Gerard is currently working as an entry-level customer support technician, but he would like to someday become a software developer. what is the best first step to understand what he should do? ask his manager for a new job or at least a job recommendation study graphic design in order to obtain the necessary skills use career resources to investigate what skills and education are required work part-time as an entry-level web developer question 13 (true/false worth 6 points) (08.03 lc) career resources are used to explore career options and find career information. true false question 14(multiple choice worth 6 points) (08.01 mc) classify the following skills: writing html code, evaluating color theory, using design principles. hard skills interpersonal skills people skills soft skills question 15 (true/false worth 6 points) (08.03 lc) a mentor is a person who is advised, trained, or counseled by a trusted mentee. true false
Answers: 2
question
Computers and Technology, 22.06.2019 09:50
Assume that you have an sorted array of records. assume that the length of the array (n) is known. give two different methods to search for a specific value in this array. you can use english or pseudo-code for your algorithm. what is the time complexity for each algorithm and why?
Answers: 1
question
Computers and Technology, 23.06.2019 23:40
Which of the following calculates the total from the adjacent cell through the first nonnumeric cell by default, using the sum function in its formula? -average -autosum -counta -max
Answers: 1
question
Computers and Technology, 24.06.2019 09:50
Suppose you are an ad-serving company and you maintain a log of cookie data for ads you serve to the web pages for a particular vendor (say amazon). a. how can you use this data to determine which are the best ads? b. how can you use this data to determine which are the best ad formats? c. how could you records of past ads and ad clicks to determine which ads to send to a given ip address? d. how could you use this data to determine how well the technique you used in your answer to part c was working? e. how could you use this data to determine that a given ip address is used by more than one person? f. how does having this data give you a competitive advantage vis-Ă -vis other ad-serving companies?
Answers: 2
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, 18.05.2020 10:57
question
Mathematics, 18.05.2020 10:57
question
Mathematics, 18.05.2020 10:57