L IPULI CICICLY uy .uy UPUL Pay4U14 UYICI connexus.com/content/chrome/online/lessonViewer.aspx?header=true&idCourse Lesson 4: Wrapping Up Unit 4 Computer Science II: Programming B Unit 4: Modular Programming 1. What is the output of this program? (1 point) def area(r): print("The area is", 3.14 * .**2) area) men C00 an error message "The area is". 3.14 *r**2 The area is 3.14 The area is 3.14 1 2 2. What will be the output when this function is called? (1 point) def outputo: print(100) X Isabel Computer Science It: Programming B: Wrapping Up Unit 4 - Page 4 of 4 - Google Chrome connexus.com/content/chrome/online/lessonViewer.aspx?header=true&idCourse=86914&id Apps Lesson 4: Wrapping Up Unit 4 Computer Science II: Programming B Unit 4: Modular Programming def output: print(100) print(50) return DOBRE W print(30) ww OOO OO Tune here to reach Computer Science It: Programming B: Wrapping Up Unit 4 - Page 4 of 4 - Google Chrome connexus.com/content/chrome/online/lessonViewer.aspx?header=true&idCourse=86914&idUnit=70965 Lesson 4: Wrapping Up Unit 4 Computer Science II: Programming B Unit 4: Modular Programming 3. What is the output of this program? (1 point) def cost(item1, item2): total = iteml + item2 cost(80, 70) an error message there will be no output 80.70 150 4. Which error lets you know that the code used a function that you had not yet defined? (1 SyntaxError NameError Define Error LocalError Onviewer.aspx/header=true&idCourse=86914&id Unit=70965&idLesson=762489&page=1&idw Lesson 4: Wrapping Up Unit 4 Computer Science Il: Programming B Unit 4: Modular Programming 5. Which of these show the correct way to write the first line of code to define a function? (1 point) def triangle_area (b, h): define triangle_area (b, h): def triangle_area_b.h) def triangle_area[b. h]: 6. In Python, a function can call itself. (1 point) True False pluuiueWUCUurse-86912 Apps Lesson 4: Wrapping Up Unit 4 Computer Science II: Programming B Unit 4: Modular Programming 7. Which error will result from these lines of code: (1 point) def sing: print("Happy birthday to you!") m DCO SyntaxError NameError FunctionError IndentationError mm- 8. A variable that does not exist outside of a function is called a: (1 point) limited variable. parochial variable. local variable. string variable | @ @ @ @ connexus.com/content/chrome/online/lessonViewer.aspx?header=true&idCourse=86914&idUnit=70965&idLesson Lesson 4: Wrapping Up Unit 4 Computer Science II: Programming B Unit 4: Modular Programming 9. The line of code used to create a function has to end with a: (1 point) period. colon. semi-colon. conditional statement. 10. A recursive function is a function that calls itself. (1 point) True False 11. If you want a variable to be accessible only within a function, what kind of variable should it be? integer local limited functional Isabel Computer Science ll: Programming B: Wrapping Up Unit 4 - Page 4 of 4 - Google Chrome connexus.com/content/chrome/online/lessonViewer.aspx?header=true&idCourse=86914 Apps Lesson 4: Wrapping Up Unit 4 Computer Science II: Programming B Unit 4: Modular Programming 12. What will happen if you use this line of code: (1 point) surface area(100, 95) to call this function: 00 def surface_area(1, w, h): . - m 3 0 NameError SyntaxError TypeError no error 13. A function has to have one parameter. (1 point) True False Colhexus.com/content/chrome/online/lessonViewer.aspx?header=true&idCourse=86914&idur Lesson 4: Wrapping Up Unit 4 Computer Science Il: Programming B Unit 4: Modular Programming 13. A function has to have one parameter. (1 point) ER True False 14. A function that calls itself is called a circular function. (1 point) COO True False m 15. If you accidentally typed the word pritn instead of print, what would happen? (1 Python would figure out what you meant. An error would occur. Python would ask you what you meant. The line of code would be ignored. Finish Cancel ovo o ovo