placeholder image to represent content

AP CS A - Functions from Unit 3

Quiz by Mr Fiore

Our brand new solo games combine with your quiz, on the same screen

Correct quiz answers unlock more play!

New Quizalize solo game modes
3 questions
Show answers
  • Q1
    Choose a statement that is true about functions
    Functions 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
  • Q2
    Which 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
  • Q3
    Describe 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.
    Question Image
    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

Teachers give this quiz to your class