Submitted reading questions for 02/17/2014

CS 121B (CS1), Spring 2014

sid q1 categ annot
9786 I am a little confused about the variables in functions and how functions work in general.    
9787 What are some other examples of bad form?    
9790 I'm not sure I understand the "accumulator". What exactly do you use this for? Is it simply to count how many times the function has been looped through?    
9792 It is bad form to access a global variable from a function. Are there other important examples of bad form?    
9793 What is the purpose of the docstring? Do you have to enter one when you create a function or can you leave it out?    
9794 What is the purpose of the docstring?    
9795 What is a docstring?    
9796 When defining a function(i.e. def drawSquare (t, sz)), are the variables in the parenthesis just place holders until they are defined later within the program?    
9797 Why would a function that does not return a value be useful?    
9798 How can we use the turtle function for other disciplines? What are the functions of the program?    
9799 Do you have to load the math module for Fuctions?    
9802 Is it better to use many small functions or few larger functions in a large program?    
9810 What does "return a value" actually means?    
9821 Could you explain docstrings a little more/give an example?    
9822 Why are docstrings important?    
9827 Does set world coordinates help to set where you want to start your turtle? I am a little confused about this concept.    
9829 Can functions be used to define other functions, not just call them?    
9830 Can functions be used to define other functions, not just call them?    
9833 How is a function in Computer Science different from a function in traditional math?    
9839 Could you please explain the flow of execution and how to determine this?    
9840 Are there uses of functions other than math and turtle?    
9845 Do the parameters have to be specific letters/words? Also, how do you know when you need more than two parameters?    
9849 What is the programming behind functions? Is it more high level or low level language?    

(23 rows)

sid otherqs categ annot
9833 What is something the function option would be used for in the world of real computer science? Its real world applications?    

(1 row)