Search Header Logo

AP CS P CodeHS Unit 5

Authored by Shannon Walsh

Computers

9th - 12th Grade

Used 129+ times

AP CS P CodeHS Unit 5
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

About

This quiz comprehensively covers AP Computer Science Principles Unit 5, focusing on functions and APIs in Python programming. Designed for high school students in grades 9-12, the questions assess fundamental programming concepts including function definition syntax, parameter usage, return values, variable scope, and Application Programming Interfaces. Students need a solid understanding of Python syntax, particularly the proper use of the `def` keyword, colon placement, indentation rules, and parameter handling. The quiz tests both conceptual knowledge and practical application skills, requiring students to distinguish between parameters and arguments, understand local versus global scope, recognize proper function call syntax, and comprehend how functions can return values and call other functions. The inclusion of API concepts demonstrates the real-world applications of programming, connecting classroom learning to industry practices through examples like Twitter, Facebook, and Spotify integrations. Created by Shannon Walsh, a Computers teacher in US who teaches grade 9-12. This quiz serves as an excellent formative assessment tool to gauge student understanding before moving to more complex programming concepts. Teachers can use this as a warm-up activity to review previous lessons, assign it as homework to reinforce learning outside the classroom, or implement it as a quick check for understanding during instruction. The quiz format makes it ideal for identifying specific areas where students may need additional support, particularly in distinguishing between similar concepts like parameters versus arguments or local versus global scope. The questions align with AP Computer Science Principles standards, specifically supporting learning objectives related to programming constructs, abstraction, and the role of APIs in software development, preparing students for both the AP exam and real-world programming applications.

    Content View

    Student View

26 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

________ allow us to break our programs into smaller parts

decisions

functions

methods

loops

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which is the correct header of a function names double_number that takes one parameter

def double number (x)

def double_number(x)

def double_number(x):

def double_number(int x):

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Everything in a function is indented by _____

One Level

Two Levels

Three Levels

In Curly Brackets ({})

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

To call a previous written function, you use the

function return type

function name without the ()

function name with () and included parameters

function name with ()

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

The tasks included in a function definition are referred to as the function _______.

method

body

statements

parameters

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

The variables written inside the () of a functions definition are the _____

return types

arguements

variables

parameters

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

When functions have multiple parameters, the variables are separated with

commas

colons

simi-colons

periods

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?