Ask your own question, for FREE!
Mathematics 20 Online
OpenStudy (anonymous):

computer science help

OpenStudy (anonymous):

Which of the following is an advantage of using functions? (Select the best answer.) (medals.1) Functions make a program longer and more complex. Functions can be imported and then used by many programs. Functions reduce the number of programmers working on a project. Functions can automatically fix errors in a program's code.

OpenStudy (lyrae):

What do you think?

OpenStudy (anonymous):

i think its c but i wanna check

OpenStudy (lyrae):

Nah, it's not c.

OpenStudy (lyrae):

A function is pice of code which can be used several times without the need to rewrite it again.

OpenStudy (anonymous):

so B

OpenStudy (lyrae):

Yes!

OpenStudy (anonymous):

In a function name, what should you use between words instead of whitespaces? (Select the best answer.) (Points : 1) The asterisk symbol * The octothorp symbol # The underscore symbol _ The quotation mark symbol " Question 4. 4. How is whitespace usually created? (Select the best answer.) (Points : 1) By pressing the SPACEBAR or the TAB key By pressing the ENTER key By pressing the DELETE or BACKSPACE key By double-clicking a line of code Question 5. 5. Which of the following examples correctly describes the order in which these parts of a program should be written? (Select the best answer.) (Points : 1) The import command, then function definitions, then function calls Function definitions, then the import command, then function calls Function calls, then function definitions, then the import command The import command, then function calls, then function definitions Question 6. 6. Comments should be written in what type of language? (Select the best answer.) (Points : 1) Correctly formatted Python code Any programming language Clear and plain human language Code words defined in functions Question 7. 7. If you define a function name, and it turns purple instead of blue, what should you do? (Select the best answer.) (Points : 1) Run the program Change the name Restart Python Delete any spaces in the name

OpenStudy (anonymous):

i thought 3 b 4 c 5a 6 d 7 c

OpenStudy (anonymous):

@owlfred

OpenStudy (paxpolaris):

The underscore symbol _

OpenStudy (paxpolaris):

By pressing the SPACEBAR or the TAB key

OpenStudy (anonymous):

thanks @PaxPolaris can u help with the rest

OpenStudy (paxpolaris):

5a \(\checkmark\)

OpenStudy (paxpolaris):

you write comments to explain how a function works. so use Clear and plain human language

OpenStudy (anonymous):

If you define a function name, and it turns purple instead of blue, what should you do? (Select the best answer.) (Points : 1) Run the program Change the name Restart Python Delete any spaces in the name Question 8. 8. What should you use as the argument for the goto() command? (Select the best answer.) (Points : 1) The distance in degrees the turtle should rotate The number of sides the turtle should draw The length in pixels of the line the turtle should draw The X and Y coordinates of a point Question 9. 9. What are the coordinates of the origin point? (Select the best answer.) (Points : 1) (10, 0) (1, 10) (1, 1) (0, 0) Question 10. 10. The point at coordinates (2, -18) is in what direction from the origin? (Select the best answer.) (Points : 1) To the right and up from the origin To the right and down from the origin To the left and up from the origin To the left and down from the origin Question 11. 11. What does a coordinate tell you? (Select the best answer.) (Points : 1) How large an object is The size of the turtle graphics window The number of objects in the window Where a point is along the X axis or Y axis Question 12. 12. What is code reuse meant to do? (Select the best answer.) (Points : 1) Fix errors Teach programming skills Format code Save time Question 13. 13. What are comments meant to do? (Select the best answer.) (Points : 1) Make sure Python runs code in the correct order Fix errors in the code Explain what some code is doing Format the code correctly Question 14. 14. The _________ is an invisible horizontal line that goes across the center of the turtle graphics window. (Select the best answer.) (Points : 1) The X axis The Y axis The origin point The coordinate border Question 15. 15. The point at coordinates (-15, 30) is in what direction from the origin? (Select the best answer.) (Points : 1) To the left and up from the origin To the left and down from the origin To the right and down from the origin To the right and up from the origin

OpenStudy (paxpolaris):

Question 7. 7. If you define a function name, and it turns purple instead of blue, what should you do? (Select the best answer.) (Points : 1) ??? the color depends on the which software you are using ... usually the wrong color might mean: that the name you are trying to give the function is already being used.

OpenStudy (paxpolaris):

so giving a different name should work

OpenStudy (anonymous):

is it D

OpenStudy (paxpolaris):

7b

OpenStudy (paxpolaris):

change the name ... (there shouldn't be any spaces to begin with)

OpenStudy (paxpolaris):

i don't know 8 ... might be D

OpenStudy (paxpolaris):

9 also not sure might be (0,0)

OpenStudy (paxpolaris):

10) 2 to the right, and 18 down from (0,0)

OpenStudy (paxpolaris):

11) coordinates tell you Where a point is along the X axis or Y axis

OpenStudy (paxpolaris):

12 Save time

OpenStudy (paxpolaris):

13 comments Explain what some code is doing

OpenStudy (paxpolaris):

14 The X axis

OpenStudy (paxpolaris):

15) 15 to the left ... 30 up

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!