subject

Question: 1 The AP Exam does not use for loops and while loops, but rather REPEAT or REPEAT UNTIL commands as shown below.

REPEAT n TIMES
{

}

REPEAT UNTIL(condition)
{

}
The program below uses a robot in a 5x5 grid of squares. The robot is represented as a triangle, which is initially in the bottom-left square of the grid and facing toward the right of the grid.

After running which of the following code segments would the robot end up in the same place facing the same direction as after running the code segment below?

REPEAT 2 TIMES
{
MOVE_FORWARD ()
MOVE_FORWARD ()
ROTATE_LEFT ()
}

REPEAT 4 TIMES
{
MOVE_FORWARD ()
ROTATE_LEFT ()
}

REPEAT 2 TIMES
{
MOVE_FORWARD ()
MOVE_FORWARD ()
}

ROTATE_LEFT ()

REPEAT 2 TIMES
{
MOVE_FORWARD ()
MOVE_FORWARD ()
}

REPEAT 2 TIMES
{
ROTATE_LEFT ()
ROTATE_LEFT ()
}

REPEAT 2 TIMES
{
MOVE_FORWARD ()
}

ROTATE_LEFT ()

REPEAT 2 TIMES
{
MOVE_FORWARD ()
}
ROTATE_LEFT ()

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 07:30
An endless cycle of creation and response on the internet is called
Answers: 1
question
Computers and Technology, 23.06.2019 06:00
Which statistical function in a spreadsheet you to see how far each number varies, on average, from the average value of the list?
Answers: 2
question
Computers and Technology, 23.06.2019 12:00
Which of these is a benefit of using objects in a powerpoint presentation? a. collaborators can create the external files while you create and edit the slide show. b. you can easily change the theme and design of the presentation. c. you can have older data in the source file while having up-to-date data in the presentation. d. collaborators can easily share the presentation.
Answers: 2
question
Computers and Technology, 23.06.2019 21:40
Simon says is a memory game where "simon" outputs a sequence of 10 characters (r, g, b, y) and the user must repeat the sequence. create a for loop that compares the two strings. for each match, add one point to user_score. upon a mismatch, end the game. sample output with inputs: 'rrgbryybgy' 'rrgbbrybgy'
Answers: 3
You know the right answer?
Question: 1 The AP Exam does not use for loops and while loops, but rather REPEAT or REPEAT UNTIL c...
Questions
Questions on the website: 13722361