
AP CS A - Functions from Unit 3
Quiz by Mr Fiore
Feel free to use or edit a copy
includes Teacher and Student dashboards
Measure skillsfrom any curriculum
Measure skills
from any curriculum
Tag the questions with any skills you have. Your dashboard will track each student's mastery of each skill.
With a free account, teachers can
- edit the questions
- save a copy for later
- start a class game
- automatically assign follow-up activities based on students’ scores
- assign as homework
- share a link with colleagues
- print as a bubble sheet
3 questions
Show answers
- Q1Choose a statement that is true about functionsFunctions in programming are named groupings of programming instructions.Functions in programming are useful mathematical tools for doing complex computations.Meaningful function names do not help people better understand programs.Meaningful function names help computers better understand programs.30s
- Q2Which of the following is NOT a true statement about functions?Functions help reduce the complexity of writing and maintaining programs.Once defined, a function can be called many times from different parts of a program.Functions help break a problem into logical chunks.Functions cannot make calls to other functions written by the same programmer.30s
- Q3Describe each of the functions that you would create. You should not write all the code, only the names of the functions that you would create with a brief description of what each function would do.drawSnowflake() - function that draws a single snowflake, by calling drawBranch() multiple times. drawBranch() - draws a single "branch" of the snowflake. A "branch" is made by moving forward and then drawing a cross like a "plus" sign. drawCross() - moves the turtle, picking pen up and down appropriately to draw a cross like a "plus" sign.drawCross() - draw a cross like a "plus" sign.30s