Compsci 101, Fall 2014, Lab 3

Answer the following questions on the online google form for lab 3.
  1. String Slicing and Dicing

    Provide your answers to 3-9, creating each word by slicing:
  2. 
    
    

  3. 
    
    

  4. 
    
    

  5. 
    
    

  6. 
    
    
  7. 
    
    

  8. 
    
    

Create your own slicing/word puzzle: what's the word and what's the answer?





APT Acronym

Write a brief, English description of how to solve the APT.













  1. Complete the code statement below.
      words = 
    
    
  2. Write the for-loop here:
    
    
    
    
  3. Write loop to create the acronym:
      acro = ""
    
    
    
    
    
    
    
      return acro
    
    
    
    
    
    
    
    

Part 3: turtles in the house

  1. Explain how the four squares are drawn without any lines as the turtles moves between the squares.
  2. 
    
    
    

  3. Explain how the turtle moves back to the start of the first square so it can draw a larger square near it.
  4. 
    
    
    

  5. What is the name of the turtle that is created?
  6. 
    
    
    

  7. Explain where the turtle blipy in the square method is created.
  8. 
    
    
    
  9. If the name of blipy in the square function was changed to bloopy, how many lines of code would need to change, and would the program still run?
  10. 
    
    
    

  11. Enter the code you wrote for the window function.
  12.