Which of the following code segments will move the robot from the center square

Reflection: For Your Portfolio

Introduction


About your App.  <Describe your app here>

  1. The following question uses a robot in a grid of squares. The robot is represented as a triangle, which is initially in the bottom left square of the grid and facing right.

Which of the following code segments will move the robot from the center square
   

Consider the following code segment, which moves the robot in the grid. 

Which of the following code segments will move the robot from the center square

Which of the following shows the location of the robot after running the code segment?

 

Which of the following code segments will move the robot from the center square
(A) 

Which of the following code segments will move the robot from the center square

Which of the following code segments will move the robot from the center square
 (B) 
Which of the following code segments will move the robot from the center square

Which of the following code segments will move the robot from the center square
 (C) 
Which of the following code segments will move the robot from the center square

Which of the following code segments will move the robot from the center square
 (D) 
Which of the following code segments will move the robot from the center square

  1. The figure below shows a robot in a grid of squares. The robot is represented as a triangle, which is initially facing upward. The robot can move into a white or gray square but cannot move into a black region.

Which of the following code segments will move the robot from the center square
   

Consider the procedure MoveAndTurn below. 

Which of the following code segments will move the robot from the center square

Which of the following code segments will move the robot to the gray square?

Which of the following code segments will move the robot from the center square
 (A) 

Which of the following code segments will move the robot from the center square

Which of the following code segments will move the robot from the center square
 (B) 
Which of the following code segments will move the robot from the center square

Which of the following code segments will move the robot from the center square
 (C) 
Which of the following code segments will move the robot from the center square

Which of the following code segments will move the robot from the center square
 (D) 
Which of the following code segments will move the robot from the center square

  1. The program segment below is intended to move a robot in a grid to a gray square. The program segment uses the procedure GoalReached, which evaluates to true if the robot is in the gray square and evaluates to false otherwise. The robot in each grid is represented as a triangle and is initially facing left. The robot can move into a white or gray square, but cannot move into a black region.

    Which of the following code segments will move the robot from the center square


    For which of the following grids does the program NOT correctly move the robot to the gray square?

Which of the following code segments will move the robot from the center square
 (A) 
Which of the following code segments will move the robot from the center square

Which of the following code segments will move the robot from the center square
 (B)
Which of the following code segments will move the robot from the center square

Which of the following code segments will move the robot from the center square
 (C) 
Which of the following code segments will move the robot from the center square

Which of the following code segments will move the robot from the center square
 (D) 
Which of the following code segments will move the robot from the center square

Reflection

Be sure to provide screenshots along with your explanations.

  1. The lesson here is that our choice of abstractions, in this case the use of parameters in our Logo commands, affects the kinds of problems we can solve and how we solve them. That is, our choice of abstractions have an enormous impact on our algorithms. In addition, procedural abstraction (both with and without parameters) makes algorithms easier by raising the level of abstraction.

    Describe in your own words, with a specific example from Logo, how our choice of abstractions (commands) in this lesson provides us with the ability to solve problems that couldn't be solved with the abstractions (commands) used in Logo Part 1.

    Answer

     In logo 1 you couldn't change the line size easily because there wasn't a line size parameter that we could edit but now you can use that parameter to change the line size dynamically.

Final App and Digital Distribution:

How to Install my App:  (Scan Here)


Design:

Be sure to provide screenshots along with your explanations for each of the enhancements that you made.

Note:  This section may repeat based on how many large Event Handlers you have.

<Your Explanation goes here>


For which of the grids does the program correctly move the robot to the gray square?

Although the program will not move the robot to the gray square in Grid II, it will correctly move the robot to the gray square in Grid I. This option is correct.

Which of the following is a key factor in determining the efficiency of an algorithm?

Time and space complexity are the two main measures for calculating algorithm efficiency, determining how many resources are needed on a machine to process it.

Which of the following is most likely to be a benefit of storing the information from each calling session in a database?

Which of the following is most likely to be a benefit of storing the information from each calling session in a database? The company can analyze the calling session data and thereby make better business decisions.

Which of the following is a true statement about the use of public key encryption in transmitting messages?

Which of the following is a true statement about the use of public key encryption in transmitting messages? Public key encryption enables parties to initiate secure communication through an open medium, such as the Internet, in which there might be eavesdroppers.